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

Facing crash for 1% users in TCPTransport.write function #1032

Open
naren1449 opened this issue Jun 12, 2024 · 2 comments
Open

Facing crash for 1% users in TCPTransport.write function #1032

naren1449 opened this issue Jun 12, 2024 · 2 comments
Labels

Comments

@naren1449
Copy link

PhysicsWallah app is an Ed-tech platform providing live lectures to students, We use features like chat and poll along with the live classes. Facing issue in poll events and chat meta events as for that we are using starscream. Crash is creating a bad impact on the product. Our dau for iOS is a healthy 40-50k with student engagement of around 1-1.5 hours.

Describe the bug

This started happening after we updated to latest 4.0.8 in our latest release.

Steps to Reproduce

Behavior is random though as it is coming for 1% of users till now. we are not sending any data, we use this only for getting data from server to show Polls and chat meta events.

Expected behavior

Expected behavior should be no crash generated.

Environment:

  • OS/Version: Multiple iOS versions - 12.5.7 , 13.1.1 , 17.4.1, 16.6.0
  • Starscream Version - 4.0.8
  • Xcode version 15.0.1

Additional context

Crash details ----- All data collected from Firebase crashlytics

TCPTransport.write(data:completion:)
EXC_BAD_ACCESS (KERN_INVALID_ADDRESS)

Crashed: com.vluxe.starscream.writequeue
0 libswiftCore.dylib 0x3ab354 _swift_release_dealloc + 32
1 libswiftCore.dylib 0x3ac488 bool swift::RefCounts<swift::RefCountBitsT<(swift::RefCountInlinedness)1> >::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 136
2 Starscream 0x18c0c TCPTransport.write(data:completion:) + 100 (TCPTransport.swift:100)
3 Starscream 0x22a2c closure #1 in WSEngine.write(data:opcode:completion:) + 520
4 Starscream 0xc138 thunk for @escaping @callee_guaranteed @sendable () -> () + 28 (:28)
5 libdispatch.dylib 0x213c _dispatch_call_block_and_release + 32
6 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20
7 libdispatch.dylib 0xb400 _dispatch_lane_serial_drain + 748
8 libdispatch.dylib 0xbf30 _dispatch_lane_invoke + 380
9 libdispatch.dylib 0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
10 libdispatch.dylib 0x16528 _dispatch_workloop_worker_thread + 404
11 libsystem_pthread.dylib 0x1f20 _pthread_wqthread + 288
12 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8

@naren1449 naren1449 added the bug label Jun 12, 2024
@naren1449 naren1449 changed the title Facing crash for 1% users in TCPTransport.write function in our PhysicsWallah app. Facing crash for 1% users in TCPTransport.write function Jun 12, 2024
@CodeKunal
Copy link

Facing similar crash here #1033

@DeepBhupatkar
Copy link

Hello, did you manage to resolve the issue? I am encountering the same difficulty. Do you have any suggestions for a solution?

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

No branches or pull requests

3 participants