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

RxExample-iOS cannot run #2650

Open
6 of 17 tasks
debolee opened this issue Jan 6, 2025 · 2 comments
Open
6 of 17 tasks

RxExample-iOS cannot run #2650

debolee opened this issue Jan 6, 2025 · 2 comments

Comments

@debolee
Copy link

debolee commented Jan 6, 2025

RxExample-iOS cannot run

when I run RxExample-iOS or RxExample-macOS, The program is terminated as soon as it is started, and the stack of Thread 1 is displayed as follows:

#0 0x0000000194a2d318 in swift_willThrow ()
#1 0x00000001808dd7cc in Foundation.readBytesFromFile(path: Foundation.PathOrURL, reportProgress: Swift.Bool, maxLength: Swift.Optional<Swift.Int>, options: __C.NSDataReadingOptions, attributesToRead: Swift.Array<Swift.String>, attributes: inout Swift.Dictionary<Swift.String, Foundation.Data>) throws -> Foundation.ReadBytesResult ()
#2 0x00000001808e214c in function signature specialization <Arg[7] = Dead> of static __C.NSData._readBytes(fromPath: Swift.String, maxLength: Swift.Int, bytes: Swift.UnsafeMutablePointer<Swift.Optional<Swift.UnsafeMutableRawPointer>>, length: Swift.UnsafeMutablePointer<Swift.Int>, didMap: Swift.UnsafeMutablePointer<ObjectiveC.ObjCBool>, options: __C.NSDataReadingOptions, reportProgress: Swift.Bool) throws -> () ()
#3 0x00000001808e06f8 in @objc static __C.NSData._readBytes(fromPath: Swift.String, maxLength: Swift.Int, bytes: Swift.UnsafeMutablePointer<Swift.Optional<Swift.UnsafeMutableRawPointer>>, length: Swift.UnsafeMutablePointer<Swift.Int>, didMap: Swift.UnsafeMutablePointer<ObjectiveC.ObjCBool>, options: __C.NSDataReadingOptions, reportProgress: Swift.Bool) throws -> () ()
#4 0x0000000180e57c98 in -[NSData(NSData) initWithContentsOfFile:options:maxLength:error:] ()
#5 0x0000000180e57910 in +[NSData(NSData) dataWithContentsOfURL:options:error:] ()
#6 0x00000001859b9cf8 in _queue_ensureExistenceOfKnownSceneSessionMap ()
#7 0x00000001859ba588 in __53+[_UICanvasUserActivityManager _knownSceneSessionMap]_block_invoke ()
#8 0x0000000105a727b8 in _dispatch_client_callout ()
#9 0x0000000105a83530 in _dispatch_lane_barrier_sync_invoke_and_complete ()
#10 0x00000001859ba510 in +[_UICanvasUserActivityManager _knownSceneSessionMap] ()
#11 0x0000000185accde4 in ___UIApplicationSceneSessionSet_block_invoke ()
#12 0x0000000105a727b8 in _dispatch_client_callout ()
#13 0x0000000105a7426c in _dispatch_once_callout ()
#14 0x0000000185aca1c8 in -[UIApplication(SessionAndConfigurationInternal) _openSessionForPersistentIdentifier:] ()
#15 0x0000000185aa4254 in -[UIApplication _connectUISceneFromFBSScene:transitionContext:] ()
#16 0x0000000185aa470c in -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] ()
#17 0x0000000185573c08 in -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] ()
#18 0x0000000187994ce4 in __95-[FBSScene _callOutQueue_didCreateWithTransitionContext:alternativeCreationCallout:completion:]_block_invoke ()
#19 0x00000001879950a4 in -[FBSScene _callOutQueue_coalesceClientSettingsUpdates:] ()
#20 0x0000000187994b64 in -[FBSScene _callOutQueue_didCreateWithTransitionContext:alternativeCreationCallout:completion:] ()
#21 0x00000001879c1d50 in __93-[FBSWorkspaceScenesClient _callOutQueue_sendDidCreateForScene:transitionContext:completion:]_block_invoke.156 ()
#22 0x00000001879a1618 in -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] ()
#23 0x00000001879c0220 in -[FBSWorkspaceScenesClient _callOutQueue_sendDidCreateForScene:transitionContext:completion:] ()
#24 0x0000000105a727b8 in _dispatch_client_callout ()
#25 0x0000000105a763bc in _dispatch_block_invoke_direct ()
#26 0x00000001879e4b58 in FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK ()
#27 0x00000001879e4a34 in -[FBSMainRunLoopSerialQueue _targetQueue_performNextIfPossible] ()
#28 0x00000001879e4b8c in -[FBSMainRunLoopSerialQueue _performNextFromRunLoopSource] ()
#29 0x000000018041b324 in CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION ()
#30 0x000000018041b26c in __CFRunLoopDoSource0 ()
#31 0x000000018041aa2c in __CFRunLoopDoSources0 ()
#32 0x00000001804150b0 in __CFRunLoopRun ()
#33 0x0000000180414960 in CFRunLoopRunSpecific ()
#34 0x0000000190183b10 in GSEventRunModal ()
#35 0x0000000185aa2b40 in -[UIApplication _run] ()
#36 0x0000000185aa6d38 in UIApplicationMain ()
#37 0x00000001042a0854 in main at
#38 0x0000000104411410 in start_sim ()
#39 0x0000000104516154 in start ()

RxSwift/RxCocoa/RxBlocking/RxTest version/commit

latest main branch

Platform/Environment

  • iOS
  • macOS
  • tvOS
  • watchOS
  • playgrounds

How easy is to reproduce? (chances of successful reproduce after running the self contained code)

  • easy, 100% repro
  • sometimes, 10%-100%
  • hard, 2% - 10%
  • extremely hard, %0 - 2%

Xcode version:

Xcode 15.4, Xcode 16.0

Installation method:

  • CocoaPods
  • Carthage
  • Git submodules

I have multiple versions of Xcode installed:
(so we can know if this is a potential cause of your issue)

  • yes (which ones)
  • no

Level of RxSwift knowledge:
(this is so we can understand your level of knowledge
and formulate the response in an appropriate manner)

  • just starting
  • I have a small code base
  • I have a significant code base
@danielt1263
Copy link
Collaborator

Just to make sure I understand... You forked the latest main branch, then built and ran the example app and it failed? I'm not seeing that behavior. Please provide the path you are using so I can reproduce the problem.

@debolee
Copy link
Author

debolee commented Jan 7, 2025

Just to make sure I understand... You forked the latest main branch, then built and ran the example app and it failed? I'm not seeing that behavior. Please provide the path you are using so I can reproduce the problem.

yes,I clone the latest main branch to local,open the Rx.xcworkspace with Xcode 15.4,then switch to RxExample-iOS scheme and Run,it's terminated as soon as it is started。

file path: Documents/Projects/RxSwift/Rx.xcworkspace
I use Xcodes to manage multiple versions of Xcode,and now version 15.4 is activated。

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

No branches or pull requests

2 participants