# Fatal error during phase 1 unwinding

**URL:** <https://forum.xojo.com/t/fatal-error-during-phase-1-unwinding/45416>\
**Category:** Raspberry Pi\
**Created:** [September 20, 2018, 12:12am UTC](https://forum.xojo.com/t/fatal-error-during-phase-1-unwinding/45416 "2018-09-20T00:12:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kato\_Gangstad](https://forum.xojo.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@Kato\_Gangstad](https://forum.xojo.com/u/Kato_Gangstad)\
**Post date:** [September 20, 2018, 12:12am UTC](https://forum.xojo.com/t/fatal-error-during-phase-1-unwinding/45416/1 "2018-09-20T00:12:15Z")

</div>

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:

```auto
apt-get install libunwind*
```

No difference

---

<div class="post-metadata">

**Author:** ![Eugene\_Dakin](https://forum.xojo.com/user_avatar/forum.xojo.com/eugene_dakin/32/178_2.png) [@Eugene\_Dakin](https://forum.xojo.com/u/Eugene_Dakin)\
**Post date:** [September 20, 2018, 3:33am UTC](https://forum.xojo.com/t/fatal-error-during-phase-1-unwinding/45416/2 "2018-09-20T03:33:11Z")

</div>

Hello Kato,

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

```auto
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?

---

<div class="post-metadata">

**Author:** ![Kato\_Gangstad](https://forum.xojo.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@Kato\_Gangstad](https://forum.xojo.com/u/Kato_Gangstad)\
**Post date:** [September 20, 2018, 4:29pm UTC](https://forum.xojo.com/t/fatal-error-during-phase-1-unwinding/45416/3 "2018-09-20T16:29:55Z")

</div>

```auto
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](https://forum.xojo.com/48222-fatal-error-during-phase-1-unwinding)  
@Greg O’Lone @William Yu

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

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [September 21, 2018, 3:05am UTC](https://forum.xojo.com/t/fatal-error-during-phase-1-unwinding/45416/4 "2018-09-21T03:05:01Z")

</div>

[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](https://forum.xojo.com/48222-fatal-error-during-phase-1-unwinding)  
@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.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 7:22pm UTC](https://forum.xojo.com/t/fatal-error-during-phase-1-unwinding/45416/5 "2020-10-29T19:22:42Z")

</div>


