I recently started getting some strange errors, most often when I exit or restart my script. Any hints on what could be the reason for these errors? And what do I need to fix on my script? My Javascript skills are very limited so it could be something very trivial.
I have tried adding processEvents() and gc() calls but if possible they make it worse. I have tried rooting objects and although I may miss some objects so far it has not had any effect.
The errors I get are similar like below:
Close dialog
*** Error [222]: C:/Program Files/PixInsight/src/scripts/AutoIntegrate.js, line 13816: TypeError: par.skip_blink is undefined
But par.skip_blink is statically initialized so the error is coming for some other reason. And most often the error comes from a different variable, Also once when I started the CodeSign script I got errors from my script like:
** Warning [162]: reference to undefined property narrowBandPalettes[itemIndex]
So CodeSign was starting but I got errors from my own script. I used to get errors from NumericControl.jsh but after some changes like hiding all globals I am getting similar errors from variables in my own script.
Sometimes but a lot more randomly I get call stacks with Qt code. The call stack is kind of long so not posting it here but it has lines like
6: _chkstk in module: C:\WINDOWS\SYSTEM32\ntdll.dll at address: 0x730D1F80
7: RtlRaiseException in module: C:\WINDOWS\SYSTEM32\ntdll.dll at address: 0x73081020
8: KiUserExceptionDispatcher in module: C:\WINDOWS\SYSTEM32\ntdll.dll at address: 0x730D0BA0
9: JS::AutoGCRooter::AutoGCRooter in module: C:\Program Files\PixInsight\bin\mozjs-24.dll at address: 0x3B95C4D0
10: JS_SetPrivate in module: C:\Program Files\PixInsight\bin\mozjs-24.dll at address: 0x3B8E65E0
…
20: QWidgetPrivate::sendPendingMoveAndResizeEvents in module: C:\Program Files\PixInsight\bin\Qt5Widgets.dll at address: 0x27FE26F0
Thanks,
Jarmo
I have tried adding processEvents() and gc() calls but if possible they make it worse. I have tried rooting objects and although I may miss some objects so far it has not had any effect.
The errors I get are similar like below:
Close dialog
*** Error [222]: C:/Program Files/PixInsight/src/scripts/AutoIntegrate.js, line 13816: TypeError: par.skip_blink is undefined
But par.skip_blink is statically initialized so the error is coming for some other reason. And most often the error comes from a different variable, Also once when I started the CodeSign script I got errors from my script like:
** Warning [162]: reference to undefined property narrowBandPalettes[itemIndex]
So CodeSign was starting but I got errors from my own script. I used to get errors from NumericControl.jsh but after some changes like hiding all globals I am getting similar errors from variables in my own script.
Sometimes but a lot more randomly I get call stacks with Qt code. The call stack is kind of long so not posting it here but it has lines like
6: _chkstk in module: C:\WINDOWS\SYSTEM32\ntdll.dll at address: 0x730D1F80
7: RtlRaiseException in module: C:\WINDOWS\SYSTEM32\ntdll.dll at address: 0x73081020
8: KiUserExceptionDispatcher in module: C:\WINDOWS\SYSTEM32\ntdll.dll at address: 0x730D0BA0
9: JS::AutoGCRooter::AutoGCRooter in module: C:\Program Files\PixInsight\bin\mozjs-24.dll at address: 0x3B95C4D0
10: JS_SetPrivate in module: C:\Program Files\PixInsight\bin\mozjs-24.dll at address: 0x3B8E65E0
…
20: QWidgetPrivate::sendPendingMoveAndResizeEvents in module: C:\Program Files\PixInsight\bin\Qt5Widgets.dll at address: 0x27FE26F0
Thanks,
Jarmo