Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13388] CLI: RangeError: Maximum call stack size exceeded

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-04-05T18:48:08.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sRelease 3.1.0, 2013 Sprint 07 JS, 2013 Sprint 07, Release 3.2.0
ComponentsiOS
LabelsKitchenSink, qe-3.1.0, qe-cli, qe-closed-3.1.0, qe-testadded, triage
ReporterOlga Romero
AssigneeChris Barber
Created2013-04-04T23:19:09.000+0000
Updated2015-02-02T20:46:43.000+0000

Description

Kitchen Sink failed to build for device with an error "Maximum call stack size exceeded". However build succeeded for simulator. It happens on my machine in 3.0.2.GA as well Actual result: Build Failed (see attachment) Expected result: Build should succeed

Attachments

FileDateSize
KSbuildFailed.txt2013-04-04T23:19:09.000+0000872

Comments

  1. Eric Merriman 2013-04-04

    I have the same issue. Builds fine on sim, does not on device:
       [TRACE] :  /usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:181
       [TRACE] :          throw e;
       [TRACE] :                ^
       [TRACE] :  RangeError: Maximum call stack size exceeded
       [TRACE] :  Showing first 200 notices only
       [TRACE] :  Command /bin/sh failed with exit code 1
       [ERROR] :  ** BUILD FAILED **
       [ERROR] :  The following build commands failed:
       [ERROR] :  	PhaseScriptExecution Pre-Compile build/KitchenSink.build/Debug-iphoneos/KitchenSink-universal.build/Script-DABB369F12E8CB280026A6EA.sh
       [ERROR] :  (1 failure)
       
  2. Eric Merriman 2013-04-04

    We share the following versions: cli: 3.1.0-beta npm: 1.2.14 node: 0.8.22 One system not experiencing this is running 10.7.3. Will recheck KS version to rule out if this is a factor. Also Xcode was 4.5 in the non-affected machine, and 4.6 on the two affected machines.
  3. Eric Merriman 2013-04-05

    Additional note: dropping back to CLI v3.0.24 works as expected. Running with 3.0.2GA in the KS tiapp.xml gets this error:
       [TRACE] :      /Users/emerriman/fromgit/KitchenSink/build/iphone/build/KitchenSink.build/Debug-iphoneos/KitchenSink-universal.build/Objects-normal/armv7/TiFacebookLoginButton.o
       [TRACE] :      /Users/emerriman/Library/Application Support/Titanium/modules/iphone/facebook/3.1.1/libfacebook.a(TiFacebookLoginButton.o)
       [TRACE] :  duplicate symbol _OBJC_METACLASS_$_TiFacebookLoginButton in:
       [TRACE] :      /Users/emerriman/fromgit/KitchenSink/build/iphone/build/KitchenSink.build/Debug-iphoneos/KitchenSink-universal.build/Objects-normal/armv7/TiFacebookLoginButton.o
       [TRACE] :      /Users/emerriman/Library/Application Support/Titanium/modules/iphone/facebook/3.1.1/libfacebook.a(TiFacebookLoginButton.o)
       [TRACE] :  duplicate symbol _OBJC_IVAR_$_TiFacebookLoginButtonProxy.module in:
       [TRACE] :      /Users/emerriman/fromgit/KitchenSink/build/iphone/build/KitchenSink.build/Debug-iphoneos/KitchenSink-universal.build/Objects-normal/armv7/TiFacebookLoginButtonProxy.o
       [TRACE] :      /Users/emerriman/Library/Application Support/Titanium/modules/iphone/facebook/3.1.1/libfacebook.a(TiFacebookLoginButtonProxy.o)
       [TRACE] :  duplicate symbol _OBJC_CLASS_$_TiFacebookLoginButtonProxy in:
       [TRACE] :      /Users/emerriman/fromgit/KitchenSink/build/iphone/build/KitchenSink.build/Debug-iphoneos/KitchenSink-universal.build/Objects-normal/armv7/TiFacebookLoginButtonProxy.o
       [TRACE] :      /Users/emerriman/Library/Application Support/Titanium/modules/iphone/facebook/3.1.1/libfacebook.a(TiFacebookLoginButtonProxy.o)
       [TRACE] :  duplicate symbol _OBJC_METACLASS_$_TiFacebookLoginButtonProxy in:
       [TRACE] :      /Users/emerriman/fromgit/KitchenSink/build/iphone/build/KitchenSink.build/Debug-iphoneos/KitchenSink-universal.build/Objects-normal/armv7/TiFacebookLoginButtonProxy.o
       [TRACE] :      /Users/emerriman/Library/Application Support/Titanium/modules/iphone/facebook/3.1.1/libfacebook.a(TiFacebookLoginButtonProxy.o)
       [TRACE] :  duplicate symbol _OBJC_IVAR_$_TiFacebookRequest.path in:
       [TRACE] :      /Users/emerriman/fromgit/KitchenSink/build/iphone/build/KitchenSink.build/Debug-iphoneos/KitchenSink-universal.build/Objects-normal/armv7/TiFacebookRequest.o
       [TRACE] :      /Users/emerriman/Library/Application Support/Titanium/modules/iphone/facebook/3.1.1/libfacebook.a(TiFacebookRequest.o)
       [TRACE] :  duplicate symbol _OBJC_IVAR_$_TiFacebookRequest.callback in:
       [TRACE] :      /Users/emerriman/fromgit/KitchenSink/build/iphone/build/KitchenSink.build/Debug-iphoneos/KitchenSink-universal.build/Objects-normal/armv7/TiFacebookRequest.o
       [TRACE] :      /Users/emerriman/Library/Application Support/Titanium/modules/iphone/facebook/3.1.1/libfacebook.a(TiFacebookRequest.o)
       [TRACE] :  duplicate symbol _OBJC_IVAR_$_TiFacebookRequest.module in:
       [TRACE] :      /Users/emerriman/fromgit/KitchenSink/build/iphone/build/KitchenSink.build/Debug-iphoneos/KitchenSink-universal.build/Objects-normal/armv7/TiFacebookRequest.o
       [TRACE] :      /Users/emerriman/Library/Application Support/Titanium/modules/iphone/facebook/3.1.1/libfacebook.a(TiFacebookRequest.o)
       [TRACE] :  duplicate symbol _OBJC_IVAR_$_TiFacebookRequest.graph in:
       [TRACE] :      /Users/emerriman/fromgit/KitchenSink/build/iphone/build/KitchenSink.build/Debug-iphoneos/KitchenSink-universal.build/Objects-normal/armv7/TiFacebookRequest.o
       [TRACE] :      /Users/emerriman/Library/Application Support/Titanium/modules/iphone/facebook/3.1.1/libfacebook.a(TiFacebookRequest.o)
       [TRACE] :  duplicate symbol _OBJC_CLASS_$_TiFacebookRequest in:
       [TRACE] :      /Users/emerriman/fromgit/KitchenSink/build/iphone/build/KitchenSink.build/Debug-iphoneos/KitchenSink-universal.build/Objects-normal/armv7/TiFacebookRequest.o
       [TRACE] :      /Users/emerriman/Library/Application Support/Titanium/modules/iphone/facebook/3.1.1/libfacebook.a(TiFacebookRequest.o)
       [TRACE] :  duplicate symbol _OBJC_METACLASS_$_TiFacebookRequest in:
       [TRACE] :      /Users/emerriman/fromgit/KitchenSink/build/iphone/build/KitchenSink.build/Debug-iphoneos/KitchenSink-universal.build/Objects-normal/armv7/TiFacebookRequest.o
       [TRACE] :      /Users/emerriman/Library/Application Support/Titanium/modules/iphone/facebook/3.1.1/libfacebook.a(TiFacebookRequest.o)
       [TRACE] :  ld: 92 duplicate symbols for architecture armv7
       [TRACE] :  clang: error: linker command failed with exit code 1 (use -v to see invocation)
       [ERROR] :  ** BUILD FAILED **
       [ERROR] :  The following build commands failed:
       [ERROR] :  	Ld build/Debug-iphoneos/KitchenSink.app/KitchenSink normal armv7
       [ERROR] :  (1 failure)
       
  4. Chris Barber 2013-04-05

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/4095 3_1_X pull request: https://github.com/appcelerator/titanium_mobile/pull/4096
  5. Olga Romero 2013-04-10

    Tested and verified fix with: Appcelerator Studio, build: 3.1.0.201304082106 SDK, build: 3.1.0.v20130409124549 Devices: iPad 4 iOS 6.1.3 iPad mini iOS 6.0 NexusS3 4.0.4 CLI 3.1.0-cr Mac osx 10.8.3 Mountain Lion

JSON Source