Fatal error during phase 1 unwinding

  1. 11 months ago

    Kato G

    19 Sep 2018 Pre-Release Testers Europe (Norway)

    Xojo 2018 R1.1
    CM3 with Raspbian Stretch Lite

    "Fatal error during phase 1 unwinding" when running this 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

    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

  2. Eugene D

    19 Sep 2018 Pre-Release Testers, Xojo Pro Canada scispec.ca

    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?

  3. Kato G

    20 Sep 2018 Pre-Release Testers Europe (Norway)
    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 OLone @William Y

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

  4. Greg O

    20 Sep 2018 Xojo Inc

    @Kato G 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 OLone @William Y

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

    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.

or Sign Up to reply!