Blackmagic Driver crashes on Ubuntu 20.04 Real-time kernel

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

SBodenstedt

  • Posts: 2
  • Joined: Thu Feb 25, 2021 1:10 pm
  • Real Name: Sebastian Bodenstedt

Blackmagic Driver crashes on Ubuntu 20.04 Real-time kernel

PostThu Mar 04, 2021 2:11 pm

Dear all,

I am trying to capture camera frames using a Decklink Intensity Pro 4k on a computer running the Ubuntu 20.04 Real-time (low latency) kernel (5.4.47-rt28). Here I am using the current blackmagic driver (downloaded and installed today).

Everytime I run my standard sanity check with MediaExpress, the driver crashes though, with the following error log in dmesg:
Code: Select all
[  139.712109] BUG: kernel NULL pointer dereference, address: 0000000000000018
[  139.712111] #PF: supervisor write access in kernel mode
[  139.712112] #PF: error_code(0x0002) - not-present page
[  139.712113] PGD 0 P4D 0 
[  139.712113] Oops: 0002 [#1] PREEMPT_RT SMP PTI
[  139.712114] CPU: 0 PID: 565 Comm: blackmagic Tainted: P           OE     5.4.47-rt28 #1
[  139.712115] Hardware name: Hyrican Informationssysteme AG Z270 PC MATE/Z270 PC MATE (MS-7A72), BIOS 1.03 03/24/2017
[  139.712116] RIP: 0010:rt_spin_lock+0x2b/0x50
[  139.712118] Code: 1f 44 00 00 55 48 89 e5 41 54 49 89 fc 53 65 48 8b 1c 25 40 6c 01 00 83 83 cc 07 00 00 01 e8 0c 4a 63 ff e8 37 d0 5d ff 31 c0 <f0> 49 0f b1 5c 24 18 48 85 c0 75 05 5b 41 5c 5d c3 4c 89 e7 e8 8c
[  139.712119] RSP: 0018:ffffb121411f3c80 EFLAGS: 00010246
[  139.712120] RAX: 0000000000000000 RBX: ffff89803c3aa7c0 RCX: 00000000ffffffff
[  139.712121] RDX: 0000000000000001 RSI: ffffb121411f3cc8 RDI: 0000000000000000
[  139.712121] RBP: ffffb121411f3c90 R08: 0000000000000000 R09: 0000000000000000
[  139.712121] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[  139.712122] R13: 0000000000000003 R14: 0000000000000000 R15: 0000000000000000
[  139.712122] FS:  0000000000000000(0000) GS:ffff89804ea00000(0000) knlGS:0000000000000000
[  139.712122] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  139.712123] CR2: 0000000000000018 CR3: 000000041380e001 CR4: 00000000003606f0
[  139.712123] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  139.712124] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  139.712124] Call Trace:
[  139.712127]  bm_spin_lock_irqsave+0x15/0x20 [blackmagic_io]
[  139.712144]  bmio_notify_add+0x6c/0xa4 [blackmagic_io]
[  139.712153]  bmio_client_notify+0x18/0x40 [blackmagic_io]
[  139.712161]  _ZN20UserClientClassLinux19notifyClientOfEventEjjjjj+0x71/0x9a [blackmagic_io]
[  139.712174]  ? _ZN19AudioInputInterface22handlePrimaryInterruptEy+0x36/0x36 [blackmagic_io]
[  139.712187]  _ZN19VideoInputInterface19videoFrameCompletedEP10VideoFrameh+0xc2/0x13c [blackmagic_io]
[  139.712203]  _ZN19VideoInputInterface25videoFrameCompletedStaticEP8OSObjectP10VideoFrameh+0xc/0xe [blackmagic_io]
[  139.712215]  _ZN15VideoInputFrame21videoFrameDMACallbackEP8OSObjectP10DMAElementj+0x164/0x1a6 [blackmagic_io]
[  139.712231]  _ZN15VideoInputFrame27videoFrameDMACallbackStaticEP8OSObjectP10DMAElementj+0x11/0x13 [blackmagic_io]
[  139.712243]  _ZN10DMAElement14signalCallbackEj+0x53/0x88 [blackmagic_io]
[  139.712260]  ? _ZN8DMAQueue14dequeueElementEv+0x4f/0x58 [blackmagic_io]
[  139.712277]  _ZN9DMAEngine24handleSecondaryInterruptEv+0x40/0x48 [blackmagic_io]
[  139.712293]  _ZN18BlackmagicIODriver24handleSecondaryInterruptEP22IOInterruptEventSourcei+0x6f/0x682 [blackmagic_io]
[  139.712307]  _ZN33BlackmagicIOSupervisorEventSource12checkForWorkEv+0x39/0x48 [blackmagic_io]
[  139.712322]  _ZN10IOWorkLoop15runEventSourcesEv+0x53/0xa4 [blackmagic_io]
[  139.712333]  _ZN10IOWorkLoop10threadMainEv+0x21/0x5a [blackmagic_io]
[  139.712343]  ? __kthread_parkme+0x4c/0x70
[  139.712345]  _ZN10IOWorkLoop22threadMainContinuationEPS_+0xd/0x12 [blackmagic_io]
[  139.712355]  kthread+0x104/0x140
[  139.712355]  ? _ZN10IOWorkLoop9runActionEPFiP8OSObjectPvS2_S2_S2_ES1_S2_S2_S2_S2_+0x66/0x66 [blackmagic_io]
[  139.712365]  ? kthread_park+0x90/0x90
[  139.712366]  ret_from_fork+0x35/0x40
[  139.712368] Modules linked in: xt_multiport iptable_filter bpfilter ip6table_filter ip6_tables overlay binfmt_misc intel_rapl_msr nls_iso8859_1 joydev intel_rapl_common x86_pkg_temp_thermal input_leds intel_powerclamp coretemp kvm_intel kvm intel_cstate intel_rapl_per
f intel_wmi_thunderbolt mxm_wmi serio_raw blackmagic_io(POE) snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_seq_midi snd_hda_intel snd_seq_midi_event snd_intel_nhlt snd_rawmidi mac_hid snd_hda_codec snd_hda_core snd_hwdep snd_seq snd_pcm
acpi_pad snd_seq_device snd_timer snd soundcore mei_me mei nvidia_uvm(OE) sch_fq_codel parport_pc ppdev lp parport sunrpc ip_tables x_tables autofs4 hid_logitech_hidpp hid_logitech_dj hid_generic usbhid hid nvidia_drm(POE) nvidia_modeset(POE) nvidia(POE) crct10dif_pclmu
l crc32_pclmul ghash_clmulni_intel aesni_intel crypto_simd drm_kms_helper cryptd syscopyarea glue_helper sysfillrect nvme sysimgblt fb_sys_fops psmouse nvme_core i2c_i801 e1000e ahci drm libahci
[  139.712389]  wmi video
[  139.712390] CR2: 0000000000000018
[  139.712392] ---[ end trace 0000000000000002 ]---
[  139.712392] RIP: 0010:rt_spin_lock+0x2b/0x50
[  139.712393] Code: 1f 44 00 00 55 48 89 e5 41 54 49 89 fc 53 65 48 8b 1c 25 40 6c 01 00 83 83 cc 07 00 00 01 e8 0c 4a 63 ff e8 37 d0 5d ff 31 c0 <f0> 49 0f b1 5c 24 18 48 85 c0 75 05 5b 41 5c 5d c3 4c 89 e7 e8 8c
[  139.712394] RSP: 0018:ffffb121411f3c80 EFLAGS: 00010246
[  139.712394] RAX: 0000000000000000 RBX: ffff89803c3aa7c0 RCX: 00000000ffffffff
[  139.712394] RDX: 0000000000000001 RSI: ffffb121411f3cc8 RDI: 0000000000000000
[  139.712395] RBP: ffffb121411f3c90 R08: 0000000000000000 R09: 0000000000000000
[  139.712395] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[  139.712395] R13: 0000000000000003 R14: 0000000000000000 R15: 0000000000000000
[  139.712396] FS:  0000000000000000(0000) GS:ffff89804ea00000(0000) knlGS:0000000000000000
[  139.712396] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  139.712396] CR2: 0000000000000018 CR3: 000000041380e001 CR4: 00000000003606f0
[  139.712397] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  139.712397] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


Interestingly, the 7 or so year old Intensity Pro (duo I think?) that I had previously in the machine worked with the same configuration. Does anyone have any experiences getting this to work or can help me in any way? The card itself works, I have tested it in a machine with a vanila kernel. Sadly I need the RT kernel for a robotic application.

Thank you for your help!

Best,

Sebastian

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 42 guests