arduino / Arduino

Arduino IDE 1.x
https://www.arduino.cc/en/software
Other
14.18k stars 7.02k forks source link

Linux Installer and Gtk errors #9886

Open zermingore opened 4 years ago

zermingore commented 4 years ago

After upgrading Arduino from version 1.8.10 to 1.8.12 using the install.sh script (from the 1.8.12 version), I noticed that I could not use terminator anymore (early crashing with a Gtk error as output)

In xterm: $> terminator

(terminator:12853): Gtk-WARNING : 09:02:59.417: 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: Unrecognized image file format (gdk-pixbuf-error-quark, 3) Aborted

I had similar problems with gimp

(gimp:12377): GdkPixbuf-CRITICAL **: 08:56:27.099: gdk_pixbuf_get_n_channels: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

The involved file /usr/share/icons/Adwaita/16x16/status/image-missing.png existed After a reboot, my window manager (i3) did not start anymore

These did not work: $> update-mime-database ~/.local/share/mime $> sudo update-mime-database /root/.local/share/mime

The fix: sudo apt-get install --reinstall shared-mime-info

I can reproduce the issue re-running the install.sh script and appended the output file of the following:

sudo bash -x ./install.sh > log_arduino_install_1.8.12 2>&1

log_arduino_install_1.8.12.txt

os: $> lsb_release -a

No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster

uname 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08) x86_64 GNU/Linux

$> bash --version | head -n 1

GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu)

SvenMb commented 4 years ago

Same problem here with arduino 1.8.13 and it is not only terminator, other GTK-apps have the same problem.

(and thanks for the quick fix!)

wsanders commented 2 years ago

Still an issue on Fedora 35 with IDE 1.8.19. This problem is upstream (in Java? GDK?) since I, too, see the same messages scrolling in gimp, which is unrelated to Arduino IDE.