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

NOSON snap on new Raspberry Pi fails to launch #168

Open
mrvelous01 opened this issue Sep 13, 2021 · 3 comments
Open

NOSON snap on new Raspberry Pi fails to launch #168

mrvelous01 opened this issue Sep 13, 2021 · 3 comments

Comments

@mrvelous01
Copy link

Brand new pi right out of the box built with "default" Raspbian OS install, no frills. HDMI monitor, USB mouse and keyboard. Installed snapd, then NOSON but when I launch NOSON in terminal I get the outline of a GUI box and it closes in less than a second. I see these errors (first as pi, second as root). Any thoughts?

pi@piweather:~ $ noson
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.

... clipped ...

Signal handler is enabled.
"using file ':/i18n/noson_en.qm ' for translations."
thumbnailer: register API [LASTFM]
thumbnailer: register API [DEEZER]
installing thumbnails cache in folder "/home/pi/snap/noson/407/.local/share/janbar/io.github.janbar.noson/QML/OfflineStorage"
thumbnailer is initialized
qml: LANG=en_US
thumbnailer: configure API [DEEZER]
registerContent: 0xf09e28 ()
registerContent: 0xf08200 (FV:2)
registerContent: 0xf09538 ()
registerContent: 0xf04fd8 (SQ:)
registerContent: 0xf08c48 ()
registerContent: 0xdbff28 ()
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlagsQSurfaceFormat::FormatOption(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, profile QSurfaceFormat::OpenGLContextProfile(NoProfile))
Aborted

... clipped ...

pi@piweather:~ $ sudo /snap/bin/noson
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
realpath: '': No such file or directory
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
realpath: '': No such file or directory

... cliped ...

Signal handler is enabled.
"using file ':/i18n/noson_en.qm ' for translations."
thumbnailer: register API [LASTFM]
thumbnailer: register API [DEEZER]
installing thumbnails cache in folder "/root/snap/noson/407/.local/share/janbar/io.github.janbar.noson/QML/OfflineStorage"
thumbnailer is initialized
qml: LANG=en_US
thumbnailer: configure API [DEEZER]
registerContent: 0x110c050 ()
registerContent: 0x110baa8 (FV:2)
registerContent: 0x110be68 ()
registerContent: 0x1109678 (SQ:)
registerContent: 0x110bc80 ()
registerContent: 0xfc8980 ()
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlagsQSurfaceFormat::FormatOption(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, profile QSurfaceFormat::OpenGLContextProfile(NoProfile))
Aborted
pi@piweather:~ $

@janbar
Copy link
Owner

janbar commented Sep 14, 2021

The issue is in the snap daemon. Better is to compile the app from sources on your PI.

@mrvelous01
Copy link
Author

I managed to fumble my way through compiling noson and noson-app as directed but when I finally launch "noson-app" my screen hangs and my mouse and keyboard become unusable. I was able to ssh into the pi (VNC and ssh are running) and kill the app but it went "defunct" and the desktop was still hung. Same thing happens when I run noson-app in a terminal session. I ran it again with --debug and found that while it does discover my Sonos network there may be an issue with memory. Please see attached file.
noson_debug_log.txt

@mrvelous01
Copy link
Author

Update: I increased the pi's GPU memory to 256MB (max recommended per several google hits) and was able to get a little further. This gave me a white screen with a large horizontal black bar on the desktop but again tanked the keyboard, and mouse. A power cycle was required as the reboot command from a remote ssh session only disconnected the ssh session but did not restart the pi. Please see attached.
noson_debug_log2.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants