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

Xcode 15 RC NIO-ELT-0-#0 (82): EXC_BAD_ACCESS (code=1, address=0x0) Error #1648

Open
Eggsy94 opened this issue Sep 13, 2023 · 21 comments
Open
Labels

Comments

@Eggsy94
Copy link

Eggsy94 commented Sep 13, 2023

Describe the bug

During the process of calling the getTLSVersionSync method in my Swift code, I encountered an error at the line where NWProtocolTLS.definition is referenced. This is a critical part of the method that attempts to fetch the TLS version either from the Network framework or NIOSSL. I'm not sure why the error is occurring, but need assistance in resolving it.

I am currently using grpc-swift version "1.15.0" / Xcode version 15.0 RC

To reproduce

The steps to reproduce this bug are as follows:

class EventLoopGroupProvider {
  static let shared = MultiThreadedEventLoopGroup(numberOfThreads: 1)
}

public protocol InitializableGRPCClient: GRPCClient {
  init(channel: GRPCChannel, defaultCallOptions: CallOptions)
}

public protocol gRPC_ClientProtocol {
  associatedtype Client: InitializableGRPCClient
  static func makeClient(_ callOptions: CallOptions) async throws -> Client
}

public extension gRPC_ClientProtocol {
  static func makeClient(_ callOptions: CallOptions = .init()) async throws -> Client {
    try await withCheckedThrowingContinuation { continuation in
      DispatchQueue.global(qos: .background).async {
        do {
          let endpoint = "tls-\(AppSetting.shared.gRPC_EndPoint)"

          let channel = try GRPCChannelPool.with(
            target: .host(endpoint),
            transportSecurity: .tls(.makeClientConfigurationBackedByNIOSSL()),
            eventLoopGroup: EventLoopGroupProvider.shared
          )
          let client: Client = .init(channel: channel, defaultCallOptions: callOptions)
          continuation.resume(returning: client)
        } catch {
          continuation.resume(throwing: error)
        }
      }
    }
  }
}

gRPC Server Description

There was no problem with TLS processing for that packet.
However, as soon as the client sends the data encrypted with the session key exchanged in TLS, it is immediately disconnected on the server side.

@Eggsy94 Eggsy94 added the bug label Sep 13, 2023
@glbrntt
Copy link
Collaborator

glbrntt commented Sep 13, 2023

During the process of calling the getTLSVersionSync method in my Swift code, I encountered an error at the line where NWProtocolTLS.definition is referenced.

What error do you see?

There was no problem with TLS processing for that packet.
However, as soon as the client sends the data encrypted with the session key exchanged in TLS, it is immediately disconnected on the server side.

Have you tried looking at a packet capture or logs?

@Eggsy94
Copy link
Author

Eggsy94 commented Sep 14, 2023

What error do you see?

No, there was no error log at all.
just NIO-ELT-0-#0 (83): EXC_BAD_ACCESS (code=1, address=0x0)

And in the same thread stack GRPCIdleHandler line 257
let tlsVersion = try? context.channel.getTLSVersionSync()
Everything below has since been moved to the Swift-nio library stack.

Have you tried looking at a packet capture or logs?

yes using Wireshark

rvictl -s UDID
ifconfig rvi0

@Lukasa
Copy link
Collaborator

Lukasa commented Sep 14, 2023

Can you provide the full crashing call stack please?

@Eggsy94
Copy link
Author

Eggsy94 commented Sep 14, 2023

NIO-ELT-0-#0 (84)#0	0x0000000000000000 in 0x00000000 ()
#1	0x000000010847f13c in Channel.getTLSVersionSync(file:line:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/grpc-swift/Sources/GRPC/TLSVersion.swift:116
#2	0x00000001083d0f78 in GRPCIdleHandler.userInboundEventTriggered(context:event:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/grpc-swift/Sources/GRPC/GRPCIdleHandler.swift:257
#3	0x00000001083d27a8 in protocol witness for _ChannelInboundHandler.userInboundEventTriggered(context:event:) in conformance GRPCIdleHandler ()
#4	0x0000000108721b48 in ChannelHandlerContext.invokeUserInboundEventTriggered(_:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1742
#5	0x0000000108726340 in ChannelHandlerContext.fireUserInboundEventTriggered(_:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1537
#6	0x000000010870c854 in _ChannelInboundHandler.userInboundEventTriggered(context:event:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelHandler.swift:304
#7	0x0000000108912a98 in protocol witness for _ChannelInboundHandler.userInboundEventTriggered(context:event:) in conformance NIOHTTP2Handler ()
#8	0x0000000108721b48 in ChannelHandlerContext.invokeUserInboundEventTriggered(_:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1742
#9	0x0000000108726340 in ChannelHandlerContext.fireUserInboundEventTriggered(_:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1537
#10	0x000000010847e660 in TLSVerificationHandler.userInboundEventTriggered(context:event:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/grpc-swift/Sources/GRPC/TLSVerificationHandler.swift:63
#11	0x000000010847e984 in protocol witness for _ChannelInboundHandler.userInboundEventTriggered(context:event:) in conformance TLSVerificationHandler ()
#12	0x0000000108721b48 in ChannelHandlerContext.invokeUserInboundEventTriggered(_:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1742
#13	0x0000000108726340 in ChannelHandlerContext.fireUserInboundEventTriggered(_:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1537
#14	0x0000000108aa3768 in NIOSSLHandler.completeHandshake(context:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLHandler.swift:313
#15	0x0000000108aa3074 in NIOSSLHandler.doHandshakeStep(context:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLHandler.swift:294
#16	0x0000000108aa12c4 in NIOSSLHandler.channelRead(context:data:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLHandler.swift:169
#17	0x0000000108aa7658 in protocol witness for _ChannelInboundHandler.channelRead(context:data:) in conformance NIOSSLHandler ()
#18	0x00000001087216c0 in ChannelHandlerContext.invokeChannelRead(_:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1702
#19	0x000000010871dfa0 in ChannelPipeline.fireChannelRead0(_:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:897
#20	0x0000000108723bf0 in ChannelPipeline.SynchronousOperations.fireChannelRead(_:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1162
#21	0x00000001089d6b54 in BaseStreamSocketChannel.readFromSocket() at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/BaseStreamSocketChannel.swift:133
#22	0x00000001089ce9ac in BaseSocketChannel.readable0() at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/BaseSocketChannel.swift:1087
#23	0x00000001089cfa00 in BaseSocketChannel.readable() at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/BaseSocketChannel.swift:1071
#24	0x00000001089d0868 in protocol witness for SelectableChannel.readable() in conformance BaseSocketChannel<τ_0_0> ()
#25	0x0000000108a54e90 in SelectableEventLoop.handleEvent<τ_0_0>(_:channel:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/SelectableEventLoop.swift:389
#26	0x0000000108a562dc in closure #2 in closure #2 in SelectableEventLoop.run() at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/SelectableEventLoop.swift:464
#27	0x0000000108a5a7f4 in partial apply for closure #2 in closure #2 in SelectableEventLoop.run() ()
#28	0x0000000108a6a20c in Selector.whenReady0(strategy:onLoopBegin:_:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/SelectorKqueue.swift:258
#29	0x0000000108a62158 in Selector.whenReady(strategy:onLoopBegin:_:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/SelectorGeneric.swift:288
#30	0x0000000108a55fc8 in closure #2 in SelectableEventLoop.run() at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/SelectableEventLoop.swift:456
#31	0x0000000108a59498 in partial apply for closure #2 in SelectableEventLoop.run() ()
#32	0x0000000108a50620 in closure #1 in withAutoReleasePool<τ_0_0>(_:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/SelectableEventLoop.swift:26
#33	0x0000000108a50688 in partial apply for closure #1 in withAutoReleasePool<τ_0_0>(_:) ()
#34	0x00000001b1dea310 in autoreleasepool<τ_0_0>(invoking:) ()
#35	0x0000000108a505b0 in withAutoReleasePool<τ_0_0>(_:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/SelectableEventLoop.swift:25
#36	0x0000000108a55208 in SelectableEventLoop.run() at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/SelectableEventLoop.swift:455
#37	0x0000000108a0f998 in static MultiThreadedEventLoopGroup.runTheLoop(thread:parentGroup:canEventLoopBeShutdownIndividually:selectorFactory:initializer:_:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/MultiThreadedEventLoopGroup.swift:95
#38	0x0000000108a0ff08 in closure #1 in static MultiThreadedEventLoopGroup.setupThreadAndEventLoop(name:parentGroup:selectorFactory:initializer:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/MultiThreadedEventLoopGroup.swift:116
#39	0x0000000108a15a70 in partial apply for closure #1 in static MultiThreadedEventLoopGroup.setupThreadAndEventLoop(name:parentGroup:selectorFactory:initializer:) ()
#40	0x0000000108a8b0c0 in thunk for @escaping @callee_guaranteed (@guaranteed NIOThread) -> () ()
#41	0x0000000108a8f1d0 in closure #1 in static ThreadOpsPosix.run(handle:args:detachThread:) at /Users/Project/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/ThreadPosix.swift:112
#42	0x0000000108a8f28c in @objc closure #1 in static ThreadOpsPosix.run(handle:args:detachThread:) ()
#43	0x00000001e99a66b8 in _pthread_start ()

Is this enough?

@Lukasa
Copy link
Collaborator

Lukasa commented Sep 14, 2023

Yes, it might be. Do you have a full crash report? This looks to me like a crash getting NWProtocolTLS.definition, but I'd like to double-check it.

@Eggsy94
Copy link
Author

Eggsy94 commented Sep 14, 2023

Thread 1 Queue : com.apple.main-thread (serial)
#0	0x00000001c8b26ca4 in mach_msg2_trap ()
#1	0x00000001c8b39b74 in mach_msg2_internal ()
#2	0x00000001c8b39e4c in mach_msg_overwrite ()
#3	0x00000001c8b271e8 in mach_msg ()
#4	0x0000000189be0024 in __CFRunLoopServiceMachPort ()
#5	0x0000000189be1250 in __CFRunLoopRun ()
#6	0x0000000189be63ec in CFRunLoopRunSpecific ()
#7	0x00000001c50fc35c in GSEventRunModal ()
#8	0x000000018bf72f58 in -[UIApplication _run] ()
#9	0x000000018bf72bbc in UIApplicationMain ()
#10	0x000000018d5b7c50 in ___lldb_unnamed_symbol70900 ()
#11	0x000000018d51e1ec in ___lldb_unnamed_symbol67519 ()
#12	0x000000018d508294 in ___lldb_unnamed_symbol67064 ()
#13	0x00000001049e0a80 in static CustomizeDemoApp.$main() ()
#14	0x00000001049e0b44 in main at /Users/eggsy/Work/client-ios/Projects/Feature/Customize/MainComponent/DemoApp/Sources/CustomizeDemoApp.swift:7
#15	0x00000001a9118dec in start ()
com.apple.uikit.eventfetch-thread (6)#0	0x00000001c8b26ca4 in mach_msg2_trap ()
#1	0x00000001c8b39b74 in mach_msg2_internal ()
#2	0x00000001c8b39e4c in mach_msg_overwrite ()
#3	0x00000001c8b271e8 in mach_msg ()
#4	0x0000000189be0024 in __CFRunLoopServiceMachPort ()
#5	0x0000000189be1250 in __CFRunLoopRun ()
#6	0x0000000189be63ec in CFRunLoopRunSpecific ()
#7	0x0000000183e66fb4 in -[NSRunLoop(NSRunLoop) runMode:beforeDate:] ()
#8	0x0000000183e66e9c in -[NSRunLoop(NSRunLoop) runUntilDate:] ()
#9	0x000000018c0a5cc8 in -[UIEventFetcher threadMain] ()
#10	0x0000000183e80524 in __NSThread__start__ ()
#11	0x00000001e99a66b8 in _pthread_start ()
NIO-ELT-0-#0 (10)#0	0x0000000000000000 in 0x00000000 ()
#1	0x000000010925b13c in Channel.getTLSVersionSync(file:line:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/grpc-swift/Sources/GRPC/TLSVersion.swift:116
#2	0x00000001091acf78 in GRPCIdleHandler.userInboundEventTriggered(context:event:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/grpc-swift/Sources/GRPC/GRPCIdleHandler.swift:257
#3	0x00000001091ae7a8 in protocol witness for _ChannelInboundHandler.userInboundEventTriggered(context:event:) in conformance GRPCIdleHandler ()
#4	0x00000001095047c8 in ChannelHandlerContext.invokeUserInboundEventTriggered(_:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1742
#5	0x0000000109508fc0 in ChannelHandlerContext.fireUserInboundEventTriggered(_:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1537
#6	0x00000001094ef4d4 in _ChannelInboundHandler.userInboundEventTriggered(context:event:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelHandler.swift:304
#7	0x00000001097069a4 in protocol witness for _ChannelInboundHandler.userInboundEventTriggered(context:event:) in conformance NIOHTTP2Handler ()
#8	0x00000001095047c8 in ChannelHandlerContext.invokeUserInboundEventTriggered(_:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1742
#9	0x0000000109508fc0 in ChannelHandlerContext.fireUserInboundEventTriggered(_:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1537
#10	0x000000010925a660 in TLSVerificationHandler.userInboundEventTriggered(context:event:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/grpc-swift/Sources/GRPC/TLSVerificationHandler.swift:63
#11	0x000000010925a984 in protocol witness for _ChannelInboundHandler.userInboundEventTriggered(context:event:) in conformance TLSVerificationHandler ()
#12	0x00000001095047c8 in ChannelHandlerContext.invokeUserInboundEventTriggered(_:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1742
#13	0x0000000109508fc0 in ChannelHandlerContext.fireUserInboundEventTriggered(_:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1537
#14	0x0000000109897644 in NIOSSLHandler.completeHandshake(context:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLHandler.swift:313
#15	0x0000000109896f50 in NIOSSLHandler.doHandshakeStep(context:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLHandler.swift:294
#16	0x00000001098951a0 in NIOSSLHandler.channelRead(context:data:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLHandler.swift:169
#17	0x000000010989b534 in protocol witness for _ChannelInboundHandler.channelRead(context:data:) in conformance NIOSSLHandler ()
#18	0x0000000109504340 in ChannelHandlerContext.invokeChannelRead(_:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1702
#19	0x0000000109500c20 in ChannelPipeline.fireChannelRead0(_:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:897
#20	0x0000000109506870 in ChannelPipeline.SynchronousOperations.fireChannelRead(_:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1162
#21	0x00000001097caa44 in BaseStreamSocketChannel.readFromSocket() at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/BaseStreamSocketChannel.swift:133
#22	0x00000001097c289c in BaseSocketChannel.readable0() at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/BaseSocketChannel.swift:1087
#23	0x00000001097c38f0 in BaseSocketChannel.readable() at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/BaseSocketChannel.swift:1071
#24	0x00000001097c4758 in protocol witness for SelectableChannel.readable() in conformance BaseSocketChannel<τ_0_0> ()
#25	0x0000000109848d6c in SelectableEventLoop.handleEvent<τ_0_0>(_:channel:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/SelectableEventLoop.swift:389
#26	0x000000010984a1b8 in closure #2 in closure #2 in SelectableEventLoop.run() at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/SelectableEventLoop.swift:464
#27	0x000000010984e6d0 in partial apply for closure #2 in closure #2 in SelectableEventLoop.run() ()
#28	0x000000010985e0e8 in Selector.whenReady0(strategy:onLoopBegin:_:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/SelectorKqueue.swift:258
#29	0x0000000109856034 in Selector.whenReady(strategy:onLoopBegin:_:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/SelectorGeneric.swift:288
#30	0x0000000109849ea4 in closure #2 in SelectableEventLoop.run() at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/SelectableEventLoop.swift:456
#31	0x000000010984d374 in partial apply for closure #2 in SelectableEventLoop.run() ()
#32	0x00000001098444fc in closure #1 in withAutoReleasePool<τ_0_0>(_:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/SelectableEventLoop.swift:26
#33	0x0000000109844564 in partial apply for closure #1 in withAutoReleasePool<τ_0_0>(_:) ()
#34	0x00000001b1dea310 in autoreleasepool<τ_0_0>(invoking:) ()
#35	0x000000010984448c in withAutoReleasePool<τ_0_0>(_:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/SelectableEventLoop.swift:25
#36	0x00000001098490e4 in SelectableEventLoop.run() at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/SelectableEventLoop.swift:455
#37	0x0000000109803874 in static MultiThreadedEventLoopGroup.runTheLoop(thread:parentGroup:canEventLoopBeShutdownIndividually:selectorFactory:initializer:_:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/MultiThreadedEventLoopGroup.swift:95
#38	0x0000000109803de4 in closure #1 in static MultiThreadedEventLoopGroup.setupThreadAndEventLoop(name:parentGroup:selectorFactory:initializer:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/MultiThreadedEventLoopGroup.swift:116
#39	0x000000010980994c in partial apply for closure #1 in static MultiThreadedEventLoopGroup.setupThreadAndEventLoop(name:parentGroup:selectorFactory:initializer:) ()
#40	0x000000010987ef9c in thunk for @escaping @callee_guaranteed (@guaranteed NIOThread) -> () ()
#41	0x00000001098830ac in closure #1 in static ThreadOpsPosix.run(handle:args:detachThread:) at /Users/eggsy/Work/client-ios/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-nio/Sources/NIOPosix/ThreadPosix.swift:112
#42	0x0000000109883168 in @objc closure #1 in static ThreadOpsPosix.run(handle:args:detachThread:) ()
#43	0x00000001e99a66b8 in _pthread_start ()
Thread 12#0	0x00000001c8b271ac in __workq_kernreturn ()
Thread 13#0	0x00000001c8b271ac in __workq_kernreturn ()
Thread 16#0	0x00000001c8b271ac in __workq_kernreturn ()
Thread 17#0	0x00000001c8b271ac in __workq_kernreturn ()
Thread 18#0	0x00000001e99a5b74 in start_wqthread ()
Thread 19#0	0x00000001c8b271ac in __workq_kernreturn ()
Thread 20#0	0x00000001c8b271ac in __workq_kernreturn ()
Thread 21#0	0x0000000000000000 in 0x00000000 ()
com.apple.SwiftUI.AsyncRenderer (22)#0	0x00000001c8b26ca4 in mach_msg2_trap ()
#1	0x00000001c8b39b74 in mach_msg2_internal ()
#2	0x00000001c8b39e4c in mach_msg_overwrite ()
#3	0x00000001c8b271e8 in mach_msg ()
#4	0x0000000189be0024 in __CFRunLoopServiceMachPort ()
#5	0x0000000189be1250 in __CFRunLoopRun ()
#6	0x0000000189be63ec in CFRunLoopRunSpecific ()
#7	0x0000000183e66fb4 in -[NSRunLoop(NSRunLoop) runMode:beforeDate:] ()
#8	0x0000000183e66e48 in -[NSRunLoop(NSRunLoop) run] ()
#9	0x000000018d49c59c in ___lldb_unnamed_symbol64677 ()
#10	0x000000018d49a6f4 in ___lldb_unnamed_symbol64630 ()
#11	0x0000000183e80524 in __NSThread__start__ ()
#12	0x00000001e99a66b8 in _pthread_start ()

This is everything. Is this what you want?

@Lukasa
Copy link
Collaborator

Lukasa commented Sep 15, 2023

Oh sorry, I wanted a crash report as derived from Console.app. The crash appears to be here, which would imply that this is an issue in your OS (and would require a feedback report to Apple), but there are a few other places the crash might manifest.

@Eggsy94
Copy link
Author

Eggsy94 commented Sep 15, 2023

log.md
Here is the Consol.app from the first grpc call to the crash when starting the app.

@Lukasa
Copy link
Collaborator

Lukasa commented Sep 18, 2023

Ah sorry, I was looking for a crash report, which is in the "Crash Reports" section of the sidebar.

@Eggsy94
Copy link
Author

Eggsy94 commented Sep 18, 2023

I think I've given you everything you can extract from the iOS app, not the Mac app. What more do you need? The crash report on the Console.app side only shows crash reports running on Mac.

@Lukasa
Copy link
Collaborator

Lukasa commented Sep 18, 2023

@Eggsy94
Copy link
Author

Eggsy94 commented Sep 19, 2023

Thank you, I learned one more thing thanks to you
This is what you want, right?
Overdare-2023-09-19-102550.txt

@Lukasa
Copy link
Collaborator

Lukasa commented Sep 21, 2023

That crash report is interesting because it shows a different call stack, this time we have a jump to zero in the TLSVerificationHandler. That seems inconsistent with your original report. Do your crashes still reproduce in GM Xcode?

@Eggsy94
Copy link
Author

Eggsy94 commented Sep 22, 2023

That's right, I'm so sad and I want to use XCode15 quickly

@Eggsy94
Copy link
Author

Eggsy94 commented Sep 25, 2023

Would it be possible to expedite the review of this issue? We are more than willing to provide any additional information you may need to accelerate the debugging process.

Thank you for your continued support.
@Lukasa

@Lukasa
Copy link
Collaborator

Lukasa commented Sep 25, 2023

Given that the crashes reproduce in GM Xcode, I think this is an issue with Network.framework. Can you file a feedback request using Feedback Assistant and post the number here?

@Eggsy94
Copy link
Author

Eggsy94 commented Sep 25, 2023

I submitted feedback to Apple
post number is FB13203435

@Eggsy94
Copy link
Author

Eggsy94 commented Oct 5, 2023

@Lukasa
Is all I can do is wait?😥

@Lukasa
Copy link
Collaborator

Lukasa commented Oct 5, 2023

Can I suggest adding a sysdiagnose to your feedback?

@Eggsy94
Copy link
Author

Eggsy94 commented Oct 6, 2023

ok I did add sysdiagnose in feedback

@anandnool
Copy link

anandnool commented Apr 8, 2024

I given solution to fix in xcode 15..check this link
fluttercommunity/plus_plugins#1955 (comment)

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

4 participants