Debug build not working

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
Fedor2

Debug build not working

Unread post by Fedor2 » 2017-10-06, 18:30

I did build with enable-debug, but it failed to start, i have taken intact code and built from scratch and it failed to start too.
This was written in the console windows. there warnings and Assertion failure: (Can't own error reporting off-main-thread yet) which points that error occured before. But where to look it?
[3740] WARNING: XPCOM objects created/destroyed from static ctor/dtor: file g:/temp/pal/xpcom/base/nsTraceRefcnt.cpp, line 120
[3740] WARNING: preserving unexpected JS escape sequence: file g:\temp\pal\modules\libpref\prefread.cpp, line 393
[3740] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: file g:/temp/pal/xpcom/base/nsSystemInfo.cpp, line 69
JavaScript strict warning: file:///G:/Temp/tycho.error/dist/bin/browser/components/nsBrowserGlue.js, line 1260: SyntaxError: in strict mode code, functions maybe declared only at top level or immediately within another function
[3740] WARNING: This method is lossy. Use GetCanonicalPath !: file g:/temp/pal/xpcom/io/nsLocalFileWin.cpp, line 3483
++DOCSHELL 04E60000 == 1 [pid = 3740] [id = 1]
++DOMWINDOW == 1 (04E60400) [pid = 3740] [serial = 1] [outer = 00000000]
++DOMWINDOW == 2 (04804C00) [pid = 3740] [serial = 2] [outer = 04E60400]
[3740] WARNING: getting z level of unregistered window: file g:\temp\pal\xpfe\appshell\nsWindowMediator.cpp, line 591
[3740] WARNING: getting z level of unregistered window: file g:\temp\pal\xpfe\appshell\nsWindowMediator.cpp, line 591
[3740] WARNING: getting z level of unregistered window: file g:\temp\pal\xpfe\appshell\nsWindowMediator.cpp, line 591
[3740] WARNING: getting z level of unregistered window: file g:\temp\pal\xpfe\appshell\nsWindowMediator.cpp, line 591
++DOCSHELL 05EF2800 == 2 [pid = 3740] [id = 2]
++DOMWINDOW == 3 (05EF2C00) [pid = 3740] [serial = 3] [outer = 00000000]
++DOMWINDOW == 4 (061D5C00) [pid = 3740] [serial = 4] [outer = 05EF2C00]
++DOMWINDOW == 5 (061D9400) [pid = 3740] [serial = 5] [outer = 04E60400]
Assertion failure: NS_IsMainThread() (Can't own error reporting off-main-thread yet), at g:\temp\pal\dom\base\ScriptSettings.cpp:475
JavaScript strict warning: chrome://browser/content/nsContextMenu.js, line 2: TypeError: setting a property that has only a getter
++DOCSHELL 064B7800 == 3 [pid = 3740] [id = 3]
++DOMWINDOW == 6 (064B7C00) [pid = 3740] [serial = 6] [outer = 00000000]
JavaScript strict warning: chrome://browser/content/utilityOverlay.js, line 3: TypeError: setting a property that has only a getter
JavaScript strict warning: chrome://browser/content/utilityOverlay.js, line 5: TypeError: setting a property that has only a getter
JavaScript strict warning: chrome://browser/content/utilityOverlay.js, line 3: TypeError: setting a property that has only a getter
JavaScript strict warning: chrome://browser/content/utilityOverlay.js, line 5: TypeError: setting a property that has only a getter
JavaScript strict warning: chrome://browser/content/places/placesOverlay.xul, line 27: TypeError: setting a property that has only a getter
JavaScript strict warning: chrome://browser/content/autorecovery.js, line 18: TypeError: setting a property that has only a getter
#01: NS_LogCOMPtrAddRef[xul +0xbcbc70]
#02: NS_LogCOMPtrAddRef[xul +0xbd6eab]
#03: NS_LogCOMPtrAddRef[xul +0xbd6d42]
#04: NS_LogCOMPtrAddRef[xul +0xbd696d]
#05: NS_LogCOMPtrAddRef[xul +0xbd6a20]
#06: NS_LogCOMPtrAddRef[xul +0xbd6fbe]
#07: NS_LogCOMPtrAddRef[xul +0xbd25f8]
#08: NS_LogCOMPtrAddRef[xul +0xbd2791]
#09: imgLoader::SupportImageWithMimeType[xul +0x72cdff]
#10: mozilla::LoadInfo::TriggeringPrincipal[xul +0xecb1cc]
#11: mozilla::LoadInfo::TriggeringPrincipal[xul +0xee59be]
#12: mozilla::LoadInfo::TriggeringPrincipal[xul +0xede194]
#13: XRE_AddStaticComponent[xul +0x85890]
#14: NS_InitXPCOM[xul +0xa0ef5]
#15: mozilla::LoadInfo::TriggeringPrincipal[xul +0xeccd67]
#16: mozilla::LoadInfo::TriggeringPrincipal[xul +0xebabe3]
#17: XRE_AddStaticComponent[xul +0x85890]
#18: NS_InitXPCOM[xul +0xa0ef5]
#19: mozilla::LoadInfo::Release[xul +0x230e44]
#20: mozilla::LoadInfo::Release[xul +0x21b959]
#21: mozilla::LoadInfo::Release[xul +0x21b911]
#22: mozilla::LoadInfo::Release[xul +0x21b744]
#23: XRE_AddStaticComponent[xul +0x88aa3]
#24: PR_NativeCreateThread[nss3 +0x214ea8]
#25: PR_SetSysfdTableSize[nss3 +0x20681f]
#26: _get_flsindex[MSVCR120 +0x2c01d]
#27: _get_flsindex[MSVCR120 +0x2c001]
#28: BaseThreadInitThunk[KERNEL32 +0x17c04]
#29: RtlInitializeExceptionChain[ntdll +0x5ab8f]
#30: RtlInitializeExceptionChain[ntdll +0x5ab5a]
[3740] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111: file g:\temp\pal\dom\base\nsFrameLoader.cpp, line 288
++DOCSHELL 0B32F000 == 4 [pid = 3740] [id = 4]
++DOMWINDOW == 7 (06A29010) [pid = 3740] [serial = 7] [outer = 00000000]
++DOMWINDOW == 8 (06A293F0) [pid = 3740] [serial = 8] [outer = 06A29010]

GMforker

Re: Debug build not working

Unread post by GMforker » 2017-10-06, 18:58

Code: Select all

[3740] WARNING: getting z level of unregistered window: file g:\temp\pal\xpfe\appshell\nsWindowMediator.cpp, line 591
See bug #1307212.

See also bug #1318951.

GMforker

Re: Debug build not working

Unread post by GMforker » 2017-10-06, 21:35

Also:

Code: Select all

[2220] WARNING: Image width or height is non-positive: file [drive]:\[path]\layout\base\nsLayoutUtils.cpp, line 6045
See bug #1317464.

Fedor2

Re: Debug build not working

Unread post by Fedor2 » 2017-10-07, 05:01

I mistook about error was occured before, though hope got some understanding.
"Assertion failure" an error itself, they put it when they think error be always on that condition. But it hard to finde whence has called erroneous code, or this is something i don't understand yet.

Hey GMforker by what you was guided when you put these bugs links, they nothing ever related with my error.

i think resolved initial error, but got new "Assertion failure" misome maybe.h 254. Maybe maybe debuging mode is broken completely. Do you use it at all?

GMforker

Re: Debug build not working

Unread post by GMforker » 2017-10-07, 09:56

For Windows see also:
Issue #1400
Issue #1401
Fedor2 wrote:...new "Assertion failure" misome maybe.h 254.
I do not see this error.

Fedor2

Re: Debug build not working

Unread post by Fedor2 » 2017-10-12, 23:11

Because your done much changes in scriptsettings, debug mode is fine now, thanks

Fedor2

Re: Debug build not working

Unread post by Fedor2 » 2017-11-15, 02:01

Another error ocurred

Assertion failure: !NS_IsMainThread(), at d:\dev\pale-moon\dom\media\platforms\PlatformDecoderModule.cpp:97

As i understand this code must run in different thread, but i could not find thread creation in that cpp.I remove this check and see how will it goes.

Fedor2

Re: Debug build not working

Unread post by Fedor2 » 2017-11-16, 07:11

No error without !NS_IsMainThread()

If it was intended to run that code in another thread why they not do crate new thread but put that check?

New error
Assertion failure: !GetModuleHandleA("mozglue.dll"), at d:\dev\pale-moon\toolkit\xre\WindowsCrtPatch.h:126
It occurs always when starting debug browser after crash, need start regular browser before to pass, and when browser is closing.

Locked