Open ManuelBlanc opened 3 years ago
We're seeing all users of the mod crash when they exit the game, could you take a look?
12:18:29.689 <<Crash>>Unloading a locked resource #ID[45bab8bf], lock count: 7, was cleared: false. Make sure you destroy all resources pointing to the package before unloading it. At `D:\agent-work\data-dir\engine_release_season_3_engineer_2020_10_28\runtime\foundation\resource\resource_manager.cpp:928` in function `stingray::ResourceManager::ensure_unlocked` <</Crash>> <<Error Context>> resource #ID[45bab8bfaaede661] type #ID[eac0b497876adedf] <</Error Context>> <<Lua Stack>> [0] =[C]: in function release_resource_package [1] @scripts/managers/mod/mod_manager.lua:356: in function unload_mod [2] @scripts/managers/mod/mod_manager.lua:336: in function unload_all_mods [3] @scripts/boot.lua:998: in function shutdown [4] @scripts/boot.lua:642:in function <scripts/boot.lua:640> <</Lua Stack>> <<Lua Locals>> [1] self = table: 00000000128ACE70; index = 7; mod = table: 000000000100AF00; _ = 1; handle = [ResourcePackage] [2] self = table: 00000000128ACE70; i = 7; mod = table: 000000000100AF00 [3] self = table: 0000000000097E60; dt = nil <</Lua Locals>> <<Lua Self>> [1] _ui_time = 0.0007729321951046586; _num_mods = 16; _mod_load_index = 15; _settings = table: 00000000128ACF10; _reload_data = table: 00000000128ACF80; _my_peer_id = "11000010a7118f1"; _state = "done"; _mods = table: 00000000128ACEA0; _loading_resource_handle = [ResourcePackage]; _host_peer_id = "11000010a7118f1"; _print_cache = table: 00000000128ACED0; _network_callbacks = table: 00000000128AD030; _is_server = true; [2] _ui_time = 0.0007729321951046586; _num_mods = 16; _mod_load_index = 15; _settings = table: 00000000128ACF10; _reload_data = table: 00000000128ACF80; _my_peer_id = "11000010a7118f1"; _state = "done"; _mods = table: 00000000128ACEA0; _loading_resource_handle = [ResourcePackage]; _host_peer_id = "11000010a7118f1"; _print_cache = table: 00000000128ACED0; _network_callbacks = table: 00000000128AD030; _is_server = true; [3] startup_package_handles = table: 000000000009BA20; is_controlled_exit = true; startup_state = "ready"; startup_packages = table: 000000000009B980; flow_return_table = table: 0000000000097E90; _machine = table: 0000000010B489D0; quit_game = true; startup_timer = 15.946438844897784; has_booted = true; loading_context = table: 000000000032DF80; <</Lua Self>> [Log end]
No idea how to fix this, sorry. And considering fatshark's lack of interest to support modding, I'm not exactly interested in learning either. If someone wants to fix it and submit a PR, be my guest.
We're seeing all users of the mod crash when they exit the game, could you take a look?