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

[build error] segmental fault Failed to produce item UnrealEngine_4.17/Engine/Binaries/Linux/libUE4Editor-SlateCore.so #29

Closed
YuehChuan opened this issue Nov 16, 2017 · 9 comments

Comments

@YuehChuan
Copy link

YuehChuan commented Nov 16, 2017

The main issue:
[1/347] Link libUE4Editor-SlateCore.so
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: linker command failed due to signal (use -v to see invocation)
ERROR: UBT ERROR: Failed to produce item: /home/user/UnrealEngine_4.17/Engine/Binaries/Linux/libUE4Editor-SlateCore.so
Total build time: 27.23 seconds (Local executor: 0.00 seconds)
Makefile:183: recipe for target 'UE4Editor' failed

Hi, thanks to be so kind make this awesome simulator available.
I wonder someone fall into the same issue for building up Unreal engine.
Mine environment is clang 3.9.1; quite confirm start from a clean ubuntu 16.04.2 .

Hardware details: intel i7 with 12GB ram.
Graphic card:
Asus ROG STRIX-GTX1080Ti-011G-Gaming
(Nvidia GTX1080ti)
mother board:GIGABYTE-GA-X58A-UD3R v2.(2010)
environment: ubuntu16.04.2

carla_build

Thank you in advance.

@YuehChuan
Copy link
Author

YuehChuan commented Nov 16, 2017

With locate libUE4Editor-SlateCore.so
I found

/home/schwarm/UnrealEngine_4.17/Engine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/libUE4Editor-SlateCore.so.response

under directory above
its not share object but an ASCII text
unreal_build
Am I doing somewhere wrong?

@YuehChuan
Copy link
Author

I found that this is describe in #17 by @NikolausDemmel. what I did add a new user name carla.
And I found this nice docs
https://github.com/carla-simulator/carla/blob/master/Docs/how_to_run.md
update a day ago. I will keep trying if I get the project run will update here.

@YuehChuan
Copy link
Author

no_module_protoc
new issue is while ./carla_example.py --help inside PythonClient/carla_manual_control.py
found no python module

from .carla_server_pb2 import  SceneDescription,EpisodeStart,EpisodeReady,Control,Measurements,RequestNewEpisode
ImportError: No module named 'carla.protoc.carla_server_pb2'

@YuehChuan
Copy link
Author

All the nice docs here ! https://github.com/carla-simulator/carla/tree/master/Docs
Thanks!

@nsubiron
Copy link
Collaborator

ImportError: No module named 'carla.protoc.carla_server_pb2'

This is a common mistake, this file is generated while running the CARLA's Setup.sh script (it is generated by the Protobuf compiler). If you just want to regenerate this file afterwards you can run "./Util/Protoc.sh", but note that this requires the Setup.sh to have succeeded compiling protobuf.

All the nice docs here ! https://github.com/carla-simulator/carla/tree/master/Docs

They are also available with nicer format at http://carla.readthedocs.io ;)

@YuehChuan
Copy link
Author

YuehChuan commented Nov 18, 2017

@nsubiron Now stock at part ./Rebuild.sh , It shows cannot allocate swap memory. This issue is too specific maybe related to ma hardware. Will check it out first. Anyway, thanks! Awesome work ;P

@YuehChuan
Copy link
Author

after UE4_ROOT=~/UnrealEngine_4.17 ./Rebuild.sh
segmental fault
carla_seg_fault

@mslavescu
Copy link

mslavescu commented Mar 29, 2018

I'm getting the same error as in the issue description, and I'm seeing these problems while running:

~/carla$ UE4_ROOT=~/UnrealEngine_4.17 ./Rebuild.sh

Writing project files... 92%
UnrealBuildTool Exception: System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex
at System.String.Substring (Int32 startIndex, Int32 length) <0x7f1427c5b780 + 0x000f4> in :0
at System.String.Substring (Int32 startIndex) <0x7f1427c5b750 + 0x0001e> in :0
at UnrealBuildTool.CodeLiteProject.WriteProjectFile (System.Collections.Generic.List1 InPlatforms, System.Collections.Generic.List1 InConfigurations) <0x403a8180 + 0x005fd> in :0
at UnrealBuildTool.ProjectFileGenerator.WriteProjectFiles () <0x403a8000 + 0x000b0> in :0
at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles (System.String[] Arguments) <0x4158d5b0 + 0x01ff4> in :0
at UnrealBuildTool.UnrealBuildTool.GuardedMain (System.String[] Arguments) <0x4153d000 + 0x02ffd> in :0
ESC[0;33mBuild CarlaUE4 project...ESC[0m
mono "/sharefolder/sdc/git/UnrealEngine_4.17/Engine/Binaries/DotNET/UnrealBuildTool.exe" CarlaUE4Editor Linux Development -project="/home/test/carla/Unreal/CarlaUE4/CarlaUE4.uproject"

And this at the end:

4 errors generated.
[4/11] Compile CarlaUE4GameModeBase.gen.cpp
[5/11] Compile CarlaMapGenerator.cpp
[6/11] Compile CarlaUE4.cpp
[7/11] Compile CarlaUE4.init.gen.cpp
[8/11] Compile CarlaMapGenerator.gen.cpp
[9/11] Compile CarlaUE4GameModeBase.cpp
ERROR: UBT ERROR: Failed to produce item: /home/test/carla/Unreal/CarlaUE4/Plugins/Carla/Binaries/Linux/libUE4Editor-Carla.so
Total build time: 78.52 seconds (Local executor: 0.00 seconds)
Makefile:600: recipe for target 'CarlaUE4Editor' failed
make: *** [CarlaUE4Editor] Error 5

I use Docker and the instructions provided here by @NikolausDemmel:

From source setup instructions: Additional dependencies

@marintoro
Copy link

Hello,
I got the exact same problem than you @mslavescu. Did you find how to fix this error? (I am launching "UE4_ROOT=~/UnrealEngine_4.18 ./Rebuild.sh" cause I use UnrealEngine 4.18)

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

4 participants