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

[BUG] Segmentation fault and black screen when updating to ls224 #46

Closed
1 task done
kso512 opened this issue Nov 23, 2024 · 15 comments
Closed
1 task done

[BUG] Segmentation fault and black screen when updating to ls224 #46

kso512 opened this issue Nov 23, 2024 · 15 comments
Assignees
Labels
work-in-progress Stale exempt

Comments

@kso512
Copy link

kso512 commented Nov 23, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When starting a container that worked in the last version, I get a black screen via the KASM portal. I can right-click on the black screen and run XTerm and Firefox. When running digiKam via XTerm, it immediately dumps a core because of segmentation fault.

I also verified this on multiple machines and with a clean install.

This does not appear related to issue #36 as the docker logs are different.

Comparing the most recent CI results with the previous version shows the same thing. Last time, we see a Welcome to digiKam screen; now we see black.

Expected Behavior

Digikam should auto start and not segmentation fault. It should also run via XTerm, not segfault there either.

Steps To Reproduce

  1. Follow installation instructions
  2. See blank screen

Environment

- OS: Debian bullseye & testing
- How docker service was installed: per Docker instructions; other containers running fine

CPU architecture

x86-64

Docker creation

docker run ghcr.io/linuxserver/digikam:version-2024-11-22

Container logs

Unable to find image 'ghcr.io/linuxserver/digikam:version-2024-11-22' locally
version-2024-11-22: Pulling from linuxserver/digikam
Digest: sha256:4934dc38d7353e75dda895dc952a1caf6aa88934a12f4eebfe2d384b7186b942
Status: Downloaded newer image for ghcr.io/linuxserver/digikam:version-2024-11-22
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    911
User GID:    911
───────────────────────────────────────
....+...+..+...+++++++++++++++++++++++++++++++++++++++*.+++++++++++++++++++++++++++++++++++++++*......+..+....+...+...+.........+.........+.........+...+..............+..................+.+..+...+..........+......+....................+.+.......................+.....................+...+.+......+......+..+.+...........+..........+........+.......+...+...+..+...+...+..........+..+...+..........+.........+...............+.....+.+..+...+....+.....+...............+.+............+..............+......+...............+..................+.......+........+....+...+.......................+.+...+..+......+...+............+...+....+.....+.+......+...+.....+...+............+.+............+..............+...+.+.....+....+..+.+..+.......+.....+.+............+........+.........+....+..+..........+.................+.+..............+.+.....+.+.....+......+.........+................+...+..+.......+..+.........+.......+.........+.....+.+...............+..+...+...+......++++++
..+.............+.....+.+...+.....+......+............+...+....+...+.....+...+.+...+...+...............+...+..+.........+..........+...+...+..+.+..+...+......+.+..+.+......+.........+...........+...+...+++++++++++++++++++++++++++++++++++++++*.+..+...+.+......+........+.......+.....+....+...+..+...+...+..........+........+....+..+....+..+....+.....+......+..........+...+++++++++++++++++++++++++++++++++++++++*.......+..............+.........+....+...+..+......+................+........+...+.......+..+................+...+.....+......+......+.........................+...+..+.........+.+...+...........+.+..+.+..+..........+..+......+....+...+.....+...................+...+.....+.+.....+.........+...+...+.+....................+.........+....+...+.........+.....+.+...+.....+......+..........+...+..................+............+.....+......+.+......+...+......+...+..+......+...+....+..+......+............+.+..+............+.......+...+.....+.+..+.........+................+........+.+...+..+.........+....+......+.....+....+..+.+..+...+....+.........+.........+...+...+......+...+......+.....+.......++++++
-----
[custom-init] No custom files found, skipping...
which: no nvidia-smi in (/command:/lsiopy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
2024/11/23 22:16:20 [warn] 201#201: could not build optimal types_hash, you should increase either types_hash_max_size: 1024 or types_hash_bucket_size: 64; ignoring types_hash_bucket_size
[ls.io-init] done.
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.

Xvnc KasmVNC 1.3.3 - built Nov 22 2024 16:28:07
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation

Obt-Message: Xinerama extension is not present on the server
19
/config/.config/openbox/autostart: line 1:   260 Segmentation fault      (core dumped) digikam
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@kso512
Copy link
Author

kso512 commented Nov 23, 2024

I was able to get back online by reverting to the previous version.

@aptalca
Copy link
Member

aptalca commented Nov 23, 2024

It looks like an issue with the latest version, likely an arch issue as we install from the arch repo.

@thelamer thelamer self-assigned this Nov 24, 2024
@thelamer thelamer added the work-in-progress Stale exempt label Nov 24, 2024
@thelamer
Copy link
Member

Yeah it is busted at head, will dig in tomorrow.

@yggdrasil75
Copy link

yggdrasil75 commented Nov 24, 2024

for now, if anyone finds this issue, use the tag version-2024-11-15

@thelamer
Copy link
Member

Did not have time today, but did run some basic tests to see if it is sandboxing. Might need to rebase to Debian and drop aarch64 support for now, will know more tomorrow.

@asitemade4u
Copy link

Thank you, experiencing the same here.

@thelamer
Copy link
Member

People in this thread please try the ghcr.io/linuxserver/lsiodev-digikam:8.5.0-debian-rebase tag and let me know if the transition from arch to debian is smooth. The only question mark is if the mariadb binaries got switched around at all. Internal testing with a simple database worked both sqlite and mariadb internal.

This rebases to debian and uses the official appimage to install digikam

MR ref:
#47

Testing ref:
https://ci-tests.linuxserver.io/lsiodev/digikam/8.5.0-pkg-f8f4c0e7-dev-3a71a6a3da452e039c53b016e15c209dec75a745/index.html

@asitemade4u
Copy link

Hi Ryan,

I have all my digiKam instances connect to an external MariaDB database.
I tried with the image you mentioned and it did NOT work: I still have the black screen.
Here is the error log:

Xvnc KasmVNC 1.3.3 - built Nov 20 2024 19:55:29
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation
Obt-Message: Xinerama extension is not present on the server
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:
	imlib_free_image();
	With the parameter:
ObRender-Message: Cannot load image "/usr/share/icons/hicolor/48x48/apps/digikam.png" from file "/usr/share/icons/hicolor/48x48/apps/digikam.png"
ObRender-Message: Cannot load image "/usr/share/icons/hicolor/48x48/apps/firefox.png" from file "/usr/share/icons/hicolor/48x48/apps/firefox.png"
	image
	being NULL. Please fix your program.
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:
	imlib_free_image();
	With the parameter:
	image
	being NULL. Please fix your program.
/config/.config/openbox/autostart: 1: digikam: not found
17
ERROR: openbox-xdg-autostart requires PyXDG to be installed
 2024-11-25 11:50:52,235 [INFO] websocket 0: got client connection from 127.0.0.1
 2024-11-25 11:50:52,243 [PRIO] Connections: accepted: @192.168.1.27_1732553452.235564::websocket
 2024-11-25 11:50:55,604 [PRIO] Connections: closed: @192.168.1.27_1732553452.235564::websocket (Clean disconnection)
 2024-11-25 11:50:55,691 [INFO] websocket 1: got client connection from 127.0.0.1
 2024-11-25 11:50:55,699 [PRIO] Connections: accepted: @192.168.1.27_1732553455.691889::websocket
 2024-11-25 11:50:56,702 [PRIO] Connections: closed: @192.168.1.27_1732553455.691889::websocket (Clean disconnection)
 2024-11-25 11:50:56,767 [INFO] websocket 2: got client connection from 127.0.0.1
 2024-11-25 11:50:56,775 [PRIO] Connections: accepted: @192.168.1.27_1732553456.767548::websocket
 2024-11-25 11:50:56,881 [PRIO] Connections: closed: @192.168.1.27_1732553456.767548::websocket (Clean disconnection)
 2024-11-25 11:50:56,965 [INFO] websocket 3: got client connection from 127.0.0.1
 2024-11-25 11:50:56,972 [PRIO] Connections: accepted: @192.168.1.27_1732553456.965140::websocket
 2024-11-25 11:50:57,074 [PRIO] Connections: closed: @192.168.1.27_1732553456.965140::websocket (Clean disconnection)
 2024-11-25 11:50:57,127 [INFO] websocket 4: got client connection from 127.0.0.1
 2024-11-25 11:50:57,135 [PRIO] Connections: accepted: @192.168.1.27_1732553457.127765::websocket

Hope that helped,
Stephen

@kso512
Copy link
Author

kso512 commented Nov 25, 2024

Thank you @thelamer

I also got a black screen when testing with "ghcr.io/linuxserver/lsiodev-digikam:8.5.0-debian-rebase"

When I right-click and select DigiKam from the menu, this error appears:

Openbox
Failed to execute child process "/usr/sbin/digikam" (No such file or directory)

I was able to right-click and open xterm. command -v digikam returns nothing.

Digging around a bit, I see some digikam folders under opt:

root@11445c4c967e:/# find /opt -name digikam
/opt/digikam
/opt/digikam/usr/share/digikam
/opt/digikam/usr/share/kxmlgui5/digikam
/opt/digikam/usr/bin/digikam
/opt/digikam/usr/plugins/digikam

However, when I try to run the binary, it fails with this error:

root@11445c4c967e:/# /opt/digikam/usr/bin/digikam 
/opt/digikam/usr/bin/digikam: error while loading shared libraries: libdigikamgui.so.8.5.0: cannot open shared object file: No such file or directory

@thelamer
Copy link
Member

Ok the problem is your /config/.config/openbox/autostart file and the menu.xml files are pointed to the old bin locations, you can delete them to test, but I will make symlinks in the new image for compatibility.

@kso512
Copy link
Author

kso512 commented Nov 25, 2024

I removed /config/.config/openbox/autostart and re-deployed the container.

I saw "A MySQL database upgrade is in progress, please wait..." for about 2 minutes, then the following error appeared:

Screenshot_20241125_175827

@thelamer
Copy link
Member

I removed /config/.config/openbox/autostart and re-deployed the container.

I saw "A MySQL database upgrade is in progress, please wait..." for about 2 minutes, then the following error appeared:

Screenshot_20241125_175827

So this looks to be unavoidable, restarting the internal mariadb server inside the container does not work properly, but just restarting the container or launching it a couple times will get it back up.
This looks like it will happen with any database schema upgrade when using mysql internal and is a side effect of going to 8.5.0 and not the rebase or a change in their binaries for the database.

@thelamer
Copy link
Member

thelamer commented Nov 25, 2024

I have updated with changes and dropped aarch64 support. Will leave this issue open for now with history and for people running into issues.

For people that want a full upgrade run:

rm -f /config/.config/openbox/autostart /config/.config/openbox/menu.xml

And restart the container, I created symlinks for compatibility, but the desktop menu will be missing icons and such without this.

@kso512
Copy link
Author

kso512 commented Nov 25, 2024

I have updated with changes and dropped aarch64 support. Will leave this issue open for now with history and for people running into issues.

For people that want a full upgrade run:

rm -f /config/.config/openbox/autostart /config/.config/openbox/menu.xml

And restart the container, I created symlinks for compatibility, but the desktop menu will be missing icons and such without this.

This worked for my existing deployment, and all my pictures are still there.

Thanks all!

@kso512 kso512 closed this as completed Nov 27, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work-in-progress Stale exempt
Projects
Development

No branches or pull requests

5 participants