Skip to content
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

Random crash related to scaleforms #2281

Closed
manups4e opened this issue Nov 22, 2023 · 3 comments
Closed

Random crash related to scaleforms #2281

manups4e opened this issue Nov 22, 2023 · 3 comments

Comments

@manups4e
Copy link
Contributor

image
CfxCrashDump_2023_11_22_21_57_08.zip

Sadly i can't give a good repro as this error occurs randomly... could it be related to streamed custom GFX files? even tho i wasn't drawing any scaleform at the time of the crash.

If i'll find more info about the error i'll edit the issue

@gottfriedleibniz
Copy link
Contributor

gottfriedleibniz commented Nov 23, 2023

There looks to be a few issues related to GFxObjectInterface::CreateEmptyMovieClip.

  1. The hook looks to be missing a depth parameter (which gets sanitized and will skip GFxValue initialization).
  2. CreateEmptyMovieClip returning false is not handled.

The crashes being random would support the above being the issue (random stack values being read). Although, that is not guaranteed: GFxSprite::AddDisplayObject (0x14173767C/2944) returning null would lead to a similar crash. However, I wouldn't expect that to be "random" unless something like HandleSprite (#2157) is involved somewhere else.

@manups4e
Copy link
Contributor Author

I do create empty movie clips same way as R* does.. the flash way so I think it's nothing I can handle on my side

@nihonium-cfx
Copy link
Contributor

Should be fixed by 5031bb7

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

No branches or pull requests

3 participants