Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18258] iOS: Breakpoints in files that are included in app.js causes the app to crash

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-01-05T19:36:15.000+0000
Affected Version/sRelease 3.5.0
Fix Version/sRelease 3.5.0, Release 4.0.0
ComponentsiOS
Labelsqe-3.5.0, qe-manualtest, regression
ReporterVisalakshi Chidambaram
AssigneePedro Enrique
Created2014-12-18T07:59:07.000+0000
Updated2015-01-27T17:20:46.000+0000

Description

This is a regression as the app can be successfully debugged using titanium sdk 3.4.1 GA. When a file is included in app.js and breakpoints are placed in the included file, the app crashes and hence unable to debug successfully. Steps to reproduce: 1. Close any running emulators or simulators. 2. Import and open the attached project into studio 3. From Titanium Studio go to Debug perspective (Window > Open perspective > Debug) 4. In the Breakpoints view, Remove All existing breakpoints 5. Go to file -> import -> select breakpoints under Run/Debug and click next 6. Browse to breakpoint-basic.bkpt in Test File Location 7. Debug the test project. Actual Results: App is installed on to device, and when the app is launched when the studio prompts it tries to connect to debugger however it crashes immediately when it has connected. Expected Results: App should be installed, and when the app connects to debugger, the app should be suspended at the breakpoint in import.js line 6.

Attachments

FileDateSize
debug_test.zip2014-12-18T07:59:07.000+00003687659

Comments

  1. Ingo Muschenetz 2015-01-05

    This was resolved as part of TIMOB-17924.
  2. Eric Wieber 2015-01-06

    This looks fixed on devices, however I am still encountering the described behavior on simulator, using: Titanium SDK 3.5.0.v20150106102524 Studio 3.4.1.201410281743 Xcode 6.1.1 On: iPad Air, iOS 8.1 iPhone 6 Sim, iOS 8.1 iPhone 4S Sim, iOS 8.1 I do not see any messages on screen, but the app returns to the home screen after displaying the splash screen. This is in the console:
       [DEBUG] :  [ioslib] [ios-sim] [DEBUG] set device to : iPad Air
       [DEBUG] :  [ioslib] [ios-sim] [DEBUG] Session started
       [DEBUG] :  [ioslib] [ios-sim] [DEBUG] Session did end with error (null)
       [DEBUG] :  [ioslib] [ios-sim] [DEBUG] Removing named pipe at /var/folders/v3/fx3x3sq94fngyrbcmtb9c1d40000gp/T//ios-sim-stderr-pipe-1420581576'
       [DEBUG] :  [ioslib] [ios-sim] [DEBUG] Removing named pipe at /var/folders/v3/fx3x3sq94fngyrbcmtb9c1d40000gp/T//ios-sim-stdout-pipe-1420581576'
       [DEBUG] :  [ioslib] [ios-sim] Exited with code: 0
       [INFO] :   Project built successfully in 32s 299ms
       
  3. Visalakshi Chidambaram 2015-01-07

    Verified with the following environment: Titanium SDK: 3.5.0.v20150106224118 Appc-Studio: 3.4.1.201410281743 Titanium CLI: 3.4.1 Alloy : 1.5.1 GA Xcode : 6.1 OS: OSX 10.10.1 Device : iPad Air 2 (iOS 8.1), iPhone 4s, iPhone6 and iPhone 6 plus simulators (iOS 8.1)
  4. Matthew Lanham 2015-01-27

    Just a note that i'm also seeing this error, and I am not using any breakpoints, and running from CLI. `` [DEBUG] [ioslib] [ios-sim] [DEBUG] Session did end with error (null) [DEBUG] [ioslib] [ios-sim] [DEBUG] Removing named pipe at /var/folders/gr/mmkhk18s4t53hbjc9tpmt0cc0000gn/T//ios-sim-stderr-pipe-1422366114' [DEBUG] [ioslib] [ios-sim] [DEBUG] Removing named pipe at `/var/folders/gr/mmkhk18s4t53hbjc9tpmt0cc0000gn/T//ios-sim-stdout-pipe-1422366114' [DEBUG] [ioslib] [ios-sim] Exited with code: 0 {/code}
  5. Ingo Muschenetz 2015-01-27

    [~pec1985] should we reopen this issue or create a new one?

JSON Source