Skip to content
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

App crash #1435

Closed
lucian-ma opened this issue Mar 8, 2021 · 2 comments
Closed

App crash #1435

lucian-ma opened this issue Mar 8, 2021 · 2 comments

Comments

@lucian-ma
Copy link

flutter: ++++++++++++++++++
flutter: Pointer: address=0x2835a9a00
flutter: ++++++++++++++++++
[ 3][t 0][1615194033.101557016][Client.cpp:267][&td_requests] Begin to wait for updates with timeout 60.000000
[ 3][t 0][1615194033.102303982][Client.cpp:273][&td_requests] End to wait for updates, returning object 0 0x281994e90
flutter: --------------result---------------
flutter: {@type: updateConnectionState, state: {@type: connectionStateReady}}
flutter: ++++++++++++++++++
flutter: Pointer: address=0x2835a9a00
flutter: ++++++++++++++++++
[ 3][t 0][1615194033.108127117][Client.cpp:267][&td_requests] Begin to wait for updates with timeout 60.000000
[ 3][t 4][1615194043.064913988][ConnectionCreator.cpp:1150][#1][!ConnectionCreator] [hash:0x5a4a91c8e92c41ac] wakeup
[ 3][t 4][1615194043.065031052][ConnectionCreator.cpp:925][#1][!ConnectionCreator][&connections] In client_loop: [client:0x5a4a91c8e92c41ac]
[ 3][t 4][1615194043.065084934][ConnectionCreator.cpp:932][#1][!ConnectionCreator][&connections drop] Drop expired [connection:0x14fe073e0]
[ 3][t 4][1615194043.065135241][ConnectionCreator.cpp:932][#1][!ConnectionCreator][&connections drop] Drop expired [connection:0x14fe172d0]
[ 3][t 4][1615194049.542001963][ConfigManager.cpp:561][#1][!Recoverer][&config_recoverer] Successfully connected
[ 3][t 4][1615194049.542123079][ConfigManager.cpp:622][#1][!Recoverer][&config_recoverer] Wakeup NEVER
[ 4][t 4][1615194063.018689156][BufferedFd.h:184][#1][!Session:5:main] Flush write: +220B[left:0B]
[ 4][t 4][1615194063.018831968][Session.cpp:1226][#1][!Session:5:main] Wakeup after 59.999589
[ 4][t 4][1615194063.020509005][Session.cpp:1226][#1][!Session:5:main] Wakeup after 59.997916
[ 3][t 0][1615194093.113466263][Client.cpp:273][&td_requests] End to wait for updates, returning object 0 0x0

  • thread Building shared object for JNI #9, name = 'io.flutter.1.ui', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x0000000115bb15e0
    -> 0x115bb15e0: ldrb w1, [x16]
    0x115bb15e4: lsl x0, x1, macOS build error (readline) #1
    0x115bb15e8: ret
    0x115bb15ec: ldur x6, [x24, #0x37]
    Target 0: (Runner) stopped.
    Lost connection to device.

    while(true){
    print('++++++++++++++++++');
    print(_client);
    print('++++++++++++++++++');
    var res = await TdClient.clientReceive(_client);
    _onEvent(res);
    }

i donot konw why crash

@levlam
Copy link
Contributor

levlam commented Mar 8, 2021

You are trying to access null in your Flutter code, because clientReceive response isn't checked against null.

@lucian-ma
Copy link
Author

You are trying to access null in your Flutter code, because clientReceive response isn't checked against null.
thanks,you are right, it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants