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

20523979: Swift 1.2 - Runtime crash in 32-bit iOS simulator with ReactiveCocoa library #1501

Open
openradar-mirror opened this issue Aug 3, 2015 · 0 comments

Comments

@openradar-mirror
Copy link

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:

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") }
)

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:

  1. Unzip the attached rac-crash-radar.zip and open the included rac-crash-radar.xcodeproject in Xcode

  2. Make sure the scheme "rac-crash-radar" is selected, and select iPhone 5 as the simulator device

  3. 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):

Next value [1]
Completed

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

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

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

No branches or pull requests

1 participant