Jump to content

file_system.cpp(122): Function call failed: return value was -1


JPRuehmann
 Share

Recommended Posts

Hello

I´ve updated via your dev repository on kubuntu 18.04 LTE (32Bit)

Erverytime I try to start 0ad I get the following instead of starting the Game.

TIMER| InitVfs: 11.0023 ms
Writing the mainlog at /home/ruehmann/.config/0ad/logs/mainlog.html
TIMER| CONFIG_Init: 5.47659 ms
file_system.cpp(122): Function call failed: return value was -1 (Function failed (no details available))
Function call failed: return value was -1 (Function failed (no details available))
Location: file_system.cpp:122 (GetDirectoryEntries)

Call stack:

(0xaaf205) /usr/games/pyrogenesis(+0x606205) [0xaaf205]
(0xa5355d) /usr/games/pyrogenesis(+0x5aa55d) [0xa5355d]
(0xa552de) /usr/games/pyrogenesis(+0x5ac2de) [0xa552de]
(0xa654fe) /usr/games/pyrogenesis(+0x5bc4fe) [0xa654fe]
(0xa8068b) /usr/games/pyrogenesis(+0x5d768b) [0xa8068b]
(0xa7b590) /usr/games/pyrogenesis(+0x5d2590) [0xa7b590]
(0xa7a47b) /usr/games/pyrogenesis(+0x5d147b) [0xa7a47b]
(0xa6e1ee) /usr/games/pyrogenesis(+0x5c51ee) [0xa6e1ee]
(0x6f8e10) /usr/games/pyrogenesis(+0x24fe10) [0x6f8e10]
(0x738c72) /usr/games/pyrogenesis(+0x28fc72) [0x738c72]
(0x73beb9) /usr/games/pyrogenesis(+0x292eb9) [0x73beb9]
(0x71348a) /usr/games/pyrogenesis(+0x26a48a) [0x71348a]
(0x4e6cd3) /usr/games/pyrogenesis(+0x3dcd3) [0x4e6cd3]
(0x4d07d6) /usr/games/pyrogenesis(+0x277d6) [0x4d07d6]
(0xb64e0f21) /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0xb64e0f21]
(0x4df9ac) /usr/games/pyrogenesis(+0x369ac) [0x4df9ac]

errno = 0 (?)
OS error = ?


What has gone wrong and how can I make it run?

Thanks,

Link to comment
Share on other sites

4 hours ago, JPRuehmann said:

file_system.cpp(122): Function call failed: return value was -1

There the stat() starts. Here are the options when -1 is returned https://pubs.opengroup.org/onlinepubs/009695399/functions/stat.html

Try to start the game from strace: strace -o debug.txt -f -s 1000 /usr/games/pyrogenesis
and attach the output: grep -E '(open|stat)' debug.txt

Edited by nwtour
Link to comment
Share on other sites

17 minutes ago, JPRuehmann said:

Hope that helps.

Worrks only the First time.

31012 openat(AT_FDCWD, "/usr/share/games/0ad/mods/public", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 7
31012 fstat64(7, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
31012 getdents(7, /* 3 entries */, 32768) = 56
31012 stat64("/usr/share/games/0ad/mods/public/public.zip", {st_mode=S_IFREG|0644, st_size=2644800852, ...}) = 0
31012 write(1, "file_system.cpp(122): Function call failed: return value was -1 (Function failed (no details available))\n", 105) = 105

The game doesn't like the file /usr/share/games/0ad/mods/public/public.zip

 

Link to comment
Share on other sites

After doin the same with the mods.zip I now get this.

TIMER| InitVfs: 5.33531 ms
Writing the mainlog at /home/ruehmann/.config/0ad/logs/mainlog.html
TIMER| CONFIG_Init: 3.48867 ms
Sound: AlcInit success, using OpenAL Soft
TIMER| shutdown ConfigDB: 0.32 us
TIMER| resource modules: 4.73496 ms
TIMER TOTALS (9 clients)
-----------------------------------------------------
 tc_pool_alloc: 0 c (0x)
 tc_png_decode: 0 c (0x)
 tc_dds_transform: 0 c (0x)
 tc_transform: 0 c (0x)
 tc_plain_transform: 0 c (0x)
 tc_ShaderGLSLLink: 0 c (0x)
 tc_ShaderGLSLCompile: 0 c (0x)
 tc_ShaderValidation: 0 c (0x)
 xml_validation: 0 c (0x)
-----------------------------------------------------
TIMER| shutdown misc: 7.39339 ms
TIMER| InitVfs: 921.46 us
Writing the mainlog at /home/ruehmann/.config/0ad/logs/mainlog.html
TIMER| CONFIG_Init: 144.465 ms
Sound: AlcInit success, using OpenAL Soft
topology.cpp(105): Assertion failed: "logicalPerPackage % maxCoresPerPackage == 0"
Assertion failed: "logicalPerPackage % maxCoresPerPackage == 0"
Location: topology.cpp:105 (MaxLogicalPerCore)

Call stack:

(0xa45205) /usr/games/pyrogenesis(+0x606205) [0xa45205]
(0x9e955d) /usr/games/pyrogenesis(+0x5aa55d) [0x9e955d]
(0x9ebbdd) /usr/games/pyrogenesis(+0x5acbdd) [0x9ebbdd]
(0xa3d4b9) /usr/games/pyrogenesis(+0x5fe4b9) [0xa3d4b9]
(0xa75992) /usr/games/pyrogenesis(+0x636992) [0xa75992]
(0xa3d5e0) /usr/games/pyrogenesis(+0x5fe5e0) [0xa3d5e0]
(0x6b7911) /usr/games/pyrogenesis(+0x278911) [0x6b7911]
(0x6a779f) /usr/games/pyrogenesis(+0x26879f) [0x6a779f]
(0x47d037) /usr/games/pyrogenesis(+0x3e037) [0x47d037]
(0x4667d6) /usr/games/pyrogenesis(+0x277d6) [0x4667d6]
(0xb6547f21) /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0xb6547f21]
(0x4759ac) /usr/games/pyrogenesis(+0x369ac) [0x4759ac]

errno = 0 (No error reported here)
OS error = ?

If I then Click Continue it runs normaly.

Thanks,

Link to comment
Share on other sites

50 minutes ago, JPRuehmann said:

After doin the same with the mods.zip I now get this.


TIMER| InitVfs: 5.33531 ms
Writing the mainlog at /home/ruehmann/.config/0ad/logs/mainlog.html
TIMER| CONFIG_Init: 3.48867 ms
Sound: AlcInit success, using OpenAL Soft
TIMER| shutdown ConfigDB: 0.32 us
TIMER| resource modules: 4.73496 ms
TIMER TOTALS (9 clients)
-----------------------------------------------------
 tc_pool_alloc: 0 c (0x)
 tc_png_decode: 0 c (0x)
 tc_dds_transform: 0 c (0x)
 tc_transform: 0 c (0x)
 tc_plain_transform: 0 c (0x)
 tc_ShaderGLSLLink: 0 c (0x)
 tc_ShaderGLSLCompile: 0 c (0x)
 tc_ShaderValidation: 0 c (0x)
 xml_validation: 0 c (0x)
-----------------------------------------------------
TIMER| shutdown misc: 7.39339 ms
TIMER| InitVfs: 921.46 us
Writing the mainlog at /home/ruehmann/.config/0ad/logs/mainlog.html
TIMER| CONFIG_Init: 144.465 ms
Sound: AlcInit success, using OpenAL Soft
topology.cpp(105): Assertion failed: "logicalPerPackage % maxCoresPerPackage == 0"
Assertion failed: "logicalPerPackage % maxCoresPerPackage == 0"
Location: topology.cpp:105 (MaxLogicalPerCore)

Call stack:

(0xa45205) /usr/games/pyrogenesis(+0x606205) [0xa45205]
(0x9e955d) /usr/games/pyrogenesis(+0x5aa55d) [0x9e955d]
(0x9ebbdd) /usr/games/pyrogenesis(+0x5acbdd) [0x9ebbdd]
(0xa3d4b9) /usr/games/pyrogenesis(+0x5fe4b9) [0xa3d4b9]
(0xa75992) /usr/games/pyrogenesis(+0x636992) [0xa75992]
(0xa3d5e0) /usr/games/pyrogenesis(+0x5fe5e0) [0xa3d5e0]
(0x6b7911) /usr/games/pyrogenesis(+0x278911) [0x6b7911]
(0x6a779f) /usr/games/pyrogenesis(+0x26879f) [0x6a779f]
(0x47d037) /usr/games/pyrogenesis(+0x3e037) [0x47d037]
(0x4667d6) /usr/games/pyrogenesis(+0x277d6) [0x4667d6]
(0xb6547f21) /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0xb6547f21]
(0x4759ac) /usr/games/pyrogenesis(+0x369ac) [0x4759ac]

errno = 0 (No error reported here)
OS error = ?

If I then Click Continue it runs normaly.

Thanks,

known bug on x32. it also works for me. my bugnotes
https://trac.wildfiregames.com/ticket/6028
https://code.wildfiregames.com/D3575
 

Link to comment
Share on other sites

8 hours ago, JPRuehmann said:

By the way is it correct that if I try to get mods and so from the Internet I only get error messages in the Mod Window before the game?

Do not pay attention. There, a buggy code was added for x86/unix - it defines a different number of logical cores on processors (on Intel processors without hypertrading), depending on random situations. Compiler switches, code blocks - everything can be enabled/disabled by this window.
 

8 hours ago, JPRuehmann said:

Intel i5-7500T (4) @ 3.300GHz

Thanks

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...