MVStudio icon indicating copy to clipboard operation
MVStudio copied to clipboard

Program crash when clicking on "New Project"

Open marco-jem opened this issue 1 year ago • 7 comments

This is the output from tMVStudio

--------------- Sun Aug 28 17:58:07 2022 --------------- [PaintCanvas] initializing... [PaintCanvas] Using GLEW: 2.1.0 [PaintCanvas] GL Vendor: AMD [PaintCanvas] GL Renderer: AMD Radeon (TM) R9 380 Series (TONGA, DRM 3.40.0, 5.10.0-17-amd64, LLVM 11.0.1) [PaintCanvas] GL Version: 4.6 (Compatibility Profile) Mesa 20.3.5 [PaintCanvas] GLSL Version: 4.60

(MVStudio:23933): Gtk-WARNING **: 17:58:10.014: Could not load a pixbuf from icon theme. This may indicate that pixbuf loaders or the mime database could not be found. ** Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita/16x16/status/image-missing.png: Fatal error reading PNG image file: [00][00][00][10]: invalid chunk type (gdk-pixbuf-error-quark, 0) Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita/16x16/status/image-missing.png: Fatal error reading PNG image file: [00][00][00][10]: invalid chunk type (gdk-pixbuf-error-quark, 0) Aborted

The file /usr/share/icons/Adwaita/16x16/status/image-missing.png actually exists and I was able to open it with GIMP.

I built MVStudio from source (git commit 50adf8b8552057104d84e006c02445756ae0ec4b) on Debian 11 (updated today) using cmake, once copilation finished I run "make install" and then ./Release/MVStudio.

This is the list of packages installed on my Debian system: installed_packages.txt

marco-jem avatar Aug 28 '22 16:08 marco-jem

Tried to run MVStudio again and this time got a SegFault when clicking "Open Project"

--------------- Sun Aug 28 18:19:31 2022 --------------- [PaintCanvas] initializing... [PaintCanvas] Using GLEW: 2.1.0 [PaintCanvas] GL Vendor: AMD [PaintCanvas] GL Renderer: AMD Radeon (TM) R9 380 Series (TONGA, DRM 3.40.0, 5.10.0-17-amd64, LLVM 11.0.1) [PaintCanvas] GL Version: 4.6 (Compatibility Profile) Mesa 20.3.5 [PaintCanvas] GLSL Version: 4.60 Segmentation fault

marco-jem avatar Aug 28 '22 16:08 marco-jem

This is weird: the code never explicitly requires the images/icons. I believe some UI components need them.
The binary was built on Ubuntu (18.04) and I am not sure if it can run on Debian. If you have time, would you be so kind to run it in Debug mode and send me snapshots of the stack trace? I don't have Debian, and it seems this is the only way I can debug it.

LiangliangNan avatar Aug 29 '22 07:08 LiangliangNan

Yep sure! Not at home right now, will do it tonight.

By the way I get the same error on Ubuntu 20.04.4 LTS using the pre compiled package (AppImage), this is the output

(MVStudio-v1.0.AppImage:37154): Gtk-WARNING **: 12:29:15.460: Theme parsing error: gtk.css:1511:23: 'font-feature-settings' is not a valid property name

(MVStudio-v1.0.AppImage:37154): Gtk-WARNING **: 12:29:15.466: Theme parsing error: gtk.css:3437:25: 'font-feature-settings' is not a valid property name

(MVStudio-v1.0.AppImage:37154): Gtk-WARNING **: 12:29:15.467: Theme parsing error: gtk.css:3899:23: 'font-feature-settings' is not a valid property name --------------- Mon Aug 29 12:29:16 2022 --------------- [PaintCanvas] initializing... [PaintCanvas] Using GLEW: 2.1.0 [PaintCanvas] GL Vendor: Intel Open Source Technology Center [PaintCanvas] GL Renderer: Mesa DRI Intel(R) HD Graphics 4400 (HSW GT2) [PaintCanvas] GL Version: 3.0 Mesa 21.2.6 [PaintCanvas] GLSL Version: 1.30

(MVStudio-v1.0.AppImage:37154): Gtk-WARNING **: 12:29:18.278: Could not load a pixbuf from icon theme. This may indicate that pixbuf loaders or the mime database could not be found. ** Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Yaru/16x16/status/image-missing.png: Fatal error reading PNG image file: Invalid IHDR data (gdk-pixbuf-error-quark, 0) Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Yaru/16x16/status/image-missing.png: Fatal error reading PNG image file: Invalid IHDR data (gdk-pixbuf-error-quark, 0) Aborted (core dumped)

marco-jem avatar Aug 29 '22 10:08 marco-jem

Hi! Tried a new build with flag CMAKE_BUILD_TYPE=Debug, but nothing changes in the output (no stack trace, just the same output as in my first post). Which options am I supposed to pass to cmake to do a debug build?

marco-jem avatar Aug 30 '22 10:08 marco-jem

Yes, that is correct. Thanks for the effort. The next thing is debugging, letting the debugger (gdb on your machine, I believe) produce the stack trace. I think you can start the debugging by the command gdb MVStudio (or maybe you already have some advanced IDE tools).

LiangliangNan avatar Aug 30 '22 10:08 LiangliangNan

Hello!

This is the output of GDB

`GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/.

For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from MVStudio... (gdb) run Starting program: /home/marco/Applications/MVStudio/src/build_debug/MVStudio/MVStudio [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff2cd0700 (LWP 20420)] [New Thread 0x7ffff1259700 (LWP 20421)] [New Thread 0x7ffff0a58700 (LWP 20422)] [New Thread 0x7fffe3fff700 (LWP 20423)] [New Thread 0x7fffe37fe700 (LWP 20424)] [New Thread 0x7fffe140f700 (LWP 20425)] [New Thread 0x7fffe0c0e700 (LWP 20426)] --------------- Wed Aug 31 12:46:45 2022 --------------- [PaintCanvas] initializing... [PaintCanvas] Using GLEW: 2.1.0 [PaintCanvas] GL Vendor: Intel Open Source Technology Center [PaintCanvas] GL Renderer: Mesa DRI Intel(R) HD Graphics 4400 (HSW GT2) [PaintCanvas] GL Version: 3.0 Mesa 21.2.6 [PaintCanvas] GLSL Version: 1.30 [New Thread 0x7fffd1d83700 (LWP 20431)] [New Thread 0x7fffd1582700 (LWP 20432)] [New Thread 0x7fffd0d81700 (LWP 20433)] [New Thread 0x7fffc7fff700 (LWP 20434)] [New Thread 0x7fffc77fe700 (LWP 20435)] [New Thread 0x7fffc6ffd700 (LWP 20436)] [New Thread 0x7fffc67fc700 (LWP 20437)] [New Thread 0x7fffc5ffb700 (LWP 20438)] [New Thread 0x7fffc57fa700 (LWP 20439)]

(MVStudio:20416): Gtk-WARNING **: 12:46:49.139: Could not load a pixbuf from icon theme. This may indicate that pixbuf loaders or the mime database could not be found. ** Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Yaru/16x16/status/image-missing.png: Fatal error reading PNG image file: [00][00][00][10]: invalid chunk type (gdk-pixbuf-error-quark, 0) Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Yaru/16x16/status/image-missing.png: Fatal error reading PNG image file: [00][00][00][10]: invalid chunk type (gdk-pixbuf-error-quark, 0)

Thread 1 "MVStudio" received signal SIGABRT, Aborted. __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. `

Here is the stack trace (bt command) stack_trace.txt

and here is the "frame info" command output frame_info.txt

marco-jem avatar Aug 31 '22 10:08 marco-jem

Thanks for the effort! This seems like a bug in the QFileDialog of Qt (I assume the file "image-missing.png" is not corrupted). Does any other Qt-based applications (that use the same Qt distribution) have a similar issue? What is your Qt version, and if you can try a later version?

LiangliangNan avatar Aug 31 '22 13:08 LiangliangNan

@marco-jem Has the issue been solved (by using the latest code) and can we close the issue?

LiangliangNan avatar Oct 14 '22 09:10 LiangliangNan