MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001326VCMIGUI - PreGamepublic2013-06-29 19:592014-02-09 12:02
Reporteraxeller 
Assigned ToIvan 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSUbuntuOS Version13.04
Product Version0.93 
Target VersionFixed in Version 
Summary0001326: Crash when trying to load savegame or start new game
DescriptionCan`t play vcmi at all. I can`t load any of my savegames, can`t start new game on any map.

Log:

axeller@masakari:~$ vcmiclient
Starting...
Creating console 0
     Initialization: 0
     Data loading: 70
    Mod handler: 0
     Mod filesystems: 40
Basic initialization: 110
Initialized logging system based on settings successfully.
Loading settings: 110
VCMI 0.93 (client)
Note: SDL suggests to use 32 bpp instead of24 bpp
New screen flags: 0
    Initializing screen: 70
    Initializing video: 0
    Initializing minors: 0
[smk @ 0x2c23cc0] max_analyze_duration reached
    Initializing sound: 10
Initializing screen and sound handling: 10
        Bonus type handler: 10
        General text handler: 0
        Hero handler: 0
        Artifact handler: 0
        Creature handler: 0
        Town handler: 0
        Object handler: 0
        Def information handler: 40
        Spell handler: 0
    Initializing handlers: 50
    Initializing content handler: 30 ms
    Parsing original game data: 20 ms
        VCMI essential files
        In The Wake of Gods
    Parsing mod data: 10 ms
    Loading original game data: 160 ms
        VCMI essential files
        In The Wake of Gods
    Loading mod data: 20ms
    Resolving identifiers: 10 ms
    All game content loaded in 250 ms
Initializing VCMI_Lib: 300
Loading and transforming heroes' flags: 190
Screen handler: 200
    Main graphics: 230
Initializing game graphics: 0
Message handler: 0
[smk @ 0x2c1bb60] max_analyze_duration reached
Initialization of VCMI (together): 1800
Setting up thread calling server: 0
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'
  what(): bind: Address already in use
Aborted
Error: server failed to close correctly or crashed!
Check /home/axeller/.vcmi/server_log.txt for more info
Closed connection.
Ending current game!
Removed GUI.
Deleted mapHandler and gameState.
Deleted playerInts.
Client stopped.
Killing console...
Killing console... done!
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >'
  what(): boost::lock_error
Aborted
Steps To Reproduce1. Load any of my savegames
TagsNo tags attached.
Attached Fileszip file icon vcmi.zip [^] (487,895 bytes) 2013-06-29 19:59

- Relationships

-  Notes
(0003730)
Ivan (developer)
2013-06-29 21:40
edited on: 2013-06-29 21:41

VCMI needs access to network (port 3030 to be precise).

Possible reasons are:
1) For some reason you have hanging vcmiserver in background. To fix - run "killall -9 vcmiserver" in terminal. Sometimes may happen after crashbug.

2) Some other app is using this port. You need to reassign either VCMI or *that* application to another port.

To do this - open file ~/.vcmi/config/settings.json and add "port" line into "server" section (may not be present).

Example:
{
    "server" : {
        "port" : "3033"
    },
    <any other sections>
}

(0003731)
axeller (reporter)
2013-06-30 05:09

axeller@masakari:~$ vcmiclient
Starting...
Creating console 0
     Initialization: 0
     Data loading: 70
    Mod handler: 0
     Mod filesystems: 40
Basic initialization: 110
Data in settings is invalid!
At /server/port
     Error: Type mismatch!

Initialized logging system based on settings successfully.
Loading settings: 110
VCMI 0.93 (client)
Note: SDL suggests to use 32 bpp instead of24 bpp
New screen flags: 0
    Initializing screen: 60
    Initializing video: 0
    Initializing minors: 0
[smk @ 0x29fe6c0] max_analyze_duration reached
    Initializing sound: 10
Initializing screen and sound handling: 10
        Bonus type handler: 0
        General text handler: 10
        Hero handler: 0
        Artifact handler: 0
        Creature handler: 0
        Town handler: 0
        Object handler: 10
        Def information handler: 30
        Spell handler: 0
    Initializing handlers: 50
    Initializing content handler: 40 ms
    Parsing original game data: 40 ms
        VCMI essential files
        In The Wake of Gods
    Parsing mod data: 0 ms
    Loading original game data: 150 ms
        VCMI essential files
        In The Wake of Gods
    Loading mod data: 10ms
    Resolving identifiers: 20 ms
    All game content loaded in 260 ms
Initializing VCMI_Lib: 310
Loading and transforming heroes' flags: 170
Screen handler: 170
    Main graphics: 230
Initializing game graphics: 0
Message handler: 0
Initialization of VCMI (together): 760
vcmiclient: /build/buildd/vcmi-0.93~quantal1/lib/JsonNode.cpp:222: const double& JsonNode::Float() const: Assertion `type == DATA_FLOAT' failed.
Aborted

settings.json:

{
    "server" : {
        "port" : "3033"
    }
}

VCMI_Client_log.txt:
08:05:03 WARN global [0x1c894e0] - Data in settings is invalid!
08:05:03 WARN global [0x1c894e0] - At /server/port
     Error: Type mismatch!

VCMI_Server_log.txt and server_log.txt didn`t change since crash submission time.
(0003732)
Ivan (developer)
2013-06-30 08:57

Sorry, no quotes around 3033:
{
     "server" : {
         "port" : 3033
     }
 }
(0003733)
axeller (reporter)
2013-06-30 11:17

axeller@masakari:~$ vcmiclient
Starting...
Creating console 0
     Initialization: 0
     Data loading: 70
    Mod handler: 0
     Mod filesystems: 40
Basic initialization: 110
Initialized logging system based on settings successfully.
Loading settings: 110
VCMI 0.93 (client)
Note: SDL suggests to use 32 bpp instead of24 bpp
New screen flags: 0
    Initializing screen: 60
    Initializing video: 0
    Initializing minors: 0
    Initializing sound: 10
Initializing screen and sound handling: 10
        Bonus type handler: 0
        General text handler: 10
        Hero handler: 0
[smk @ 0x16b9360] max_analyze_duration reached
        Artifact handler: 0
        Creature handler: 10
        Town handler: 0
        Object handler: 0
        Def information handler: 40
        Spell handler: 0
    Initializing handlers: 60
    Initializing content handler: 50 ms
    Parsing original game data: 20 ms
        VCMI essential files
        In The Wake of Gods
    Parsing mod data: 10 ms
    Loading original game data: 140 ms
        VCMI essential files
        In The Wake of Gods
    Loading mod data: 20ms
    Resolving identifiers: 20 ms
    All game content loaded in 270 ms
Initializing VCMI_Lib: 330
Loading and transforming heroes' flags: 340
Screen handler: 340
    Main graphics: 380
Initializing game graphics: 0
Message handler: 0
Initialization of VCMI (together): 890
Setting up thread calling server: 0
Waiting for server: 20
Establishing connection...
Found endpoints:
    0: 127.0.0.1:3035
Trying connection to 127.0.0.1:3035 (0)
Established connection with VCMI 0.93 (server)
    Connecting to the server: 0
    Will send info to server...
Server opened map properly.
    Sending/Getting info to/from the server: 20
    Creating gamestate: 0
    Using random seed: 1372590549
Open map file: MAPS/ARROGANCE
Map loaded!
    Our checksum for the map: 1596882971
Seed after init is 1378003103 (before was 1372590549)
Initializing GameState (together): 70
Creating mapHandler: 0
    Unpacking and handling defs: 140
    Preparing FoW, roads, rivers,borders: 40
    Making object rects: 0
Initializing mapHandler (together): 180
Opening VCAI
Loaded VCAI
Player 1 will be lead by VCAI
Opening VCAI
Loaded VCAI
Player 5 will be lead by VCAI
Opening VCAI
Loaded VCAI
Player 6 will be lead by VCAI
Opening StupidAI
Loaded Stupid AI 0.1
Saving lib part of game...
    Saving header
    Saving options
    Saving handlers
    Saving gamestate
System message: Game has been saved as Saves/Newgame_Autosave_1
Connection has been requested to be closed.
Sent closing signal to the server
Connection handler thread joined
Our socket has been closed.
Closed connection.
Ending current game!
Removed GUI.
Warning: an orphaned child!
Warning: an orphaned child!
Warning: an orphaned child!
Warning: an orphaned child!
Warning: an orphaned child!
Warning: an orphaned child!
Warning: an orphaned child!
Warning: an orphaned child!
Warning: an orphaned child!
Deleted mapHandler and gameState.
Deleted playerInts.
Client stopped.
Server closed correctly
Loading procedure started!
Setting up thread calling server: 0
Loading lib part of game...
    Reading header
    Reading options
    Reading handlers
Desync found! Position: 339013
    Reading gamestate
Cannot load game SAVES/AUTOSAVE_2. Error: basic_ios::clear
terminate called after throwing an instance of 'std::ios_base::failure'
  what(): basic_ios::clear
Aborted


Here i started vcmi with 3035 port, started new game, exit to main menu, then i try to load my savegame. But it`s everything ok when i tried to play new game, then save game, quit vcmi and load that savegame.

VCMI_Client_log.txt have only this error/warning:
14:09:23 ERROR global [0x7fe3fc0a49b0] - Cannot load game SAVES/AUTOSAVE_2.
Error: basic_ios::clear

Other logfiles haven`t any warnings.
(0003740)
Ivan (developer)
2013-07-08 16:24

I thought that this bug is fixed for 0.93. Will recheck.
(0004439)
Ivan (developer)
2014-02-09 12:02

Already fixed for quite a while

- Issue History
Date Modified Username Field Change
2013-06-29 19:59 axeller New Issue
2013-06-29 19:59 axeller Status new => assigned
2013-06-29 19:59 axeller Assigned To => Tow
2013-06-29 19:59 axeller File Added: vcmi.zip
2013-06-29 21:40 Ivan Note Added: 0003730
2013-06-29 21:41 Ivan Note Edited: 0003730 View Revisions
2013-06-30 05:09 axeller Note Added: 0003731
2013-06-30 08:57 Ivan Note Added: 0003732
2013-06-30 11:17 axeller Note Added: 0003733
2013-07-08 16:24 Ivan Note Added: 0003740
2013-07-08 16:24 Ivan Assigned To Tow => Ivan
2014-02-09 12:02 Ivan Note Added: 0004439
2014-02-09 12:02 Ivan Status assigned => closed
2014-02-09 12:02 Ivan Resolution open => fixed

Site | Forums | Wiki | Slack | GitHub


Copyright © 2000 - 2024 MantisBT Team
Hosting provided by DigitalOcean