Jump to content

0ad Errors when run as regular user


f45
 Share

Recommended Posts

This was compiled on Arch Linux. Getting errors when 0ad is run as a regular user:

$ 0ad
Cache: 500 (total: 5973) MiB
file_system.cpp(155): Function call failed: return value was -110300 (Insufficient access rights to open file)
Function call failed: return value was -110300 (Insufficient access rights to open file)
Location: file_system.cpp:155 (CreateDirectories)

Call stack:

(0x7ba52a) ./pyrogenesis() [0x7ba52a]
(0x761cc1) ./pyrogenesis() [0x761cc1]
(0x76299e) ./pyrogenesis() [0x76299e]
(0x762199) ./pyrogenesis() [0x762199]
(0x767872) ./pyrogenesis() [0x767872]
(0x76780b) ./pyrogenesis() [0x76780b]
(0x76a9b2) ./pyrogenesis() [0x76a9b2]
(0x773838) ./pyrogenesis() [0x773838]
(0x593e48) ./pyrogenesis() [0x593e48]
(0x59606d) ./pyrogenesis() [0x59606d]
(0x41fda8) ./pyrogenesis() [0x41fda8]
(0x413bfe) ./pyrogenesis() [0x413bfe]
(0x7fd7e56b138d) /lib/libc.so.6(__libc_start_main+0xed) [0x7fd7e56b138d]
(0x41f1c9) ./pyrogenesis() [0x41f1c9]

errno = 0 (Insufficient access rights to open file)
OS error = ?


(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?

I can suppress this error and the game will load, however I get further errors when trying to save a game:

vfs.cpp(105): Function call failed: return value was -110100 (VFS directory not found)
Function call failed: return value was -110100 (VFS directory not found)
Location: vfs.cpp:105 (GetDirectoryEntries)

Call stack:

(0x7ba52a) ./pyrogenesis() [0x7ba52a]
(0x761cc1) ./pyrogenesis() [0x761cc1]
(0x76299e) ./pyrogenesis() [0x76299e]
(0x762199) ./pyrogenesis() [0x762199]
(0x777360) ./pyrogenesis() [0x777360]
(0x779fb4) ./pyrogenesis() [0x779fb4]
(0x7e3921) ./pyrogenesis() [0x7e3921]
(0x74c2e7) ./pyrogenesis() [0x74c2e7]
(0x7fd7e7e0d909) /opt/0ad/system/libmozjs185-ps-release.so.1.0(+0xc5909) [0x7fd7e7e0d909]
(0x7fd7e7e17025) /opt/0ad/system/libmozjs185-ps-release.so.1.0(+0xcf025) [0x7fd7e7e17025]
(0x7fd7e7e174c2) /opt/0ad/system/libmozjs185-ps-release.so.1.0(+0xcf4c2) [0x7fd7e7e174c2]
(0x7fd7e7e183ac) /opt/0ad/system/libmozjs185-ps-release.so.1.0(+0xd03ac) [0x7fd7e7e183ac]
(0x7fd7e7d95201) /opt/0ad/system/libmozjs185-ps-release.so.1.0(JS_CallFunctionValue+0x41) [0x7fd7e7d95201]
(0x71b308) ./pyrogenesis() [0x71b308]
(0x71b693) ./pyrogenesis() [0x71b693]
(0x75b58a) ./pyrogenesis() [0x75b58a]

errno = 0 (Try again later)
OS error = ?


(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
(C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit?
s
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
pyrogenesis: xcb_io.c:273: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
/usr/bin/0ad: line 3: 15106 Aborted ./pyrogenesis $*

Suppressing this error causes the game to crash as you can see.

Running the game as root obviously isn't an option. Anyway to solve these errors?

Link to comment
Share on other sites

Is by any chance some of the folders .config or .local in your ~ directory owned by another user (usually caused by running programs that write there as root)?

Did you build it with makepkg and install it with pacman?

The saved games are stored in ~/.local/share/0ad/saves/ (or $XDG_DATA_HOME/0ad/saves if you changed that environment variable) so you should check the file permissions of that folder.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...