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

Fatal Crash on iOS 15 #465

Closed
matheusneumanndev opened this issue Oct 16, 2021 · 35 comments
Closed

Fatal Crash on iOS 15 #465

matheusneumanndev opened this issue Oct 16, 2021 · 35 comments

Comments

@matheusneumanndev
Copy link

Folks,

I am really scared about this situation. iOS 15 was released 20 September and as the users started updating the OS version, our crashlytics pointed crashs on initialization for every iOS 15 user.

image

Our team tested with debug and this is the error:

image

This is some of the log of the crashs at the crashlytics:

Falha: ahpl_main
EXC_BAD_ACCESS KERN_PROTECTION_FAILURE 0x00000001e80489e0

Crashed: ahpl_main
0 AgoraCore 0x243d0 ahpl_xdump_detach + 28184
1 AgoraCore 0x240ec ahpl_xdump_detach + 27444
2 ??? 0x104d66ec8 (Ausente)
3 ??? 0x104d602d4 (Ausente)
4 ??? 0x104d863d0 (Ausente)
5 AgoraCore 0x241cc ahpl_xdump_detach + 27668
6 AgoraCore 0x1d94c ahpl_xdump_detach + 916
7 AgoraCore 0x1de8c ahpl_xdump_detach + 2260
8 AgoraCore 0x1d588 ahpl_xdump_attach + 112
9 AgoraRtcKit 0x29c560 createAgoraRtcEngine + 97964
10 AgoraRtcKit 0x287b38 createAgoraRtcEngine + 13444
11 AgoraRtcKit 0x29087c createAgoraRtcEngine + 49608
12 AgoraRtcKit 0x24d9c8 (Ausente)
13 AgoraRtcKit 0x24d948 (Ausente)
14 AgoraCore 0x146f0 ahpl_queue_clear + 424
15 AgoraCore 0x14960 ahpl_queue_run_func_arg + 564
16 AgoraCore 0xbe50 ahpl_perf_set_callback + 1728
17 AgoraCore 0xd408 ahpl_mpq_itc_ack + 252
18 AgoraCore 0xd01c ahpl_mpq_loop + 76
19 AgoraCore 0xc17c ahpl_perf_set_callback + 2540
20 AgoraCore 0x15c9c ahpl_file_close + 1264
21 libsystem_pthread.dylib 0x2458 _pthread_start + 116
22 libsystem_pthread.dylib 0xab0 thread_start + 8

  1. Crashed: ahpl_main
    0 AgoraCore 0x243d0 ahpl_xdump_detach + 28184
    1 AgoraCore 0x240ec ahpl_xdump_detach + 27444
    2 ??? 0x1013b2ec8 (Ausente)
    3 ??? 0x1013ac2d4 (Ausente)
    4 ??? 0x1013d23d0 (Ausente)
    5 AgoraCore 0x241cc ahpl_xdump_detach + 27668
    6 AgoraCore 0x1d94c ahpl_xdump_detach + 916
    7 AgoraCore 0x1de8c ahpl_xdump_detach + 2260
    8 AgoraCore 0x1d588 ahpl_xdump_attach + 112
    9 AgoraRtcKit 0x29c560 createAgoraRtcEngine + 97964
    10 AgoraRtcKit 0x287b38 createAgoraRtcEngine + 13444
    11 AgoraRtcKit 0x29087c createAgoraRtcEngine + 49608
    12 AgoraRtcKit 0x24d9c8 (Ausente)
    13 AgoraRtcKit 0x24d948 (Ausente)
    14 AgoraCore 0x146f0 ahpl_queue_clear + 424
    15 AgoraCore 0x14960 ahpl_queue_run_func_arg + 564
    16 AgoraCore 0xbe50 ahpl_perf_set_callback + 1728
    17 AgoraCore 0xd408 ahpl_mpq_itc_ack + 252
    18 AgoraCore 0xd01c ahpl_mpq_loop + 76
    19 AgoraCore 0xc17c ahpl_perf_set_callback + 2540
    20 AgoraCore 0x15c9c ahpl_file_close + 1264
    21 libsystem_pthread.dylib 0x2458 _pthread_start + 116
    22 libsystem_pthread.dylib 0xab0 thread_start + 8

  2. Crashed: ahpl_main
    0 AgoraCore 0x243d0 ahpl_xdump_detach + 28184
    1 AgoraCore 0x240ec ahpl_xdump_detach + 27444
    2 ??? 0x105042ec8 (Ausente)
    3 ??? 0x10503c2d4 (Ausente)
    4 ??? 0x1050623d0 (Ausente)
    5 AgoraCore 0x241cc ahpl_xdump_detach + 27668
    6 AgoraCore 0x1d94c ahpl_xdump_detach + 916
    7 AgoraCore 0x1de8c ahpl_xdump_detach + 2260
    8 AgoraCore 0x1d588 ahpl_xdump_attach + 112
    9 AgoraRtcKit 0x29c560 createAgoraRtcEngine + 97964
    10 AgoraRtcKit 0x287b38 createAgoraRtcEngine + 13444
    11 AgoraRtcKit 0x29087c createAgoraRtcEngine + 49608
    12 AgoraRtcKit 0x24d9c8 (Ausente)
    13 AgoraRtcKit 0x24d948 (Ausente)
    14 AgoraCore 0x146f0 ahpl_queue_clear + 424
    15 AgoraCore 0x14960 ahpl_queue_run_func_arg + 564
    16 AgoraCore 0xbe50 ahpl_perf_set_callback + 1728
    17 AgoraCore 0xd408 ahpl_mpq_itc_ack + 252
    18 AgoraCore 0xd01c ahpl_mpq_loop + 76
    19 AgoraCore 0xc17c ahpl_perf_set_callback + 2540
    20 AgoraCore 0x15c9c ahpl_file_close + 1264
    21 libsystem_pthread.dylib 0x2458 _pthread_start + 116
    22 libsystem_pthread.dylib 0xab0 thread_start + 8

We trusted in Agora.IO company but it's very weird that a very important update as this one (iOS 15) is not supported.

Are we going to have a support or would we need to look for another solution?

We don't have time. Our app is already at the AppStore and we need a solution immediately because people are going to update the OS version and this bug will explode exponentially.
The amount of users are increasing every minute!

Please, help!

Matheus Neumann

@LichKing-2234
Copy link
Contributor

which version of SDK you used?

@matheusneumanndev
Copy link
Author

which version of SDK you used?

agora_rtc_engine: ^4.0.7

@LichKing-2234
Copy link
Contributor

LichKing-2234 commented Oct 18, 2021

the crash is from 4.0.7?

@LichKing-2234
Copy link
Contributor

pls provide our SDK log, thanks

@matheusneumanndev
Copy link
Author

this is the error:

AgoraCore`___lldb_unnamed_symbol896$$AgoraCore:
0x1025b41f4 <+0>: sub sp, sp, #0xe0 ; =0xe0
0x1025b41f8 <+4>: stp x28, x27, [sp, #0x80]
0x1025b41fc <+8>: stp x26, x25, [sp, #0x90]
0x1025b4200 <+12>: stp x24, x23, [sp, #0xa0]
0x1025b4204 <+16>: stp x22, x21, [sp, #0xb0]
0x1025b4208 <+20>: stp x20, x19, [sp, #0xc0]
0x1025b420c <+24>: stp x29, x30, [sp, #0xd0]
0x1025b4210 <+28>: add x29, sp, #0xd0 ; =0xd0
0x1025b4214 <+32>: mov x26, x5
0x1025b4218 <+36>: stp x3, x4, [sp, #0x20]
0x1025b421c <+40>: mov x22, x2
0x1025b4220 <+44>: mov x25, x1
0x1025b4224 <+48>: mov x19, x0
0x1025b4228 <+52>: add x0, x1, #0x10 ; =0x10
0x1025b422c <+56>: adr x1, #0x26e7 ; "_DATA_CONST"
0x1025b4230 <+60>: nop
0x1025b4234 <+64>: bl 0x1025b4bc4 ; symbol stub for: strcmp
0x1025b4238 <+68>: ldr w20, [x25, #0x44]
0x1025b423c <+72>: ldr x8, [x25, #0x20]
0x1025b4240 <+76>: add x21, x8, x22
0x1025b4244 <+80>: str x19, [sp, #0x30]
0x1025b4248 <+84>: str x21, [sp, #0x18]
0x1025b424c <+88>: str w0, [sp, #0x14]
0x1025b4250 <+92>: cbz w0, 0x1025b425c ; <+104>
0x1025b4254 <+96>: mov w8, #0x1
0x1025b4258 <+100>: b 0x1025b42b4 ; <+192>
0x1025b425c <+104>: nop
0x1025b4260 <+108>: ldr x8, #0x3de0 ; (void *)0x00000001f06cd424: mach_task_self

0x1025b4264 <+112>: ldr w0, [x8]
0x1025b4268 <+116>: stp x19, xzr, [x29, #-0x60]
0x1025b426c <+120>: mov w8, #0x9
0x1025b4270 <+124>: str w8, [sp, #0x68]
0x1025b4274 <+128>: sub x1, x29, #0x60 ; =0x60
0x1025b4278 <+132>: sub x2, x29, #0x58 ; =0x58
0x1025b427c <+136>: add x4, sp, #0x40 ; =0x40
0x1025b4280 <+140>: add x5, sp, #0x68 ; =0x68
0x1025b4284 <+144>: sub x6, x29, #0x64 ; =0x64
0x1025b4288 <+148>: mov w3, #0x9
0x1025b428c <+152>: bl 0x1025b4c9c ; symbol stub for: vm_region_64
0x1025b4290 <+156>: mov x24, x0
0x1025b4294 <+160>: ldr w19, [sp, #0x40]
0x1025b4298 <+164>: ldr x1, [x25, #0x28]
0x1025b429c <+168>: mov x0, x21
0x1025b42a0 <+172>: mov w2, #0x3
0x1025b42a4 <+176>: bl 0x1025b48b8 ; symbol stub for: mprotect
0x1025b42a8 <+180>: and w8, w19, #0x7
0x1025b42ac <+184>: cmp w24, #0x0 ; =0x0
0x1025b42b0 <+188>: csinc w8, w8, wzr, eq
0x1025b42b4 <+192>: str w8, [sp, #0x10]
0x1025b42b8 <+196>: ldr x8, [x25, #0x28]
0x1025b42bc <+200>: str x8, [sp, #0x8]
0x1025b42c0 <+204>: lsr x8, x8, #3
0x1025b42c4 <+208>: str x8, [sp, #0x38]
0x1025b42c8 <+212>: cbz x8, 0x1025b43d8 ; <+484>
0x1025b42cc <+216>: mov x28, #0x0
0x1025b42d0 <+220>: mov w19, #0x18
0x1025b42d4 <+224>: add x20, x26, x20, lsl #2
0x1025b42d8 <+228>: ldr w8, [x20, x28, lsl #2]
0x1025b42dc <+232>: mov w9, #-0x80000000
0x1025b42e0 <+236>: cmp w8, w9
0x1025b42e4 <+240>: mov w9, #-0x40000000
0x1025b42e8 <+244>: ccmp w8, w9, #0x4, ne
0x1025b42ec <+248>: mov w9, #0x40000000
0x1025b42f0 <+252>: ccmp w8, w9, #0x4, ne
0x1025b42f4 <+256>: b.ne 0x1025b430c ; <+280>
0x1025b42f8 <+260>: add w28, w28, #0x1 ; =0x1
0x1025b42fc <+264>: ldr x8, [sp, #0x38]
0x1025b4300 <+268>: cmp x8, x28
0x1025b4304 <+272>: b.hi 0x1025b42d8 ; <+228>
0x1025b4308 <+276>: b 0x1025b43d8 ; <+484>
0x1025b430c <+280>: lsl x8, x8, #4
0x1025b4310 <+284>: ldr x9, [sp, #0x20]
0x1025b4314 <+288>: ldr w8, [x9, x8]
0x1025b4318 <+292>: ldr x9, [sp, #0x28]
0x1025b431c <+296>: add x8, x9, x8
0x1025b4320 <+300>: ldrb w9, [x8]
0x1025b4324 <+304>: cbz w9, 0x1025b4338 ; <+324>
0x1025b4328 <+308>: ldrb w9, [x8, #0x1]
0x1025b432c <+312>: cmp w9, #0x0 ; =0x0
0x1025b4330 <+316>: cset w24, ne
0x1025b4334 <+320>: b 0x1025b433c ; <+328>
0x1025b4338 <+324>: mov w24, #0x0
0x1025b433c <+328>: ldr x9, [sp, #0x30]
0x1025b4340 <+332>: cbz x9, 0x1025b42f8 ; <+260>
0x1025b4344 <+336>: add x26, x8, #0x1 ; =0x1
0x1025b4348 <+340>: ldr x21, [sp, #0x30]
0x1025b434c <+344>: ldr x23, [x21, #0x8]
0x1025b4350 <+348>: cbz x23, 0x1025b4388 ; <+404>
0x1025b4354 <+352>: mov x22, #0x0
0x1025b4358 <+356>: mov w27, #0x1
0x1025b435c <+360>: cbz w24, 0x1025b4378 ; <+388>
0x1025b4360 <+364>: ldr x25, [x21]
0x1025b4364 <+368>: mul x8, x22, x19
0x1025b4368 <+372>: ldr x1, [x25, x8]
0x1025b436c <+376>: mov x0, x26
0x1025b4370 <+380>: bl 0x1025b4bc4 ; symbol stub for: strcmp
0x1025b4374 <+384>: cbz w0, 0x1025b4394 ; <+416>
0x1025b4378 <+388>: mov w22, w27
0x1025b437c <+392>: cmp x23, w27, uxtw
0x1025b4380 <+396>: add w27, w27, #0x1 ; =0x1
0x1025b4384 <+400>: b.hi 0x1025b435c ; <+360>
0x1025b4388 <+404>: ldr x21, [x21, #0x10]
0x1025b438c <+408>: cbnz x21, 0x1025b434c ; <+344>
0x1025b4390 <+412>: b 0x1025b42f8 ; <+260>
0x1025b4394 <+416>: madd x8, x22, x19, x25
0x1025b4398 <+420>: ldr x8, [x8, #0x10]
0x1025b439c <+424>: cbz x8, 0x1025b43c4 ; <+464>
0x1025b43a0 <+428>: ldr x11, [sp, #0x18]
0x1025b43a4 <+432>: ldr x9, [x11, x28, lsl #3]
0x1025b43a8 <+436>: madd x10, x22, x19, x25
0x1025b43ac <+440>: ldr x10, [x10, #0x8]
0x1025b43b0 <+444>: cmp x9, x10
0x1025b43b4 <+448>: b.eq 0x1025b43c8 ; <+468>
0x1025b43b8 <+452>: str x9, [x8]
0x1025b43bc <+456>: ldr x25, [x21]
0x1025b43c0 <+460>: b 0x1025b43c8 ; <+468>
0x1025b43c4 <+464>: ldr x11, [sp, #0x18]
0x1025b43c8 <+468>: madd x8, x22, x19, x25
0x1025b43cc <+472>: ldr x8, [x8, #0x8]
-> 0x1025b43d0 <+476>: str x8, [x11, x28, lsl #3]
0x1025b43d4 <+480>: b 0x1025b42f8 ; <+260>
0x1025b43d8 <+484>: ldr w8, [sp, #0x14]
0x1025b43dc <+488>: cbnz w8, 0x1025b43f0 ; <+508>
0x1025b43e0 <+492>: ldr x0, [sp, #0x18]
0x1025b43e4 <+496>: ldr x1, [sp, #0x8]
0x1025b43e8 <+500>: ldr w2, [sp, #0x10]
0x1025b43ec <+504>: bl 0x1025b48b8 ; symbol stub for: mprotect
0x1025b43f0 <+508>: ldp x29, x30, [sp, #0xd0]
0x1025b43f4 <+512>: ldp x20, x19, [sp, #0xc0]
0x1025b43f8 <+516>: ldp x22, x21, [sp, #0xb0]
0x1025b43fc <+520>: ldp x24, x23, [sp, #0xa0]
0x1025b4400 <+524>: ldp x26, x25, [sp, #0x90]
0x1025b4404 <+528>: ldp x28, x27, [sp, #0x80]
0x1025b4408 <+532>: add sp, sp, #0xe0 ; =0xe0
0x1025b440c <+536>: ret

@matheusneumanndev
Copy link
Author

The crash is easy to reproduce. Just install agora newest version (4.0.7) and use iOS version 15.2

@LichKing-2234
Copy link
Contributor

LichKing-2234 commented Oct 18, 2021

pls refer to setLogFile method, then fetch our SDK log file.

@matheusneumanndev
Copy link
Author

where could I find this, please?

@matheusneumanndev
Copy link
Author

setLogFile method? the app doesn't even open...

@LichKing-2234
Copy link
Contributor

just refer to the comments of setLogFile method, you can get the path of the log file.

@matheusneumanndev
Copy link
Author

we are going to try to find it. One moment

@matheusneumanndev
Copy link
Author

Screen Shot 2021-10-18 at 10 26 49

@matheusneumanndev
Copy link
Author

are you talking about this method in IAgoraRtcEngine.h ?

@matheusneumanndev
Copy link
Author

Screen Shot 2021-10-18 at 10 29 00

the message we are getting from the Appstore now...

@matheusneumanndev

This comment has been minimized.

@matheusneumanndev

This comment has been minimized.

@matheusneumanndev

This comment has been minimized.

@matheusneumanndev

This comment has been minimized.

@matheusneumanndev

This comment has been minimized.

@matheusneumanndev

This comment has been minimized.

@LichKing-2234
Copy link
Contributor

@matheusneumanndev
Copy link
Author

https://docs.agora.io/en/Interactive%20Broadcast/faq/logfile

Alright, understood, we are looking for this file

@matheusneumanndev
Copy link
Author

matheusneumanndev commented Oct 18, 2021

we tested now in iOS 15.0 (Simulators) and it works. But still not working on ios 15.0.2

@matheusneumanndev
Copy link
Author

we found the file and it's empty:
Screen Shot 2021-10-18 at 11 34 21

@LichKing-2234
Copy link
Contributor

pls take a screenshot of your pubspec.yaml and the .podspec file.

image

@matheusneumanndev
Copy link
Author

@LichKing-2234
Copy link
Contributor

as your image of the .podspec file, maybe you should rerun flutter pub get to upgrade our SDK.

@LichKing-2234
Copy link
Contributor

image
if you see the version to 3.5.0.3, it will not crash

@matheusneumanndev
Copy link
Author

We did flutter clean, deleted Podfile.lock and Pods folder and after did flutter pub get and flutter build ios and it is still 3.4.2...

@matheusneumanndev
Copy link
Author

should we change it manually?

@LichKing-2234
Copy link
Contributor

maybe you ignore the error on the console? you can run pod update at the ios folder.

@LichKing-2234
Copy link
Contributor

pls also double check your pubspec.lock file, get the real version number you installed.

@matheusneumanndev
Copy link
Author

Thanks, now it's working.

@VonZen
Copy link

VonZen commented Jun 8, 2022

3.5.0.4 reproduce

@github-actions
Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants