-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pthread interference #24
Comments
I suppose you use .NET bindings. Probably you have altered some configuration of a thread created by .NET runtime with pthread, or ran .NET code on a thread created by pthread. It should be generally avoided to mix .NET threads and other thread implementations. |
yes on .net bindings - I haven't changed any other code - just having these ffmpeg dlls loaded in the same app domain causes it - it's like webrtc is detecting pthread support in the app domain and is creating pthreads instead of .net threads. Swapping out the ffmpeg dlls for ones built without pthread support resolves it. I can't see any pattern in the debug it seems to just hang at random places. Also sometimes it works ok and sets up the connection successfully. |
The application is responsible to create a thread for .NET code, and the example code always uses |
yeah i know that, it's what i'm doing and it's been working fine for well over a year, it's just the new build of ffmpeg is built with pthread support which somehow is interfering with / breaking pixiv webrtc connection setup. this is the debug output - after this the whole application hangs - but the hang happens in random places and occasionally it works ok which is making debugging it very difficult. rtc:onsuccessanswer |
Well, then I cannot help much here because it certainly requires substantial amount of debugging. If you are willing to debug it, I suggest to log platform-native thread ID to know where threads came from. |
I've got a weird issue where if I use an ffmpeg build in my app with pthread support it causes the pixiv webrtc library to hang just after onsuccessanswer.
Removing pthread support from the ffmpeg build resolves the issue - do you have any idea what could be causing this?
The text was updated successfully, but these errors were encountered: