js-labs / WalkieTalkie

Android WiFi Walkie Talkie (js-collider framework demo)
Other
137 stars 58 forks source link

Crash when seeing other peer. #36

Open vi opened 2 years ago

vi commented 2 years ago

02-07 20:11:53.993 20584 20616 E AndroidRuntime: FATAL EXCEPTION: CTP-22900
02-07 20:11:53.993 20584 20616 E AndroidRuntime: Process: org.jsl.wfwt, PID: 20584
02-07 20:11:53.993 20584 20616 E AndroidRuntime: java.lang.ExceptionInInitializerError
02-07 20:11:53.993 20584 20616 E AndroidRuntime:        at org.jsl.wfwt.AudioPlayer.create(AudioPlayer.java:279)
02-07 20:11:53.993 20584 20616 E AndroidRuntime:        at org.jsl.wfwt.HandshakeClientSession.onDataReceived(HandshakeClientSession.java:138)
02-07 20:11:53.993 20584 20616 E AndroidRuntime:        at org.jsl.collider.SocketChannelReader.handleData(SocketChannelReader.java:285)
02-07 20:11:53.993 20584 20616 E AndroidRuntime:        at org.jsl.collider.SocketChannelReader.runInThreadPool(SocketChannelReader.java:507)
02-07 20:11:53.993 20584 20616 E AndroidRuntime:        at org.jsl.collider.ThreadPool$Worker.run(ThreadPool.java:95)
02-07 20:11:53.993 20584 20616 E AndroidRuntime: Caused by: java.lang.RuntimeException: java.lang.IllegalAccessException: Class org.jsl.wfwt.AudioPlayer can not access a member of class org.jsl.wfwt.AudioPlayer$Impl with modifiers "private volatile"
02-07 20:11:53.993 20584 20616 E AndroidRuntime:        at java.util.concurrent.atomic.AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl.<init>(AtomicReferenceFieldUpdater.java:348)
02-07 20:11:53.993 20584 20616 E AndroidRuntime:        at java.util.concurrent.atomic.AtomicReferenceFieldUpdater.newUpdater(AtomicReferenceFieldUpdater.java:109)
02-07 20:11:53.993 20584 20616 E AndroidRuntime:        at org.jsl.wfwt.AudioPlayer.<clinit>(AudioPlayer.java:41)
02-07 20:11:53.993 20584 20616 E AndroidRuntime:        ... 5 more
02-07 20:11:53.993 20584 20616 E AndroidRuntime: Caused by: java.lang.IllegalAccessException: Class org.jsl.wfwt.AudioPlayer can not access a member of class org.jsl.wfwt.AudioPlayer$Impl with modifiers "private volatile"
02-07 20:11:53.993 20584 20616 E AndroidRuntime:        at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:125)
02-07 20:11:53.993 20584 20616 E AndroidRuntime:        at sun.reflect.misc.ReflectUtil.ensureMemberAccess(ReflectUtil.java:100)
02-07 20:11:53.993 20584 20616 E AndroidRuntime:        at java.util.concurrent.atomic.AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl.<init>(AtomicReferenceFieldUpdater.java:330)
02-07 20:11:53.993 20584 20616 E AndroidRuntime:        ... 7 more
02-07 20:11:54.002  1443 20624 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
02-07 20:11:54.003  1443  3790 W ActivityTaskManager:   Force finishing activity org.jsl.wfwt/.MainActivity```

Running Android 11.
js-labs commented 2 years ago

Hi! Thank you for feedback. Where did you got the app binary?

vi commented 2 years ago

F-Droid.

The crash does not happen on other device with Android 7.