MantisBT - VCMI
View Issue Details
0001247VCMIOtherpublic2013-03-23 15:182014-05-30 17:43
lyssdod 
Ivan 
highcrashalways
closedfixed 
LinuxGentoo
 
 
0001247: Resource with name CONFIG/SETTINGS and type TEXT wasn't found
I compiled vcmi from trunk and for some reason it does not start. GDB says that fail occurs in SettingsStorage::init(), so I looked at the code and found opening of 'config/resolutions.json' file which is present! For some reason vcmi doesn't want to use it.

/usr/local/share/vcmi/config $ ls -l | grep resolutions.json
-rw-r--r-- 1 lyssdod lyssdod 23858 Mar 22 18:40 resolutions.json


~/.vcmi/config $ ls -l | grep resolutions.json
-rw-r--r-- 1 lyssdod lyssdod 23858 Mar 22 18:40 resolutions.json
output from gdb:

Creating console and logfile: 0
         Initialization: 0
         Data loading: 80
        Mod handler: 0
         Mod filesystems: 0
Basic initialization: 80
Error: campaign movies was not found!
Error: campaign music was not found!
terminate called after throwing an instance of 'std::runtime_error'
  what(): Resource with name CONFIG/SETTINGS and type TEXT wasn't found.

Program received signal SIGABRT, Aborted.
0x00007ffff3d18fa5 in raise () from /lib64/libc.so.6
(gdb) bt
#0 0x00007ffff3d18fa5 in raise () from /lib64/libc.so.6
#1 0x00007ffff3d1a41b in abort () from /lib64/libc.so.6
0000002 0x00007ffff464cc9d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libstdc++.so.6
0000003 0x00007ffff464ae56 in ?? () from /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libstdc++.so.6
0000004 0x00007ffff464ae83 in std::terminate() () from /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libstdc++.so.6
0000005 0x00007ffff464af7e in __cxa_throw () from /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libstdc++.so.6
0000006 0x00007ffff7898c80 in CResourceLoader::load(ResourceID const&) const () from /usr/local/lib64/vcmi/libvcmi.so
0000007 0x00007ffff7898d43 in CResourceLoader::loadData(ResourceID const&) const () from /usr/local/lib64/vcmi/libvcmi.so
0000008 0x00007ffff7a55acc in JsonNode::JsonNode(ResourceID&&) () from /usr/local/lib64/vcmi/libvcmi.so
0000009 0x00007ffff7902208 in SettingsStorage::init() () from /usr/local/lib64/vcmi/libvcmi.so
0000010 0x00000000004f0444 in main ()




Strace output:

         Initialization: 0
open("/home/lyssdod/.vcmi/config/filesystem.json", O_RDONLY) = 4
open("/usr/local/share/vcmi/Data/H3ab_bmp.lod", O_RDONLY) = 4
open("/usr/local/share/vcmi/Data/H3bitmap.lod", O_RDONLY) = 4
open("/usr/local/share/vcmi/Data/H3ab_ahd.snd", O_RDONLY) = 4
open("/usr/local/share/vcmi/Data/Heroes3.snd", O_RDONLY) = 4
open("/usr/local/share/vcmi/Data/H3ab_spr.lod", O_RDONLY) = 4
open("/usr/local/share/vcmi/Data/H3sprite.lod", O_RDONLY) = 4
open("/usr/local/share/vcmi/Data/H3ab_ahd.vid", O_RDONLY) = 4
open("/usr/local/share/vcmi/Data/VIDEO.VID", O_RDONLY) = 4
         Data loading: 840
open("/home/lyssdod/.vcmi/config/defaultMods.json", O_RDONLY) = 4
        Mod handler: 0
open("/home/lyssdod/.vcmi/config/modSettings.json", O_RDONLY) = 4
open("/usr/local/share/vcmi/Mods/vcmi/mod.json", O_RDONLY) = 4
open("/usr/local/share/vcmi/Mods/WoG/mod.json", O_RDONLY) = 4
open("/home/lyssdod/.vcmi/config/modSettings.json", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
open("/usr/local/share/vcmi/Mods/WoG/mod.json", O_RDONLY) = 4
open("/usr/local/share/vcmi/Mods/vcmi/mod.json", O_RDONLY) = 4
         Mod filesystems: 0
Basic initialization: 840
Error: campaign movies was not found!
Error: campaign music was not found!
terminate called after throwing an instance of 'std::runtime_error'
  what(): Resource with name CONFIG/SETTINGS and type TEXT wasn't found.
No tags attached.
txt VCMI_Client_log.txt (3,837) 2013-03-23 15:18
https://bugs.vcmi.eu/file_download.php?file_id=1241&type=bug
Issue History
2013-03-23 15:18lyssdodNew Issue
2013-03-23 15:18lyssdodFile Added: VCMI_Client_log.txt
2013-03-23 16:09IvanNote Added: 0003466
2013-03-23 16:09IvanAssigned To => Ivan
2013-03-23 16:09IvanStatusnew => assigned
2013-03-23 16:21IvanNote Added: 0003467
2013-03-23 16:21IvanStatusassigned => resolved
2013-03-23 16:21IvanResolutionopen => fixed
2013-03-23 16:30lyssdodNote Added: 0003468
2014-05-30 17:43beegeeStatusresolved => closed

Notes
(0003466)
Ivan   
2013-03-23 16:09   
Oups. It seems that I broke new installs. Workaround is to manually create file ~/.vcmi/config/settings.json
Empty file should work.

Will fix this soon.
(0003467)
Ivan   
2013-03-23 16:21   
fixed, revision 3297
(0003468)
lyssdod   
2013-03-23 16:30   
it worked, thanks!