teodosin / karta

16 stars 1 forks source link

Crashes when trying to create vault (Mac) #56

Closed isokissa closed 9 months ago

isokissa commented 9 months ago

On Mac, it crashes when I pressed the "Create vault" button. The following text is shown in the terminal:

Setting up Move actions
Config dir: "/Users/phz945/Library/Application Support/com.Teodosin.Karta"
Full path: "/Users/phz945/Library/Application Support/com.Teodosin.Karta/karta.vault"
Vaults file does not exist
Vault changed to: None
Saving vaults
No vault set
Config dir: "/Users/phz945/Library/Application Support/com.Teodosin.Karta"
Full path: "/Users/phz945/Library/Application Support/com.Teodosin.Karta/karta.vault"
No vault set
No vaults to save
Despawning context menus
Creating edge from drag
fatal runtime error: Rust cannot catch foreign exceptions

Guess: is it OK for path to contain whitespaces?

isokissa commented 9 months ago

The solution was to force native dialog to appear in main thread. That's known issue under MacOS, that native dialogs must be called from main thread.