vmagnin / gtk-fortran

A GTK / Fortran binding. The documentation is in the Wiki tab.
GNU General Public License v3.0
251 stars 43 forks source link

gtkf-sketcher crashes on example output #281

Open lllaxmatist opened 4 months ago

lllaxmatist commented 4 months ago

Describe the bug gtkf-sketcher crashes both in gtk3 and gtk4 branches. Crashes happen on any .glade file opening attempt. gtk4 crash on example.glade export attempt <- the only case of program opening gtk3 crash on example.glade opening attempt

Pastebin: Output with GTK4 Output with GTK3

Your system:

vmagnin commented 4 months ago

Thanks @lllaxmatist for reporting,

I can confirm this MSYS/Windows 10 bug. I have obtained the same segfault message, although curiously at first launch only I also had a lot of:

(process:11752): GLib-GIO-CRITICAL **: 20:54:43.315: GFileInfo created without standard::type

(process:11752): GLib-GIO-CRITICAL **: 20:54:43.316: file ../glib-2.80.0/gio/gfileinfo.c: line 1610
(g_file_info_get_file_type): should not be reached

(Quite similar to https://gitlab.gnome.org/GNOME/gimp/-/issues/9994)

Unhappily, most of the time bugs encountered in MSYS2 or macOS are on the GTK side and we can not do much, just report it when we have enough information. When possible, I will try also on macOS or FreeBSD.

Note also that gtkf-sketcher was never totally ported to GTK 4 due to important API changes: https://github.com/vmagnin/gtk-fortran/issues/207 I would say that the probability that I will never succeed porting it (by lack of knowledge and lack of time) is well >50%.

vmagnin commented 4 months ago

Interestingly, gtk4 branch also crashes on FreeBSD when clicking on "Write Files":

~/gtk-fortran/build/sketcher]$ ./gtkf-sketcher
 PWD: /home/vmagnin/gtk-fortran/build/sketcher
 symbols for all widgets =  T
 use high level interface =  T

(process:92987): GVFS-RemoteVolumeMonitor-WARNING **: 21:33:04.077: remote volume monitor with dbus name org.gtk.vfs.UDisks2VolumeMonitor is not supported
 Removed from GTK 4: edit_filters, gtk_file_chooser_set_extra_widget
 1) Working dir: /home/vmagnin/gtk-fortran/build/sketcher
 2) Working dir: /home/vmagnin/gtk-fortran/build/sketcher/example
 Generating the .f90 files...
 /home/vmagnin/gtk-fortran/build/sketcher/example                                                                                                                                                                                                                
sh: python3: not found
Fortran runtime error: EXECUTE_COMMAND_LINE: Invalid command line

Error termination. Backtrace:
#0  0x82ca201f9 in ???
[...]
#5  0x40b6a1 in write_files
    at /home/vmagnin/gtk-fortran/build/sketcher/gtkf-sketcher.out.f90:530
#6  0x829f2fc2d in ???
[...]
#36  0x828e1c5b8 in ???
#37  0x41499b in gtkfsketcher
    at /home/vmagnin/gtk-fortran/build/sketcher/gtkf-sketcher.out.f90:858
#38  0x4149db in main
    at /home/vmagnin/gtk-fortran/build/sketcher/gtkf-sketcher.out.f90:800

But it may be another problem (" EXECUTE_COMMAND_LINE: Invalid command line").