You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Using Xcode version 6.3 (6D570), the code below crashes in the iOS simulator when using the iPhone 5 simulator (or other 32-bit simulator) while it seems to work fine with the iPhone 6 simulator.
ViewController.swift:
let producer: SignalProducer<Int, NoError> = SignalProducer { observer, _ in
sendNext(observer, 1)
sendCompleted(observer)
}
producer |> collect |> start(
next: { x in println("Next value \(x)") },
completed: { _ in println("Completed") }
)
Description
Summary:
Using Xcode version 6.3 (6D570), the code below crashes in the iOS simulator when using the iPhone 5 simulator (or other 32-bit simulator) while it seems to work fine with the iPhone 6 simulator.
ViewController.swift:
The sample code uses the ReactiveCocoa library, which is included in the attached sample project along with its dependencies (at version https://github.com/ReactiveCocoa/ReactiveCocoa/releases/tag/v3.0-alpha.4)
Steps to Reproduce:
Unzip the attached rac-crash-radar.zip and open the included rac-crash-radar.xcodeproject in Xcode
Make sure the scheme "rac-crash-radar" is selected, and select iPhone 5 as the simulator device
Run the app (cmd+r)
Expected Results:
App runs successfully, and the following is printed in the console (this is what we get when running with the iPhone 6 simulator):
Actual Results:
App crashes with EXC_BAD_ACCESS. See attached rac-crash-radar.log for full stack trace.
Version:
Xcode version 6.3 (6D570), OS X 10.10.3 (14D131)
Notes:
Here's the related ReactiveCocoa issue: ReactiveCocoa/ReactiveCocoa#1888
Configuration:
iOS (iPhone 5) simulator running on a MacBook Pro (Retina, Mid 2012) with. Crash seems to happen on every run on my machine.
Attachments:
'rac-crash-radar.log' and 'rac-crash-radar.zip' were successfully uploaded.
rac-crash-radar.log:
(lldb) bt
if let
andguard let
to assign toself
in failable value type initializers #1: tid = 0xca3ce, 0x02256996 libswiftCore.dylib_swift_release_dealloc + 6, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x38) frame #0: 0x02256996 libswiftCore.dylib
_swift_release_dealloc + 6frame 22108400: Swift 2.0b4: Allow
if let
andguard let
to assign toself
in failable value type initializers #1: 0x001d1c6b ReactiveCocoa___lldb_unnamed_function261$$ReactiveCocoa + 171 frame #2: 0x001b6573 ReactiveCocoa
___lldb_unnamed_function17$$ReactiveCocoa + 35static ReactiveCocoa.|> infix <A, B : ReactiveCocoa.ErrorType, C>(signal=<unavailable>, transform=<unavailable>) -> C) -> C + 128 at Signal.swift:133 frame #4: 0x001b5e14 ReactiveCocoa
ReactiveCocoa.collect <A, B : ReactiveCocoa.ErrorType>(signal=) -> ReactiveCocoa.Signal<Swift.Array, B> + 532 at Signal.swift:220frame 22108118: Apple Music: No Love Icon On CarPlay #5: 0x002113cd ReactiveCocoa
_TFFFV13ReactiveCocoa14SignalProducer4liftU_S_9ErrorType__FGS0_Q_Q0__U_S1___FFGCS_6SignalQd__Qd_0__GS2_Q_Q0__GS0_Q_Q0__U_FTGVSs6SinkOfGOS_5EventQ_Q0___CS_19CompositeDisposable_T_U_FTGS2_Qd__Qd_0__PS_10Disposable__T_(signal=<unavailable>, innerDisposable=<unavailable>, outerDisposable=<unavailable>, transform=<unavailable>, observer=<unavailable>) + 285 at SignalProducer.swift:250 frame #6: 0x0020f228 ReactiveCocoa
TPA__TFFFV13ReactiveCocoa14SignalProducer4liftU_S_9ErrorType__FGS0_Q_Q0__U_S1___FFGCS_6SignalQd__Qd_0__GS2_Q_Q0__GS0_Q_Q0__U_FTGVSs6SinkOfGOS_5EventQ_Q0___CS_19CompositeDisposable_T_U_FTGS2_Qd__Qd_0__PS_10Disposable__T + 200 at SignalProducer.swift:0frame 22107493: Xocde 7, can't run playground. Unable to create target for stub executable. unable to find executable for #7: 0x001f3001 ReactiveCocoa
ReactiveCocoa.SignalProducer.startWithSignal <A, B : ReactiveCocoa.ErrorType>(setUp=<unavailable>, self=<unavailable>)((ReactiveCocoa.Signal<A, B>, ReactiveCocoa.Disposable) -> ()) -> () + 465 at SignalProducer.swift:197 frame #8: 0x00211274 ReactiveCocoa
TFFV13ReactiveCocoa14SignalProducer4liftU_S_9ErrorType__FGS0_Q_Q0__U_S1___FFGCS_6SignalQd__Qd_0__GS2_Q_Q0__GS0_Q_Q0__U_FTGVSs6SinkOfGOS_5EventQ_Q0___CS_19CompositeDisposable_T(observer=, outerDisposable=, self=, transform=) + 356 at SignalProducer.swift:251frame 22107374: Xcode should mark debugging messages originating from the main thread #9: 0x001f3f9a ReactiveCocoa
_TPA__TFFV13ReactiveCocoa14SignalProducer4liftU_S_9ErrorType__FGS0_Q_Q0__U_S1___FFGCS_6SignalQd__Qd_0__GS2_Q_Q0__GS0_Q_Q0__U_FTGVSs6SinkOfGOS_5EventQ_Q0___CS_19CompositeDisposable_T_ + 234 at SignalProducer.swift:0 frame #10: 0x001f31c2 ReactiveCocoa
ReactiveCocoa.SignalProducer.startWithSignal <A, B : ReactiveCocoa.ErrorType>(setUp=, self=)((ReactiveCocoa.Signal<A, B>, ReactiveCocoa.Disposable) -> ()) -> () + 914 at SignalProducer.swift:210frame 22106545: automaticallyAdjustsScrollViewInsets doesn't change insets on iOS 9 #11: 0x001f369c ReactiveCocoa
ReactiveCocoa.SignalProducer.start <A, B : ReactiveCocoa.ErrorType>(sink=<unavailable>, self=<unavailable>)<C : Swift.SinkType>(C) -> ReactiveCocoa.Disposable + 428 at SignalProducer.swift:225 frame #12: 0x001f3c8d ReactiveCocoa
ReactiveCocoa.SignalProducer.start <A, B : ReactiveCocoa.ErrorType>(next=Some, error=None, completed=Some, interrupted=None, self=)(next : Swift.Optional<(A) -> ()>, error : Swift.Optional<(B) -> ()>, completed : Swift.Optional<() -> ()>, interrupted : Swift.Optional<() -> ()>) -> ReactiveCocoa.Disposable + 461 at SignalProducer.swift:237frame 22105831: Application windows move erratically with two monitors #13: 0x002051bf ReactiveCocoa
ReactiveCocoa.start <A, B : ReactiveCocoa.ErrorType>(producer=<unavailable>, next=Some, error=None, completed=Some, interrupted=None) -> ()>, error : Swift.Optional<(B) -> ()>, completed : Swift.Optional<() -> ()>, interrupted : Swift.Optional<() -> ()>))(producer : ReactiveCocoa.SignalProducer<A, B>) -> ReactiveCocoa.Disposable + 335 at SignalProducer.swift:1065 frame #14: 0x00089f60 rac-crash-radar
partial apply forwarder for ReactiveCocoa.start <A, B : ReactiveCocoa.ErrorType>((next : Swift.Optional<(A) -> ()>, error : Swift.Optional<(B) -> ()>, completed : Swift.Optional<() -> ()>, interrupted : Swift.Optional<() -> ()>))(producer : ReactiveCocoa.SignalProducer<A, B>) -> ReactiveCocoa.Disposable + 304 at ViewController.swift:0frame 22104678: Xcode7-beta4 (7A165t): libtool does not support -ios_version_min link editor flag #15: 0x001f4421 ReactiveCocoa
static ReactiveCocoa.|> infix <A, B : ReactiveCocoa.ErrorType, C>(producer=<unavailable>, transform=<unavailable>) -> C) -> C + 129 at SignalProducer.swift:302 frame #16: 0x00089059 rac-crash-radar
rac_crash_radar.ViewController.viewDidLoad (self=0x79f8bc50)() -> () + 729 at ViewController.swift:22frame 22103812: TestFlight does not support yet apps with watchOS 2 #17: 0x000892a2 rac-crash-radar
@objc rac_crash_radar.ViewController.viewDidLoad (rac_crash_radar.ViewController)() -> () + 34 at ViewController.swift:0 frame #18: 0x00e6fda4 UIKit
-[UIViewController loadViewIfRequired] + 771frame 22102418: El Capitan Terminal password autofill suggestion #19: 0x00e70095 UIKit
-[UIViewController view] + 35 frame #20: 0x00d61e85 UIKit
-[UIWindow addRootViewControllerViewIfPossible] + 66frame 22100305: Safari does not see my valid Safari Developer cert #21: 0x00d6234c UIKit
-[UIWindow _setHidden:forced:] + 287 frame #22: 0x00d62648 UIKit
-[UIWindow _orderFrontWithoutMakingKey] + 49frame 22098225: Add indexOfObject:inSortedRange:options:usingComparator: method in Swift Array #23: 0x00d709b6 UIKit
-[UIWindow makeKeyAndVisible] + 80 frame #24: 0x00d05ed8 UIKit
-[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3217frame 22095844: There's no reminder if you forget to unlock your watch #25: 0x00d09422 UIKit
-[UIApplication _runWithMainScene:transitionContext:completion:] + 1639 frame #26: 0x00d2293e UIKit
__84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke + 59frame 22094327: Mac OS X 10.10.4: Managing Gatekeeper's automated re-enable via a management profile #27: 0x00d0804a UIKit
-[UIApplication workspaceDidEndTransaction:] + 155 frame #28: 0x07253c9e FrontBoardServices
__37-[FBSWorkspace clientEndTransaction:]_block_invoke_2 + 71frame 22092373: Code Coverage is not accurately reported for code in Embedded Framework #29: 0x0725372f FrontBoardServices
__40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 54 frame #30: 0x07265d7c FrontBoardServices
__31-[FBSSerialQueue performAsync:]_block_invoke_2 + 30frame 22091468: Photos has issues playing certain videos that have been imported #31: 0x00409050 CoreFoundation
__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16 frame #32: 0x003fe963 CoreFoundation
__CFRunLoopDoBlocks + 195frame 22090264: The first proposal of Spotlights search-results should not change the first proposal as long as the following keystrokes still match the first proposal #33: 0x003fe7bb CoreFoundation
__CFRunLoopRun + 2715 frame #34: 0x003fda5b CoreFoundation
CFRunLoopRunSpecific + 443frame 22088607: Attempt to install enterprise build over app store build does nothing #35: 0x003fd88b CoreFoundation
CFRunLoopRunInMode + 123 frame #36: 0x00d07a02 UIKit
-[UIApplication _run] + 571frame 22086967: Spaces misbehaves in 10.11b4 and 5 #37: 0x00d0b106 UIKit
UIApplicationMain + 1526 frame #38: 0x0008f144 rac-crash-radar
main + 180 at AppDelegate.swift:12frame 22084554: Audio indicator not appearing when web page plays video #39: 0x025f9ac9 libdyld.dylib`start + 1
(lldb)
Product Version: Xcode 6.3 (6D570)
Created: 2015-04-13T21:19:12.091130
Originated: 2015-04-14T00:00:00
Open Radar Link: http://www.openradar.me/20523979
The text was updated successfully, but these errors were encountered: