Skip to content
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

File selection button never opens the file selection box #9

Closed
yurivict opened this issue Apr 8, 2021 · 13 comments
Closed

File selection button never opens the file selection box #9

yurivict opened this issue Apr 8, 2021 · 13 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@yurivict
Copy link

yurivict commented Apr 8, 2021

Fluida-2021-04-07_17.12.01.mp4

OS: FreeBSD 12.2

@brummer10
Copy link
Owner

Did it behave the same when run with jalv?

@yurivict
Copy link
Author

Did it behave the same when run with jalv?

Yes.

@brummer10
Copy link
Owner

That's bad. I've no idea what it could be.

@brummer10 brummer10 added bug Something isn't working help wanted Extra attention is needed labels Apr 10, 2021
@brummer10
Copy link
Owner

@yurivict
Have you ever build Mamba on FreeBSD?
If so, did the File Dialogue works there, or are there the same issue?
https://github.com/brummer10/Mamba

Also, there is a break out of the File Dialogue here:
https://github.com/brummer10/XFileSelect
It may help to know if that works on FreeBSD.

@yurivict
Copy link
Author

Have you ever build Mamba on FreeBSD?
If so, did the File Dialogue works there, or are there the same issue?

Selecting "Load New" menu items crashes mamba.

@brummer10
Copy link
Owner

could you build a debug version from Mamba (make clean && make debug) and produce a backtrace, maybe I could see were the culprit is.

@brummer10
Copy link
Owner

As a first Idea, did the file $HOME/.config/user-dirs.dirs exist on FreeBSD as part of the XDG Base Directory Specification

@yurivict
Copy link
Author

fp is null here:

125│ int
126│ fclose(FILE *fp)
127│ {
128│         int r;
129│
130├───────> if (fp->_flags == 0) {  /* not open! */
131│                 errno = EBADF;
132│                 return (EOF);
133│         }

Stack backtrace:

(gdb) bt
[?2004l#0  fclose (fp=0x0) at /usr/src/lib/libc/stdio/fclose.c:130
#1  0x00000000002903e9 in parse_xdg_dirs (file_dialog=0x8021d65a0) at ../xputty/dialogs/xfile-dialog.c:520
#2  0x000000000028f528 in open_file_dialog (w=0x8021db000, path=0x7fffffffdbc1 "/home/yuri", filter=0x20acc1 "midi") at ../xputty/dialogs/xfile-dialog.c:563
#3  0x000000000023a16e in midikeyboard::XKeyBoard::load_midi_callback (w_=0x8021de800, user_data=0x7fffffffd4a4) at MidiKeyBoard.cpp:1796
#4  0x000000000027721d in check_value_changed (adj=0x802112c80, value=0x7fffffffd4a4) at ../xputty/xadjustment.c:268
#5  0x000000000027749e in adj_set_value (adj=0x802112c80, v=0) at ../xputty/xadjustment.c:170
#6  0x000000000028ad65 in _menu_entry_released (w_=0x8021df0c0, item_=0x7fffffffd52c, user_data=0x7fffffffd518) at ../xputty/widgets/xmenu_private.c:119
#7  0x0000000000281128 in _check_submenu (wid=0x8021e0b00, xbutton=0x7fffffffd788, main=0x7fffffffe668) at ../xputty/xwidget_private.c:159
#8  0x000000000027e034 in widget_event_loop (w_=0x8021e0b00, event=0x7fffffffd788, main=0x7fffffffe668, user_data=0x0) at ../xputty/xwidget.c:555
#9  0x000000000027bfda in main_run (main=0x7fffffffe668) at ../xputty/xputty.c:71
#10 0x0000000000242b86 in main (argc=1, argv=0x7fffffffe7e8) at MidiKeyBoard.cpp:3154

@yurivict
Copy link
Author

As a first Idea, did the file $HOME/.config/user-dirs.dirs exist on FreeBSD as part of the XDG Base Directory Specification

It doesn't exist.

@brummer10
Copy link
Owner

Nice, thanks a lot.
Indeed a bug in my code. I've pushed a Fix for it now to Fluida, please let me know if it works, if so I could fix Mamba as well.

regards
hermann

@yurivict
Copy link
Author

Now this problem is gone.

Thank you!

@brummer10
Copy link
Owner

Okay, thanks. I've pushed the same fix to Mamba now.

@yurivict
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants