Anonymous | Login | 2024-11-21 19:18 UTC |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0001247 | VCMI | Other | public | 2013-03-23 15:18 | 2014-05-30 17:43 | ||||
Reporter | lyssdod | ||||||||
Assigned To | Ivan | ||||||||
Priority | high | Severity | crash | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | Linux | OS | Gentoo | OS Version | |||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0001247: Resource with name CONFIG/SETTINGS and type TEXT wasn't found | ||||||||
Description | 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 | ||||||||
Additional Information | 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. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | VCMI_Client_log.txt [^] (3,837 bytes) 2013-03-23 15:18 [Show Content] | ||||||||
Notes | |
(0003466) Ivan (developer) 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 (developer) 2013-03-23 16:21 |
fixed, revision 3297 |
(0003468) lyssdod (reporter) 2013-03-23 16:30 |
it worked, thanks! |
Issue History | |||
Date Modified | Username | Field | Change |
2013-03-23 15:18 | lyssdod | New Issue | |
2013-03-23 15:18 | lyssdod | File Added: VCMI_Client_log.txt | |
2013-03-23 16:09 | Ivan | Note Added: 0003466 | |
2013-03-23 16:09 | Ivan | Assigned To | => Ivan |
2013-03-23 16:09 | Ivan | Status | new => assigned |
2013-03-23 16:21 | Ivan | Note Added: 0003467 | |
2013-03-23 16:21 | Ivan | Status | assigned => resolved |
2013-03-23 16:21 | Ivan | Resolution | open => fixed |
2013-03-23 16:30 | lyssdod | Note Added: 0003468 | |
2014-05-30 17:43 | beegee | Status | resolved => closed |
Copyright © 2000 - 2024 MantisBT Team |