Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 21-02-2021, 08:29   #1
Registered User

Join Date: Feb 2019
Location: Bridgeport, CT
Boat: Southern Cross 35
Posts: 13
Flatpak install won't run on openSUSE

I'm running openSUSE Leap 15.2 with current patches. I've used the normal openSUSE tools to install the available OpenCPN version from the openSUSE "Application" repo, which is 5.0.0.


To take a look at the new version, I installed the 5.2.4 flatpak. However, when I run the application, it fails with:



Code:
 21-Feb-21 10:12 >> flatpak run org.opencpn.OpenCPN
ALSA lib ../../src/conf.c:3956:(snd_config_update_r) Cannot access file /etc/alsa-pulse.conf
ALSA lib ../../../src/control/control.c:1375:(snd_ctl_open_noupdate) Invalid CTL hw:0
ALSA lib ../../src/conf.c:3956:(snd_config_update_r) Cannot access file /etc/alsa-pulse.conf
ALSA lib ../../../src/control/control.c:1375:(snd_ctl_open_noupdate) Invalid CTL hw:1
opencpn: src/hostapi/alsa/pa_linux_alsa.c:1453: BuildDeviceList: Assertion `devIdx < numDeviceNames' failed.
The failing file (/etc/alsa-pulse.conf) actually DOES exist on my system and is readable by all. The failure mode is the same whether I install OpenCPN for just me with "flatpak install --user ..." or for all with "sudo flatpak install ..."


Obviously I can continue to run the 5.0 version, but it would be great to have access to the newer builds. Any suggestions?
sv_blackbird is offline   Reply With Quote
Old 21-02-2021, 16:32   #2
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 5,295
Re: Flatpak install won't run on openSUSE

Are you sure it actually does fail here at all and not somewhere later? I remember seeing stuff like this being emited to stderr by the system sound libraries during OpenCPN start on Linux and being completely harmless "since the beginning of the time".
nohal is online now   Reply With Quote
Old 21-02-2021, 18:14   #3
Registered User

Join Date: Feb 2019
Location: Bridgeport, CT
Boat: Southern Cross 35
Posts: 13
Re: Flatpak install won't run on openSUSE

I never get this error when I run 5.0.0 from my "normal" install, only with flatpak.

A bit of investigation does turn up an obvious problem; I mentioned that /etc/alsa.conf existed . . . but that was in MY filesystem. This file does NOT exist in the org.freedesktop.Platform filesystem under flatpak. So the error isn't "wrong", but I suspect there's an error either in MY flatpak config or in the OpenCPN flatpak build for 5.2.4

However . . . I WAS able to get the application to start by manually copying alsa-pulse,conf from the root file system:


Code:
sudo cp /etc/alsa-pulse.conf /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/18.08/1f7a5575c84c1df838ff07540cbc155e1eb78fee764860cbcbfab6d766328588/files/etc


and then launching with "flatpak run ....." OpenCPN runs, but complains about many issues with the ALSA libs. As I said, I don't have this issue when running 5.0.0 from a "normal" install
sv_blackbird is offline   Reply With Quote
Old 21-02-2021, 20:55   #4
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 5,295
Re: Flatpak install won't run on openSUSE

https://github.com/flatpak/flatpak/issues/1875 - Seems like an issue caused by OpenSUSE they expect the app flatpacks to work around (if my next to none flatpak knowledge serves).
nohal is online now   Reply With Quote
Old 22-02-2021, 05:38   #5
Registered User

Join Date: Feb 2019
Location: Bridgeport, CT
Boat: Southern Cross 35
Posts: 13
Re: Flatpak install won't run on openSUSE

Ahh, thanks - that did the trick! Application now starts/runs and I can do some experimenting.



Note that the flatpak still throws MANY errors, which 5.0.0 does not.

  • I still get ALSA errors during startup
  • I get gtk errors on any pop-up dialog box
  • I get dBus errors while running the application


I suspect that all of these are flatpak problems, not OpenCPN problems
sv_blackbird is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN Flatpak Version 5.1 Beta test bdbcat OpenCPN 14 22-07-2020 12:29
Installing OpenCPN in OpenSUSE 12.2_x86-74 larsed OpenCPN 64 06-03-2017 14:01
OpenCPN 3.2.0 1-Click-install for openSUSE 12.1 12.2 12.3 dominig OpenCPN 0 19-03-2013 09:21
Linux Opensuse 12.1 and OpenCPN 2.6 trifan OpenCPN 8 16-01-2012 07:13
OpenCPN@OpenSUSE 11.4/64 jbrosten OpenCPN 8 17-06-2011 01:22

Advertise Here


All times are GMT -7. The time now is 19:15.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2021, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.