Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2298] iOS: Code working with Node.js v0.9.9 and Ti 3.0.2 but not with Node.js v0.10.13 and Ti 3.1.2

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-08-19T18:18:55.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsnode, sdk, triage
ReporterChatis
AssigneeMauro Parra-Miranda
Created2013-08-19T11:06:05.000+0000
Updated2016-03-08T07:41:18.000+0000

Description

Error occurs only on iOS. *Test case*
pickerSportOpen = true;
					wrapper = Ti.UI.createView({
					  backgroundColor: 'transparent',
					  height: 'auto',
					  width:'auto'
					});
					
					tView = Ti.UI.createView({
				        opacity:0.8,
				        width:'auto',
				        height:'auto',
				        backgroundColor:'#000000'
					});
					
					wrapper.add(tView);
					wrapper.add(pSportSaison);
					win.add(wrapper);
*Error*
[ERROR] : The application has crashed with an uncaught exception 'NSRangeException'.
[ERROR] : Reason:
[ERROR] : *** -[__NSArrayM objectAtIndex:]: index 5 beyond bounds [0 .. 4]
[ERROR] : Stack trace:
[ERROR] : 0 CoreFoundation 0x038f5012 __exceptionPreprocess + 178
[ERROR] : 1 libobjc.A.dylib 0x033b6e7e objc_exception_throw + 44
[ERROR] : 2 CoreFoundation 0x038970b4 -[__NSArrayM objectAtIndex:] + 196
[ERROR] : 3 xxxxxxxxxxxx 0x0007cf70 -[TiViewProxy insertSubview:forProxy:] + 1520
[ERROR] : 4 xxxxxxxxxxxx 0x0007c8a8 -[TiViewProxy refreshView:] + 2232
[ERROR] : 5 xxxxxxxxxxxx 0x0007db03 -[TiViewProxy layoutChildrenIfNeeded] + 259
[ERROR] : 6 xxxxxxxxxxxx 0x001fcbf7 +[TiLayoutQueue layoutProxy:] + 87
[ERROR] : 7 xxxxxxxxxxxx 0x001fc9c2 performLayoutRefresh + 530
[ERROR] : 8 CoreFoundation 0x038b4376 _CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION_ + 22
[ERROR] : 9 CoreFoundation 0x038b3e06 __CFRunLoopDoTimer + 534
[ERROR] : 10 CoreFoundation 0x0389ba82 __CFRunLoopRun + 1810
[ERROR] : 11 CoreFoundation 0x0389af44 CFRunLoopRunSpecific + 276
[ERROR] : 12 CoreFoundation 0x0389ae1b CFRunLoopRunInMode + 123
[ERROR] : 13 GraphicsServices 0x0367c7e3 GSEventRunModal + 88
[ERROR] : 14 GraphicsServices 0x0367c668 GSEventRun + 104
[ERROR] : 15 UIKit 0x011b2ffc UIApplicationMain + 1211
[ERROR] : 16 xxxxxxxxxxxx 0x00004448 main + 456
[ERROR] : 17 xxxxxxxxxxxx 0x00002d55 start + 53
[ERROR] : 18 ??? 0x00000001 0x0 + 1
[ERROR] : 2013-08-19 13:12:06.577 CS-Maisonnex[87386:c07] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 5 beyond bounds [0 .. 4]'
[ERROR] : *** First throw call stack:
[ERROR] : (0x38f5012 0x33b6e7e 0x38970b4 0x7cf70 0x7c8a8 0x7db03 0x1fcbf7 0x1fc9c2 0x38b4376 0x38b3e06 0x389ba82 0x389af44 0x389ae1b 0x367c7e3 0x367c668 0x11b2ffc 0x4448 0x2d55 0x1)
– End simulator log ---------------------------------------------------------
[ERROR] : An error occurred running the iOS Simulator
[ERROR] :
[ERROR] : Project failed to build after 47s 825ms

Comments

  1. Chatis 2013-08-19

    I have this error: [moved to description]
  2. Daniel Sefton 2013-08-19

    Hi Chatis, Please can you change your test case to be runnable in a brand new project so that we can reproduce the problem? Clearly the workaround for now is to simply use an earlier version of Node.js (Titanium is most compatible with v0.8.22). Thanks.
  3. Chatis 2013-08-19

    Hello, I'll try but it's not so easy to reproduce the problem in a small part of the code... because it's now in a big project.. But i'll try... That's what I'm doing.. Using v0.9.9... But this version isn't compatible with SDK 3.1.2 and my Android App need this SDK to be builded.... :-(
  4. Chatis 2013-10-30

    It's still not working and I can't reproduce a small test case... is it possible you try to see my all project to help me ? Thank you
  5. Mauro Parra-Miranda 2013-11-21

    Can't reproduce in 3.1.3.GA.

JSON Source