Fatal error during phase 1 unwinding

Xojo 2018 R1.1
CM3 with Raspbian Stretch Lite

“Fatal error during phase 1 unwinding” when running this code:

[code]Private Function ArgsToDictionary(Args() As String) as Dictionary
// Converts command line arguments to a dictionary.

Dim Arguments As New Dictionary
For Each Argument As String In Args
Print “1”
Dim ArgParts() As String = Argument.Split("=")
Print “2”
Dim Name As String = ArgParts(0)
Print “3”
Dim Value As String = If(ArgParts.Ubound = 1, ArgParts(1), “”)
Print “4”
Arguments.Value(Name) = Value
Print “5”
Next
Return Arguments
End Function
[/code]

The program gives the error after printing “1” (still no remote debugging on Windows… so I have to debug this way)

Have installed:

apt-get install libunwind*

No difference

Hello Kato,

Please try to install libunwind with the following command in a terminal:

sudo apt-get install libunwind8

I modified your code and replaced Print “1” with System.Debug “1” and this works on my Raspberry Pi:

Private Function ArgsToDictionary(Args() As String) as Dictionary // Converts command line arguments to a dictionary. Dim Arguments As New Dictionary For Each Argument As String In Args System.DebugLog "1" Dim ArgParts() As String = Argument.Split("=") System.DebugLog "2" Dim Name As String = ArgParts(0) System.DebugLog "3" Dim Value As String = If(ArgParts.Ubound = 1, ArgParts(1), "") System.DebugLog "4" Arguments.Value(Name) = Value System.DebugLog "5" Next Return Arguments End Function

Does this work on your Raspberry Pi?

libunwind8 is already the newest version (1.1-4.1)

Compiled with Xojo 2017R3 it works.

I belive Xojo know this error wery well: Forum Post
@Greg O’Lone @William Yu

When will this be fixed ?
When will remote debugging on PI be avalible in Windows ?

[quote=406602:@Kato Gangstad]libunwind8 is already the newest version (1.1-4.1)

Compiled with Xojo 2017R3 it works.

I belive Xojo know this error wery well: Forum Post
@Greg O’Lone @William Yu

When will this be fixed ?
When will remote debugging on PI be avalible in Windows ?[/quote]
Actually we don’t. So far we have been unable to replicate it here.

Keep in mind that raspbian stretch lite is a stripped down version that is missing a lot of libs found in the full version by default. My guess is that you are missing some other basic system requirement of Xojo apps.