-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consistent crashes when navigating to some directories with the import file dialog #20
Comments
Do you confirm that it is also concerning the Mac OS port project? If yes, the file sorting just alphabetically compares the strings (with strcasecmp) returned by the platform layer function osGetDirContent(, ). |
Yes it is. However, I copied the
at the end of Everything works fine until the |
Ok, using this extremely naive bubble sort, I no longer get crashes in the file dialog. I really don't know anything about C++, but I suspect that
|
Weird. If I replace However, when I run this, I get no output:
|
Also interesting: I sometimes get a |
In fact, this is the real fix. I suppose that 2 elements were identical (for an unknown reason), which trigged the issue. |
Here, https://github.com/dfeneyrou/palanteer/blob/main/server/viewer/vwFileDialog.cpp#L203-L204
I consistently get a
EXC_I386_GPFLT
(general protection fault) ona.name.toChar()
when navigating to certain directories. I can iterate and print the names of all elements in_fileEntries
without issue, so I imagine thatstd::sort
is doing something undesirable in conjunction with your string library. Unfortunately I'm not really sure how best to debug this issue, and I haven't found anything particularly special about the failing directories.The text was updated successfully, but these errors were encountered: