Question / Help Keyboard/Mouse + other USB devices die after a while of streaming

gameprogram

New Member
I noticed this problem several times, and in several different ways. I have noticed that when I was doing my test stream this past weekend my keyboard died out and even though it retained all of its power (it has rotating RGB lights) it did not function. The mouse cursor moved around but I was unable to click anything.

OBS still ran and was updating its UI and from my stream from last night the VOD proves that it continued to stream until the very end when I hard shut off my computer in order to reboot to have USB devices again.

Here is a bit about my gear. I have streamed with this gear on other OS's just fine, and I have used Linux with this gear for months and months without any problem or failure whatsoever, like at all.

I have a Magewell Pro Quad HDMI, which did not fail last night at all. Everything was recording as expected up to the very end. I use it to record the game and to record my facecam which is a GoPro.

All of my audio is routed through my Mackie ProFX 16v2 mixer, and I have that as my default sound output on my computer, so basically I use the mixer all the time to hear "desktop audio" through my studio monitors. When I stream I use earbuds connected to the control room output (monitor / headphone jack).

I was able to hear audio through all the way to the end, which makes sense because the mic (an XLR mic), and the game PC are routed into the mixer and what I hear comes from the mixer.

At a certain point of streaming last night, the audio of the stream cut out completely. There was no audio. When I was ready to end stream, I noticed my keyboard, mouse did not work AT ALL. Lights were on everything like they were over the weekend but keyboard didn't work, mouse didn't work. Other thing I noticed was that even though everything in the OBS UI was updating.. Stream was green, changing like normal, I saw everything in the actual screen was up to date, not lagging. My facecam, game everything was fine.. It was still streaming, BUT.. The VU meter for the Mackie audio input device had no input at all, there were no bars, it was all dark as if it was receiving nothing whatsoever from it.

Now the common thing here is that all these devices.. The Mackie Mixer, the keyboard, and the mouse are plugged into a USB 3.0 Hub that is connected to the computer.

Now like I said I have had this setup for almost a year and zero problems of any kind whatsoever using all manner of apps. The ONLY time I had this problem EVER is when streaming with OBS.

Even when recording videos to do the sound check over the weekend to make sure all sound levels were fine.. No problems.

I am using Fedora 29, output of uname -a is (relevant parts) "4.20.16-200.fc29.x86_64 #1 SMP Thu Mar 14 15:10:22 UTC 2019 x86_64 x86_64 x86_64"
I have an nVidia 1050 GTX graphics card, using nVidia drivers, using NVEnc hardware encoding on OBS, with avg of 9.8% CPU utilization while streaming.

Now Fedora 29 through updates now uses a 5.x kernel but I have reverted my kernel in Grub back to 4.20 because the Magewell drivers won't build on 5 which I believe is due to changes probably in the kernel and they haven't gotten around to it, and with no Magewell there's no stream and I don't see a need for kernel 5.

With the lack of support in Linux and I've already tried searching on Google, I am faced with the harsh reality of just going back to Windows 10 for streaming if I can't get this solved :(

Thanks for any help you can provide that might shed light on the issue. I will look for the log file and post it, but in the meanwhile has anyone ever experienced this or heard about something like this with USB devices and OBS? It definitely has something to do with OBS, whether that may just be the stress OBS is on the system, maybe a problem with NVEnc on linux or I dunno, but it does not ever happen when using any other application.
 

gameprogram

New Member
One more thing I want to say - I have also used the exact same USB 3.0 hub with everything connected to it with OBS on other OS' without problems.
 

Tuna

Member
You should always attach a log from a session that exhibits the problem. Else we are just guessing. Also I would check the kernel log (dmesg) in such cases. Perhaps connect remotely via ssh into the machine to check if it does not respond to keyboard/mouse. This really sounds like a system issue rather than OBS.
 

gameprogram

New Member
Yeah, usually back in the day I would have a static IP on my Linux desktop and oftentimes it was simply the UI that had crashed or something.. and I would simply kill the X server, or at worst I could usually reboot from the command line and not have to do an unsafe hard power off.

I will get the dmesg and OBS logs and post next time I stream / have this problem. Thanks :)

I am also working with Magewell on the driver not compiling on 5.0.4.

Could using an older kernel cause system instability? like once a system has been updated to use a newer one.
 

Tuna

Member
The kernel per se not really. It could be a USB instability with certain configurations perhaps. Or the Magewill driver does something weird causing the kernel to trip.. who knows. Really hard to tell - it may require some effort to figure out whats wrong. E.g. try with x264 instead of nvenc and see if the behavior changes.
 

gameprogram

New Member
Yeah. I will be able to do a lot more in depth testing this weekend, as it's unpredictable when it happens.

Ex: Over the weekend the keyboard and mouse clicking died after just a few minutes.. but then after that I streamed for 4 hours, and only the last 2 hours or so were without audio due to the issue.
 

gameprogram

New Member
Tuna,

Is there a way to get the dmesg for a particular time frame? It doesn't really have any timestamps.. Since I have to hard reboot the system.

So tonight while streaming the keyboard and mouse died out, but the sound was fine. I need to ssh in..

I am not sure that OBS logs would really help since it does not seem that OBS has any problems whatsoever. I mean it continues to stream until the very end. The only reason that I would need them is if the sound goes out, because there likely may be something, but also maybe not in there.

But OBS is causing the problem, because it doesn't happen when I'm running any other app.

Also I am thinking /var/log/messages may also help.
 

Tuna

Member
So "dmesg" resets upon boot. So you need to SSH in. But if you manage the relevant parts should be on the bottom on the log. And they are actually timestamped by seconds since boot.

/var/log/messages can also help. since we dont know if its the kernel having issues with something or it is something else..
 
Top