Error loading sensor extension

Hi,

I am trying to run RTX Lidar tutoria, but the following sensor extension loading error appears during the simulation app startup which doesn’t allow me to use RTX lidar in the sim context.


[22.405s] [ext: omni.kit.window.title-1.1.3] startup
[22.410s] [ext: omni.replicator.composer-1.2.17] startup
[22.509s] [ext: omni.replicator.isaac-1.11.3] startup
[22.690s] [ext: omni.kit.manipulator.camera-105.0.4] startup
[22.706s] [ext: omni.kit.viewport.menubar.camera-105.1.9] startup
[22.731s] [ext: omni.isaac.sensor-9.11.1] startup

2024-06-03 08:56:37 [22,591ms] [Error] [carb.scripting-python.plugin] UnicodeDecodeError: ‘cp949’ codec can’t decode byte 0xe2 in position 1278: illegal multibyte sequence

At:
C:\Users\mm\AppData\Local\ov\pkg\isaac_sim-2023.1.1\kit\python\lib\json_init_.py(293): load
c:/users/mm/appdata/local/ov/pkg/isaac_sim-2023.1.1/exts/omni.isaac.sensor/omni/isaac/sensor/scripts/menu.py(204): init
c:/users/mm/appdata/local/ov/pkg/isaac_sim-2023.1.1/exts/omni.isaac.sensor/omni/isaac/sensor/scripts/extension.py(31): on_startup
C:\Users\mm\AppData\Local\ov\pkg\isaac_sim-2023.1.1/kit/kernel/py\omni\ext_impl_internal.py(164): _startup_ext
C:\Users\mm\AppData\Local\ov\pkg\isaac_sim-2023.1.1/kit/kernel/py\omni\ext_impl_internal.py(224): startup
C:\Users\mm\AppData\Local\ov\pkg\isaac_sim-2023.1.1/kit/kernel/py\omni\ext_impl_internal.py(328): startup_extension
PythonExtension.cpp::startup()(2):
C:\Users\mm\AppData\Local\ov\pkg\isaac_sim-2023.1.1/exts/omni.isaac.kit\omni\isaac\kit\simulation_app.py(304): _start_app
C:\Users\mm\AppData\Local\ov\pkg\isaac_sim-2023.1.1/exts/omni.isaac.kit\omni\isaac\kit\simulation_app.py(192): init
C:\Users\mm\AppData\Local\ov\pkg\isaac_sim-2023.1.1\standalone_examples\api\omni.isaac.sensor\rotating_lidar_rtx.py(16):

2024-06-03 08:56:37 [22,594ms] [Error] [omni.ext.plugin] [ext: omni.isaac.sensor-9.11.1] Failed to startup python extension.

[23.313s] [ext: omni.kit.viewport.menubar.render-105.1.1] startup
[23.328s] [ext: omni.kit.viewport.menubar.settings-105.0.9] startup
[23.358s] [ext: omni.replicator.replicator_yaml-2.0.4] startup
[23.410s] [ext: omni.rtx.settings.core-0.5.13] startup
[23.429s] [ext: omni.kit.stage_column.variant-1.0.13] startup
[23.439s] [ext: omni.isaac.quadruped-1.4.1] startup
[23.491s] [ext: semantics.schema.property-1.0.2] startup
[23.500s] [ext: omni.kit.viewport.bundle-104.0.1] startup
[23.500s] [ext: omni.isaac.scene_blox-0.1.0] startup
[23.510s] [ext: omni.importer.urdf-1.6.1] startup
[23.622s] [ext: omni.importer.mjcf-1.1.0] startup
[23.664s] [ext: omni.kit.window.stats-0.1.4] startup

Strange thing is that the sensor extension loading error does not appear when opening isaac sim from omniverse launcher, where I can use the RTX lidar without any error. I double checked from windows>extension and the sensor extension is loaded well…

Can anyone give me some suggestions?

1 Like

Hello,

Could you please provide the command you used that led to this error?

Thanks!

2 Likes

@adevalla, Thank you for your kind reply. I actually solved the problem after hours of googling.

The command I used was a normal one to run standalone simulation with python.bat command in ROS2-sourced Windows cmd ternimal:
e.x. python.bat standalone_examples/api/omni.isaac.core/Test_ROS_camera.py

I figured out the problem arises from encoding while opening the JSON file, where error log says:
“UnicodeDecodeError: ‘cp949’ codec can’t decode byte 0xe2 in position 1278: illegal multibyte sequence”

Then I opened the python script opening the JSON file located in,
c:/users/mm/appdata/local/ov/pkg/isaac_sim-2023.1.1/exts/omni.isaac.sensor/omni/isaac/sensor/scripts/menu.py

And modified the line 210 :
from
data = json.load(open(d+“/”+file )
to
data = json.load(open(d+“/”+file , encoding = ‘UTF8’))

this solved the problem completely and simulation app could load the RTX lidar sensor extension without any problem!

Thank you again @adevalla

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.