-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metadata with long number causes hard crash #140
Comments
We have worked around the problem by not loading metadata like this. |
Making sure I understand here. Was the issue that the metadata was not 230
like you show here, but that you had 299.9999… in the spot where 230 was?
Did you get any stack trace on the crash? What happened?
The core libraries don’t do anything with the metadata other than put it
into a hash map to let patterns access from the model, and they’re in the
map as strings, not even as numbers. To debug this would require looking at
who accesses the value and how. Do you know what pattern is running when
the crash occurs?
If it was a stack trace free crash I wonder if there is an infinite loop
being created in some pattern or effect that doesn’t like this unrounded
value?
Need a little more to go on to help debug here, and I suspect the issue is
on the pattern/effect side.
Le sam. 19 nov. 2022 à 00:08, Brian Bulkowski ***@***.***> a
écrit :
… We have worked around the problem by not loading metadata like this.
—
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAER6WQUPX52X37RDBTKMLDWJCDG5ANCNFSM6AAAAAASFGBTAQ>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
This very likely will have been these lines: Number parsing methods like Would be safer to have those method use |
FYI also a best practice to surround with an explicit |
@mcslee - Yep. Fast coding and laziness on my fault. Apologies. |
With a metadata like this:
"meta": {
"name": "bench-1",
"base_x": 40,
"base_y": 0,
"base_z": 696,
"ry": 230
}
we had written some math that caused the value 229.999999999997 (or similar), and that caused crashes when playing different files. It didn't crash immediately, but it did crash hard (required force quit).
The text was updated successfully, but these errors were encountered: