Vmix crash

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium

keantoken
Member
Posts: 44
Joined: Fri Jul 08, 2011 2:54 am

Vmix crash

Postby keantoken » Wed Mar 02, 2016 2:00 pm

Hello everyone. Vmix doesn't succeed at changing my samplerate, and sometimes crashes.

Code: Select all

$ inxi -bxx
System:    Host: ronin Kernel: 4.4-3.dmz.2-liquorix-amd64 x86_64 (64 bit gcc: 5.3.1)
           Desktop: Xfce 4.12.3 (Gtk 2.24.28) dm: lightdm Distro: Debian GNU/Linux stretch/sid
Machine:   Mobo: ASUSTeK model: M5A99FX PRO R2.0 v: Rev 1.xx Bios: American Megatrends v: 2501 date: 04/07/2014
CPU:       Octa core AMD FX-8350 Eight-Core (-MCP-) speed/max: 1400/4000 MHz
Graphics:  Card: NVIDIA G73 [GeForce 7600 GS] bus-ID: 01:00.0 chip-ID: 10de:0392
           Display Server: X.Org 1.18.1 driver: nvidia Resolution: 1280x960@60.00hz
           GLX Renderer: GeForce 7600 GS/PCIe/SSE2 GLX Version: 2.1.2 NVIDIA 304.131 Direct Rendering: Yes
Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: b000 bus-ID: 09:00.0 chip-ID: 10ec:8168
Drives:    HDD Total Size: 498.2GB (31.0% used)
Info:      Processes: 346 Uptime: 1:11 Memory: 3397.0/7888.8MB
           Init: systemd v: 229 runlevel: 5 default: 2 Gcc sys: 5.3.1 alt: 4.4/4.6/4.8/4.9
           Client: Shell (bash 4.3.421 running in xfce4-terminal) inxi: 2.2.28


This crash was caused by WINE:

Code: Select all

[ 2156.885044] oss_hdaudio: Ignored request for odd number (3) of channels
[ 2156.885050] oss_hdaudio: Ignored request for odd number (5) of channels
[ 2286.274620] BUG: unable to handle kernel NULL pointer dereference at 0000000000000020
[ 2286.274624] IP: [<ffffffffa0137e92>] vmix_play_callback+0x52/0x320 [osscore]
[ 2286.274639] PGD 71952067 PUD 1cae92067 PMD 1db772067 PTE 0
[ 2286.274642] Oops: 0000 [#1] PREEMPT SMP
[ 2286.274644] Modules linked in: oss_cmi878x(O) oss_usb(O) oss_hdaudio(O) osscore(O) af_packet binfmt_misc eeepc_wmi asus_wmi sparse_keymap rfkill video joydev mxm_wmi kvm_amd kvm irqbypass hid_uclogic crct10dif_pclmul evdev crc32_pclmul aesni_intel aes_x86_64 lrw input_leds gf128mul glue_helper ablk_helper cryptd pcspkr serio_raw fam15h_power edac_mce_amd k10temp edac_core sg sp5100_tco shpchp i2c_piix4 8250_fintek tpm_infineon acpi_cpufreq wmi tpm_tis tpm button processor nvidia(PO) drm i2c_core it87 hwmon_vid loop parport_pc ppdev lp parport ipv6 autofs4 ext4 crc16 mbcache jbd2 btrfs xor raid6_pq sr_mod cdrom sd_mod hid_generic usbhid uas usb_storage ohci_pci crc32c_intel psmouse r8169 mii ahci xhci_pci sata_via libahci xhci_hcd libata ehci_pci ohci_hcd scsi_mod ehci_hcd rtc_cmos fjes
[ 2286.274681] CPU: 6 PID: 3021 Comm: ptCollage.exe Tainted: P           O    4.4-3.dmz.2-liquorix-amd64 #1 Debian 4.4-10
[ 2286.274682] Hardware name: To be filled by O.E.M. To be filled by O.E.M./M5A99FX PRO R2.0, BIOS 2501 04/07/2014
[ 2286.274684] task: ffff88023179db00 ti: ffff88007187c000 task.ti: ffff88007187c000
[ 2286.274685] RIP: 0010:[<ffffffffa0137e92>]  [<ffffffffa0137e92>] vmix_play_callback+0x52/0x320 [osscore]
[ 2286.274695] RSP: 0018:ffff88007187f610  EFLAGS: 00010206
[ 2286.274696] RAX: ffffc9000103c010 RBX: ffffc900010db010 RCX: 0000000000010000
[ 2286.274696] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 2286.274697] RBP: 0000000000000008 R08: 0000000000008000 R09: ffffc90001040010
[ 2286.274698] R10: ffffc90001040010 R11: 0000000000000002 R12: ffffc90001040010
[ 2286.274699] R13: ffffc90001040010 R14: ffffc9000103c010 R15: 0000000000000000
[ 2286.274700] FS:  000000003fff8000(006b) GS:ffff88023ed80000(0063) knlGS:00000000f7716700
[ 2286.274701] CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
[ 2286.274702] CR2: 0000000000000020 CR3: 000000007194a000 CR4: 00000000000406e0
[ 2286.274703] Stack:
[ 2286.274703]  ffffc90001243078 ffff88007187f640 0000000000000287 ffff880200000141
[ 2286.274705]  000406e080050033 ffff880280050031 ffff00000120027f 0000000000000002
[ 2286.274707]  0000000000000002 0002ffff00001fa0 0000000000000000 0000000000000000
[ 2286.274709] Call Trace:
[ 2286.274714]  [<ffffffff812a6e03>] ? delay_tsc+0x23/0x80
[ 2286.274721]  [<ffffffffa00ff1ce>] ? oss_spin_lock_irqsave+0xe/0x20 [osscore]
[ 2286.274724]  [<ffffffffa0083158>] ? corb_read+0x118/0x1f0 [oss_hdaudio]
[ 2286.274731]  [<ffffffffa00ff1ce>] ? oss_spin_lock_irqsave+0xe/0x20 [osscore]
[ 2286.274734]  [<ffffffffa0081d75>] ? do_corb_write+0x75/0x90 [oss_hdaudio]
[ 2286.274736]  [<ffffffffa0076e92>] ? hdaudio_codec_setup_endpoint+0x172/0x470 [oss_hdaudio]
[ 2286.274743]  [<ffffffffa00ff1ce>] ? oss_spin_lock_irqsave+0xe/0x20 [osscore]
[ 2286.274745]  [<ffffffffa0083158>] ? corb_read+0x118/0x1f0 [oss_hdaudio]
[ 2286.274752]  [<ffffffffa00ff1ce>] ? oss_spin_lock_irqsave+0xe/0x20 [osscore]
[ 2286.274755]  [<ffffffffa007708b>] ? hdaudio_codec_setup_endpoint+0x36b/0x470 [oss_hdaudio]
[ 2286.274757]  [<ffffffff8114ffc4>] ? zone_statistics+0x74/0x80
[ 2286.274760]  [<ffffffff810a9446>] ? cpuacct_charge+0x16/0x50
[ 2286.274767]  [<ffffffffa00ff1ce>] ? oss_spin_lock_irqsave+0xe/0x20 [osscore]
[ 2286.274774]  [<ffffffffa0111cf9>] ? oss_audio_ioctl+0xff9/0x1d90 [osscore]
[ 2286.274781]  [<ffffffffa00ff1ce>] ? oss_spin_lock_irqsave+0xe/0x20 [osscore]
[ 2286.274784]  [<ffffffffa0082149>] ? hda_audio_set_channels+0x239/0x240 [oss_hdaudio]
[ 2286.274792]  [<ffffffffa011129b>] ? oss_audio_ioctl+0x59b/0x1d90 [osscore]
[ 2286.274800]  [<ffffffffa0139d95>] ? vmix_setup_play_engine+0x3c5/0x4fc [osscore]
[ 2286.274810]  [<ffffffffa0133ac4>] ? start_engines.part.0+0x1a4/0x2e0 [osscore]
[ 2286.274819]  [<ffffffffa0133d78>] ? vmix_open+0x178/0x210 [osscore]
[ 2286.274827]  [<ffffffffa010fe06>] ? oss_audio_open_engine+0x186/0x760 [osscore]
[ 2286.274834]  [<ffffffffa01106a7>] ? oss_audio_open_devfile+0x2c7/0x3f0 [osscore]
[ 2286.274837]  [<ffffffff8119fb29>] ? lookup_fast+0x39/0x2f0
[ 2286.274844]  [<ffffffffa01010c1>] ? oss_cdev_open+0xc1/0x190 [osscore]
[ 2286.274846]  [<ffffffff81198bb6>] ? chrdev_open+0x96/0x1b0
[ 2286.274848]  [<ffffffff81198b20>] ? cdev_put+0x20/0x20
[ 2286.274850]  [<ffffffff81192feb>] ? do_dentry_open+0x1eb/0x2e0
[ 2286.274851]  [<ffffffff811a1507>] ? path_openat+0x527/0x1210
[ 2286.274853]  [<ffffffff810c6ffe>] ? current_fs_time+0x1e/0x30
[ 2286.274854]  [<ffffffff811a3689>] ? do_filp_open+0x79/0xd0
[ 2286.274856]  [<ffffffff81194574>] ? new_sync_read+0x84/0xb0
[ 2286.274858]  [<ffffffff811af1c6>] ? __alloc_fd+0xb6/0x180
[ 2286.274860]  [<ffffffff81194001>] ? do_sys_open+0x141/0x2b0
[ 2286.274862]  [<ffffffff810762ec>] ? __set_current_blocked+0x2c/0x50
[ 2286.274864]  [<ffffffff81003ca7>] ? do_fast_syscall_32+0x97/0x160
[ 2286.274866]  [<ffffffff8156724e>] ? entry_SYSCALL_compat+0x3e/0x43
[ 2286.274867] Code: 8b b8 e8 02 00 00 4d 85 e4 0f 84 5a 02 00 00 49 83 7c 24 20 00 0f 84 4e 02 00 00 41 8b 8c 24 84 02 00 00 85 c9 0f 84 50 02 00 00 <49> 8b 7f 20 48 8d 74 24 10 48 c7 44 24 10 00 00 00 00 e8 17 73
[ 2286.274887] RIP  [<ffffffffa0137e92>] vmix_play_callback+0x52/0x320 [osscore]
[ 2286.274897]  RSP <ffff88007187f610>
[ 2286.274897] CR2: 0000000000000020
[ 2286.274899] ---[ end trace 0253dbd26dad7ca0 ]---

keantoken
Member
Posts: 44
Joined: Fri Jul 08, 2011 2:54 am

Re: Vmix crash

Postby keantoken » Wed Mar 02, 2016 9:31 pm

Sooooo, the soundon.user I had was this:

Code: Select all

sudo vmixctl attach /dev/oss/oss_hdaudio0/spdout0
sudo vmixctl rate /dev/oss/oss_hdaudio0/pcm0 192000
sudo vmixctl rate /dev/oss/oss_cmi878x0/pcm0 192000
sudo vmixctl rate /dev/dsp 192000
exit 0


I did that because I was trying to output to SPDIF specifically, but for some reason that never worked and SPDIF has never played anything other than a copy of pcm0. Hardware?

Well, I looked at dmesg and Vmix was complaining that device 5 was not compatible. I did 'ossinfo -v9' and device 5 was spdout0. So I disabled that line. Furthermore, I removed the CMI878x0 card in the process of troubleshooting this one. So I disabled that line. My new soundon.user is this:

Code: Select all

# Incompatible: sudo vmixctl attach /dev/oss/oss_hdaudio0/spdout0
sudo vmixctl rate /dev/oss/oss_hdaudio0/pcm0 192000
# sudo vmixctl rate /dev/oss/oss_cmi878x0/pcm0 192000
# vmixctl rate /dev/oss/usb16d0071a-1/pcm0 192000
sudo vmixctl rate /dev/dsp 192000
exit 0


I restarted the computer and it works! I don't know what changed to make the old file crash Vmix, someone should probably look into that.


Return to “Linux”

Who is online

Users browsing this forum: No registered users and 4 guests