lcgamboa / picsimlab

PICsimLab - Programmable IC Simulator Laboratory
GNU General Public License v2.0
442 stars 85 forks source link

gdk pixbuf error #63

Closed QiE2035 closed 1 year ago

QiE2035 commented 1 year ago
Gtk-Message: 19:15:05.979: Failed to load module "canberra-gtk-module"
Gtk-Message: 19:15:05.979: Failed to load module "appmenu-gtk-module"
Gtk-Message: 19:15:06.007: Failed to load module "colorreload-gtk-module"
Gtk-Message: 19:15:06.007: Failed to load module "window-decorations-gtk-module"
Gtk-Message: 19:15:06.007: Failed to load module "appmenu-gtk-module"
PICSimLab: Load Config from file "/home/qie2035/.picsimlab/picsimlab.ini"
PICSimLab: Opening "/home/qie2035/.picsimlab/mdump_Blue_Pill_stm32f103c8t6.hex"
osc: 8000000
reset is called!

PICSimLab: qemu-stm32 -M stm32-f103c8-picsimlab-new -drive file=/home/qie2035/.picsimlab/mdump_Blue_Pill_stm32f103c8t6.bin,if=pflash,format=raw -d unimp -rtc clock=vm -icount shift=5,align=off,sleep=on                                                                                          
reset is called!

(picsimlab:162511): Gtk-WARNING **: 19:15:06.253: 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/breeze/status/16/image-missing.svg: Unable to load image-loading module: /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /usr/lib/librsvg-2.so.2: undefined symbol: pango_coverage_get_type (gdk-pixbuf-error-quark, 5)
lcgamboa commented 1 year ago

Are you using PICSimLab-0.8.11_Linux_x86_64.AppImage version? What is your Linux version? Do you have the libgdk-pixbuf2.0-0 package installed on your system? Seems to be related to an Appimage mime types issue: Appimage fails if the pixbuf loaders/mime database missing

QiE2035 commented 1 year ago

Yes, 0.8.11 appimage x86_64, Arch Linx, pixbuf installed.

PICSimLab crash when I click the 'open bin' in File menu.

lcgamboa commented 1 year ago

There are any error message in console when you open the .bin file?

QiE2035 commented 1 year ago

nop, just when i click that menu item, it crash, so I can't choose and open the .bin file.

The output error just upper.

lcgamboa commented 1 year ago

There really is a problem when the program tries to open a gtk filedialog using the Appimage. I was able to locate and reproduce the issue in the Appimage. Thanks for letting me know, I'll try to solve the problem. As long as it is not fixed you can run your . bin using the command line: ./PICSimLab-0.8.11_Linux_x86_64.AppImage Blue_Pill stm32f103c8t6 file.bin

QiE2035 commented 1 year ago

Not just open file, some operate also crash.

lcgamboa commented 1 year ago

Can you try this Appimage created in debian sid?

QiE2035 commented 1 year ago

Okay, not crash. Maybe a small problem is the file dialog not use the GTK_USE_PORTAL=1 env var (I am using KDE)

lcgamboa commented 1 year ago

Fixed in version 0.8.12 .