RuntimeError: Operation not permitted

When I use the rostopic callback function to reset the world by using “World().reset” api, it give out the error in the picture.

For test, if I use the “World().reset” in main function, it can run successfully.

Why did the error happen?

Thanks a lot!

@caozx1110 can you share a script that reproduces the issue?

@caozx1110 , are you still seeing this error?, if yes then please share the script as requested in previous comment.