Topic: Mac Crash - EXC_BAD_INSTRUCTION

SVP is crashing on start of playback on my machine. Seems like libmediainfo.0.dylib was compiled with newer instructions than what my machine support. Replacing this dylib with the one from the MediaInfo.app fixes SVP and enables playback. Since libmediainfo doesn't seem vital to the core function or performance of SVP, could you compile it for older machines, please?

Machine: MacPro 2008 + Nvidia 1080ti

Process:               SVPManager [49660]
Path:                  /Applications/Media/SVP 4 Mac.app/Contents/MacOS/SVPManager
Identifier:            com.svp-team.svpmanager
Version:               4.3.0.173 (173)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           SVPManager [49660]
User ID:               504

Date/Time:             2019-11-09 02:38:36.232 +0700
OS Version:            Mac OS X 10.13.6 (17G8030)
Report Version:        12
Anonymous UUID:        47A15178-D57C-C271-15DC-00DCF99A4FC7


Time Awake Since Boot: 1500000 seconds

System Integrity Protection: disabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes:       0x0000000000000001, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Illegal instruction: 4
Termination Reason:    Namespace SIGNAL, Code 0x4
Terminating Process:   exc handler [0]

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libmediainfo.0.dylib              0x00000001016128cb MediaInfoLib::File_Avc::slice_header() + 3569
1   libmediainfo.0.dylib              0x0000000101610be2 MediaInfoLib::File_Avc::slice_layer_without_partitioning_non_IDR() + 84
2   libmediainfo.0.dylib              0x000000010160ff7a MediaInfoLib::File_Avc::Data_Parse() + 776
3   libmediainfo.0.dylib              0x000000010131a203 MediaInfoLib::File__Analyze::Data_Manage() + 191
4   libmediainfo.0.dylib              0x0000000101318b83 MediaInfoLib::File__Analyze::Buffer_Parse() + 375
5   libmediainfo.0.dylib              0x00000001013177bb MediaInfoLib::File__Analyze::Open_Buffer_Continue_Loop() + 259
6   libmediainfo.0.dylib              0x0000000101316a8e MediaInfoLib::File__Analyze::Open_Buffer_Continue(unsigned char const*, unsigned long) + 1518
7   libmediainfo.0.dylib              0x000000010131871e MediaInfoLib::File__Analyze::Open_Buffer_Continue(MediaInfoLib::File__Analyze*, unsigned char const*, unsigned long, bool, double) + 1724
8   libmediainfo.0.dylib              0x000000010152b893 0x101312000 + 2201747
9   libmediainfo.0.dylib              0x00000001014c05c7 MediaInfoLib::File_Mk::Segment_Cluster_BlockGroup_Block_Lace() + 525
10  libmediainfo.0.dylib              0x00000001014c0ea4 MediaInfoLib::File_Mk::Segment_Cluster_BlockGroup_Block() + 1568
11  libmediainfo.0.dylib              0x00000001014b7574 MediaInfoLib::File_Mk::Data_Parse() + 7012
12  libmediainfo.0.dylib              0x000000010131a203 MediaInfoLib::File__Analyze::Data_Manage() + 191
13  libmediainfo.0.dylib              0x0000000101318b83 MediaInfoLib::File__Analyze::Buffer_Parse() + 375
14  libmediainfo.0.dylib              0x00000001013177bb MediaInfoLib::File__Analyze::Open_Buffer_Continue_Loop() + 259
15  libmediainfo.0.dylib              0x0000000101316a8e MediaInfoLib::File__Analyze::Open_Buffer_Continue(unsigned char const*, unsigned long) + 1518
16  libmediainfo.0.dylib              0x000000010135bcf7 MediaInfoLib::File__MultipleParsing::Read_Buffer_Continue() + 95
17  libmediainfo.0.dylib              0x0000000101317735 MediaInfoLib::File__Analyze::Open_Buffer_Continue_Loop() + 125
18  libmediainfo.0.dylib              0x0000000101316a8e MediaInfoLib::File__Analyze::Open_Buffer_Continue(unsigned char const*, unsigned long) + 1518
19  libmediainfo.0.dylib              0x000000010139cb60 MediaInfoLib::MediaInfo_Internal::Open_Buffer_Continue(unsigned char const*, unsigned long) + 204
20  libmediainfo.0.dylib              0x000000010139cf17 MediaInfoLib::MediaInfo_Internal::Open(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned long long) + 91
21  libmediainfo.0.dylib              0x0000000101653d95 MediaInfo_Open_Buffer + 163
22  com.svp-team.svpmanager           0x000000010004e5df MediaInfo::initFrom(QString const&, void**, unsigned long, QMap<QString, QVariant> const&) + 719
23  com.svp-team.svpmanager           0x0000000100107527 MpvVideoPlayer::tryInit() + 6087
24  com.svp-team.svpmanager           0x000000010010d901 QtSharedPointer::ExternalRefCountWithCustomDeleter<VideoPlayer, QtSharedPointer::NormalDeleter>::deleter(QtSharedPointer::ExternalRefCountData*) + 177
25  org.qt-project.QtCore             0x0000000102797afb QMetaObject::activate(QObject*, int, int, void**) + 2219
26  org.qt-project.QtCore             0x000000010279f9f2 QTimer::timerEvent(QTimerEvent*) + 98
27  org.qt-project.QtCore             0x00000001027902b6 QObject::event(QEvent*) + 102
28  org.qt-project.QtWidgets          0x0000000101a751bd QApplicationPrivate::notify_helper(QObject*, QEvent*) + 269
29  org.qt-project.QtWidgets          0x0000000101a765c2 QApplication::notify(QObject*, QEvent*) + 594
30  org.qt-project.QtCore             0x0000000102766c64 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
31  org.qt-project.QtCore             0x00000001027c00cf QTimerInfoList::activateTimers() + 991
32  libqcocoa.dylib                   0x0000000107bae872 0x107b80000 + 190578
33  com.apple.CoreFoundation          0x00007fff3a791981 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
34  com.apple.CoreFoundation          0x00007fff3a849cac __CFRunLoopDoSource0 + 108
35  com.apple.CoreFoundation          0x00007fff3a774930 __CFRunLoopDoSources0 + 208
36  com.apple.CoreFoundation          0x00007fff3a773dad __CFRunLoopRun + 1293
37  com.apple.CoreFoundation          0x00007fff3a773607 CFRunLoopRunSpecific + 487
38  com.apple.HIToolbox               0x00007fff39a53d96 RunCurrentEventLoopInMode + 286
39  com.apple.HIToolbox               0x00007fff39a53b06 ReceiveNextEventCommon + 613
40  com.apple.HIToolbox               0x00007fff39a53884 _BlockUntilNextEventMatchingListInModeWithFilter + 64
41  com.apple.AppKit                  0x00007fff37d03a73 _DPSNextEvent + 2085
42  com.apple.AppKit                  0x00007fff38499e34 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
43  com.apple.AppKit                  0x00007fff37cf8885 -[NSApplication run] + 764
44  libqcocoa.dylib                   0x0000000107baf79b 0x107b80000 + 194459
45  org.qt-project.QtCore             0x00000001027622cf QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
46  org.qt-project.QtCore             0x0000000102767272 QCoreApplication::exec() + 130
47  ???                               0x00000001010c9f21 0 + 4312571681
48  libdyld.dylib                     0x00007fff62740015 start + 1

Re: Mac Crash - EXC_BAD_INSTRUCTION

not sure there're more Core 2 users out here hmm
at least you know how to replace the lib smile

Re: Mac Crash - EXC_BAD_INSTRUCTION

It's a perfectly fine machine as long as everything is done on the GPU. I would totally understand if a future version of SVP requires newer instructions and I can't update anymore. I just find it weird that an ancillary lib requires newer instructions when the core app doesn't, especially when the lib is not performance sensitive.