Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-4079

CLI: Setting --retina flag will render 3.0.2.GA projects unable to launch simulator.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: iOS
    • Environment:

      Mac OS 10.8.3
      SDK: 3.1.0.v20130402092426
      Appcelerator Studio, build: 3.1.0.201303312320
      CLI 3.1.0-beta
      node-appc 1.0.29-beta

      Description

      Description

      While trying to investigate bugs from the triage meeting, I set the Studio preference to "retina" for the iOS simulator. Attempting to launch in this configuration failed, with an error complaining of a "ridiculous" capacity.

      This occurs in Studio and in the CLI as well.

      Console output

      [DEBUG] Simulator command: "/Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/iphone/ios-sim" launch "/Users/emerriman/Documents/Appcelerator_Studio_Workspace/Kitchen Sink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app" --sdk 6.1 --family iphone --retina
      [ERROR] An error occurred running the iOS Simulator
      [ERROR] 2013-04-02 15:18:49.649 ios-sim[61549:1307] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithCapacity:]: capacity (18446744073709551615) is ridiculous'
      [ERROR] *** First throw call stack:
      [ERROR] ( 
      [ERROR]         0   CoreFoundation                      0x00007fff88a32b06 __exceptionPreprocess + 198
      [ERROR]         1   libobjc.A.dylib                     0x00007fff9502d3f0 objc_exception_throw + 43
      [ERROR]         2   CoreFoundation                      0x00007fff889e3035 -[__NSPlaceholderArray initWithCapacity:] + 245
      [ERROR]         3   CoreFoundation                      0x00007fff88a13719 +[NSMutableArray arrayWithCapacity:] + 41
      [ERROR]         4   ios-sim                             0x0000000100003463 -[iPhoneSimulator runWithArgc:argv:] + 2771
      [ERROR]         5   ios-sim                             0x000000010000373b main + 155
      [ERROR]         6   ios-sim                             0x0000000100001694 start + 52
      [ERROR] ) 
      [ERROR] libc++abi.dylib: terminate called throwing an exception
      [ERROR]   
      [ERROR] Project failed to build after 42s 901ms
      

      Steps to reproduce:

      1) Create a project and set tiapp.xml to 3.0.2.GA
      2) Run from studio with the retina preference set, or use the CLI "ti -p ios -T simulator --retina"

      Result:

      Error as listed above.

      Expected:

      Retina iphone simulator launches.

      Notes:

      Looking at ios-sim.m, there is a line where the number of args goes negative.
      There may be some legacy code in 3.0.2.GA where "--retina" was implemented but expects "true".

        Attachments

          Activity

            People

            • Assignee:
              mxia Michael Xia
              Reporter:
              emerriman Eric Merriman
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: