iOS Question [INSOLVED] AsyncStreams error

Star-Dust

Expert
Licensed User
Longtime User
My SERVER app working fine in debug mode crashes when in release mode.
The moment that crashes is when the client is shut down abruptly or sometimes just at startup.

I have two Crash-Reports but I can't figure out what the error is. Anyone know how to translate what is written?

Incident Identifier: D2259C18-4AAB-4784-8ED7-A2DF15FD5E28
CrashReporter Key: 21254572901f4ab2b146210abda2c91a97803e7c
Hardware Model: iPhone7,2
Process: HttpServer [302]
Path: /var/containers/Bundle/Application/9F377310-1043-4A66-9AD1-68954AFC14CA/HttpServer.app/HttpServer
Identifier: it.tecnomedia.httpserver
Version: 1.0.0 (1.0.0)
Code Type: ARM-64
Parent Process: ? [1]

Date/Time: 2021-03-04 07:26:09.000 +0100
OS Version: iOS 12.5.1 (16H22)
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_NOT_WAITING at 0x0000000000000030
Crashed Thread: 3

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libicucore.A.dylib 0x0000000186b1d064 0x1869f4000 + 1216612 (icu::GregorianCalendar::defaultCenturyStartYear() const + 812)
1 libicucore.A.dylib 0x0000000186b1d044 0x1869f4000 + 1216580 (icu::GregorianCalendar::defaultCenturyStartYear() const + 780)
2 libicucore.A.dylib 0x0000000186abac90 0x1869f4000 + 814224 (icu:📆:computeGregorianAndDOWFields(int, UErrorCode&) + 64)
3 libicucore.A.dylib 0x0000000186abab18 0x1869f4000 + 813848 (icu:📆:computeFields(UErrorCode&) + 216)
4 libicucore.A.dylib 0x0000000186aba2a8 0x1869f4000 + 811688 (icu:📆:complete(UErrorCode&) + 56)
5 libicucore.A.dylib 0x0000000186aba244 0x1869f4000 + 811588 (icu:📆:get(UCalendarDateFields, UErrorCode&) const + 48)
6 CoreFoundation 0x0000000186d6f7c8 0x186c62000 + 1103816 (<redacted> + 60)
7 CoreFoundation 0x0000000186d97db8 0x186c62000 + 1269176 (_CFCalendarDecomposeAbsoluteTimeV + 204)
8 CoreFoundation 0x0000000186c7b1a8 0x186c62000 + 102824 (<redacted> + 336)
9 CoreFoundation 0x0000000186c79df8 0x186c62000 + 97784 (<redacted> + 84)
10 HttpServer 0x000000010050cfd0 0x1004cc000 + 266192 (-[B4IDateTime GetDayOfMonth:] + 112)
11 HttpServer 0x00000001004dc468 0x1004cc000 + 66664 (-[b4i_servletrequest _completedate:] + 440)
12 HttpServer 0x00000001004d9d34 0x1004cc000 + 56628 (-[ResumableSub_servletrequest_BrowserTimeOut resume::] + 1152)
13 HttpServer 0x00000001004ff59c 0x1004cc000 + 210332 (__21-[B4ICommon Sleep:::]_block_invoke + 60)
14 libdispatch.dylib 0x00000001867b97d4 0x186759000 + 395220 (<redacted> + 16)
15 libdispatch.dylib 0x000000018675e01c 0x186759000 + 20508 (<redacted> + 412)
16 libdispatch.dylib 0x000000018676dfa8 0x186759000 + 85928 (<redacted> + 1308)
17 libdispatch.dylib 0x0000000186766eec 0x186759000 + 57068 (<redacted> + 784)
18 CoreFoundation 0x0000000186d0cb20 0x186c62000 + 699168 (<redacted> + 12)
19 CoreFoundation 0x0000000186d07a58 0x186c62000 + 678488 (<redacted> + 1924)
20 CoreFoundation 0x0000000186d06fb4 0x186c62000 + 675764 (CFRunLoopRunSpecific + 436)
21 GraphicsServices 0x0000000188f0879c 0x188efe000 + 42908 (GSEventRunModal + 104)
22 UIKitCore 0x00000001b374dc38 0x1b2e91000 + 9161784 (UIApplicationMain + 212)
23 HttpServer 0x00000001004d0854 0x1004cc000 + 18516 (main + 128)
24 libdyld.dylib 0x00000001867ca8e0 0x1867c9000 + 6368 (<redacted> + 4)

Thread 1 name: Dispatch queue: com.apple.root.default-qos
Thread 1:
0 libsystem_kernel.dylib 0x0000000186915df4 0x1868f4000 + 138740 (accept + 8)
1 HttpServer 0x000000010053e974 0x1004cc000 + 469364 (-[B4IFastServerSocket accept] + 68)
2 HttpServer 0x000000010053c1dc 0x1004cc000 + 459228 (__32-[B4IServerSocketWrapper Listen]_block_invoke + 124)
3 libdispatch.dylib 0x00000001867b8a38 0x186759000 + 391736 (<redacted> + 24)
4 libdispatch.dylib 0x00000001867b97d4 0x186759000 + 395220 (<redacted> + 16)
5 libdispatch.dylib 0x000000018675dc80 0x186759000 + 19584 (<redacted> + 684)
6 libdispatch.dylib 0x000000018676a030 0x186759000 + 69680 (<redacted> + 372)
7 libdispatch.dylib 0x000000018676a8d4 0x186759000 + 71892 (<redacted> + 128)
8 libsystem_pthread.dylib 0x000000018699a1b4 0x18698e000 + 49588 (_pthread_wqthread + 464)

Thread 2:
0 libsystem_kernel.dylib 0x0000000186917b74 0x1868f4000 + 146292 (__workq_kernreturn + 8)
1 libsystem_pthread.dylib 0x000000018699a138 0x18698e000 + 49464 (_pthread_wqthread + 340)

Thread 3 Crashed:
0 HttpServer 0x000000010054442c 0x1004cc000 + 492588 (__23-[B4IAOUT putClosePill]_block_invoke + 60)
1 HttpServer 0x0000000100544424 0x1004cc000 + 492580 (__23-[B4IAOUT putClosePill]_block_invoke + 52)
2 libdispatch.dylib 0x00000001867b8a38 0x186759000 + 391736 (<redacted> + 24)
3 libdispatch.dylib 0x00000001867b97d4 0x186759000 + 395220 (<redacted> + 16)
4 libdispatch.dylib 0x0000000186762324 0x186759000 + 37668 (<redacted> + 592)
5 libdispatch.dylib 0x0000000186762e40 0x186759000 + 40512 (<redacted> + 428)
6 libdispatch.dylib 0x000000018676b4ac 0x186759000 + 74924 (<redacted> + 596)
7 libsystem_pthread.dylib 0x000000018699a114 0x18698e000 + 49428 (_pthread_wqthread + 304)

Thread 4 name: com.apple.uikit.eventfetch-thread
Thread 4:
0 libsystem_kernel.dylib 0x000000018690c0f4 0x1868f4000 + 98548 (mach_msg_trap + 8)
1 libsystem_kernel.dylib 0x000000018690b5a0 0x1868f4000 + 95648 (mach_msg + 72)
2 CoreFoundation 0x0000000186d0c914 0x186c62000 + 698644 (<redacted> + 236)
3 CoreFoundation 0x0000000186d07824 0x186c62000 + 677924 (<redacted> + 1360)
4 CoreFoundation 0x0000000186d06fb4 0x186c62000 + 675764 (CFRunLoopRunSpecific + 436)
5 Foundation 0x00000001876d595c 0x1876ce000 + 31068 (<redacted> + 300)
6 Foundation 0x00000001876d57ec 0x1876ce000 + 30700 (<redacted> + 96)
7 UIKitCore 0x00000001b3833754 0x1b2e91000 + 10102612 (<redacted> + 136)
8 Foundation 0x00000001878024a0 0x1876ce000 + 1262752 (<redacted> + 984)
9 libsystem_pthread.dylib 0x00000001869992c0 0x18698e000 + 45760 (<redacted> + 128)
10 libsystem_pthread.dylib 0x0000000186999220 0x18698e000 + 45600 (_pthread_start + 44)

Thread 5:
0 libsystem_kernel.dylib 0x0000000186917400 0x1868f4000 + 144384 (__semwait_signal + 8)
1 libsystem_c.dylib 0x000000018688d56c 0x186815000 + 492908 (nanosleep + 212)
2 libsystem_c.dylib 0x000000018688d36c 0x186815000 + 492396 (sleep + 44)
3 HttpServer 0x00000001005a336c 0x1004cc000 + 881516 (monitorCachedData + 132)
4 libsystem_pthread.dylib 0x00000001869992c0 0x18698e000 + 45760 (<redacted> + 128)
5 libsystem_pthread.dylib 0x0000000186999220 0x18698e000 + 45600 (_pthread_start + 44)

Thread 6 name: KSCrash Exception Handler (Secondary)
Thread 6:
0 libsystem_kernel.dylib 0x000000018690c0f4 0x1868f4000 + 98548 (mach_msg_trap + 8)
1 libsystem_kernel.dylib 0x000000018690b5a0 0x1868f4000 + 95648 (mach_msg + 72)
2 HttpServer 0x000000010059fc18 0x1004cc000 + 867352 (handleExceptions + 208)
3 libsystem_pthread.dylib 0x00000001869992c0 0x18698e000 + 45760 (<redacted> + 128)
4 libsystem_pthread.dylib 0x0000000186999220 0x18698e000 + 45600 (_pthread_start + 44)

Thread 7 name: KSCrash Exception Handler (Primary)
Thread 7:

Thread 8:
0 libsystem_kernel.dylib 0x0000000186917208 0x1868f4000 + 143880 (recvfrom + 8)
1 HttpServer 0x000000010053d7f8 0x1004cc000 + 464888 (-[B4IFastSocket receiveBytes:limit:] + 56)
2 HttpServer 0x0000000100543a0c 0x1004cc000 + 489996 (-[B4IAIN run] + 2480)
3 Foundation 0x00000001878024a0 0x1876ce000 + 1262752 (<redacted> + 984)
4 libsystem_pthread.dylib 0x00000001869992c0 0x18698e000 + 45760 (<redacted> + 128)
5 libsystem_pthread.dylib 0x0000000186999220 0x18698e000 + 45600 (_pthread_start + 44)

Thread 9:
0 libsystem_kernel.dylib 0x0000000186917208 0x1868f4000 + 143880 (recvfrom + 8)
1 HttpServer 0x000000010053d7f8 0x1004cc000 + 464888 (-[B4IFastSocket receiveBytes:limit:] + 56)
2 HttpServer 0x0000000100543a0c 0x1004cc000 + 489996 (-[B4IAIN run] + 2480)
3 Foundation 0x00000001878024a0 0x1876ce000 + 1262752 (<redacted> + 984)
4 libsystem_pthread.dylib 0x00000001869992c0 0x18698e000 + 45760 (<redacted> + 128)
5 libsystem_pthread.dylib 0x0000000186999220 0x18698e000 + 45600 (_pthread_start + 44)

Thread 3 crashed with ARM-64 Thread State:
cpsr: 0x0000000080000000 fp: 0x000000016fb5e8f0 lr: 0x0000000100544424 pc: 0x000000010054442c
sp: 0x000000016fb5e8a0 x0: 0x0000000000000000 x1: 0x00000001867b8a20 x10: 0x0000000000000070
x11: 0x0000000000000000 x12: 0x0000000044000000 x13: 0x0000000000000000 x14: 0x00000000f0243800
x15: 0x0000000000000087 x16: 0x0000000185f6c66c x17: 0x0000000070200000 x18: 0x0000000000000000
x19: 0x0000000280b0df20 x2: 0x0000000000000002 x20: 0x0000000282b15e30 x21: 0x0000000000030002
x22: 0x0000000000000114 x23: 0x0000000000000000 x24: 0x0000000281049e00 x25: 0x0000000000000010
x26: 0x000000010060c000 x27: 0x0000000000000000 x28: 0x000000016fb5f0e0 x29: 0x000000016fb5e8f0
x3: 0x000000018694df30 x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000000
x7: 0x0000000000000000 x8: 0x0000000000000030 x9: 0x0000000000000008

 

Star-Dust

Expert
Licensed User
Longtime User
I managed everything with ServerSocket and Astream
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
The error happens in a module named servletrequest in a sub named CompleteDate.
Thanks, check it out now. Maybe it seems like a trivial question, but not knowing iOS well, sometimes minimal problems for me become huge.

Thanks again.

B4X:
Private Sub CompleteDate(DT As Long) As String
    Return $"${DDay(DateTime.GetDayOfWeek(DT))}, ${DateTime.GetDayOfMonth(DT)} ${MMmonth(DateTime.GetMonth(DT))} ${DateTime.GetYear(DT)} ${DateTime.Time(DT)} GMT"$
End Sub
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Fixed one created another. 😒

Incident Identifier: 15BB1216-1058-430F-9E58-949A257CE615
CrashReporter Key: 21254572901f4ab2b146210abda2c91a97803e7c
Hardware Model: iPhone7,2
Process: HttpServer [285]
Path: /var/containers/Bundle/Application/38DF3644-0CD2-443C-9A40-821BD6898209/HttpServer.app/HttpServer
Identifier: it.tecnomedia.httpserver
Version: 1.0.0 (1.0.0)
Code Type: ARM-64
Parent Process: ? [1]

Date/Time: 2021-03-04 09:36:44.000 +0100
OS Version: iOS 12.5.1 (16H22)
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_NOT_WAITING at 0x0000000000000030
Crashed Thread: 10

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x0000000215dcc0f4 0x215db4000 + 98548 (mach_msg_trap + 8)
1 libsystem_kernel.dylib 0x0000000215dcb5a0 0x215db4000 + 95648 (mach_msg + 72)
2 CoreFoundation 0x00000002161cc914 0x216122000 + 698644 (<redacted> + 236)
3 CoreFoundation 0x00000002161c7824 0x216122000 + 677924 (<redacted> + 1360)
4 CoreFoundation 0x00000002161c6fb4 0x216122000 + 675764 (CFRunLoopRunSpecific + 436)
5 GraphicsServices 0x00000002183c879c 0x2183be000 + 42908 (GSEventRunModal + 104)
6 UIKitCore 0x0000000242c0dc38 0x242351000 + 9161784 (UIApplicationMain + 212)
7 HttpServer 0x00000001013a55e4 0x1013a0000 + 21988 (main + 128)
8 libdyld.dylib 0x0000000215c8a8e0 0x215c89000 + 6368 (<redacted> + 4)

Thread 1:
0 libsystem_kernel.dylib 0x0000000215dd7b74 0x215db4000 + 146292 (__workq_kernreturn + 8)
1 libsystem_pthread.dylib 0x0000000215e5a1f8 0x215e4e000 + 49656 (_pthread_wqthread + 532)

Thread 2:
0 libsystem_kernel.dylib 0x0000000215dd7b74 0x215db4000 + 146292 (__workq_kernreturn + 8)
1 libsystem_pthread.dylib 0x0000000215e5a138 0x215e4e000 + 49464 (_pthread_wqthread + 340)

Thread 3 name: Dispatch queue: com.apple.root.default-qos
Thread 3:
0 libsystem_kernel.dylib 0x0000000215dd5df4 0x215db4000 + 138740 (accept + 8)
1 HttpServer 0x0000000101412b3c 0x1013a0000 + 469820 (-[B4IFastServerSocket accept] + 68)
2 HttpServer 0x00000001014103a4 0x1013a0000 + 459684 (__32-[B4IServerSocketWrapper Listen]_block_invoke + 124)
3 libdispatch.dylib 0x0000000215c78a38 0x215c19000 + 391736 (<redacted> + 24)
4 libdispatch.dylib 0x0000000215c797d4 0x215c19000 + 395220 (<redacted> + 16)
5 libdispatch.dylib 0x0000000215c1dc80 0x215c19000 + 19584 (<redacted> + 684)
6 libdispatch.dylib 0x0000000215c2a030 0x215c19000 + 69680 (<redacted> + 372)
7 libdispatch.dylib 0x0000000215c2a8d4 0x215c19000 + 71892 (<redacted> + 128)
8 libsystem_pthread.dylib 0x0000000215e5a1b4 0x215e4e000 + 49588 (_pthread_wqthread + 464)

Thread 4:
0 libsystem_kernel.dylib 0x0000000215dd7b74 0x215db4000 + 146292 (__workq_kernreturn + 8)
1 libsystem_pthread.dylib 0x0000000215e5a1f8 0x215e4e000 + 49656 (_pthread_wqthread + 532)

Thread 5 name: com.apple.uikit.eventfetch-thread
Thread 5:
0 libsystem_kernel.dylib 0x0000000215dcc0f4 0x215db4000 + 98548 (mach_msg_trap + 8)
1 libsystem_kernel.dylib 0x0000000215dcb5a0 0x215db4000 + 95648 (mach_msg + 72)
2 CoreFoundation 0x00000002161cc914 0x216122000 + 698644 (<redacted> + 236)
3 CoreFoundation 0x00000002161c7824 0x216122000 + 677924 (<redacted> + 1360)
4 CoreFoundation 0x00000002161c6fb4 0x216122000 + 675764 (CFRunLoopRunSpecific + 436)
5 Foundation 0x0000000216b9595c 0x216b8e000 + 31068 (<redacted> + 300)
6 Foundation 0x0000000216b957ec 0x216b8e000 + 30700 (<redacted> + 96)
7 UIKitCore 0x0000000242cf3754 0x242351000 + 10102612 (<redacted> + 136)
8 Foundation 0x0000000216cc24a0 0x216b8e000 + 1262752 (<redacted> + 984)
9 libsystem_pthread.dylib 0x0000000215e592c0 0x215e4e000 + 45760 (<redacted> + 128)
10 libsystem_pthread.dylib 0x0000000215e59220 0x215e4e000 + 45600 (_pthread_start + 44)

Thread 6:

Thread 7:
0 libsystem_kernel.dylib 0x0000000215dd7400 0x215db4000 + 144384 (__semwait_signal + 8)
1 libsystem_c.dylib 0x0000000215d4d56c 0x215cd5000 + 492908 (nanosleep + 212)
2 libsystem_c.dylib 0x0000000215d4d36c 0x215cd5000 + 492396 (sleep + 44)
3 HttpServer 0x0000000101477534 0x1013a0000 + 881972 (monitorCachedData + 132)
4 libsystem_pthread.dylib 0x0000000215e592c0 0x215e4e000 + 45760 (<redacted> + 128)
5 libsystem_pthread.dylib 0x0000000215e59220 0x215e4e000 + 45600 (_pthread_start + 44)

Thread 8 name: KSCrash Exception Handler (Secondary)
Thread 8:
0 libsystem_kernel.dylib 0x0000000215dcc0f4 0x215db4000 + 98548 (mach_msg_trap + 8)
1 libsystem_kernel.dylib 0x0000000215dcb5a0 0x215db4000 + 95648 (mach_msg + 72)
2 HttpServer 0x0000000101473de0 0x1013a0000 + 867808 (handleExceptions + 208)
3 libsystem_pthread.dylib 0x0000000215e592c0 0x215e4e000 + 45760 (<redacted> + 128)
4 libsystem_pthread.dylib 0x0000000215e59220 0x215e4e000 + 45600 (_pthread_start + 44)

Thread 9 name: KSCrash Exception Handler (Primary)
Thread 9:

Thread 10 Crashed:
0 HttpServer 0x00000001014182bc 0x1013a0000 + 492220 (-[B4IAIN closeUnexpected] + 48)
1 HttpServer 0x00000001014182b4 0x1013a0000 + 492212 (-[B4IAIN closeUnexpected] + 40)
2 HttpServer 0x0000000101418030 0x1013a0000 + 491568 (-[B4IAIN run] + 3596)
3 Foundation 0x0000000216cc24a0 0x216b8e000 + 1262752 (<redacted> + 984)
4 libsystem_pthread.dylib 0x0000000215e592c0 0x215e4e000 + 45760 (<redacted> + 128)
5 libsystem_pthread.dylib 0x0000000215e59220 0x215e4e000 + 45600 (_pthread_start + 44)

Thread 10 crashed with ARM-64 Thread State:
cpsr: 0x0000000060000000 fp: 0x000000016efd2aa0 lr: 0x00000001014182b4 pc: 0x00000001014182bc
sp: 0x000000016efd2a70 x0: 0x0000000000000000 x1: 0x0000000101496fdf x10: 0x000000000000000f
x11: 0x000000000000000f x12: 0x000000000000000d x13: 0x0000000000000000 x14: 0x0000000101496fdf
x15: 0x00000002832c1bd0 x16: 0x000000021542c66c x17: 0x000000010141828c x18: 0x0000000000000000
x19: 0x00000002825b16e8 x2: 0x0000000000002000 x20: 0x0000000000000000 x21: 0x00000001014e0000
x22: 0x0000000000000018 x23: 0x00000002813d0140 x24: 0x00000002813d0140 x25: 0x00000002825b16c0
x26: 0x0000000283ee4cf0 x27: 0x7bad358678fc00fd x28: 0x00000001014e0000 x29: 0x000000016efd2aa0
x3: 0x0000000000000000 x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x00000001014de000
x7: 0x00000001014de000 x8: 0x0000000000000030 x9: 0x0000000000000000
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
IReleaseLogger did not report an error to me, I changed the CharacterEncoding to UTF-8 and it does not generate errors. Maybe it was that but I'm not sure because I changed a lot of things.

Maybe it can be useful to someone in the future.
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
I will add another guess: make sure not to treat raw bytes as string. If you need to "collect" bytes then use B4XBytesBuilder.
I understood that the hard way this morning, and I used B4XBytesBuilder which solved many problems for me.

Now there are other strange problems, but maybe in another post I will address them.
But I think I'll have to start from scratch and rewrite it
 
Last edited:
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Update: Summarizing, the problems that generated the error on AsyncStreams were three. None of these three errors were detected by the ReleaseLogger, so I struggled to find them.

(1) The encoding of the text that I send with AsyncStreams must be UTF8, (2) there was an error in the formula to transform the date into a string (my wrong)

(3) Lastly, many 'weird' issues have been fixed by acknowledging that the iPhone device I use for testing is slow, especially heavier uploads take a long time. Therefore, the requests must be kept on hold until the execution of the previous ones is completed in order not to compromise the transmission.
Using an UpLoad progression index I discovered and solved the strange problems that occurred.

I have to get a new iPhone, I know! But I am sorry to have to give Steve Jobs hundreds of dollars, especially knowing that he is also dead and he won't need it.
 
Last edited:
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
AsyncStreams has nothing to do with encoding. AsyncStreams sends and receives bytes.
Yes that's right, I expressed myself badly. I meant that when I send ( with AsyncStreams) the HandShake string turning it into Byte, I had to use UTF8 encoding otherwise it would fail.

The same when I received the Bytes from AsyncStreams and extracted the HandShake string I had to use UTF8 encoding.
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
There is no valuable information in this report.
I finally got an error log with iReleaseLogger. There is an error actually on aSyncSteams.
B4X:
Target is null. Method called: _astream_newdata:
Stack Trace: (
  CoreFoundation       <redacted> + 252
  libobjc.A.dylib      objc_exception_throw + 56
  CoreFoundation       <redacted> + 0
  HttpServer           +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 172
  HttpServer           -[B4I raiseEvent:event:params:] + 548
  HttpServer           __50-[B4I raiseEventFromDifferentThread:event:params:]_block_invoke + 60
  libdispatch.dylib    <redacted> + 24
  libdispatch.dylib    <redacted> + 16
  libdispatch.dylib    <redacted> + 1068
  CoreFoundation       <redacted> + 12
CoreFoundation       <redacted> + 1924
CoreFoundation       CFRunLoopRunSpecific + 436
GraphicsServices     GSEventRunModal + 104
UIKitCore            UIApplicationMain + 212
HttpServer           main + 128
libdyld.dylib        <redacted> + 4

The offending event is this:
B4X:
private Sub astream_NewData (Buffer() As Byte)
    Cache.Append(Buffer)
    InTimeBrowserResponse=True
    ExtractHandShake
End Sub
I still don't understand what the problem is that only comes up in the release version
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
This observation was very helpful to me. The aSyncStream instance was released due to premature closure of the stream
 
Upvote 0
Top