#1 2016-09-22 04:10:03

ComingNine
Member
Registered: 2010-07-29
Posts: 294

Exception raised in SpiderMonkey45Binding: error during FreeMem operat

Using mORMot '1.18.2923', if compiled with Delphi XE or Berlin, SpiderMonkey45Binding gives various errors. Could you help to check ?

The screen shots can be seen at imgur.

http://imgur.com/a/ILNim

The content of SpiderMonkey45Binding_MemoryManager_EventLog.txt is

https://gist.github.com/anonymous/2bcec327762a4a6ff8f28eb9e8d87aa9

PS: If compiled with Delphi 7, SpiderMonkey45Binding runs fine.

Last edited by ComingNine (2016-09-22 04:21:39)

Offline

#2 2016-09-22 16:01:12

ComingNine
Member
Registered: 2010-07-29
Posts: 294

Re: Exception raised in SpiderMonkey45Binding: error during FreeMem operat

The situation remains the same after Updating to mORMot '1.18.2988'...

Offline

#3 2016-09-22 17:16:35

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

Re: Exception raised in SpiderMonkey45Binding: error during FreeMem operat

I'll check tomorrow

Offline

#4 2016-09-25 07:09:58

ComingNine
Member
Registered: 2010-07-29
Posts: 294

Re: Exception raised in SpiderMonkey45Binding: error during FreeMem operat

mpv wrote:

I'll check tomorrow

Can you comment whether you can at least reproduce this issue ?

Offline

#5 2016-10-01 17:22:08

ComingNine
Member
Registered: 2010-07-29
Posts: 294

Re: Exception raised in SpiderMonkey45Binding: error during FreeMem operat

The content of FastMM4Options.inc used is

https://gist.github.com/anonymous/5ebb8 … f1240e28ea

Offline

#6 2016-10-05 05:05:44

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

Re: Exception raised in SpiderMonkey45Binding: error during FreeMem operat

We reproduce a issue - this is because FastMM FullDebugMode

{$IFDEF DEBUG} {$define FullDebugMode} {$ENDIF}

is enabled in your FastMM4Options.inc
Without this option enabled everything is fine. At the moment we do not know the reason. Looks like a conflict between FastMM in FullDebug mode and a nspr memory manager (SpiderMonkey use a memory manager from Netscape Portable Run-time nspr4.dll)

Last edited by mpv (2016-10-05 05:06:12)

Offline

#7 2016-10-05 14:09:58

ComingNine
Member
Registered: 2010-07-29
Posts: 294

Re: Exception raised in SpiderMonkey45Binding: error during FreeMem operat

mpv wrote:

We reproduce a issue - this is because FastMM FullDebugMode

{$IFDEF DEBUG} {$define FullDebugMode} {$ENDIF}

is enabled in your FastMM4Options.inc
Without this option enabled everything is fine. At the moment we do not know the reason. Looks like a conflict between FastMM in FullDebug mode and a nspr memory manager (SpiderMonkey use a memory manager from Netscape Portable Run-time nspr4.dll)

Thank you very much for your efforts in researching ! Because FullDebugMode is rather important for FastMM for finding memory leaks, I hope this incompatibility between FastMM w/ FullDebugMode and SpiderMonkey could be removed in future. big_smile

Offline

Board footer

Powered by FluxBB