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

[Bug]: Uncaught exception in Dimension::onChunkLoaded without teleport to new custom dimension. #1393

Closed
MCBEPluginModer opened this issue Nov 18, 2023 · 0 comments · Fixed by #1395

Comments

@MCBEPluginModer
Copy link

MCBEPluginModer commented Nov 18, 2023

Describe the bug

After teleport to test dimension server crashed with exception "access violatile" inside function Dimension::onChunkLoaded.

To Reproduce

Expected behavior

[16:55:44.051] [info] CrashLogger has successfully attached to the process. PID: 15512

[16:57:24.831] [info] BDS Crashed! Generating Stacktrace and MiniDump...
[16:57:24.936] [info] MiniDump generated at D:\LeviLamina-develop-pr\logs\crash\minidump_2023-11-19_16-57-24.dmp
[16:57:25.197] [info] Loading symbol files from local and remote servers, this may take a while...
[16:57:25.197] [info] Online symbol files will be cached in C:\Users\kikal.symcache
[17:02:32.823] [info]
[17:02:32.825] [info] System Info:
[17:02:32.825] [info] OS Version: 10.0.19045
[17:02:32.826] [info] Is Wine: false
[17:02:32.827] [info] CPU: Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz
[17:02:32.828] [info] CPU Counts: 24
[17:02:32.829] [info] CPU Arch: x64
[17:02:32.830] [info] RAM: 32609 MB
[17:02:32.831] [info] Time: 2023-11-19T17:02:32.000+0200
[17:02:32.832] [info]
[17:02:32.832] [info] Exception Info:
[17:02:32.833] [info] Code: 0xC0000005
[17:02:32.834] [info] Module: bedrock_server_mod.exe
[17:02:32.837] [info] Address: 0x7FF6DA3C4654
[17:02:32.838] [info] Flags: 0x0
[17:02:32.839] [info] Number of Parameters: 2
[17:02:32.840] [info] Parameter 0: 0x0
[17:02:32.841] [info] Parameter 1: 0x1000000D7
[17:02:32.842] [info]
[17:02:32.843] [info] Registers:
[17:02:32.843] [info] RAX: 0x00000001000000D7 RBX: 0x0000027BDD2162C0 RCX: 0x00000000FFFFFFFF
[17:02:32.844] [info] RDX: 0x00000000000003E8 RSI: 0x0000027BDC902088 RDI: 0x0000027BD24ECD90
[17:02:32.845] [info] RBP: 0x00000000FFFFFFFF RSP: 0x000000B5D1EFEAD0 R8: 0x00000000FFFFFFFF
[17:02:32.846] [info] R9: 0x0000000000000001 R10: 0x00000FFF283BF701 R11: 0xFFFFFFFFFFFFFFFF
[17:02:32.847] [info] R12: 0x00007FF6DAEB4790 R13: 0x00007FF6DAEB4370 R14: 0x0000027BD61EBBE0
[17:02:32.848] [info] R15: 0x0000000000000000
[17:02:32.849] [info] RIP: 0x00007FF6DA3C4654 EFLAGS: 0x00010200
[17:02:32.850] [info] DR0: 0x0000000000000000 DR1: 0x0000000000000000 DR2: 0x0000000000000000
[17:02:32.851] [info] DR3: 0x0000000000000000 DR6: 0x0000000000000000 DR7: 0x0000000000000000
[17:02:32.854] [info] CS: 0x0033 DS: 0x0000 ES: 0x0000 FS: 0x0000 GS: 0x0000 SS: 0x002B
[17:02:32.855] [info]
[17:02:32.856] [info] Last Assembly:
[17:02:32.857] [info] 0x7FF6DA3C4654 --> movzx ecx, byte ptr [rax]
[17:02:32.857] [info]
[17:02:32.858] [info] Stacktrace:
[17:02:32.934] [info] #0 at pc 0x7FF6DA3C45C0 bedrock_server_mod.exe -> Dimension::onChunkLoaded+0x94
[17:02:32.935] [info] #1 at pc 0x7FF6D9E47C00 bedrock_server_mod.exe -> Level::_onRemoveActorEntityReferences+0x106
[17:02:32.937] [info] #2 at pc 0x7FF6D89C6580 bedrock_server_mod.exe -> <lambda_061d95c38a0fd35d3340ff4bfe293f51>::operator()+0x8E
[17:02:32.938] [info] #3 at pc 0x7FF6D9DDC400 bedrock_server_mod.exe -> Bedrock::PubSub::Detail::DispatchingPublisherBase<Bedrock::PubSub::ThreadModel::MultiThreaded,Bedrock::PubSub::Detail::SubscriptionBody >::dispatch<Actor &>+0x9F
[17:02:32.939] [info] #4 at pc 0x7FF6D9E2F730 bedrock_server_mod.exe -> ActorManager::removeActorEntityReferencesForDeletion+0x65
[17:02:32.940] [info] #5 at pc 0x7FF6D9E13780 bedrock_server_mod.exe -> AutonomousActorManager::_moveActiveAutonomousActorEntityToInactive+0x187
[17:02:32.941] [info] #6 at pc 0x7FF6D9E26A60 bedrock_server_mod.exe -> AutonomousActorManager::onChunkDiscarded+0xC0
[17:02:32.942] [info] #7 at pc 0x7FF6D9E55AC0 bedrock_server_mod.exe -> Level::onChunkDiscarded+0x3C
[17:02:32.944] [info] #8 at pc 0x7FF6DA2BC640 bedrock_server_mod.exe -> LevelChunkGarbageCollector::flush+0x113
[17:02:32.945] [info] #9 at pc 0x7FF6DA3CDE50 bedrock_server_mod.exe -> Dimension::tick+0x245
[17:02:32.946] [info] #10 at pc 0x7FF6D86918B0 bedrock_server_mod.exe -> TheEndDimension::tick+0xE
[17:02:32.949] [info] #11 at pc 0x7FF6D9E43A00 bedrock_server_mod.exe -> std::_Func_impl_no_alloc<<lambda_9acd89900764067ca94689c66611d53a>,bool,Dimension &>::_Do_call+0x14
[17:02:32.950] [info] #12 at pc 0x7FF6D9E1C680 bedrock_server_mod.exe -> DimensionManager::forEachDimension+0x5A
[17:02:32.951] [info] #13 at pc 0x7FF6D9E4FAB0 bedrock_server_mod.exe -> Level::forEachDimension+0x82
[17:02:32.951] [info] #14 at pc 0x7FF6D9E49770 bedrock_server_mod.exe -> Level::_subTick+0x253
[17:02:32.953] [info] #15 at pc 0x7FF6D9053C30 bedrock_server_mod.exe -> ServerLevel::_subTick+0x3A
[17:02:32.954] [info] #16 at pc 0x7FF6D9E5DA60 bedrock_server_mod.exe -> Level::tick+0x4A
[17:02:32.955] [info] #17 at pc 0x7FF6D9B6FC90 bedrock_server_mod.exe -> GameSession::tick+0x4D
[17:02:32.957] [info] #18 at pc 0x7FF6D9B362C0 bedrock_server_mod.exe -> Minecraft::update+0x985
[17:02:32.958] [info] #19 at pc 0x7FF6D9053F20 bedrock_server_mod.exe -> ServerInstance::_update+0xF2
[17:02:32.959] [info] #20 at pc 0x7FF6D90450F0 bedrock_server_mod.exe -> <lambda_bad1ae3ebb6f5574a4da91bc00ae0aaf>::operator()+0x5A3
[17:02:32.960] [info] #21 at pc 0x7FF6D90117F0 bedrock_server_mod.exe -> std::thread::_Invoke<std::tuple<<lambda_bad1ae3ebb6f5574a4da91bc00ae0aaf> >,0>+0xE
[17:02:32.961] [info] #22 at pc 0x7FF98B971B70 ucrtbase.dll -> thread_start<unsigned int (__cdecl*)(void *),1>+0x42
[17:02:32.962] [info] #23 at pc 0x7FF98C687330 KERNEL32.DLL -> BaseThreadInitThunk+0x14
[17:02:32.965] [info] #24 at pc 0x7FF98DBA2690 ntdll.dll -> RtlUserThreadStart+0x21
[17:02:32.965] [info]
[17:02:32.985] [info] Modules:
[17:02:32.985] [info] 0x7FF98D780000 ADVAPI32.dll<6.2.19041.3693>
[17:02:32.986] [info] 0x7FF98B6E0000 CRYPT32.dll<6.2.19041.3636>
[17:02:32.987] [info] 0x7FF98AA30000 CRYPTBASE.DLL<6.2.19041.3636>
[17:02:32.987] [info] 0x7FF98A5F0000 DNSAPI.dll<6.2.19041.3636>
[17:02:32.988] [info] 0x7FF98CBF0000 GDI32.dll<6.2.19041.3636>
[17:02:32.989] [info] 0x7FF98C730000 IMM32.DLL<6.2.19041.3636>
[17:02:32.990] [info] 0x7FF98A5B0000 IPHLPAPI.DLL<6.2.19041.3636>
[17:02:32.991] [info] 0x7FF98C670000 KERNEL32.DLL<6.2.19041.3636>
[17:02:32.992] [info] 0x7FF98B3E0000 KERNELBASE.dll<6.2.19041.3636>
[17:02:32.993] [info] 0x7FF941CB0000 LeviLamina.dll<0.1.0.0>
[17:02:32.993] [info] 0x7FF96E0D0000 MSVCP140.dll<14.36.32532.0>
[17:02:32.996] [info] 0x7FF986C10000 NLAapi.dll<6.2.19041.3636>
[17:02:32.997] [info] 0x7FF98D830000 NSI.dll<6.2.19041.3636>
[17:02:32.998] [info] 0x7FF96DD20000 PreLoader.dll
[17:02:32.999] [info] 0x7FF98C800000 RPCRT4.dll<6.2.19041.3636>
[17:02:33.000] [info] 0x7FF98D490000 SHCORE.dll<6.2.19041.3636>
[17:02:33.000] [info] 0x7FF98CD40000 SHELL32.dll<6.2.19041.3636>
[17:02:33.001] [info] 0x7FF98C930000 USER32.dll<6.2.19041.3636>
[17:02:33.002] [info] 0x7FF96F420000 VCRUNTIME140.dll<14.36.32532.0>
[17:02:33.003] [info] 0x7FF982700000 VCRUNTIME140_1.dll<14.36.32532.0>
[17:02:33.004] [info] 0x7FF984390000 VERSION.dll<6.2.19041.3636>
[17:02:33.005] [info] 0x7FF984B30000 WINHTTP.dll<6.2.19041.3636>
[17:02:33.006] [info] 0x7FF98CB80000 WS2_32.dll<6.2.19041.3636>
[17:02:33.007] [info] 0x7FF98AAC0000 Wldp.dll<6.2.19041.3636>
[17:02:33.007] [info] 0x7FF98BA50000 bcrypt.dll<6.2.19041.3636>
[17:02:33.008] [info] 0x7FF98B230000 bcryptPrimitives.dll<6.2.19041.3636>
[17:02:33.009] [info] 0x7FF6D8410000 bedrock_server_mod.exe
[17:02:33.012] [info] 0x7FF98C020000 combase.dll<6.2.19041.3636>
[17:02:33.013] [info] 0x7FF9852C0000 dhcpcsvc.DLL<6.2.19041.3636>
[17:02:33.014] [info] 0x7FF9852E0000 dhcpcsvc6.DLL<6.2.19041.3636>
[17:02:33.015] [info] 0x7FF9846C0000 fwpuclnt.dll<6.2.19041.3636>
[17:02:33.016] [info] 0x7FF98B2C0000 gdi32full.dll<6.2.19041.3636>
[17:02:33.017] [info] 0x7FF988FF0000 kernel.appcore.dll<6.2.19041.3636>
[17:02:33.017] [info] 0x7FF98B840000 msvcp_win.dll<6.2.19041.3636>
[17:02:33.019] [info] 0x7FF98CAD0000 msvcrt.dll<7.0.19041.3636>
[17:02:33.019] [info] 0x7FF98A8A0000 mswsock.dll<6.2.19041.3636>
[17:02:33.020] [info] 0x7FF971B00000 napinsp.dll<6.2.19041.3636>
[17:02:33.021] [info] 0x7FF98DB50000 ntdll.dll<6.2.19041.3636>
[17:02:33.022] [info] 0x7FF98C460000 ole32.dll<6.2.19041.3636>
[17:02:33.023] [info] 0x7FF971AE0000 pnrpnsp.dll<6.2.19041.3636>
[17:02:33.024] [info] 0x7FF97A280000 rasadhlp.dll<6.2.19041.3636>
[17:02:33.025] [info] 0x7FF98DA10000 sechost.dll<6.2.19041.3636>
[17:02:33.025] [info] 0x7FF98DAB0000 shlwapi.dll<6.2.19041.3636>
[17:02:33.028] [info] 0x7FF98B950000 ucrtbase.dll<6.2.19041.3636>
[17:02:33.029] [info] 0x7FF98BA80000 win32u.dll<6.2.19041.3636>
[17:02:33.030] [info] 0x7FF9892D0000 windows.storage.dll<6.2.19041.3693>
[17:02:33.031] [info] 0x7FF971AC0000 winrnr.dll<6.2.19041.3636>
[17:02:33.032] [info] 0x7FF967110000 wshbth.dll<6.2.19041.3636>

Screenshots

No response

Platform

Windows 10

Version

0.1.0 last build from develop tree.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant