MantisBT - VCMI
View Issue Details
0002176VCMIGUI - Adventure Mappublic2015-04-08 20:312015-12-25 09:39
ruppertus 
SXX 
normalcrashalways
closedno change required 
LinuxArch Linux 3.19.3-1-ck/x64
0.98 
0.98f 
0002176: When starting a new map, game crashes.
22:12:50.968302 INFO global [7fe5bf830700] - Opening VCAI
22:12:50.968873 ERROR global [7fe5bf830700] - Error: libfuzzylite.so: cannot open shared object file: No such file or directory
22:12:50.969057 ERROR global [7fe5bf830700] - Cannot open dynamic library ("/usr/lib/vcmi/AI/libVCAI.so"). Throwing...
1. Compile the package, prepare required files, run client
2. Start a new random map (single player)

I tried with all modes enabled and without any (I removed Mods directory) for testing purpose
Build using PKG file:
https://aur.archlinux.org/packages/vc/vcmi/PKGBUILD [^]
https://github.com/vcmi/vcmi/archive/0.98.tar.gz [^]
md5sums=('6a69e52a3380358220eba67332b097c6')
No tags attached.
txt VCMI_Client_log.txt (84,039) 2015-04-08 20:31
https://bugs.vcmi.eu/file_download.php?file_id=2222&type=bug
? md5sums (99,486) 2015-04-08 20:33
https://bugs.vcmi.eu/file_download.php?file_id=2223&type=bug
Issue History
2015-04-08 20:31ruppertusNew Issue
2015-04-08 20:31ruppertusFile Added: VCMI_Client_log.txt
2015-04-08 20:32ruppertusNote Added: 0005694
2015-04-08 20:33ruppertusFile Added: md5sums
2015-04-09 10:08Raziel23Note Added: 0005695
2015-04-09 22:36ruppertusNote Added: 0005699
2015-12-25 09:39SXXNote Added: 0006228
2015-12-25 09:39SXXStatusnew => closed
2015-12-25 09:39SXXAssigned To => SXX
2015-12-25 09:39SXXResolutionopen => no change required
2015-12-25 09:39SXXFixed in Version => 0.98f

Notes
(0005694)
ruppertus   
2015-04-08 20:32   
Severity should be 'block' because we are not able to launch the game at all.
(0005695)
Raziel23   
2015-04-09 10:08   
As the ArchLinux vcmi package maintainer I will describe the problem and I hope resolve it. After releasing version 0.97 building fuzzylite as shared library was disabled in this commit:
https://github.com/vcmi/vcmi/commit/941dcee0f5153c7e78b353d2b55fe812a04622ef [^]

In vcmi-0.98 there isn't shared library /usr/lib/libfuzzylite.so anymore. The problem is that you build vcmi-0.98 in an environment where was installed vcmi-0.97 (which contain shared library /usr/lib/libfuzzylite.so), thus this library was used by the linker. I always build packages in a clean chroot environment in order to avoid such unwanted linking:
https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_Clean_Chroot [^]

I wasn't aware the problem. I can't force users to build in a clean chroot, and I can't build and push vcmi to the official repository, because I'm not a Trusted User. So please remove older vcmi package before building new one. After installing vcmi-0.98 you should have /usr/lib/libfuzzylite-static.a library instead of /usr/lib/libfuzzylite.so, and vcmi should works fine (for me it works).
(0005699)
ruppertus   
2015-04-09 22:36   
Confirmed, after removing vcmi-0.98 and rebuilding it again the problem no longer exist.
(0006228)
SXX   
2015-12-25 09:39   
Not a VCMI bug.