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

MySimulationProject tutorial does not compile: #797

Open
fjnn opened this issue Nov 20, 2024 · 19 comments
Open

MySimulationProject tutorial does not compile: #797

fjnn opened this issue Nov 20, 2024 · 19 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/simulation Categorizes an issue or PR as relevant to SIG Simulation triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@fjnn
Copy link

fjnn commented Nov 20, 2024

Describe the bug
I am trying to start a ROS2 project by following this tutorial: https://docs.o3de.org/docs/user-guide/interactivity/robotics/project-configuration/
I have freshly installed O3DE into my Ubuntu 24.04 from source and registered the engine. I have ROS2 Jazzy installed. I have added ROS2 gem into the project. When I run cmake -B build/linux -G "Ninja Multi-Config" -DLY_DISABLE_TEST_MODULES=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DLY_STRIP_DEBUG_SYMBOLS=ON, the build process fails.

Failed Jenkins Job Information:
CMake Error at /home/gizem2404/o3de/cmake/LYWrappers.cmake:561 (target_link_libraries):
Target "ROS2.Static" links to:

Gem::Atom_Feature_Common.Static

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

Call Stack (most recent call first):
/home/gizem2404/o3de/CMakeLists.txt:120 (ly_delayed_target_link_libraries)

CMake Error at /home/gizem2404/o3de/cmake/LYWrappers.cmake:561 (target_link_libraries):
Target "ROS2" links to:

Gem::Atom_Feature_Common.Static

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

Call Stack (most recent call first):
/home/gizem2404/o3de/CMakeLists.txt:120 (ly_delayed_target_link_libraries)

CMake Error at /home/gizem2404/o3de/cmake/LYWrappers.cmake:561 (target_link_libraries):
Target "ROS2.Editor" links to:

Gem::Atom_Feature_Common.Static

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

Call Stack (most recent call first):
/home/gizem2404/o3de/CMakeLists.txt:120 (ly_delayed_target_link_libraries)

CMake Error at /home/gizem2404/o3de/cmake/LYWrappers.cmake:561 (target_link_libraries):
Target "MySimulationProject.Editor" links to:

Gem::Atom_Feature_Common.Static

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

Call Stack (most recent call first):
/home/gizem2404/o3de/CMakeLists.txt:120 (ly_delayed_target_link_libraries)

-- Generating done (5.9s)
CMake Generate step failed. Build files cannot be regenerated correctly.

@fjnn fjnn added kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Nov 20, 2024
@fjnn
Copy link
Author

fjnn commented Nov 20, 2024

By the way, I have Atom gem (?) is under the installation folder.
image

I tried to manually register it by running ${O3DE_HOME}/scripts/o3de.sh register --gem-path $HOME/o3de/Gems/Atom/Feature/Common/, but I still get the same error.

@jhanca-robotecai
Copy link
Contributor

I am not able to reproduce your problem, but I saw you tried using the binary package earlier (#796). Please verify you cleaned your environment before running the build, as there might be some conflicts between your binary and the source code. Please double-check if you use the same (2409.1) version of o3de and o3de-extras repositories; please double-check if you initialized git lfs.

In my tests (I tested #796 a moment ago) I completely removed o3de binary installation, removed ~/.o3de, and ~/O3DE folders. Next, I did the following:

#!/bin/zsh

export O3DE_HOME=${HOME}/devroot/2409/o3de
export O3DE_EXTRAS_HOME=${HOME}/devroot/2409/o3de-extras
export PROJECT_NAME=R2RM
export PROJECT_PATH=${HOME}/devroot/projects/${PROJECT_NAME}

${O3DE_HOME}/python/get_python.sh 
${O3DE_HOME}/scripts/o3de.sh register -ep ${O3DE_HOME}
${O3DE_HOME}/scripts/o3de.sh register -agp ${O3DE_EXTRAS_HOME}/Gems/

${O3DE_HOME}/scripts/o3de.sh create-project --project-path $PROJECT_PATH --template-path ${O3DE_EXTRAS_HOME}/Templates/Ros2RoboticManipulationTemplate/
cd $PROJECT_PATH
cmake -B build/linux -G "Ninja Multi-Config" -DLY_STRIP_DEBUG_SYMBOLS=ON -DLY_UNITY_BUILD=ON -DLY_DISABLE_TEST_MODULES=ON
cmake --build build/linux --config profile --target ${PROJECT_NAME} Editor ${PROJECT_NAME}.Assets ${PROJECT_NAME}.GameLauncher -j 16

@jhanca-robotecai jhanca-robotecai added triage/needs-inforamtion Indicates an issue needs more information in order to triage sig/simulation Categorizes an issue or PR as relevant to SIG Simulation and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Nov 21, 2024
@fjnn
Copy link
Author

fjnn commented Nov 22, 2024

Thank you so much! I will try. I thought that I did clean everything before downloading and building from source, but I might be missing some.

By the way, is there a way to check the installed version of o3de and o3de-extras before I redo the installation?

@fjnn
Copy link
Author

fjnn commented Nov 24, 2024

Hello again. I have deleted all o3de files (~/.o3de, ~/O3DE, ~/o3de, ~/o3de-extras and ~/o3de-packages). I deleted all the failed projects. I git clone-ed both o3de source engine and o3de-extras. Followed the tutorials here for installation and here for project creation. However, the problem is still there. I get the same error as I run cmake -B build/linux -G "Ninja Multi-Config" -DLY_STRIP_DEBUG_SYMBOLS=ON -DLY_UNITY_BUILD=ON -DLY_DISABLE_TEST_MODULES=ON.

Is there a command like ${O3DE_HOME}/scripts/o3de.sh register -agp ${O3DE_EXTRAS_HOME}/Gems/ for assets? It seems like it is not able to find the Atom assets.

@jhanca-robotecai
Copy link
Contributor

Assets are integrated within gems. You do not need to register assets separately.

Your issue is caused by changes in cmake target names - o3de-extras tries to link to target that does not exist. This issue is fixed in #799 and should be merged within a few hours (waiting for tests). In your case, however, I would definitely recommend using the last release of the code. Checkout the main branch (or tag 2409.1) in both o3de and o3de-extras repositories and try again.

@jhanca-robotecai
Copy link
Contributor

Please let me know if I can close the issue after #799 was merged.

@jhanca-robotecai jhanca-robotecai self-assigned this Nov 26, 2024
@jhanca-robotecai jhanca-robotecai added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed triage/needs-inforamtion Indicates an issue needs more information in order to triage labels Nov 26, 2024
@fjnn
Copy link
Author

fjnn commented Nov 29, 2024

I am not sure if the problem is resolved. I don't get the same error any longer but building doesn't get completed. After I run cmake --build build/linux --config profile --target ${PROJECT_NAME} Editor ${PROJECT_NAME}.Assets (based on Robot Manipulation template) the build started but I got this in the end:

Generated InputNode.generated.h
Generated InputNode.generated.cpp
Generated InputHandlerNodeable.generated.h
Generated InputHandlerNodeable.generated.cpp
Total Time 0:00:00.00
[1311/1370] Automatic MOC for target ShaderManagementConsole
AutoMoc: /home/gizem2404/o3de/Gems/Atom/Tools/ShaderManagementConsole/Code/Source/Window/ShaderManagementConsoleTableView.h:0: Note: No relevant classes found. No output generated.
[1362/1370] Generating editor_en-us.qm
Updating '/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/o3de/Code/Editor/editor_en-us.qm'...
Generated 1 translation(s) (0 finished and 1 unfinished)
[1363/1370] Generating assetbrowser_en-us.qm
Updating '/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/o3de/Code/Editor/assetbrowser_en-us.qm'...
Generated 1 translation(s) (0 finished and 1 unfinished)
Ignored 36 untranslated source text(s)
[1369/1370] Linking CXX executable bin/profile/Editor

It has been over an hour that it is stuck at [1369/1370] Linking CXX executable bin/profile/Editor and ShaderManagementConsoleTableView seems unsuccessful.

@fjnn
Copy link
Author

fjnn commented Nov 29, 2024

Well, actually now it is completed but doesn't seem promissing:

AssetBuilder: C: [Trace] = /home/gizem2404/o3de/Code/Tools/AssetProcessor/AssetBuilder/AssetBuilderComponent.cpp(835): 'virtual void AssetBuilderComponent::Disconnected(AzFramework::SocketConnection *)'
AssetBuilder: C: [Type] = Trace::Error
AssetBuilder: E: AssetBuilder: Lost connection to Asset Processor, shutting down
BuilderManager: Lost connection to builder 69BE2CEA74BF4CF8919F598E2470F482
BuilderManager: Lost connection to builder 12A9DD50C6FD4CF3A094041BAD2E7183
AssetBuilder: C: [Trace] = /home/gizem2404/o3de/Code/Tools/AssetProcessor/AssetBuilder/AssetBuilderComponent.cpp(835): 'virtual void AssetBuilderComponent::Disconnected(AzFramework::SocketConnection *)'
AssetBuilder: C: [Type] = Trace::Error
AssetBuilder: E: AssetBuilder: Lost connection to Asset Processor, shutting down
BuilderManager: Lost connection to builder 3A8CBD18BFCB4DBEBC46D95522091018
BuilderManager: Lost connection to builder 7E79BA54D2C24D95B55B57E9BD6104EE
BuilderManager: Lost connection to builder E5FA0BFB8AEF4D4284005F8AAC5C442A
BuilderManager: Lost connection to builder E30EFD495F034D9DAFE95CDD7929D231
BuilderManager: Lost connection to builder 765E71889DB44B6B9C1119BD603F5689
BuilderManager: Lost connection to builder 90F195608F9549FC83D3A0C1E3023DFA
BuilderManager: Lost connection to builder 9CD12B0ED0E941339C149BE2D774D82E
BuilderManager: Lost connection to builder 625D0388324147D39E69DC2DF9A47B5E
BuilderManager: Lost connection to builder B70B5D36DD034EA598EB5757F82DB237
BuilderManager: Lost connection to builder AEDC4F925D3D46119E3823CE79EB73E8
BuilderManager: Lost connection to builder 2E8D1C4CDBC3453295EE91C5E66D37BB
BuilderManager: Lost connection to builder BE312E5EA4DA4755AD486487F6D64902
BuilderManager: Lost connection to builder 60056C9418974D09ACDC2C299B530B5C
BuilderManager: Lost connection to builder 6FA8DBF029AC4FB693B42C43FE549AB2
AssetProcessor: App Quit Object of type ConnectionManager indicates it is ready.
AssetProcessor: App quit requested, and all objects are ready. Quitting app.
AssetProcessor: -----------------------------------------
AssetProcessor: Asset Processor Batch Processing complete
AssetProcessor: ---------------FAILED ASSETS-------------
AssetProcessor: /media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/Passes/ContrastAdaptiveSharpening.pass
AssetProcessor: /media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/Passes/Taa.pass
AssetProcessor: -----------------------------------------
AssetProcessor: Number of Assets Successfully Processed: 3340.
AssetProcessor: Number of Assets Failed to Process: 2.
AssetProcessor: Number of Warnings Reported: 1108.
AssetProcessor: Number of Errors Reported: 25.
AssetProcessor: Total Assets Processing Time: 851.669983s
AssetProcessor: Asset Processor Batch Processing Completed.
AssetProcessor: Time: 000ms, EventName: LoadingGems
AssetProcessor: Time: 594ms, EventName: AssetScanning
AssetProcessor: Time: 028ms, EventName: WarmingFileCache
AssetProcessor: Time: 229ms, EventName: InitialFileAssessment
AssetProcessor: Time: 03s202ms, Count: 17681, Average: 000ms, EventName: HashFileTotal
AssetProcessor: Top 4 longest individual file hashes:
AssetProcessor: Time: 155ms, EventName: HashFile,/home/gizem2404/o3de/Gems/AtomLyIntegration/CommonFeatures/Assets/Objects/Hermanubis/Hermanubis_High.fbx
AssetProcessor: Time: 080ms, EventName: HashFile,/home/gizem2404/o3de/Gems/AtomLyIntegration/CommonFeatures/Assets/Objects/Hermanubis/Hermanubis_Stone_BaseColor.png
AssetProcessor: Time: 061ms, EventName: HashFile,/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/ReflectionProbes/Entity6__8035B0D1-451A-4226-A488-0C8E6949F6F5__iblspecularcm256.dds
AssetProcessor: Time: 055ms, EventName: HashFile,/home/gizem2404/o3de/Gems/AtomLyIntegration/CommonFeatures/Assets/Objects/Hermanubis/Hermanubis_Normal.png
AssetProcessor: Time: 02m00s710ms, Count: 4730, Average: 025ms, EventName: CreateJobsTotal
AssetProcessor: Top 4 longest individual CreateJobs
AssetProcessor: Time: 05s518ms, EventName: CreateJobs,shaders/auxgeom/auxgeomobject.hashedvariantlist,Shader Variant Asset Builder
AssetProcessor: Time: 03s285ms, Count: 5, Average: 657ms, EventName: CreateJobs,Materials/Presets/MacBeth/09_moderate_red_tex.material,Material Builder
AssetProcessor: Time: 03s222ms, Count: 2, Average: 01s611ms, EventName: CreateJobs,assets/Warehouse/Textures/WarehouseFloor/WarehouseFloorBaseMap.png,Atom Image Builder
AssetProcessor: Time: 03s195ms, Count: 2, Average: 01s597ms, EventName: CreateJobs,Factory/ConveyorLine/Textures/Cage-BaseColor.png,Atom Image Builder
AssetProcessor: Top 4 longest CreateJobs By builder
AssetProcessor: Time: 54s635ms, Count: 854, Average: 063ms, EventName: CreateJobsByBuilder,Atom Image Builder
AssetProcessor: Time: 23s789ms, Count: 821, Average: 028ms, EventName: CreateJobsByBuilder,Material Builder
AssetProcessor: Time: 15s861ms, Count: 34, Average: 466ms, EventName: CreateJobsByBuilder,Shader Variant Asset Builder
AssetProcessor: Time: 14s021ms, Count: 341, Average: 041ms, EventName: CreateJobsByBuilder,Shader Asset Builder
AssetProcessor: Time: 03h00m26s688ms, Count: 3362, Average: 03s220ms, EventName: ProcessJobsTotal
AssetProcessor: Top 4 longest individual ProcessJob
AssetProcessor: Time: 02m24s322ms, EventName: ProcessJob,/home/gizem2404/o3de/Gems/Atom/Feature/Common/Assets,LightingPresets/LowContrast/blouberg_sunrise_1_4k_iblskyboxcm.exr,Image Compile: EXR,linux,{7F1FA09D-77F3-4118-A7D5-4906BED59C19}
AssetProcessor: Time: 02m24s048ms, EventName: ProcessJob,/home/gizem2404/o3de/Gems/Atom/Feature/Common/Assets,LightingPresets/LowContrast/artist_workshop_4k_iblskyboxcm.exr,Image Compile: EXR,linux,{7F1FA09D-77F3-4118-A7D5-4906BED59C19}
AssetProcessor: Time: 02m22s884ms, EventName: ProcessJob,/home/gizem2404/o3de/Gems/Atom/Feature/Common/Assets,LightingPresets/LowContrast/kloetzle_blei_4k_iblskyboxcm.exr,Image Compile: EXR,linux,{7F1FA09D-77F3-4118-A7D5-4906BED59C19}
AssetProcessor: Time: 02m22s715ms, EventName: ProcessJob,/home/gizem2404/o3de/Gems/Atom/Feature/Common/Assets,LightingPresets/LowContrast/champagne_castle_1_4k_iblskyboxcm.exr,Image Compile: EXR,linux,{7F1FA09D-77F3-4118-A7D5-4906BED59C19}
AssetProcessor: Top 4 cumulative time spent in ProcessJob by JobKey
AssetProcessor: Time: 02m24s322ms, EventName: ProcessJobsByJobKey,LightingPresets/LowContrast/blouberg_sunrise_1_4k_iblskyboxcm.exr
AssetProcessor: Time: 02m24s048ms, EventName: ProcessJobsByJobKey,LightingPresets/LowContrast/artist_workshop_4k_iblskyboxcm.exr
AssetProcessor: Time: 02m22s884ms, EventName: ProcessJobsByJobKey,LightingPresets/LowContrast/kloetzle_blei_4k_iblskyboxcm.exr
AssetProcessor: Time: 02m22s715ms, EventName: ProcessJobsByJobKey,LightingPresets/LowContrast/champagne_castle_1_4k_iblskyboxcm.exr
AssetProcessor: Top 4 cumulative time spent in ProcessJob by Platform
AssetProcessor: Time: 01h27m08s549ms, Count: 496, Average: 10s541ms, EventName: ProcessJobsByPlatform,Image Compile: PNG
AssetProcessor: Time: 38m55s556ms, Count: 214, Average: 10s913ms, EventName: ProcessJobsByPlatform,Shader Asset
AssetProcessor: Time: 27m19s441ms, Count: 13, Average: 02m06s110ms, EventName: ProcessJobsByPlatform,Image Compile: EXR
AssetProcessor: Time: 06m25s634ms, Count: 129, Average: 02s989ms, EventName: ProcessJobsByPlatform,Image Compile: TIF
AssetProcessor: Time: 497ms, EventName: ComputeStatsTime

@fjnn
Copy link
Author

fjnn commented Nov 29, 2024

And it fails when I try running the project with ${PROJECT_PATH}/build/linux/bin/profile/Editor. This is what I get:

Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libEditorLib.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtomViewportDisplayInfo.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libCamera.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libCommonFeaturesAtom.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libLmbrCentral.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libGradientSignal.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libEditorModeFeedback.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libMaestro.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libPrefabBuilder.Builders.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libSceneProcessing.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libSurfaceData.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libImGui.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libGraphCanvas.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libGraphModel.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtomFont.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtomImGuiTools.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtomRenderOptions.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtomShader.Builders.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtom_Bootstrap.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtom_Component_DebugCamera.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtom_RHI_DX12.Private.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtom_RHI_DX12.Builders.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtom_RHI_Metal.Private.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtom_RHI_Metal.Builders.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtom_RHI_Vulkan.Private.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtom_RHI_Vulkan.Builders.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtom_Feature_Common.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtom_Feature_Common.Builders.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtom_RHI.Private.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtom_RHI_Null.Private.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtom_RHI_Null.Builders.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtom_RPI.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtom_RPI.Builders.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libEditorPythonBindings.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libImageProcessingAtom.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtomToolsFramework.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtomViewportDisplayIcons.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libEMotionFX.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libEMotionFX_Atom.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libImguiAtom.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libAtom_AtomBridge.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libCameraFramework.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libDebugDraw.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libTextureAtlas.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libLyShine.Tools.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libPhysX5.Editor.Gem.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libPhysX5Debug.Editor.Gem.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libExpressionEvaluation.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libScriptEvents.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libScriptCanvas.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libScriptCanvasPhysics.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libStartingPointInput.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libWhiteBox.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libDiffuseProbeGrid.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libCompression.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libWarehouseAutomation.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libROS2.Editor.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libMyManipulationProject.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libSceneCore.so
Module: Success! System already had it opened.
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libSceneData.so
Module: Success! System already had it opened.
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libSceneBuilder.so
Module: Success!
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libpython3.10.so.1.0
Module: Success! System already had it opened.
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libpython3.10.so.1.0
Module: Success! System already had it opened.
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libSceneCore.so
Module: Success! System already had it opened.
Module: Attempting to load module:libevdev.so
Module: Failed with error:
libevdev.so: cannot open shared object file: No such file or directory
Input: libevdev.so not found - gamepad support disabled. Install libevdev2 to enable.
System: Network layer initialized
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libpython3.10.so.1.0
Module: Success! System already had it opened.
RHISystem: Initializing RHI...
RHISystem: Enumerated physical device: Intel(R) UHD Graphics (TGL GT1)
RHISystem: Enumerated physical device: NVIDIA GeForce RTX 3050 Ti Laptop GPU
RHISystem: Enumerated physical device: llvmpipe (LLVM 17.0.6, 256 bits)
RHISystem: Using physical device: NVIDIA GeForce RTX 3050 Ti Laptop GPU
PhysXSystem: PhysXConfiguration was read from settings registry at pointer path "/Amazon/Gems/PhysX5/PhysXSystemConfiguration
PhysXSystem: Default Scene Configuration was read from settings registry at pointer path"/Amazon/Gems/PhysX5/DefaultSceneConfiguration
PhysXSystem: Debug::DebugConfiguration was read from settings registry at pointer path "/Amazon/Gems/PhysX5/Debug/PhysXDebugConfiguration
UserSettings:
UserSettings: Trace::Warning
/home/gizem2404/o3de/Code/Framework/AzCore/AzCore/UserSettings/UserSettings.cpp(27): 'void AZ::UserSettingsInternal::AddSettings(UserSettings *, u32, u32)'
UserSettings: There is no UserSettings handler for group 0, settings 475670885 will not be tracked!
UserSettings:
AssetCatalog: Initializing asset catalog with root "/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/Cache/linux"AssetCatalog: Loaded registry containing 12617 assets.
Asset System Connection: Asset Processor Connection IP: 127.0.0.1, port: 45643, branch token 0x73842B84
AssetProcessorConnection:
AssetProcessorConnection: Trace::Warning
/home/gizem2404/o3de/Code/Framework/AzFramework/AzFramework/Asset/AssetSystemComponent.cpp(694): 'virtual bool AzFramework::AssetSystem::AssetSystemComponent::WaitUntilAssetProcessorConnected(AZStd::chrono::duration)'
AssetProcessorConnection: Network connection attempt failure, Connect returned error AzSockError::eASE_ECONNREFUSED
AssetProcessorConnection:
AssetSystem: Ping time to asset processor: 0.35 milliseconds
Editor: Connected to Asset Processor
AssetSystem: Ping time to asset processor: 0.20 milliseconds
Editor: CriticalAssetsCompiled
AssetCatalog: Initializing asset catalog with root "/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/Cache/linux"AssetCatalog: Loaded registry containing 12617 assets.
Module: Attempting to load module:/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/build/linux/bin/profile/libCrySystem.so
Module: Success!
<11:17:49> BackupNameAttachment=" Build(1) 29 Nov 24 (11 17 49)" -- used by backup system
<11:17:49> Log Started at Fri 29 Nov 2024 11:17:49 AM CET
<11:17:49> Built on Nov 29 2024 09:20:28
<11:17:49> Running 64 bit Linux version
<11:17:49> FileVersion: 1.0.0.1
<11:17:49> ProductVersion: 1.0.0.1
<11:17:49> Using CLANG C++ Standard Library implementation
<11:17:50> Loading Config file game.cfg (/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/Cache/linux/game.cfg)
<11:17:50> creating CVarGroups from directory 'Config/CVarGroups' ...
<11:17:50> Loading Config file user.cfg (/media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject/Cache/linux/config/user.cfg)
<11:17:50> GameName: MyManipulationProject
<11:17:50> BuildTime: Nov 29 2024 09:20:28
<11:17:50> [Warning] (System) - : Running without any AudioSystem!
<11:17:50> Using FreeType 2.11.1
<11:17:50> Current Language: English (United States)
<11:17:50> Linux
<11:17:50> Local time is 11:17:50, system running for 187 minutes
<11:17:50> 31813MB phys. memory installed, 7226MB paging available
<11:17:50> Current display mode is 2560x1440x24, DVI-I-3-2
<11:17:50> [Warning] (AssetManager) - GetAsset called for asset which does not exist in asset catalog and cannot be loaded. Asset may be missing, not processed or moved. AssetId: {0105C97F-4545-5B5D-A172-C24E4D83CF26}:0
<11:17:50> [Error] (PassAsset) - Failed to get pass asset. ['' AssetId={0105C97F-4545-5B5D-A172-C24E4D83CF26}:0 Type={FBAF94C2-6617-491E-8269-55DBC9845539}]
<11:17:50> [Warning] (AssetManager) - GetAsset called for asset which does not exist in asset catalog and cannot be loaded. Asset may be missing, not processed or moved. AssetId: {ABAAD0A8-4791-5049-9E57-7BFAA7C1746E}:0
<11:17:50> [Error] (PassAsset) - Failed to get pass asset. ['' AssetId={ABAAD0A8-4791-5049-9E57-7BFAA7C1746E}:0 Type={FBAF94C2-6617-491E-8269-55DBC9845539}]
<11:17:51> project_path = /media/gizem2404/samsungext2tb/o3de-projects/MyManipulationProject
<11:17:51> sys_localization_folder = Localization
<11:17:51> Console Variable r_MeasureOverdraw not declared
<11:17:51> [Plugin Manager] Loading plugins...
<11:17:51> [Plugin Manager] Successfully loaded plugin 'ComponentEntityEditor', version '1' (GUID: {11B0041C-BC34-4827-A3E4-AB7458FFF678})
<11:17:51> FFMPEG plugin: CreatePluginInstance
<11:17:51> FFMPEG plugin: Failed to execute FFmpeg. Please install FFmpeg.
<11:17:51> [Plugin Manager] Successfully loaded plugin 'FFMPEG Writer', version '1' (GUID: {D2A3A44A-00FF-4341-90BA-89A473F44A65})
<11:17:51> [Warning] (AssetDatabase) - Load time threshold exceeded: LoadAssetData call for translationassets/types/ondemandreflectedtypes.names took 695 ms to load 4010690 bytes ( 0.0000 KB/s)
<11:17:51> [Plugin Manager] Successfully loaded plugin 'ProjectSettingsTool', version '1' (GUID: {C5B96A1A-036A-46F9-B7F0-5DF93494F988})
<11:17:51> [Plugin Manager] Successfully loaded plugin 'QtAssetImporter', version '1' (GUID: {0abf28f2-ef56-4ac9-a459-175abb40d649})
<11:17:51> [Warning] XML reader: Can't open file (@user@/Editor/EditorEventLog.xml)
<11:18:01> [Error] (PassFactory) - FAILED TO CREATE PASS [ContrastAdaptiveSharpeningPass]. Could not find pass template [ContrastAdaptiveSharpeningTemplate]
<11:18:01> [Error] (PassFactory) - FAILED TO CREATE PASS [TaaPass]. Could not find pass template [TaaTemplate]
<11:18:01> [Warning] (Pass System) - Pass::ProcessConnection MainPipeline_0.PostProcessPass.TaaPass.TaaCopyPass:Input -> TaaPass:OutputColor: Pass is no longer part of the hierarchy and about to be removed.
<11:18:01> [Warning] (Pass System) - Pass::ProcessConnection MainPipeline_0.PostProcessPass.TaaPass.TaaCopyPass:Output -> TaaPass:LastFrameAccumulation: Pass is no longer part of the hierarchy and about to be removed.
<11:18:01> [Warning] (Pass System) - Pass::ProcessConnection MainPipeline_0.PostProcessPass.TaaPass:OutputColor -> TaaPass:OutputColor: Pass is no longer part of the hierarchy and about to be removed.
<11:18:01> [Error] (PassSystem) - [BloomCompositePass 'MainPipeline_0.PostProcessPass.BloomPass.BloomCompositePass']: Slot 'InputOutput' has no attachment.
<11:18:01> [Error] (PassSystem) - [BloomCompositePass 'MainPipeline_0.PostProcessPass.BloomPass.BloomCompositePass']: Slot 'InputOutput' has no attachment.
<11:18:01> [Error] (PassSystem) - [BloomCompositePass 'MainPipeline_0.PostProcessPass.BloomPass.BloomCompositePass']: Slot 'InputOutput' has no attachment.
<11:18:01> [Error] (PassSystem) - [BloomCompositePass 'MainPipeline_0.PostProcessPass.BloomPass.BloomCompositePass']: Slot 'InputOutput' has no attachment.
<11:18:01> [Error] (PassSystem) - [BloomCompositePass 'MainPipeline_0.PostProcessPass.BloomPass.BloomCompositePass']: Slot 'InputOutput' has no attachment.
<11:18:01> [Warning] (Pass System) - Pass::ProcessConnection MainPipeline_0.PostProcessPass.ChromaticAberrationPass:Input -> ContrastAdaptiveSharpeningPass:OutputColor: Pass is no longer part of the hierarchy and about to be removed.
Aborted (core dumped)

@jhanca-robotecai
Copy link
Contributor

Are you using the stable version of both, o3de and o3de-extras?

@fjnn
Copy link
Author

fjnn commented Nov 29, 2024

I have git cloned the development branches of both repositories. For o3de, I cloned it last week, and for o3de-extras, I cloned it today.

@jhanca-robotecai
Copy link
Contributor

I would recommend the latest stable release, i.e., main branch on the two. Using the development branches might result in numerous errors and it is recommended only for experienced O3DE developers.

@fjnn
Copy link
Author

fjnn commented Dec 3, 2024

Okay, I am changing it now. Honestly it is a bit confusing since the default branches are the development branches in both repositories and the installation guide does not say anything about changing to the main branches

@fjnn
Copy link
Author

fjnn commented Dec 11, 2024

I am still struggling to set up a functioning ROS2 project. I have reinstalled ubuntu. This time I downgraded to 22.04. I have installed ROS2 Humble. Git cloned the main branches of both o3de and o3de-extras but still not able to set up a functioning project. I am still getting the AssetProcessot error after running cmake --build build/linux --config profile --target ${PROJECT_NAME} Editor ${PROJECT_NAME}.Assets

AssetProcessor: Time: 01h25m55s083ms, Count: 3109, Average: 01s658ms, EventName: ProcessJobsTotal
AssetProcessor: Top 4 longest individual ProcessJob
AssetProcessor: Time: 01m51s152ms, EventName: ProcessJob,/opt/O3DE/24.09.1/Gems/Atom/Feature/Common/Assets,LightingPresets/LowContrast/blouberg_sunrise_1_4k_iblskyboxcm.exr,Image Compile: EXR,linux,{7F1FA09D-77F3-4118-A7D5-4906BED59C19}
AssetProcessor: Time: 01m50s335ms, EventName: ProcessJob,/opt/O3DE/24.09.1/Gems/Atom/Feature/Common/Assets,LightingPresets/LowContrast/champagne_castle_1_4k_iblskyboxcm.exr,Image Compile: EXR,linux,{7F1FA09D-77F3-4118-A7D5-4906BED59C19}
AssetProcessor: Time: 01m50s139ms, EventName: ProcessJob,/opt/O3DE/24.09.1/Gems/Atom/Feature/Common/Assets,LightingPresets/LowContrast/artist_workshop_4k_iblskyboxcm.exr,Image Compile: EXR,linux,{7F1FA09D-77F3-4118-A7D5-4906BED59C19}
AssetProcessor: Time: 01m49s373ms, EventName: ProcessJob,/opt/O3DE/24.09.1/Gems/Atom/Feature/Common/Assets,LightingPresets/HighContrast/goegap_4k_iblglobalcm.exr,Image Compile: EXR,linux,{7F1FA09D-77F3-4118-A7D5-4906BED59C19}
AssetProcessor: Top 4 cumulative time spent in ProcessJob by JobKey
AssetProcessor: Time: 01m51s152ms, EventName: ProcessJobsByJobKey,LightingPresets/LowContrast/blouberg_sunrise_1_4k_iblskyboxcm.exr
AssetProcessor: Time: 01m50s335ms, EventName: ProcessJobsByJobKey,LightingPresets/LowContrast/champagne_castle_1_4k_iblskyboxcm.exr
AssetProcessor: Time: 01m50s139ms, EventName: ProcessJobsByJobKey,LightingPresets/LowContrast/artist_workshop_4k_iblskyboxcm.exr
AssetProcessor: Time: 01m49s373ms, EventName: ProcessJobsByJobKey,LightingPresets/HighContrast/goegap_4k_iblglobalcm.exr
AssetProcessor: Top 4 cumulative time spent in ProcessJob by Platform
AssetProcessor: Time: 29m13s139ms, Count: 389, Average: 04s506ms, EventName: ProcessJobsByPlatform,Image Compile: PNG
AssetProcessor: Time: 26m23s213ms, Count: 210, Average: 07s539ms, EventName: ProcessJobsByPlatform,Shader Asset
AssetProcessor: Time: 20m12s301ms, Count: 13, Average: 01m33s253ms, EventName: ProcessJobsByPlatform,Image Compile: EXR
AssetProcessor: Time: 02m46s786ms, Count: 64, Average: 02s606ms, EventName: ProcessJobsByPlatform,Scene compilation
AssetProcessor: Time: 161ms, EventName: ComputeStatsTime
System: Network layer shut down

@jhanca-robotecai
Copy link
Contributor

Unfortunately I am not able to reproduce your issue. I build the project with no issues in Docker environment with the following Dockerfile:

ARG ROS_VERSION=humble

FROM ros:${ROS_VERSION}-ros-base

ENV WORKSPACE=/data/workspace

WORKDIR $WORKSPACE

# O3DE Variables
ARG O3DE_REPO=https://github.com/o3de/o3de.git
ARG O3DE_BRANCH=main
ARG O3DE_COMMIT=HEAD
ENV O3DE_ROOT=$WORKSPACE/o3de

# O3DE Extras Variables
ARG O3DE_EXTRAS_REPO=https://github.com/o3de/o3de-extras.git
ARG O3DE_EXTRAS_BRANCH=main
ARG O3DE_EXTRAS_COMMIT=HEAD
ENV O3DE_EXTRAS_ROOT=$WORKSPACE/o3de-extras

# Project variables
ENV PROJECT_NAME=ROS2Manipulation
ENV PROJECT_DEMO_ROOT=$WORKSPACE/$PROJECT_NAME

ENV LANG=en_US.UTF-8

# Install the required ubuntu packages
RUN apt-get update \
  && apt-get install -y \
  binutils \
  clang \
  cmake \
  git \
  git-lfs \
  libglu1-mesa-dev \
  libxcb-xinerama0 \
  libfontconfig1-dev \
  libnvidia-gl-470 \
  libxcb-xkb-dev \
  libxkbcommon-x11-dev \
  libxkbcommon-dev \
  libxcb-xfixes0-dev \
  libxcb-xinput-dev \
  libxcb-xinput0 \
  libpcre2-16-0 \
  ninja-build \
  python3-pip \
  software-properties-common \
  ros-${ROS_DISTRO}-ackermann-msgs \
  ros-${ROS_DISTRO}-control-toolbox \
  ros-${ROS_DISTRO}-gazebo-msgs \
  ros-${ROS_DISTRO}-joy \
  ros-${ROS_DISTRO}-navigation2 \
  ros-${ROS_DISTRO}-rviz2 \
  ros-${ROS_DISTRO}-tf2-ros \
  ros-${ROS_DISTRO}-urdfdom \
  ros-${ROS_DISTRO}-vision-msgs \
  ros-${ROS_DISTRO}-cyclonedds \
  ros-${ROS_DISTRO}-rmw-cyclonedds-cpp \
  ros-${ROS_DISTRO}-slam-toolbox \
  ros-${ROS_DISTRO}-nav2-bringup \
  ros-${ROS_DISTRO}-pointcloud-to-laserscan \
  ros-${ROS_DISTRO}-teleop-twist-keyboard \
  ros-${ROS_DISTRO}-topic-tools \
  python3-colcon-common-extensions \
  && rm -rf /var/lib/apt/lists/*

ENV RMW_IMPLEMENTATION=rmw_cyclonedds_cpp

# Clone and register all repositories
RUN . /opt/ros/${ROS_DISTRO}/setup.sh \
  \
  ############################################################### \
  # Clone o3de \
  ############################################################### \
  \
  && git clone --single-branch -b $O3DE_BRANCH $O3DE_REPO $O3DE_ROOT \
  && git -C $O3DE_ROOT lfs install \
  && git -C $O3DE_ROOT lfs pull \
  && git -C $O3DE_ROOT reset --hard $O3DE_COMMIT \
  \
  ############################################################### \
  # Clone o3de-extras   \
  ############################################################### \
  && git clone --single-branch -b $O3DE_EXTRAS_BRANCH $O3DE_EXTRAS_REPO $O3DE_EXTRAS_ROOT \
  && git -C $O3DE_EXTRAS_ROOT lfs install \
  && git -C $O3DE_EXTRAS_ROOT lfs pull \
  && git -C $O3DE_EXTRAS_ROOT reset --hard $O3DE_EXTRAS_COMMIT \
  \
  ############################################################### \
  # Get the O3DE python and register the gem paths and projects \
  ############################################################### \
  && $O3DE_ROOT/python/get_python.sh \
  && $O3DE_ROOT/scripts/o3de.sh register -ep $O3DE_ROOT \
  && $O3DE_ROOT/scripts/o3de.sh register -agp $O3DE_EXTRAS_ROOT/Gems/

# Create the project
RUN $O3DE_ROOT/scripts/o3de.sh create-project --project-path $PROJECT_DEMO_ROOT --template-path $O3DE_EXTRAS_ROOT/Templates/Ros2RoboticManipulationTemplate/

# Build the projects
RUN . /opt/ros/${ROS_DISTRO}/setup.sh \
  \
  ############################################################### \
  # Build the Editor, Tools, and clients
  ############################################################### \
  && cmake -B $PROJECT_DEMO_ROOT/build/linux -G "Ninja Multi-Config" \
  -S $PROJECT_DEMO_ROOT \
  -DLY_DISABLE_TEST_MODULES=ON \
  -DLY_STRIP_DEBUG_SYMBOLS=ON \
  && cmake --build $PROJECT_DEMO_ROOT/build/linux --config profile \
  --target $PROJECT_NAME.GameLauncher Editor $PROJECT_NAME.Assets \
  \
  ############################################################### \
  # Remove build artifacts
  ############################################################### \
  && rm -rf ~/.o3de/3rdParty/ \
  && rm -rf $O3DE_ROOT/.git \
  && rm -rf $O3DE_ROOT/AutomatedTesting \
  && rm -rf $O3DE_ROOT/python/downloaded_packages \
  && rm -rf $PROJECT_DEMO_ROOT/build/linux/Azcg/ \
  && rm -rf $PROJECT_DEMO_ROOT/build/linux/CMake \
  && rm -rf $PROJECT_DEMO_ROOT/build/linux/CMakeFiles/ \
  && rm -rf $PROJECT_DEMO_ROOT/build/linux/External/ \
  && rm -rf $PROJECT_DEMO_ROOT/build/linux/Testing/ \
  && rm -rf $PROJECT_DEMO_ROOT/build/linux/_deps/ \
  && rm -rf $PROJECT_DEMO_ROOT/build/linux/cmake \
  && rm -rf $PROJECT_DEMO_ROOT/build/linux/lib/ \
  && rm -rf $PROJECT_DEMO_ROOT/build/linux/o3de/ \
  && rm -rf $PROJECT_DEMO_ROOT/build/linux/packages/

ENV NVIDIA_VISIBLE_DEVICES=all
ENV NVIDIA_DRIVER_CAPABILITIES=all

@abdullah-cos
Copy link

Hi @jhanca-robotecai

I'm quite new to ros2 and ubuntu and had similar issues of the original post of this issue. After installing from source and succesfully building, the editor was crashing when launching the project.

Now I built the docker image you provided with ros2 jazzy on ubuntu 24.04, This was succesful and got the following output:

Successfully built d8f90330a545
Successfully tagged o3de-ros2-manipulation:latest

after that I ran the docker container with:
docker run -it o3de-ros2-manipulation

and launched the editor using:

root@8c20a037d700:/data/workspace/ROS2Manipulation/build/linux/bin/profile# ./Editor
Module: Attempting to load module:/data/workspace/ROS2Manipulation/build/linux/bin/profile/libEditorLib.so
Module: Success!
Aborted (core dumped)

I don't know why it crashes and it's been one week since I'm trying to get this up and running so I could create my own projects. So far no luck. Would you recommend installing ubuntu 22.04 and ros2 humble instead if that is more stable and bug proof?

@fjnn
Copy link
Author

fjnn commented Dec 13, 2024

Hi @abdullah-cos
I finally got mine working by installing ubuntu 22.04, ROS Humble + necessary ROS packages, O3DE from .deb and o3de-extras from the development brach. It still doesn't work if you follow the full tutorial. After you have all the installations are done, do not create or build the ROS project via the command line because it gives the Asset Network Error which I mentioned above. Use the o3de editor by selecting the ROS template durinc creating a new project.

ROS2ProjectTemplate also doesn't work immediately. It is missing autoexec.cfg. Use Ros2RoboticManipulationTemplate instead.

I hope it helps. I have been trying to make it on an off for weeks and this is the combination that I finally made it work.

@abdullah-cos
Copy link

@fjnn
Thank you! I will try this.

@abdullah-cos
Copy link

@fjnn
I followed the procedure you described and this didnt work for me either on ubuntu 22.04 and ros2 humble.
I then even rebuild the dockerfile exactly the same @jhanca-robotecai proposed and got the same crash I had before.

I'm kind of tired of trying and surprised it was gonna be this cumbersome to even launch an example project. For now I'm gonna look for alternative simulators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/simulation Categorizes an issue or PR as relevant to SIG Simulation triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

3 participants