Skip to content

flushEvents cause Swift App crash #23

@MidnightAck

Description

@MidnightAck

Describe the bug

app crash by chance, stack shows it crash in flushEvents.

Steps To Reproduce

.

Expected behavior

do not crash

Clickstream-Swift Version

0.4.2

Swift version

5.8

Xcode version

14.3.1

Relevant log output

Crashed: com.apple.root.background-qos
0  libswiftCore.dylib             0x402ca4 swift_unknownObjectRetain + 20
1  libswiftNetwork.dylib          0x391b0 initializeWithCopy for NWPath + 1292
2  libswiftNetwork.dylib          0x3ab60 outlined init with copy of NWPath + 88
3  libswiftNetwork.dylib          0x36ad0 NWPathMonitor.currentPath.getter + 88
4  gomerry                        0x236ed4 AWSClickstreamPlugin.flushEvents() + 22 (NetworkMonitor.swift:22)
5  gomerry                        0x239898 closure #2 in AWSClickstreamPlugin.configure(using:) + 60 (AWSClickstreamPlugin+Configure.swift:60)
6  gomerry                        0x257348 thunk for @escaping @callee_guaranteed () -> () + 4312625992 (<compiler-generated>:4312625992)
7  libdispatch.dylib              0x3eac _dispatch_client_callout + 20
8  libdispatch.dylib              0x7330 _dispatch_continuation_pop + 504
9  libdispatch.dylib              0x1a908 _dispatch_source_invoke + 1588
10 libdispatch.dylib              0x15944 _dispatch_root_queue_drain + 396
11 libdispatch.dylib              0x16158 _dispatch_worker_thread2 + 164
12 libsystem_pthread.dylib        0xda0 _pthread_wqthread + 228
13 libsystem_pthread.dylib        0xb7c start_wqthread + 8

Is this a regression?

No

Regression additional context

No response

Device

iPhone 11

iOS Version

16.5.1

Specific to simulators

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions