MantisBT - VCMI
View Issue Details
0001836VCMISound, music, videospublic2014-07-12 17:452023-04-11 09:22
0001836: [regression] Crash due to not found files
An error should be thrown, but the game shouldn't crash. Right now it's sigabrt:

Warning: IntObject re-activated with mismatching used and active
Failed to queue music. setName= musicURI=Music/Underground.mp3
Exception: Resource with name MUSIC/UNDERGROUND and type MUSIC wasn't found.
[New Thread 0x7fffe598d700 (LWP 28779)]
Player 0 starting turn
Striving to goal of type WIN
Considering goal WIN
Considering goal CONQUER
terminate called after throwing an instance of 'std::runtime_error'
  what(): Resource with name MUSIC/AITHEME2 and type MUSIC wasn't found.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffe6538700 (LWP 28623)]
0x00007ffff3dcef79 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: Нет такого файла или каталога.
(gdb) bt
#0 0x00007ffff3dcef79 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff3dd2388 in __GI_abort () at abort.c:89
0000002 0x00007ffff46da6b5 in __gnu_cxx::__verbose_terminate_handler() ()
   from /usr/lib/x86_64-linux-gnu/
0000003 0x00007ffff46d8836 in ?? () from /usr/lib/x86_64-linux-gnu/
0000004 0x00007ffff46d8863 in std::terminate() ()
   from /usr/lib/x86_64-linux-gnu/
0000005 0x00007ffff46d8aa2 in __cxa_throw ()
   from /usr/lib/x86_64-linux-gnu/
0000006 0x00007ffff7596033 in CFilesystemList::load (this=this@entry=0x983910,
    at /build/buildd/vcmi-0.96+git20140711.3673~ubuntu14.04.1/lib/filesystem/AdapterLoaders.cpp:67
0000007 0x0000000000634826 in MusicEntry::load (this=this@entry=0x7fffc8082a90,
    at /build/buildd/vcmi-0.96+git20140711.3673~ubuntu14.04.1/client/CMusicHandler.cpp:482
0000008 0x0000000000636105 in MusicEntry::play (this=0x7fffc8082a90)
    at /build/buildd/vcmi-0.96+git20140711.3673~ubuntu14.04.1/client/CMusicHandler.cpp:519
0000009 0x0000000000636df0 in CMusicHandler::musicFinishedCallback (this=0xd19c40)
    at /build/buildd/vcmi-0.96+git20140711.3673~ubuntu14.04.1/client/CMusicHandl---Type <return> to continue, or q <return> to quit---
0000010 0x00007ffff62799d4 in ?? ()
   from /usr/lib/x86_64-linux-gnu/
0000011 0x00007ffff66e89b9 in ?? () from /usr/lib/x86_64-linux-gnu/
0000012 0x00007ffff66f0ad8 in ?? () from /usr/lib/x86_64-linux-gnu/
0000013 0x00007ffff6730109 in ?? () from /usr/lib/x86_64-linux-gnu/
0000014 0x00007ffff697c182 in start_thread (arg=0x7fffe6538700)
    at pthread_create.c:312
0000015 0x00007ffff3e9330d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Issue History
2014-07-12 17:45KroArtemNew Issue
2014-07-13 08:49IvanAssigned To => Ivan
2014-07-13 08:49IvanStatusnew => assigned
2022-03-22 16:09PovelitelTag Attached: R1
2022-12-17 14:06IvanAssigned ToIvan =>
2023-04-11 09:22IvanNote Added: 0008503
2023-04-11 09:22IvanStatusassigned => resolved
2023-04-11 09:22IvanResolutionopen => fixed
2023-04-11 09:22IvanAssigned To => Ivan

2023-04-11 09:22   
Fixed in 1.2