Page MenuHomeSchine - Phabricator

Launcher | Linux launcher needs unsupported "libgconf-2.so.4" in Ubutnu 18+
Open, NormalPublic

Description

libgconf-2.so.4 is no longer part of the LTS Ubuntu release. Running the launcher manually will give the following error:

./starmade-launcher: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

The launcher binary hasn't been updated since 2017. You should build and test the launcher with each new LTS release (typically every years). A better option would be to drop the libgconf dependency, if possible, or use a Java-based launcher in the future that will work on all platforms.

Launching from steam doesn't have this problem for some reason, but launching directly does, whether it be from the steam directory, or from the launcher downloaded directly from the website.

Details

Task Type
Bug
Testing Results
Affected Gamemode(s)
Launcher
Reproducible
Yes
Category
none/unspecified
Hardware/Software/System
OS-Specific
Linux Only
Hardware-Specific
No
Video Card Vendor
uncertain
Steps to reproduce

Install Ubutnu 20.04, then run the launcher from the command line (not in steam).

Event Timeline

End users resolve this by installing libgconf-2-4, but only experienced Linux users would know they need to do this. If you are using gconfig to store configuration information, you can just use a static file or directory "$HOME/.starmade" to store configuration info. This is the more traditional way of storing application specific configuration data on Unix systems, and works just as well on Mac OS X (it would also be a great place to store game session independent blueprints).

After adding libgconf-2-4, on Ubuntu 20.4 attempting to launch the game generates this error:

               Downloading: http://files.star-made.org/./build/starmade-build_20200215_223628/./StarMade-dedicated-server-linux.sh
    info       All files downloaded
    event      Launching game
    event      Loading memory settings
                | maxMemory:      4096
                | initialMemory:  512
                | earlyGenMemory: 128
                | ceiling:        64298
    info       Using bundled Java
                | bin path: /home/xxx/bin/starmade-launcher/dep/java/jre1.7.0_80/bin
    info       Child process: detached
    info       Custom java args:
                | -Xincgc -server
[188825:1118/151235:INFO:CONSOLE(13550)] "Error: spawn EACCES
    at exports._errnoException (util.js:814:11)
    at ChildProcess.spawn (internal/child_process.js:298:11)
    at exports.spawn (child_process.js:343:9)
    at Scope.launch (/home/xxx/bin/starmade-launcher/resources/app.asar/lib/controllers/launch.js:594:17)
    at fn (eval at <anonymous> (/home/xxx/bin/starmade-launcher/resources/app.asar/node_modules/angular/angular.js:14432:15), <anonymous>:2:332)
    at expensiveCheckFn (/home/xxx/bin/starmade-launcher/resources/app.asar/node_modules/angular/angular.js:15485:18)
    at callback (/home/xxx/bin/starmade-launcher/resources/app.asar/node_modules/angular/angular.js:25018:17)
    at Scope.$eval (/home/xxx/bin/starmade-launcher/resources/app.asar/node_modules/angular/angular.js:17229:28)
    at Scope.$apply (/home/xxx/bin/starmade-launcher/resources/app.asar/node_modules/angular/angular.js:17329:25)
    at HTMLAnchorElement.<anonymous> (/home/xxx/bin/starmade-launcher/resources/app.asar/node_modules/angular/angular.js:25023:23)", source: /home/aragorn/bin/starmade-launcher/resources/app.asar/node_modules/angular/angular.js (13550)

Attempting to use starmade as a guest user generated the same error. Again, the game runs fine from Steam.

Policy changed the edit policy from "Task Author" to "AndyP (Andy Püttmann)".May 13 2021, 11:23 AM
AndyP shifted this object from the S1 Public space to the S5 Launcher space.May 13 2021, 11:23 AM
AndyP changed the visibility from "Custom Policy" to "Public (No Login Required)".
AndyP changed the edit policy from "AndyP (Andy Püttmann)" to "Starmade (Project)".
AndyP moved this task from New / Unconfirmed to Open / Validated on the Issue Navigation board.
AndyP added a subscriber: AndyP.

Validated