sayterdarkwynd / FrackinUniverse

1.4.4 SB release version of FrackinUniverse
Other
515 stars 358 forks source link

Fatal Error: Access Violation / Worldserverthread Exception #126

Closed Aussiemon closed 8 years ago

Aussiemon commented 8 years ago

Several players on the Steam bug discussion page (EDIT: Referring to comments on this page, but I suppose these could be different causes for the same exception after looking at them again) have noted an Access Violation exception that crashes the game at seemingly-random times.

I managed to find a Proto planet where this can be reproduced, and on the third attempt the game warped my character back to the ship instead of crashing. This produced an error log referencing an FU dungeon:

[00:25:44.658] [Error] WorldServerThread exception caught: (WorldStorageException) WorldStorage generation failed while generating from queue
[0] 7ff625c81ee3 Star::captureStack
[1] 7ff625c80c6e Star::StarException::StarException
[2] 7ff625c80d58 Star::StarException::StarException
[3] 7ff6261b9a30 Star::WorldStorageException::WorldStorageException
[4] 7ff6265806cf `Star::WorldStorage::generateQueue'::`1'::catch$281
[5] 7ffc84f3c220 _C_specific_handler
[6] 7ffc84f329b2 _FrameUnwindFilter
[7] 7ffc97e890e3 RtlCaptureContext
[8] 7ff6261bcc13 Star::WorldStorage::generateQueue
[9] 7ff6261ae3aa Star::WorldServer::update
[10] 7ff6261b5762 Star::WorldServerThread::update
[11] 7ff6261b51c8 Star::WorldServerThread::run
[12] 7ff625c7ea0e Star::ThreadImpl::runThread
[13] 7ffc976d8102 BaseThreadInitThunk
[14] 7ffc97e3c5b4 RtlUserThreadStart
Caused by: (DungeonException) Error loading dungeon '/dungeons/microdungeons/biome/encounters/avali/fuavali.dungeon': (BadVariantType)
[0] 7ff625c81ee3 Star::captureStack
[1] 7ff625c80c6e Star::StarException::StarException
[2] 7ff625d6098a Star::DungeonException::format<Star::String,Star::OutputProxy>
[3] 7ff62650b93e `Star::DungeonDefinitions::readDefinition'::`1'::catch$73
[4] 7ffc84f3c220 _C_specific_handler
[5] 7ffc84f329b2 _FrameUnwindFilter
[6] 7ffc97e890e3 RtlCaptureContext
[7] 7ff625d799a4 Star::DungeonDefinitions::readDefinition
[8] 7ff625d68e2a <lambda_475708549715a500cc90681f474fe533>::operator()
[9] 7ff625d60e11 Star::LruCacheBase<Star::OrderedMapWrapper<std::unordered_map,Star::String,std::shared_ptr<Star::DungeonDefinition>,Star::BlockAllocator<std::pair<Star::String const ,std::shared_ptr<Star::DungeonDefinition> >,1024>,Star::hash<Star::String,void>,std::equal_to<Star::String> > >::get<<lambda_475708549715a500cc90681f474fe533> >
[10] 7ff625d74c24 Star::DungeonDefinitions::get
[11] 7ff625d66609 Star::DungeonGenerator::DungeonGenerator
[12] 7ff625e03ddd Star::MicroDungeonFactory::generate
[13] 7ff62614bac0 Star::WorldGenerator::generateMicroDungeons
[14] 7ff6261bd08c Star::WorldStorage::generateSectorToLevel
[15] 7ff6261bcfd1 Star::WorldStorage::generateSectorToLevel
[16] 7ff6261bcfd1 Star::WorldStorage::generateSectorToLevel
[17] 7ff6261bcc13 Star::WorldStorage::generateQueue
[18] 7ff6261ae3aa Star::WorldServer::update
[19] 7ff6261b5762 Star::WorldServerThread::update
[20] 7ff6261b51c8 Star::WorldServerThread::run
[21] 7ff625c7ea0e Star::ThreadImpl::runThread
[22] 7ffc976d8102 BaseThreadInitThunk
[23] 7ffc97e3c5b4 RtlUserThreadStart
[00:25:44.729] [Error] UniverseServer: World CelestialWorld:273620233:-12203659:-65030173:5:1 has stopped due to an error
[00:25:44.729] [Info] UniverseServer: World CelestialWorld:273620233:-12203659:-65030173:5:1 shutdown, kicking 1 players to their own ships
[00:25:44.830] [Info] UniverseServer: Loading client ship world ClientShipWorld:495d8882865866e3d247428d541fc40d
[00:25:45.469] [Info] UniverseServer: Warping player 1 to ClientShipWorld:495d8882865866e3d247428d541fc40d
[00:25:45.488] [Info] Client received world stop packet, leaving: Removed
[00:25:58.437] [Info] Root: Writing runtime configuration to '..\storage\starbound.config'

And the regular log, if it helps:

[21:51:58.379] [Error] Fatal Error: Access violation detected at 00007FF7BA5EBBA4 (Read of address 00000144000000B5)
[0] 7ff7ba471ee3 Star::captureStack
[1] 7ff7ba47212c Star::fatalError
[2] 7ff7ba5ebba4 Star::Variant<Star::Empty,double,bool,__int64,std::shared_ptr<Star::String const >,std::shared_ptr<Star::List<Star::Json,std::allocator<Star::Json> > const >,std::shared_ptr<Star::MapMixin<std::unordered_map<Star::String,Star::Json,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,Star::Json> > > > const > >::doCall<<lambda_04036a2765334bac10112accb4908164>,Star::Empty,double,bool,__int64,std::shared_ptr<Star::String const >,std::shared_ptr<Star::List<Star::Json,std::allocator<Star::Json> > const >,std::shared_ptr<Star::MapMixin<std::unordered_map<Star::String,Star::Json,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,Star::Json> > > > const > >
[3] 7ff7ba5734ed Star::Dungeon::TMXObject::getTileObjectInfo
[4] 7ff7ba56f72b Star::Dungeon::TMXObject::TMXObject
[5] 7ff7ba56de9a std::_Ref_count_obj<Star::Dungeon::TMXObject>::_Ref_count_obj<Star::Dungeon::TMXObject><Star::Maybe<Star::MapMixin<std::unordered_map<Star::String,Star::Json,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,Star::Json> > > > > & __ptr64,Star::Json const & __ptr64,std::shared_ptr<Star::Dungeon::TMXTilesets> & __ptr64>
[6] 7ff7ba56e9eb std::make_shared<Star::Dungeon::TMXObject,Star::Maybe<Star::MapMixin<std::unordered_map<Star::String,Star::Json,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,Star::Json> > > > > & __ptr64,Star::Json const & __ptr64,std::shared_ptr<Star::Dungeon::TMXTilesets> & __ptr64>
[7] 7ff7ba5700b5 Star::Dungeon::TMXObjectGroup::TMXObjectGroup
[8] 7ff7ba56ead2 std::make_shared<Star::Dungeon::TMXObjectGroup,Star::Json const & __ptr64,std::shared_ptr<Star::Dungeon::TMXTilesets> & __ptr64>
[9] 7ff7ba56f496 Star::Dungeon::TMXMap::TMXMap
[10] 7ff7ba56e950 std::make_shared<Star::Dungeon::TMXMap const ,Star::Json>
[11] 7ff7ba5738e3 Star::Dungeon::TMXPartReader::readAsset
[12] 7ff7ba5575cf Star::Dungeon::Part::Part
[13] 7ff7ba5523cd std::make_shared<Star::Dungeon::Part const ,Star::DungeonDefinition * __ptr64 & __ptr64,Star::Json const & __ptr64,std::shared_ptr<Star::Dungeon::TMXPartReader> >
[14] 7ff7ba5681b0 Star::Dungeon::parsePart
[15] 7ff7ba555ca2 Star::DungeonDefinition::DungeonDefinition
[16] 7ff7ba552b83 std::make_shared<Star::DungeonDefinition,Star::MapMixin<std::unordered_map<Star::String,Star::Json,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,Star::Json> > > >,Star::String>
[17] 7ff7ba5699a4 Star::DungeonDefinitions::readDefinition
[18] 7ff7ba558e2a <lambda_475708549715a500cc90681f474fe533>::operator()
[19] 7ff7ba550e11 Star::LruCacheBase<Star::OrderedMapWrapper<std::unordered_map,Star::String,std::shared_ptr<Star::DungeonDefinition>,Star::BlockAllocator<std::pair<Star::String const ,std::shared_ptr<Star::DungeonDefinition> >,1024>,Star::hash<Star::String,void>,std::equal_to<Star::String> > >::get<<lambda_475708549715a500cc90681f474fe533> >
[20] 7ff7ba564c24 Star::DungeonDefinitions::get
[21] 7ff7ba556609 Star::DungeonGenerator::DungeonGenerator
[22] 7ff7ba5f3ddd Star::MicroDungeonFactory::generate
[23] 7ff7ba93bac0 Star::WorldGenerator::generateMicroDungeons
[24] 7ff7ba9ad08c Star::WorldStorage::generateSectorToLevel
[25] 7ff7ba9acfd1 Star::WorldStorage::generateSectorToLevel
[26] 7ff7ba9acfd1 Star::WorldStorage::generateSectorToLevel
[27] 7ff7ba9acc13 Star::WorldStorage::generateQueue
[28] 7ff7ba99e3aa Star::WorldServer::update
[29] 7ff7ba9a5762 Star::WorldServerThread::update
[30] 7ff7ba9a51c8 Star::WorldServerThread::run
[31] 7ff7ba46ea0e Star::ThreadImpl::runThread
[32] 7ffc976d8102 BaseThreadInitThunk
[33] 7ffc97e3c5b4 RtlUserThreadStart
[21:52:02.777] [Info] Root: Writing runtime configuration to '..\storage\starbound.config'

I've backed up my universe, so I can also provide that if you'd like to try and recreate the crash.

renbear67 commented 8 years ago

Specifically, @sayterdarkwynd , the error has something to do with /dungeons/microdungeons/biome/encounters/avali/fuavali.dungeon

sayterdarkwynd commented 8 years ago

thanks. i think i fixed it now