devopvoid / webrtc-java

WebRTC for desktop platforms running Java
Apache License 2.0
248 stars 60 forks source link

0.6.0: Crash on OSX #56

Open parg opened 2 years ago

parg commented 2 years ago

I posted this to the end of https://github.com/devopvoid/webrtc-java/issues/49 but as it closed I thought I'd put it into a separate issue in case it was missed.

I grabbed 0.6.0 for testing. Seems to work OK on Windows but on OSX I get the attached crash occasionally - things run fine for a while, I can't figure out anything in particular that is happening when the crash occurs unfortunately :

Thread 147 Crashed:: Thread 0x0x7fbe927bc230 0 libsystem_kernel.dylib 0x00007fff205624ae os_fault_with_payload + 10 1 libsystem_kernel.dylib 0x00007fff2056302f __darwin_check_fd_set_overflow.cold.2 + 31 2 libsystem_kernel.dylib 0x00007fff2054c8e6 __darwin_check_fd_set_overflow + 68 3 libwebrtc-java3645846096757812889.dylib 0x000000003da691e4 0x3d774000 + 3101156 4 libwebrtc-java3645846096757812889.dylib 0x000000003da68ee5 0x3d774000 + 3100389 5 libwebrtc-java3645846096757812889.dylib 0x000000003da6ca04 0x3d774000 + 3115524 6 libwebrtc-java3645846096757812889.dylib 0x000000003da6b7dd 0x3d774000 + 3110877 7 libwebrtc-java3645846096757812889.dylib 0x000000003da6d6dc 0x3d774000 + 3118812 8 libsystem_pthread.dylib 0x00007fff205748fc _pthread_start + 224 9 libsystem_pthread.dylib 0x00007fff20570443 thread_start + 15

https://github.com/devopvoid/webrtc-java/files/7918438/osxcrash.txt

devopvoid commented 1 year ago

Sorry for the late response. Missed this issue totally.

Its hard to tell what exactly is causing the crashes. Does it crash when you are on the sending or receiving side? And what kind of data is exchanged?

parg commented 1 year ago

No problem! I'll give things a whirl with the 0.7 release sometime to see if it is still occurring.

parg commented 1 year ago

I'm getting

java.lang.UnsatisfiedLinkError: /private/var/folders/7s/plmc469s2nv1jntb167jw8440000gn/T/libwebrtc-java2433223031291511598.dylib: dlopen(/private/var/folders/7s/plmc469s2nv1jntb167jw8440000gn/T/libwebrtc-java2433223031291511598.dylib, 1): Symbol not found: ZNSt3113basic_filebufIcNS_11char_traitsIcEEE5closeEv Referenced from: /private/var/folders/7s/plmc469s2nv1jntb167jw8440000gn/T/libwebrtc-java2433223031291511598.dylib (which was built for Mac OS X 12.0) Expected in: /usr/lib/libc++.1.dylib

running on OSX 11.7.1

any ideas?

devopvoid commented 1 year ago

The release version was built with macOS Big Sur 11 via GitHub Actions.

Looks like a bad compilation. Is this happening with the version 0.7.0 from the maven central?

parg commented 1 year ago

I got it from https://repo.maven.apache.org/maven2/dev/onvoid/webrtc/webrtc-java/0.7.0/

parg commented 1 year ago

Perhaps because of

https://github.blog/changelog/2022-10-03-github-actions-jobs-running-on-macos-latest-are-now-running-on-macos-12/

parg commented 1 year ago

Was wondering if you had any update on this?

My previous post was regarding the change in default macos compilation target that might have caused the OSX binary to be built against macos12 rather than the Big Sur 11 that you expected.