Code: Select all
[10:27:04] Executable type: MacOSX - arm64 (64bit, Unicode, Thread)
[10:27:04] Executable started.
[16:24:08] [ERROR] LSV6-Config.pb (Line: 851)
[16:24:08] [ERROR] Program aborted. (by external library)
This is then handled in the main loop:
Code: Select all
...
Case #EventUpdateTXLed ; TX Led is in the status bar and updated less frequently than top window
TXLEDState = #LED_On ; Only set state and leave UI updating to periodic call below
TXLEDTmr = ElapsedMilliseconds()
...
;Update status bar LEDs and indicators every 96 ms.
If elapsedMS - led_tmstamp > 96
LockMutex(TransferDataMtx)
LEDCtrl(@DeviceMsg)
UnlockMutex(TransferDataMtx)
led_tmstamp = elapsedMS
EndIf
Code: Select all
Procedure StatusBar(fieldIdx.i, icon.i, str.s, pad_top.i=0, pad_right=0)
If CreateImage(#MemCanvas, 150, 20)
If StartDrawing(ImageOutput(#MemCanvas))
Box(0, 0, 200, 20, SbarBGColor)
If fieldIdx <> #SBField_Padding
DrawingFont(FontID(sbFontID))
DrawingMode(#PB_2DDrawing_Transparent)
DrawAlphaImage(ImageID(icon), 0, 3+pad_top)
FrontColor(SbarFGColor)
DrawText(14+pad_right,1,str)
EndIf
StopDrawing()
EndIf
EndIf
StatusBarImage(0, fieldIdx, ImageID(#MemCanvas)) ; <*** Program aborted. (by external library)
EndProcedure
I've encountered the problem a few times now and while it may be coincidental, the crash appears to happen either while the screen is sleeping (WiFi is always powered on so network is always available) or shortly after the screen wakes up. Enabling Purifier will cause a hang without any error messages shown. Any suggestions on how to deal with my problem would be appreciated.