pusher-channels-flutter icon indicating copy to clipboard operation
pusher-channels-flutter copied to clipboard

FlutterFragmentActivity crashing application

Open bazl-E opened this issue 1 year ago • 6 comments

when i try to integrate local auth (official package from flutter ) i have to change flutter activity to fragment activity and it is causing to crash in devices which supports local auth and pusher not working in non supported device

W/System.err(21302): SLF4J: Defaulting to no-operation (NOP) logger implementation W/System.err(21302): SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. E/AndroidRuntime(21302): FATAL EXCEPTION: pusher-java-client eventQueue E/AndroidRuntime(21302): Process: com.icodmmp.finwallet, PID: 21302 E/AndroidRuntime(21302): java.lang.NullPointerException E/AndroidRuntime(21302): at com.pusher.channels_flutter.PusherChannelsFlutterPlugin.callback(PusherChannelsFlutterPlugin.kt:90) E/AndroidRuntime(21302): at com.pusher.channels_flutter.PusherChannelsFlutterPlugin.onConnectionStateChange(PusherChannelsFlutterPlugin.kt:209) E/AndroidRuntime(21302): at com.pusher.client.connection.websocket.WebSocketConnection$4.run(WebSocketConnection.java:166) E/AndroidRuntime(21302): at com.pusher.client.util.Factory$1.run(Factory.java:119) E/AndroidRuntime(21302): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) E/AndroidRuntime(21302): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) E/AndroidRuntime(21302): at java.lang.Thread.run(Thread.java:919) W/odmmp.finwalle(21302): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) W/odmmp.finwalle(21302): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) W/odmmp.finwalle(21302): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) W/odmmp.finwalle(21302): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) W/ActivityThread(21302): SCHED: com.icodmmp.finwallet/io.flutter.embedding.android.FlutterFragmentActivity [82, r=1024ms, a=214ms, w=35451ms] I/Process (21302): Sending signal. PID: 21302 SIG: 9 Lost connection to device.

bazl-E avatar Aug 17 '22 04:08 bazl-E

Could you try upgrading to version 2.0.1 of the library and let us know if this resolves the issue? https://github.com/pusher/pusher-channels-flutter/releases/tag/v2.0.1

benw-pusher avatar Aug 30 '22 14:08 benw-pusher

I'm having the same issue even with 2.0.1 :/ Any ideas?

kristapus avatar Aug 30 '22 15:08 kristapus

Could you share more details about the changes you have made, perhaps sharing your code for review?

benw-pusher avatar Aug 30 '22 16:08 benw-pusher

I'm not 100% sure if it ever worked, because no changes were made recently... In debug mode, it works fine(atleast the app don't crash), but all the "fun" happens in release mode. Are there any config or other details that you would like to know?

kristapus avatar Aug 31 '22 22:08 kristapus

It would be good to get a small replication app if possible, or the code that is being executed when your app encounters this error. We can then look at replication and troubleshooting.

benw-pusher avatar Oct 04 '22 14:10 benw-pusher

facing same issue :(

geldartz avatar Oct 08 '22 06:10 geldartz

We haven't been able to replicate this one and a replication sample hasn't been provided so we will have to close this out. FI you need further support please contact us at https://support.pusher.com/hc/en-us/requests/new

benw-pusher avatar Nov 11 '22 12:11 benw-pusher