BlackMagicPlayer 1.8.1 core dump

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

tmdag1

  • Posts: 42
  • Joined: Sun Jun 30, 2019 11:41 pm
  • Real Name: Albert Szostkiewicz

BlackMagicPlayer 1.8.1 core dump

PostMon Sep 28, 2020 2:31 am

I've updated to latest blackMagic RAW player and unfortunately it crashes on start:

free(): invalid pointer
Abort (core dumped)


Code: Select all
Starting program: /usr/lib64/blackmagic/BlackmagicRAWPlayer/BlackmagicRAWPlayer
Missing separate debuginfos, use: dnf debuginfo-install blackmagic-raw-1.8.1-a8.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe785d700 (LWP 140487)]
[New Thread 0x7fffe63f8700 (LWP 140488)]
[New Thread 0x7fffdccc9700 (LWP 140489)]
[New Thread 0x7fffd7fff700 (LWP 140490)]
[New Thread 0x7fffd77fe700 (LWP 140491)]
[New Thread 0x7fffd6ffd700 (LWP 140492)]
[New Thread 0x7fffd533b700 (LWP 140493)]
free(): invalid pointer

Thread 1 "BlackmagicRAWPl" received signal SIGABRT, Aborted.
0x00007ffff5555625 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff5555625 in raise () from /lib64/libc.so.6
#1  0x00007ffff553e8d9 in abort () from /lib64/libc.so.6
#2  0x00007ffff55994bf in __libc_message () from /lib64/libc.so.6
#3  0x00007ffff55a0aac in malloc_printerr () from /lib64/libc.so.6
#4  0x00007ffff55a24ac in _int_free () from /lib64/libc.so.6
#5  0x00007ffff7b05c99 in std::runtime_error::~runtime_error() () from /usr/lib64/blackmagic/BlackmagicRAWPlayer/lib/libc++abi.so.1
#6  0x00007ffff7b026bc in __cxa_decrement_exception_refcount () from /usr/lib64/blackmagic/BlackmagicRAWPlayer/lib/libc++abi.so.1
#7  0x00007fffdc09b023 in clover::platform::platform() [clone .cold] () from /lib64/libMesaOpenCL.so.1
#8  0x00007fffdc09d0ea in _GLOBAL__sub_I_platform.cpp () from /lib64/libMesaOpenCL.so.1
#9  0x00007ffff7fe1f2a in call_init.part () from /lib64/ld-linux-x86-64.so.2
#10 0x00007ffff7fe2031 in _dl_init () from /lib64/ld-linux-x86-64.so.2
#11 0x00007ffff5655555 in _dl_catch_exception () from /lib64/libc.so.6
#12 0x00007ffff7fe60e0 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#13 0x00007ffff56554f8 in _dl_catch_exception () from /lib64/libc.so.6
#14 0x00007ffff7fe58fe in _dl_open () from /lib64/ld-linux-x86-64.so.2
#15 0x00007ffff799939c in dlopen_doit () from /lib64/libdl.so.2
#16 0x00007ffff56554f8 in _dl_catch_exception () from /lib64/libc.so.6
#17 0x00007ffff56555c3 in _dl_catch_error () from /lib64/libc.so.6
#18 0x00007ffff7999b09 in _dlerror_run () from /lib64/libdl.so.2
#19 0x00007ffff799942a in dlopen@@GLIBC_2.2.5 () from /lib64/libdl.so.2
#20 0x00007fffd4653617 in ?? () from /usr/local/cuda/lib64/libOpenCL.so.1
#21 0x00007fffd46558cc in ?? () from /usr/local/cuda/lib64/libOpenCL.so.1
#22 0x00007ffff56f397f in __pthread_once_slow () from /lib64/libpthread.so.0
#23 0x00007fffd4653c71 in clGetPlatformIDs () from /usr/local/cuda/lib64/libOpenCL.so.1
#24 0x00007fffd48625a5 in ?? () from /usr/lib64/blackmagic/BlackmagicRAWPlayer/BlackmagicRawAPI/libDecoderOpenCL.so
#25 0x00007fffd48624bc in ?? () from /usr/lib64/blackmagic/BlackmagicRAWPlayer/BlackmagicRawAPI/libDecoderOpenCL.so
#26 0x00007fffd4867e13 in ?? () from /usr/lib64/blackmagic/BlackmagicRAWPlayer/BlackmagicRawAPI/libDecoderOpenCL.so
#27 0x00007fffdd9049d4 in ?? () from /usr/lib64/blackmagic/BlackmagicRAWPlayer/BlackmagicRawAPI/libBlackmagicRawAPI.so
#28 0x00007fffdd8fea0c in ?? () from /usr/lib64/blackmagic/BlackmagicRAWPlayer/BlackmagicRawAPI/libBlackmagicRawAPI.so
#29 0x000000000042fcfd in ?? ()
#30 0x000000000042fbeb in ?? ()
#31 0x000000000041b64c in ?? ()
#32 0x00007ffff55401a3 in __libc_start_main () from /lib64/libc.so.6
#33 0x000000000041b1a5 in ?? ()
#34 0x00007fffffffd828 in ?? ()
#35 0x00007ffff7ffdfa0 in ?? () from /lib64/ld-linux-x86-64.so.2
#36 0x0000000000000001 in ?? ()
#37 0x00007fffffffdc64 in ?? ()
#38 0x0000000000000000 in ?? ()


Please let me know if there is any specific info i could provide, that would be helpful for you


ps. rpm installer also have some issues:
Code: Select all
  Running scriptlet: blackmagic-raw-1.8.1-a8.x86_64                                                                                                                                                                                       1/2
/var/tmp/rpm-tmp.YH5Mwc: line 5: fg: no job control
warning: %post(blackmagic-raw-1.8.1-a8.x86_64) scriptlet failed, exit status 1

Error in POSTIN scriptlet in rpm package blackmagic-raw
Offline

tmdag1

  • Posts: 42
  • Joined: Sun Jun 30, 2019 11:41 pm
  • Real Name: Albert Szostkiewicz

Re: BlackMagicPlayer 1.8.1 core dump

PostSat Oct 17, 2020 8:54 pm

One person from BM dev team, was kind enough to help me out a little (at least finding a potential issue) and a workaround. Thought that I would share in case if someone else might be having similar issue.

It appears that the Mesa platform is targeting OpenCL, however we would expect this would be CUDA since you are targeting NVIDIA card. Could it be possible that the card isn't being recognised and it is trying to use CPU instead? One thing you could try is rename libDecoderOpenCL.so to libDecoderOpenCL.so.bak (remember to rename back). The Blackmagic RAW API will select another decoder if OpenCL library is not found.

So in my case, renaming file (depending on the installation)
/opt/resolve/BlackmagicRAWPlayer/BlackmagicRawAPI/libDecoderOpenCL.so
or
/usr/lib64/blackmagic/BlackmagicRAWPlayer/BlackmagicRawAPI/libDecoderOpenCL.so
helped (at least it's not crashing).

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 11 guests