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
After press floatingActionButton #12
Comments
My solution was to move the code below from TdlibPlugin to JsonClient class.
also If you are using emulators, make sure that you use x86_64, armeabi-v7a, or arm64-v8a system image. |
owenthereal
added a commit
to owenthereal/tdlib
that referenced
this issue
Aug 26, 2020
Generated fields can be null and this adds null check. An example exception is: ``` I/flutter ( 6168): NoSuchMethodError: The method 'toJson' was called on null. I/flutter ( 6168): Receiver: null I/flutter ( 6168): Tried calling: toJson() I/flutter ( 6168): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5) I/flutter ( 6168): i-Naji#1 Message.toJson (package:tdlib/src/tdapi/objects/message.dart:120:42) I/flutter ( 6168): i-Naji#2 UpdateNewMessage.toJson (package:tdlib/src/tdapi/objects/update.dart:310:31) I/flutter ( 6168): i-Naji#3 TelegramService._onEvent (package:tdlib_example/services/telegram_service.dart:90:32) I/flutter ( 6168): i-Naji#4 _rootRunUnary (dart:async/zone.dart:1198:47) I/flutter ( 6168): i-Naji#5 _CustomZone.runUnary (dart:async/zone.dart:1100:19) I/flutter ( 6168): i-Naji#6 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7) I/flutter ( 6168): i-Naji#7 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11) I/flutter ( 6168): i-Naji#8 _DelayedData.perform (dart:async/stream_impl.dart:611:14) I/flutter ( 6168): i-Naji#9 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:730:11) I/flutter ( 6168): i-Naji#10 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:687:7) I/flutter ( 6168): i-Naji#11 _rootRun (dart:async/zone.dart:1182:47) I/flutter ( 6168): i-Naji#12 _CustomZone.run (dart:async/zone.dart:1093:19) I/flutter ( 6168): i-Naji#13 _CustomZone.runGuarded (dart:async/zone.dart:997:7) I/flutter ( 6168): i-Naji#14 _CustomZone.bindCallbackGuarded.<ano ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Sir.
After pressing floatingActionButton (_clientCreator) my app is crashed. Please help me
`Launching lib/main.dart on Android SDK built for x86 in debug mode...
✓ Built build/app/outputs/apk/debug/app-debug.apk.
Connecting to VM Service at ws://127.0.0.1:60432/lwjmrRocakQ=/ws
D/EGL_emulation(20174): eglMakeCurrent: 0xb0464be0: ver 3 0 (tinfo 0xa5b7f7e0)
E/zygote (20174): No implementation found for long org.drinkless.tdlib.JsonClient.create() (tried Java_org_drinkless_tdlib_JsonClient_create and Java_org_drinkless_tdlib_JsonClient_create__)
E/flutter (20174): [ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(39)] java.lang.UnsatisfiedLinkError: No implementation found for long org.drinkless.tdlib.JsonClient.create() (tried Java_org_drinkless_tdlib_JsonClient_create and Java_org_drinkless_tdlib_JsonClient_create__)
E/flutter (20174): at org.drinkless.tdlib.JsonClient.create(Native Method)
E/flutter (20174): at org.naji.td.tdlib.TdlibPlugin.onMethodCall(TdlibPlugin.java:38)
E/flutter (20174): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:226)
E/flutter (20174): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/flutter (20174): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:631)
E/flutter (20174): at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (20174): at android.os.MessageQueue.next(MessageQueue.java:325)
E/flutter (20174): at android.os.Looper.loop(Looper.java:142)
E/flutter (20174): at android.app.ActivityThread.main(ActivityThread.java:6494)
E/flutter (20174): at java.lang.reflect.Method.invoke(Native Method)
E/flutter (20174): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
E/flutter (20174): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
E/flutter (20174):
F/flutter (20174): [FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(76)] Check failed: CheckException(env).
F/libc (20174): Fatal signal 6 (SIGABRT), code -6 in tid 20174 (e.hello_flutter), pid 20174 (e.hello_flutter)
Build fingerprint: 'google/sdk_gphone_x86/generic_x86:8.1.0/OSM1.180201.007/4586646:user/release-keys'
Revision: '0'
ABI: 'x86'
pid: 20174, tid: 20174, name: e.hello_flutter >>> com.example.hello_flutter <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(76)] Check failed: CheckException(env).
'
eax 00000000 ebx 00004ece ecx 00004ece edx 00000006
esi b042b1b0 edi 00004ece
xcs 00000073 xds 0000007b xes 0000007b xfs 0000003b xss 0000007b
eip b4c3dac4 ebp bf97a7d8 esp bf97a768 flags 00200286
backtrace:
#00 pc 00000ac4 [vdso:b4c3d000] (__kernel_vsyscall+16)
#1 pc 0001edf8 /system/lib/libc.so (syscall+40)
#2 pc 0001f073 /system/lib/libc.so (abort+115)
#3 pc 011c5cb1 /data/app/com.example.hello_flutter-ZgwdxMbtgzKhSWdi9d4y_A==/lib/x86/libflutter.so (offset 0x11a9000)
#4 pc 011b26e7 /data/app/com.example.hello_flutter-ZgwdxMbtgzKhSWdi9d4y_A==/lib/x86/libflutter.so (offset 0x11a9000)
#5 pc 011b0480 /data/app/com.example.hello_flutter-ZgwdxMbtgzKhSWdi9d4y_A==/lib/x86/libflutter.so (offset 0x11a9000)
#6 pc 01219191 /data/app/com.example.hello_flutter-ZgwdxMbtgzKhSWdi9d4y_A==/lib/x86/libflutter.so (offset 0x11a9000)
#7 pc 011c40c3 /data/app/com.example.hello_flutter-ZgwdxMbtgzKhSWdi9d4y_A==/lib/x86/libflutter.so (offset 0x11a9000)
#8 pc 011c6a09 /data/app/com.example.hello_flutter-ZgwdxMbtgzKhSWdi9d4y_A==/lib/x86/libflutter.so (offset 0x11a9000)
#9 pc 011c694e /data/app/com.example.hello_flutter-ZgwdxMbtgzKhSWdi9d4y_A==/lib/x86/libflutter.so (offset 0x11a9000)
#10 pc 011ccb5a /data/app/com.example.hello_flutter-ZgwdxMbtgzKhSWdi9d4y_A==/lib/x86/libflutter.so (offset 0x11a9000)
#11 pc 011ccb88 /data/app/com.example.hello_flutter-ZgwdxMbtgzKhSWdi9d4y_A==/lib/x86/libflutter.so (offset 0x11a9000)
#12 pc 00014af7 /system/lib/libutils.so (android::SimpleLooperCallback::handleEvent(int, int, void*)+39)
#13 pc 00015936 /system/lib/libutils.so (android::Looper::pollInner(int)+982)
#14 pc 000154d6 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+118)
#15 pc 000e25cb /system/lib/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long long, int)+59)
#16 pc 007d5428 /system/framework/x86/boot-framework.oat (offset 0x606000) (android.app.NativeActivity.onWindowFocusChangedNative [DEDUPED]+136)
#17 pc 00002d4e /dev/ashmem/dalvik-jit-code-cache (deleted)
Lost connection to device.
Exited (sigterm)
`
The text was updated successfully, but these errors were encountered: