Jump to content

[RESOLVED] Paths.cpp(<line>): Function call failed: return value was -110301 (No such file or directory)


Gallaecio
 Share

Recommended Posts

This is what I get now when I run the game:


[gallaecio@afonsox ~]$ 0ad
Paths.cpp(169): Function call failed: return value was -110301 (No such file or directory)
Function call failed: return value was -110301 (No such file or directory)
Location: Paths.cpp:169 (Root)

Call stack:

(0x79a48a) pyrogenesis() [0x79a48a]
(0x7415a1) pyrogenesis() [0x7415a1]
(0x74179d) pyrogenesis() [0x74179d]
(0x74215b) pyrogenesis() [0x74215b]
(0x5624a3) pyrogenesis() [0x5624a3]
(0x563cf1) pyrogenesis() [0x563cf1]
(0x56bbba) pyrogenesis() [0x56bbba]
(0x4237f7) pyrogenesis() [0x4237f7]
(0x41a527) pyrogenesis() [0x41a527]
(0x7f0e0f5e0455) /lib/libc.so.6(__libc_start_main+0xf5) [0x7f0e0f5e0455]
(0x422d85) pyrogenesis() [0x422d85]

errno = 0 (No such file or directory)
OS error = ?


ERROR: Cannot find executable (expected at '')
Paths.cpp(176): Function call failed: return value was -110301 (No such file or directory)
Function call failed: return value was -110301 (No such file or directory)
Location: Paths.cpp:176 (Root)

Call stack:

(0x79a48a) pyrogenesis() [0x79a48a]
(0x7415a1) pyrogenesis() [0x7415a1]
(0x74179d) pyrogenesis() [0x74179d]
(0x74215b) pyrogenesis() [0x74215b]
(0x56242f) pyrogenesis() [0x56242f]
(0x563cf1) pyrogenesis() [0x563cf1]
(0x56bbba) pyrogenesis() [0x56bbba]
(0x4237f7) pyrogenesis() [0x4237f7]
(0x41a527) pyrogenesis() [0x41a527]
(0x7f0e0f5e0455) /lib/libc.so.6(__libc_start_main+0xf5) [0x7f0e0f5e0455]
(0x422d85) pyrogenesis() [0x422d85]

errno = 0 (No such file or directory)
OS error = ?


Cache: 500 (total: 5964) MiB
TIMER| InitVfs: 4.82767 s
TIMER| InitScripting: 5.94966 ms
TIMER| CONFIG_Init: 92.0816 ms
TIMER| RunHardwareDetection: 22.9395 ms
TIMER| write_sys_info: 18.2523 ms
TIMER| InitRenderer: 21.4522 ms
TIMER| ps_console: 1.25317 ms
TIMER| ps_lang_hotkeys: 726.613 us
TIMER| common/setup.xml: 3.18571 ms
TIMER| common/styles.xml: 82.731 us
TIMER| common/sprite1.xml: 2.69691 ms
TIMER| common/init.xml: 1.77658 ms
TIMER| common/common_sprites.xml: 1.68826 ms
TIMER| common/common_styles.xml: 230.677 us
TIMER| pregame/sprites.xml: 392.448 us
TIMER| pregame/styles.xml: 42.545 us
TIMER| pregame/mainmenu.xml: 6.11 ms
TIMER| common/global.xml: 344.567 us
SND| alc_init: success, using OpenAL Soft
Using Xcursor to sys_cursor_create 32 x 32 cursor
TIMER| common/setup.xml: 567.952 us
TIMER| common/styles.xml: 26.107 us
TIMER| common/sprite1.xml: 1.46382 ms
TIMER| common/common_sprites.xml: 1.69895 ms
TIMER| common/common_styles.xml: 205.99 us
TIMER| msgbox/msgbox.xml: 620.737 us
TIMER| shutdown TexMan: 5.253 us
TIMER| shutdown Renderer: 362.493 us
TIMER| shutdown SDL: 54.2438 ms
TIMER| shutdown UserReporter: 252.068 us
TIMER| shutdown ScriptingHost: 2.4632 ms
TIMER| shutdown ConfigDB: 0.178 us
SDL_GetWMInfo is not implemented on this platform
TIMER| resource modules: 11.1128 ms
TIMER TOTALS (9 clients)
-----------------------------------------------------
tc_pool_alloc: 1489.45 kc (122x)
tc_dds_transform: 48.459 kc (10x)
tc_png_decode: 28.8005 Mc (8x)
tc_transform: 87.708 kc (4x)
tc_plain_transform: 25.356 kc (4x)
tc_ShaderValidation: 1326.77 kc (1x)
tc_ShaderGLSLLink: 0 c (0x)
tc_ShaderGLSLCompile: 0 c (0x)
xml_validation: 1170.63 kc (1x)
-----------------------------------------------------
TIMER| shutdown misc: 259.587 us
[gallaecio@afonsox ~]$

I get two error windows, but clicking continue, the game starts and apparently runs just fine.

Any idea what it might be? I recently changed the way the game gets installed to the Arch Linux approach, the result being this:

To build the game:



./update-workspaces.sh \
--disable-atlas \
--with-system-enet \
--with-system-nvtt \
--bindir=/usr/bin \
--libdir=/usr/lib \
--datadir=/usr/share/0ad/data


cd gcc
make config=release

To install, I just move pyrogenesis to /usr/bin and the libraries (.so) to /usr/lib.

Link to comment
Share on other sites

It may be caused by using a script to launch the game instead of running it directly, though that should work and seems to work for other distros. Does the error not occur if you run /usr/bin/pyrogenesis directly? Any chance you could use gdb and inspect some of the variables in e.g. Paths::Root() and sys_ExecutablePathname() (especially path)? It's harder to know what might be happening without any more data.

Link to comment
Share on other sites

  • 7 months later...

First: I’m sorry for not answering sooner.

Second: You are right in that it has to do with the way I call it. Calling “/usr/bin/pyrogenesis” works like a charm, while calling “pyrogenesis” (be it from a terminal or a script) throws those error dialogs.

So, thank you very much.

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