Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault when compiling integration tool #65

Open
MatPoliquin opened this issue Aug 28, 2023 · 3 comments
Open

Segmentation fault when compiling integration tool #65

MatPoliquin opened this issue Aug 28, 2023 · 3 comments

Comments

@MatPoliquin
Copy link
Collaborator

Issue summary

to repro:

cd stable-retro
cmake . -DBUILD_UI=ON -UPYLIB_DIRECTORY
make

This error will happen from time to time (not 100% repro)

[100%] Linking CXX executable capnp
[100%] Built target capnp_tool
[100%] Linking CXX executable capnpc-c++
[100%] Built target capnpc_cpp
[100%] Compiling Cap'n Proto schema src/serialize.capnp
*** Received signal #11: Segmentation fault
stack: 0x5632955e2948 0x5632955e2dcb 0x5632955d79de 0x5632955def73 0x56329552b6a6 0x7f86be0a8d90 0x7f86be0a8e40 0x56329552b755
make[2]: *** [CMakeFiles/retro-capnp.dir/build.make:76: src/serialize.capnp.c++] Error 1
make[1]: *** [CMakeFiles/Makefile2:1007: CMakeFiles/retro-capnp.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

WORKAROUND:
Now if you get this error the workaround is to disable capnproto (which you won't need if you don't use the load/save search function. I integrated many games without this function)

In CMakeLists.txt after line 260 simply write:

set(CAPN_PROTO_FOUND OFF)

relaunch make

System information

  • Ubuntu 22.04
  • python 3.10
  • stable-retro 0.9.1
@zbeucler2018
Copy link
Collaborator

This wouldn't be related to the new cores right? Maybe updating the third party libs (capnproto, pybind11, etc) could be beneficial

@gmilette
Copy link

This works. Thank you very much.

@MatPoliquin
Copy link
Collaborator Author

This wouldn't be related to the new cores right? Maybe updating the third party libs (capnproto, pybind11, etc) could be beneficial

I am not sure, but I think we should disable this feature by default while we figure it out because I fear many users might get this blocking issue for a feature 99.9% won't use. I will submit a PR to disable capnproto by default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants