Open musanek opened 10 years ago
This happens to me, too. I tested it on every function in the Dialogs class (including saveFile, I had to add a very minor patch to get that to work because the NDLLs for Linux haven't been updated in over a year!!) with the same result every time. It segfaults on both C++ and Neko, and even when I run it in a separate thread. Without OpenFL involved (i.e. in pure cpp or neko) it works fine. The more info the better, right? So here's the full backtrace, with a couple of debug packages installed: http://pastebin.com/4ZwC7XUR
I'm sorry to take so long to answer. Does this still happen? I can't really afford to spend too much time working on this, but I think the solutions shouldn't be too hard. We may need cooperation with OpenFL though.
Hi there - yes this is still happening with OpenFL. When I try and use the Dialogs.openFile function my application crashes when building on Mac and Windows for C++ target.
Main.hx:87: systools.Dialogs Could not find primitive dialogs_open_file__4. Null Function Pointer
Other functions such as accessing the Clipboard work fine.
That problem is easily solved by just recompiling systools in each target lime rebuild systools mac/windows
the big problem is another one. after an OpenDialog (and only an opendialog) openfl stop drawing everything. No error at all, all the listener works. Just the app window becomes black.
I am reporting this to Joshua to see if it is solvable. (anyway I am making a pull request with the recompiled ndll for mac and windows)
Code taken from dialog open sample crashes for me on Linux when run in recent (1.4) OpenFL.
Here is the stracktrace:
0 0x00007ffff7bc6e84 in pthread_mutex_lock () from /lib/x86_64-linux-gnu/libpthread.so.0
1 0x00007fffee7e9e87 in XrmQGetResource () from /usr/lib/x86_64-linux-gnu/libX11.so.6
2 0x00007fffee7c63b0 in XGetDefault () from /usr/lib/x86_64-linux-gnu/libX11.so.6
3 0x00007fffee1212d5 in ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2
4 0x00007fffee122ad0 in ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2
The sample works fine in pure cpp or neko.