facebookresearch / habitat-lab

A modular high-level library to train embodied AI agents across a variety of tasks and environments.
https://aihabitat.org/
MIT License
1.95k stars 488 forks source link

Failed to run hitl example, ClassicReplayRenderer: Unable to create a non-standalone renderer because no context exists. #1761

Closed Coelancanth closed 9 months ago

Coelancanth commented 9 months ago

Habitat-Lab and Habitat-Sim versions

Habitat-Lab: v0.3.0 or master?

Habitat-Sim: v0.3.0 or master?

Habitat is under active development, and we advise users to restrict themselves to stable releases. Are you using the latest release versions of Habitat-Lab and Habitat-Sim? Your question may already be addressed in the latest versions. We may also not be able to help with problems in earlier versions because they sometimes lack the more verbose logging needed for debugging.

Master branch contains 'bleeding edge' code and should be used at your own risk.

Docs and Tutorials

Did you read the docs? https://aihabitat.org/docs/habitat-lab/

Did you check out the tutorials? https://aihabitat.org/tutorial/2020/

Perhaps your question is answered there. If not, carry on!

❓ Questions and Help

(habitat) coel@coel-MS-7C37:~/habitat-lab$ HABITAT_SIM_LOG=verbose MAGNUM_LOG=verbose python examples/hitl/basic_viewer/basic_viewer.py --disable-inverse-kinematics --never-end --cfg examples/hitl/basic_viewer/config/basic_viewer.yaml

Platform: can't load X11 symbols for getting virtual DPI scaling, falling back to physical DPI Platform::GlfwApplication: physical DPI scaling Vector(1.44792, 1.44792) Renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2 by NVIDIA Corporation OpenGL version: 4.6.0 NVIDIA 535.146.02 Using optional features: GL_ARB_vertex_array_object GL_ARB_separate_shader_objects GL_ARB_robustness GL_ARB_texture_storage GL_ARB_texture_view GL_ARB_framebuffer_no_attachments GL_ARB_invalidate_subdata GL_ARB_texture_storage_multisample GL_ARB_multi_bind GL_ARB_direct_state_access GL_ARB_get_texture_sub_image GL_ARB_texture_filter_anisotropic GL_KHR_debug GL_KHR_parallel_shader_compile GL_NV_depth_buffer_float Using driver workarounds: no-forward-compatible-core-context nv-egl-incorrect-gl11-function-pointers no-layout-qualifiers-on-old-glsl nv-zero-context-profile-mask nv-implementation-color-read-format-dsa-broken nv-cubemap-inconsistent-compressed-image-size nv-cubemap-broken-full-compressed-image-query nv-compressed-block-size-in-bits [05:09:19:433191]:[Debug]:[Metadata] AssetAttributesManager.cpp(123)::createObject : Asset attributes (capsule3DSolid:capsule3DSolid_hemiRings_4_cylRings_1_segments_12_halfLen_0.75_useTexCoords_false_useTangents_false) created and registered. [05:09:19:433263]:[Debug]:[Metadata] AssetAttributesManager.cpp(123)::createObject : Asset attributes (capsule3DWireframe:capsule3DWireframe_hemiRings_8_cylRings_1_segments_16_halfLen_1) created and registered. [05:09:19:433296]:[Debug]:[Metadata] AssetAttributesManager.cpp(123)::createObject : Asset attributes (coneSolid:coneSolid_segments_12_halfLen_1.25_rings_1_useTexCoords_false_useTangents_false_capEnd_true) created and registered. [05:09:19:433325]:[Debug]:[Metadata] AssetAttributesManager.cpp(123)::createObject : Asset attributes (coneWireframe:coneWireframe_segments_32_halfLen_1.25) created and registered. [05:09:19:433351]:[Debug]:[Metadata] AssetAttributesManager.cpp(123)::createObject : Asset attributes (cubeSolid:cubeSolid) created and registered. [05:09:19:433372]:[Debug]:[Metadata] AssetAttributesManager.cpp(123)::createObject : Asset attributes (cubeWireframe:cubeWireframe) created and registered. [05:09:19:433400]:[Debug]:[Metadata] AssetAttributesManager.cpp(123)::createObject : Asset attributes (cylinderSolid:cylinderSolid_rings_1_segments_12_halfLen_1_useTexCoords_false_useTangents_false_capEnds_true) created and registered. [05:09:19:433427]:[Debug]:[Metadata] AssetAttributesManager.cpp(123)::createObject : Asset attributes (cylinderWireframe:cylinderWireframe_rings_1_segments_32_halfLen_1) created and registered. [05:09:19:433449]:[Debug]:[Metadata] AssetAttributesManager.cpp(123)::createObject : Asset attributes (icosphereSolid:icosphereSolid_subdivs_1) created and registered. [05:09:19:433474]:[Debug]:[Metadata] AssetAttributesManager.cpp(123)::createObject : Asset attributes (icosphereWireframe:icosphereWireframe_subdivs_1) created and registered. [05:09:19:433500]:[Debug]:[Metadata] AssetAttributesManager.cpp(123)::createObject : Asset attributes (uvSphereSolid:uvSphereSolid_rings_8_segments_16_useTexCoords_false_useTangents_false) created and registered. [05:09:19:433521]:[Debug]:[Metadata] AssetAttributesManager.cpp(123)::createObject : Asset attributes (uvSphereWireframe:uvSphereWireframe_rings_16_segments_32) created and registered. [05:09:19:433540]:[Debug]:[Metadata] AssetAttributesManager.cpp(112)::AssetAttributesManager : Built default primitive asset templates : 12 [05:09:19:433843]:[Debug]:[Metadata] SceneDatasetAttributesManager.cpp(39)::createObject : File default not found, so new default dataset attributes created and registered. [05:09:19:433919]:[Debug]:[Metadata] PhysicsAttributesManager.cpp(26)::createObject : JSON Configuration File ./data/default.physics_config.json based physics manager attributes created and registered. [05:09:19:433977]:[Debug]:[Metadata] PbrShaderAttributesManager.cpp(26)::createObject : File ./data/default.pbr_config.json not found, so new default pbr shader configuration created and registered. [05:09:19:433995]:[Debug]:[Metadata] MetadataMediator.cpp(267)::setCurrDefaultPbrAttributesHandle : Old default Pbr/Ibl shader attributes changed to `./data/default.pbr_config.json` successfully. [05:09:19:434011]:[Debug]:[Metadata] MetadataMediator.cpp(305)::setActiveSceneDatasetName : Previous active Scene Dataset changed to default successfully. [05:09:19:434023]:[Debug]:[Metadata] MetadataMediator.cpp(229)::setCurrPhysicsAttributesHandle : Old physics manager attributes changed to `./data/default.physics_config.json` successfully. [05:09:19:434036]:[Debug]:[Metadata] MetadataMediator.cpp(87)::setSimulatorConfiguration : Set new simulator config for scene/stage : and dataset : default which is currently active dataset. [05:09:19:469179]:[Debug]:[Scene] SceneGraph.h(85)::createDrawableGroup : Created DrawableGroup: [05:09:19:469366]:[Debug]:[Scene] SceneManager.h(21)::~SceneManager : Deconstructing SceneManager [05:09:19:469382]:[Debug]:[Scene] SceneGraph.h(25)::~SceneGraph : Deconstructing SceneGraph [05:09:19:469396]:[Debug]:[Sensor] Sensor.cpp(69)::~Sensor : Deconstructing Sensor Traceback (most recent call last): File "/home/coel/habitat-lab/examples/hitl/basic_viewer/basic_viewer.py", line 224, in main() File "/home/coel/habitat-lab/examples/hitl/basic_viewer/basic_viewer.py", line 215, in main hitl_main.hitl_main( File "/home/coel/habitat-lab/examples/siro_sandbox/hitl_main.py", line 63, in hitl_main app_renderer = ReplayGuiAppRenderer( File "/home/coel/habitat-lab/examples/siro_sandbox/utils/gui/replay_gui_app_renderer.py", line 70, in init else ReplayRenderer.create_classic_replay_renderer(cfg) AssertionError: ESP_CHECK failed: ClassicReplayRenderer::ClassicReplayRenderer: Unable to create a non-standalone renderer because no context exists. If the application is intended to run by itself and create its own context, make sure that the standalone config flag is enabled.

Followed the steps, but when I tried the example launch commend "HABITAT_SIM_LOG=warning MAGNUM_LOG=warning \ python examples/hitl/basic_viewer/basic_viewer.py \ --disable-inverse-kinematics \ --never-end \ --cfg examples/hitl/basic_viewer/config/basic_viewer.yaml"

there is an assertion stated that :"Unable to create a non-standalone renderer because no context exists.",

what does the "context" in the text indicate?

ambervg commented 7 months ago

I see that this issue is closed, but I am currently getting the same error. Could you let me know how you solved this?

AssertionError: ESP_CHECK failed: ClassicReplayRenderer::ClassicReplayRenderer: Unable to create a non-standalone renderer because no context exists. If the application is intended to run by itself and create its own context, make sure that the standalone config flag is enabled.

ambervg commented 7 months ago

I see that this issue is closed, but I am currently getting the same error. Could you let me know how you solved this?

AssertionError: ESP_CHECK failed: ClassicReplayRenderer::ClassicReplayRenderer: Unable to create a non-standalone renderer because no context exists. If the application is intended to run by itself and create its own context, make sure that the standalone config flag is enabled.

The issue disappeared for me after doing a clean install, but I am not sure what caused it.