tilp_and_gfm icon indicating copy to clipboard operation
tilp_and_gfm copied to clipboard

[GFM] macOS: segfault on gtk_file_chooser_set_current_name

Open adriweb opened this issue 10 months ago • 0 comments

For some reason, gtk_file_chooser_set_current_name crashes with a segfault. Currently here and on the other similar call further down: https://github.com/debrouxl/tilp_and_gfm/blob/71eaa92de3962a8602a86275d35489f1aa087d9d/gfm/trunk/src/filesel.c#L100

Backtrace:

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x0000000103468cd8 libgtk-quartz-2.0.0.dylib`get_buffer + 40
    frame #1: 0x0000000103469074 libgtk-quartz-2.0.0.dylib`gtk_entry_set_text + 52
    frame #2: 0x0000000102fe1930 gfm`create_fsels_2(dirname="/Users/adriweb/.local/share/", filename="test", ext="*.73?;*.82?;*.83?;*.8X?;*.85?;*.86?;*.89?;*.92?;*.9x?;*.V2?") at filesel.c:339:3
    frame #3: 0x0000000102fe1758 gfm`create_fsels(dirname="/Users/adriweb/.local/share/", filename="test", ext="*.73?;*.82?;*.83?;*.8X?;*.85?;*.86?;*.89?;*.92?;*.9x?;*.V2?") at filesel.c:557:17

Just commenting out the line(s) "solves" the issue and doesn't seem to be affecting functionality...

adriweb avatar Aug 30 '23 19:08 adriweb