Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1793] Invalid type passed to function in TestFlight report

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2014-02-03T05:03:26.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterSebastian Klaus
AssigneeRitu Agrawal
Created2014-01-31T10:20:16.000+0000
Updated2016-03-08T07:40:41.000+0000

Description

Sometimes I got a crash in the TestFlight Backend as follows:
Invalid type passed to function
AppNameTiExceptionThrowWithNameAndReason 
in TiBase.m on Line 182
Occurrences1
Users1
#	Binary Image Name	Address	Symbol
0	CoreFoundation	0x2e291f4b	__exceptionPreprocess
1	libobjc.A.dylib	0x386216af	objc_exception_throw
2	AppName	0x00220d01	TiExceptionThrowWithNameAndReason in TiBase.m on Line 182
3	AppName	0x001ef559	-[TiProxy throwException:subreason:location:] in TiProxy.m on Line 1068
4	AppName	0x0019be95	-[TiUITabProxy rootController] in TiUITabProxy.m on Line 96
5	AppName	0x0019c69f	-[TiUITabProxy closeWindowProxy:animated:] in TiUITabProxy.m on Line 160
6	AppName	0x0019c427	-[TiUITabProxy closeOnUIThread:] in TiUITabProxy.m on Line 137
7	AppName	0x0019d42f	__28-[TiUITabProxy closeWindow:]_block_invoke in TiUITabProxy.m on Line 257
8	AppName	0x00221aab	__TiThreadPerformOnMainThread_block_invoke in TiBase.m on Line 268
9	AppName	0x00221489	TiThreadPerformOnMainThread in TiBase.m on Line 288
10	AppName	0x0019d3f1	-[TiUITabProxy closeWindow:] in TiUITabProxy.m on Line 258
11	AppName	0x002f0817	-[TiWindowProxy close:] in TiWindowProxy.m on Line 323
12	AppName	0x0018009b	__27-[TiUIWindowProxy _destroy]_block_invoke in TiUIWindowProxy.m on Line 112
13	AppName	0x00221aab	__TiThreadPerformOnMainThread_block_invoke in TiBase.m on Line 268
14	AppName	0x00221eab	TiThreadProcessPendingMainThreadBlocks in TiBase.m on Line 366
15	AppName	0x002bd77b	-[TiApp waitForKrollProcessing] in TiApp.m on Line 661
16	AppName	0x002bd987	-[TiApp applicationWillTerminate:] in TiApp.m on Line 695
17	UIKit	0x30a8b88d	-[UIApplication _terminateWithStatus:]
18	UIKit	0x30a88c9d	-[UIApplication _handleApplicationSuspend:eventInfo:]
19	UIKit	0x30a09ae1	-[UIApplication handleEvent:withNewEvent:]
20	UIKit	0x30a09721	-[UIApplication sendEvent:]
21	UIKit	0x30a6eb3d	_UIApplicationHandleEvent
22	GraphicsServices	0x32ea570d	_PurpleEventCallback
23	GraphicsServices	0x32ea52f7	PurpleEventCallback
24	CoreFoundation	0x2e25c9df	__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__
25	CoreFoundation	0x2e25c97b	__CFRunLoopDoSource1
26	CoreFoundation	0x2e25b14f	__CFRunLoopRun
27	CoreFoundation	0x2e1c5c27	CFRunLoopRunSpecific
28	CoreFoundation	0x2e1c5a0b	CFRunLoopRunInMode
29	GraphicsServices	0x32ea4283	GSEventRunModal
30	UIKit	0x30a69049	UIApplicationMain
31	AppName	0x001063bf	main in main.m on Line 36
32	libdyld.dylib	0x38b29ab7	start
The TestFlight team responses due to my request, that the error is not based to TestFlight. Maybe anyone here has an idea to what this error belongs. Do you need further information?

Comments

  1. Sebastian Klaus 2014-01-31

    If you just made some effort, you could look into the stack trace and see were the problem appears: https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiUITabProxy.m#L96-97 You are obviously looking for a window, but it isn’t a TiWindowProxy for some reason. That’s obviously a bug in Titanium, I think.
  2. Ritu Agrawal 2014-02-03

    Resolving this ticket as a duplicate of TC-3613. Please do not file duplicate tickets even if you disagree with the comments posted in the original ticket.

JSON Source