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

Crashing on BGSDefaultObjectManager::GetObject SSE v1.5.97 #66

Closed
zax-ftw opened this issue Apr 15, 2023 · 1 comment · Fixed by #93
Closed

Crashing on BGSDefaultObjectManager::GetObject SSE v1.5.97 #66

zax-ftw opened this issue Apr 15, 2023 · 1 comment · Fixed by #93

Comments

@zax-ftw
Copy link

zax-ftw commented Apr 15, 2023

Skyrim SSE v1.5.97 its crashing on BGSDefaultObjectManager::GetObject call. Tested with kKeywordNPC currently.

Crash log with DefaultObjectID::kKeywordNPC

Unhandled exception "EXCEPTION_ACCESS_VIOLATION" at 0x7FFFE3996922 Testing.dll+00C6922 movzx eax, byte ptr [rax+rcx*1] | E:\Code\Skyrim\vcpkg\buildtrees\commonlibsse-ng-flatrim\src\bee98e2e88-768ad13a2f.clean\src\RE\B\BGSDefaultObjectManager.cpp:33 ?GetObject@BGSDefaultObjectManager@RE@@QEAAPEAPEAVTESForm@2@W4DefaultObjectID@2@@z)

https://github.com/CharmedBaryon/CommonLibSSE-NG/blob/main/src/RE/B/BGSDefaultObjectManager.cpp#L33

Crash log with DEFAULT_OBJECT::kKeywordNPC

Unhandled exception "EXCEPTION_ACCESS_VIOLATION" at 0x7FFFE045D0CC Testing.dll+006D0CC movzx eax, byte ptr [rax+rcx*1] | E:\Code\Skyrim\Testing\build\debug-msvc\vcpkg_installed\x64-windows-static-md\include\RE\B\BGSDefaultObjectManager.h:1055 ?IsObjectInitialized@BGSDefaultObjectManager@RE@@QEBA_N_K@Z E:\Code\Skyrim\Testing\build\debug-msvc\vcpkg_installed\x64-windows-static-md\include\RE\B\BGSDefaultObjectManager.h:1026 ?IsObjectInitialized@BGSDefaultObjectManager@RE@@QEBA_N_K@Z)

https://github.com/CharmedBaryon/CommonLibSSE-NG/blob/main/include/RE/B/BGSDefaultObjectManager.h#L1055

@zax-ftw
Copy link
Author

zax-ftw commented May 3, 2023

IsObjectInitialized function is causing it (same thing happens on 1.6.640). Everything is fine when accessing objects and objectInit members directly. IsObjectInitialized crashes or returns 100% wrong values.

Reporting it here because IsObjectInitialized is unique to NG project and doesn't exist in PO3 fork.

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 a pull request may close this issue.

1 participant