IsaacLab icon indicating copy to clipboard operation
IsaacLab copied to clipboard

[Bug Report] Simulator Crash after add Camera to Scene

Open LiuXianBang opened this issue 1 year ago • 7 comments

I try to add Camera to Scene, But Both the example scripts\tutorials\04_sensors\add_sensors_on_robot.py and the add to my own scene,the simulator all crashed

log

Both have the same crash reason TypeError: Unable to write from unknown dtype, kind=f, size=0. I have no Idea to fix it, if you need more information for this Issue, please let me know

[INFO]: Starting the simulation. This may take a few seconds. Please wait...
2025-08-30T12:53:44Z [20,408ms] [Warning] [usdrt.population.plugin] [UsdNoticeHandler] Unhandled attribute type VtArray<std::string> (prim attribute: omni:rtx:material:db:flattener:transmittance_color)
2025-08-30T12:53:44Z [20,411ms] [Warning] [usdrt.population.plugin] [UsdNoticeHandler] Unhandled attribute type VtArray<std::string> (prim attribute: omni:rtx:material:db:flattener:reflection_roughness_constant)
2025-08-30T12:53:44Z [20,411ms] [Warning] [usdrt.population.plugin] [UsdNoticeHandler] Unhandled attribute type VtArray<std::string> (prim attribute: omni:rtx:material:db:flattener:ior_constant)
2025-08-30T12:53:44Z [20,413ms] [Warning] [omni.physx.fabric.plugin] FabricManager::initializePointInstancer mismatched prototypes on point instancer: /Visuals/myMarkers.
2025-08-30T12:53:44Z [20,421ms] [Warning] [usdrt.hydra.fabric_scene_delegate.plugin] using high frequency span with attrs is disabled
2025-08-30T12:53:44Z [20,422ms] [Warning] [usdrt.hydra.fabric_scene_delegate.plugin] using high frequency span with attrs is disabled
2025-08-30T12:53:44Z [20,428ms] [Warning] [usdrt.hydra.fabric_scene_delegate.plugin] using high frequency span with attrs is disabled
2025-08-30T12:53:44Z [20,428ms] [Warning] [omni.fabric.plugin] getAttributeCount called on non-existent path /World/envs/env_0/Robot/ur5/wrist_3_link/visuals/wrist3
2025-08-30T12:53:44Z [20,428ms] [Warning] [omni.fabric.plugin] getTypes called on non-existent path /World/envs/env_0/Robot/ur5/wrist_3_link/visuals/wrist3
2025-08-30T12:53:46Z [22,415ms] [Warning] [rtx.postprocessing.plugin] DLSS increasing input dimensions: Render resolution of (46, 46) is below minimal input resolution of 300.
2025-08-30T12:53:46Z [22,566ms] [Warning] [omni.syntheticdata.plugin] SdPostRenderVarTextureToBuffer missing valid input renderVar LdrColorSD
2025-08-30T12:53:46Z [22,572ms] [Warning] [omni.syntheticdata.plugin] SdRenderVarPtr missing valid input renderVar LdrColorSDbuff
[INFO]: Time taken for simulation start : 3.174313 seconds
Traceback (most recent call last):
  File "C:\Users\l3820\.conda\envs\env_isaaclab\Lib\site-packages\gymnasium\envs\registration.py", line 734, in make
    env = env_creator(**env_spec_kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Project\BangArm\source\BangArm\BangArm\tasks\direct\bangarm\bangarm_env.py", line 30, in __init__
    super().__init__(cfg, render_mode, **kwargs)
  File "d:/project/isaaclab/source/isaaclab/isaaclab/envs/direct_rl_env.py", line 163, in __init__
    self.sim.reset()
  File "d:/project/isaaclab/source/isaaclab/isaaclab/sim/simulation_context.py", line 594, in reset
    self.render()
  File "d:/project/isaaclab/source/isaaclab/isaaclab/sim/simulation_context.py", line 657, in render
    raise exception_to_raise
  File "d:/project/isaaclab/source/isaaclab/isaaclab/sensors/sensor_base.py", line 297, in _initialize_callback
    self._initialize_impl()
  File "d:/project/isaaclab/source/isaaclab/isaaclab/sensors/camera/tiled_camera.py", line 226, in _initialize_impl
    annotator.attach(self._render_product_paths)
  File "c:/users/l3820/.conda/envs/env_isaaclab/lib/site-packages/isaacsim/extscache/omni.replicator.core-1.12.16+107.3.1.wx64.r.cp311/omni/replicator/core/scripts/annotators.py", line 611, in attach
    activated_result = sdg_iface.activate_node_template(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:/users/l3820/.conda/envs/env_isaaclab/lib/site-packages/isaacsim/extscache/omni.syntheticdata-0.6.13+8131b85d.wx64.r.cp311/omni/syntheticdata/scripts/SyntheticData.py", line 1607, in activate_node_template
    self._activate_node_rec(template_name, render_product_path_index, render_product_paths, render_var_activations)
  File "c:/users/l3820/.conda/envs/env_isaaclab/lib/site-packages/isaacsim/extscache/omni.syntheticdata-0.6.13+8131b85d.wx64.r.cp311/omni/syntheticdata/scripts/SyntheticData.py", line 1408, in _activate_node_rec
    SyntheticData._connect_nodes(connNode, node, connMap, True)
  File "c:/users/l3820/.conda/envs/env_isaaclab/lib/site-packages/isaacsim/extscache/omni.syntheticdata-0.6.13+8131b85d.wx64.r.cp311/omni/syntheticdata/scripts/SyntheticData.py", line 1104, in _connect_nodes
    success = (SyntheticData._add_node_downstream_intergraph_dependency(srcNode, dstNode.get_handle()) > 0)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:/users/l3820/.conda/envs/env_isaaclab/lib/site-packages/isaacsim/extscache/omni.syntheticdata-0.6.13+8131b85d.wx64.r.cp311/omni/syntheticdata/scripts/SyntheticData.py", line 1070, in _add_node_downstream_intergraph_dependency
    dep_attrib_data.set(dep_data)
TypeError: Unable to write from unknown dtype, kind=f, size=0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Project\BangArm\scripts\zero_agent.py", line 71, in <module>
    main()
  File "D:\Project\BangArm\scripts\zero_agent.py", line 48, in main
    env = gym.make(args_cli.task, cfg=env_cfg)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\l3820\.conda\envs\env_isaaclab\Lib\site-packages\gymnasium\envs\registration.py", line 746, in make
    raise type(e)(
TypeError: Unable to write from unknown dtype, kind=f, size=0 was raised from the environment creator for Template-Bangarm-Direct-v0 with kwargs ({'env_cfg_entry_point': 'BangArm.tasks.direct.bangarm.bangarm_env_cfg:BangarmEnvCfg', 'skrl_cfg_entry_point': 'BangArm.tasks.direct.bangarm.agents:skrl_ppo_cfg.yaml', 'cfg': BangarmEnvCfg(viewer=ViewerCfg(eye=(7.5, 7.5, 7.5), lookat=(0.0, 0.0, 0.0), cam_prim_path='/OmniverseKit_Persp', resolution=(1280, 720), origin_type='world', env_index=0, asset_name=None, body_name=None), sim=SimulationCfg(physics_prim_path='/physicsScene', device='cuda:0', dt=0.01, render_interval=2, gravity=(0.0, 0.0, -9.81), enable_scene_query_support=True, use_fabric=True, physx=PhysxCfg(solver_type=1, min_position_iteration_count=1, max_position_iteration_count=255, min_velocity_iteration_count=0, max_velocity_iteration_count=255, enable_ccd=False, enable_stabilization=False, enable_enhanced_determinism=False, bounce_threshold_velocity=0.5, friction_offset_threshold=0.04, friction_correlation_distance=0.025, gpu_max_rigid_contact_count=8388608, gpu_max_rigid_patch_count=163840, gpu_found_lost_pairs_capacity=2097152, gpu_found_lost_aggregate_pairs_capacity=33554432, gpu_total_aggregate_pairs_capacity=2097152, gpu_collision_stack_size=67108864, gpu_heap_capacity=67108864, gpu_temp_buffer_capacity=16777216, gpu_max_num_partitions=8, gpu_max_soft_body_contacts=1048576, gpu_max_particle_contacts=1048576), physics_material=RigidBodyMaterialCfg(func=<function spawn_rigid_body_material at 0x00000263124E6B60>, static_friction=0.5, dynamic_friction=0.5, restitution=0.0, friction_combine_mode='average', restitution_combine_mode='average', compliant_contact_stiffness=0.0, compliant_contact_damping=0.0), render=RenderCfg(enable_translucency=None, enable_reflections=None, enable_global_illumination=None, antialiasing_mode=None, enable_dlssg=None, enable_dl_denoiser=None, dlss_mode=None, enable_direct_lighting=None, samples_per_pixel=None, enable_shadows=None, enable_ambient_occlusion=None, carb_settings=None, rendering_mode=None), create_stage_in_memory=False), ui_window_class_type=<class 'isaaclab.envs.ui.base_env_window.BaseEnvWindow'>, seed=None, decimation=2, is_finite_horizon=False, episode_length_s=10.0, scene=SceneCfg(num_envs=1, env_spacing=2.0, lazy_sensor_update=True, replicate_physics=True, filter_collisions=True, clone_in_fabric=False, robot_cfg=ArticulationCfg(class_type=<class 'isaaclab.assets.articulation.articulation.Articulation'>, prim_path='/World/envs/env_.*/Robot', spawn=UsdFileCfg(func=<function spawn_from_usd at 0x00000263124E6160>, visible=True, semantic_tags=None, copy_from_source=True, mass_props=None, deformable_props=None, rigid_props=None, collision_props=None, activate_contact_sensors=False, scale=None, articulation_props=None, fixed_tendons_props=None, spatial_tendons_props=None, joint_drive_props=None, visual_material_path='material', visual_material=None, usd_path='D:\\Project\\IsaacSim\\ur5.usd', variants=None), init_state=ArticulationCfg.InitialStateCfg(pos=(0.0, 0.0, 0.0), rot=(1.0, 0.0, 0.0, 0.0), lin_vel=(0.0, 0.0, 0.0), ang_vel=(0.0, 0.0, 0.0), joint_pos={'.*': 0.0}, joint_vel={'.*': 0.0}), collision_group=0, debug_vis=False, articulation_root_prim_path=None, soft_joint_pos_limit_factor=1.0, actuators={'wheel_acts': ImplicitActuatorCfg(class_type=<class 'isaaclab.actuators.actuator_pd.ImplicitActuator'>, joint_names_expr=['.*'], effort_limit=None, velocity_limit=None, effort_limit_sim=None, velocity_limit_sim=None, stiffness=None, damping=None, armature=None, friction=None, dynamic_friction=None, viscous_friction=None)}, actuator_value_resolution_debug_print=False), tiled_camera=TiledCameraCfg(class_type=<class 'isaaclab.sensors.camera.tiled_camera.TiledCamera'>, prim_path='/World/envs/env_.*/Camera', update_period=0.0, history_length=0, debug_vis=False, offset=CameraCfg.OffsetCfg(pos=(-7.0, 0.0, 3.0), rot=(0.9945, 0.0, 0.1045, 0.0), convention='world'), spawn=PinholeCameraCfg(func=<function spawn_camera at 0x0000026312564220>, visible=True, semantic_tags=None, copy_from_source=True, projection_type='pinhole', clipping_range=(0.1, 20.0), focal_length=24.0, focus_distance=400.0, f_stop=0.0, horizontal_aperture=20.955, vertical_aperture=None, horizontal_aperture_offset=0.0, vertical_aperture_offset=0.0, lock_camera=True), depth_clipping_behavior='none', data_types=['rgb'], width=80, height=80, update_latest_camera_pose=False, semantic_filter='*:*', colorize_semantic_segmentation=True, colorize_instance_id_segmentation=True, colorize_instance_segmentation=True, semantic_segmentation_mapping={})), events=None, observation_space=10, num_observations=None, state_space=0, num_states=None, observation_noise_model=None, action_space=6, num_actions=None, action_noise_model=None, rerender_on_reset=False, wait_for_textures=True, xr=None, state_manager=<BangArm.tools.state_manager.StateManager object at 0x000002630C6A2310>, action_scale=1.0, num_env=10, end_effector_id=6)})
2025-08-30T12:53:47Z [23,128ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-08-30T12:53:47Z [23,129ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-08-30T12:53:47Z [23,129ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-08-30T12:53:47Z [23,129ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-08-30T12:53:47Z [23,130ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-08-30T12:53:47Z [23,130ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-08-30T12:53:47Z [23,130ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-08-30T12:53:47Z [23,131ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-08-30T12:53:47Z [23,131ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-08-30T12:53:47Z [23,131ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-08-30T12:53:47Z [23,131ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-08-30T12:53:47Z [23,132ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-08-30T12:53:47Z [23,132ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Core' for removal
2025-08-30T12:53:47Z [23,135ms] [Warning] [omni.graph.core.plugin] Could not find category 'animation' for removal
2025-08-30T12:53:47Z [23,136ms] [Warning] [carb

If you could fix this issue for me, I would be extremely grateful

System Info

Describe the characteristic of your environment:

  • Isaac Sim Version: 2.1.1
  • OS: Windows11
  • GPU: RTX 4070TI(LapTop)
  • CUDA: 12.8

I will attach all the logs in the attachment fulllog.txt

LiuXianBang avatar Aug 30 '25 13:08 LiuXianBang

I met the same issue, after I upgrading the isaacsim from 4.5 to 5.0. Can someone help me fix?

ZainZh avatar Sep 01 '25 04:09 ZainZh

@LiuXianBang Hi I fixed it by

pip install isaacsim

Kind of like the numpy version issue, the mentioned command will reinstall the suitable version of numpy

ZainZh avatar Sep 01 '25 06:09 ZainZh

@LiuXianBang Hi I fixed it by

pip install isaacsim

Kind of like the numpy version issue, the mentioned command will reinstall the suitable version of numpy

Thank u bro. numpy unexpectedly updated! I fix it after reinstall the suitable version of numpy

LiuXianBang avatar Sep 01 '25 23:09 LiuXianBang

@LiuXianBang Hi I fixed it by

pip install isaacsim

Kind of like the numpy version issue, the mentioned command will reinstall the suitable version of numpy

Thank u bro. numpy unexpectedly updated! I fix it after reinstall the suitable version of numpy

Hello bro, which version the suitable version of numpy ? 3Q

feiqiu-cyber avatar Sep 03 '25 06:09 feiqiu-cyber

@LiuXianBang Hi I fixed it by

pip install isaacsim

Kind of like the numpy version issue, the mentioned command will reinstall the suitable version of numpy

Thank u bro. numpy unexpectedly updated! I fix it after reinstall the suitable version of numpy

Hello bro, which version the suitable version of numpy ? 3Q

numpy==1.26.0 may suitable

LiuXianBang avatar Sep 03 '25 11:09 LiuXianBang

@LiuXianBang hello! I am a student from SZU, and also meet this problem, i am not sure how to deal with it. If is ok, may I have you wechat to have more communications.(Add wechat: WPH18718383542)

Iron-Wph avatar Oct 03 '25 06:10 Iron-Wph

@LiuXianBang Hi I fixed it by

pip install isaacsim

Kind of like the numpy version issue, the mentioned command will reinstall the suitable version of numpy

it works!

Layort avatar Nov 27 '25 11:11 Layort