Skip to content

Conversation

msz-rai
Copy link
Contributor

@msz-rai msz-rai commented Sep 18, 2023

In the issue, some of the game objects on the scene don't have mesh assigned to them, which prevents RGLObjects from being created on them (an exception is thrown in the constructor of RGLObject). It causes the current Update to abort and process the same objects on the next Update (and this situation repeats indefinitely).

This PR wraps RGLObject creation into a try-catch block which skips game objects from which no RGLObject can be created.

@msz-rai msz-rai changed the title Wrap RGLObject into try-catch to avoid processing the same objects forever Wrap RGLObject into try-catch to avoid processing the same objects endlessly Sep 18, 2023
@msz-rai msz-rai requested a review from PiotrMrozik September 19, 2023 08:01
@msz-rai msz-rai requested a review from PiotrMrozik September 21, 2023 07:33
@msz-rai msz-rai requested a review from mackierx111 September 21, 2023 10:41
Copy link
Collaborator

@mackierx111 mackierx111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mackierx111 mackierx111 merged commit 3b4a144 into main Sep 21, 2023
@mackierx111 mackierx111 deleted the fix/wrap-rglobject-into-try-catch branch August 4, 2025 06:18
tzu-lin-huang pushed a commit to OptiVerse-Technology-Ltd/AWSIM that referenced this pull request Aug 26, 2025
…atch

Wrap RGLObject into try-catch to avoid processing the same objects endlessly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants