[AC-2955] iPhone Ti Mobile SDK 1.6.2 Crash after hiding ImageView
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-10-17T16:28:10.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | crash, imageview, ios, view |
Reporter | Christopher.fox |
Assignee | Ian Howarth |
Created | 2011-05-31T02:42:20.000+0000 |
Updated | 2016-03-08T07:47:57.000+0000 |
Description
This problem occurs when the app has been busy for some time (1 out of 5 times). Seems to be a null reference error. However my ImageView is created on app start and is never set to null or removed from its parent view.
The problem seems to be fixed (though it's only a workaround) when I return if newValue is null in method DoProxyDelegateChangedValuesWithProxy.
Relevant crash report entries:
... Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000008
Crashed Thread: 3
... Thread 3 Crashed:
0 libobjc.A.dylib 0x32da1c98 objc_msgSend + 16
1 appName 0x0008371c DoProxyDelegateChangedValuesWithProxy (TiProxy.m:57)
2 appName 0x00055946 -[TiUIView propertyChanged:oldValue:newValue:proxy:] (TiUIView.m:591)
3 apName 0x0008670a -[TiProxy replaceValue:forKey:notification:] (TiProxy.m:798)
4 appName 0x00041304 -[TiViewProxy hide:] (TiViewProxy.m:188)
5 CoreFoundation 0x3296379c invoking + 60
6 CoreFoundation 0x328db436 -[NSInvocation invoke] + 102
7 appname 0x000336ce -[KrollMethod call:] (KrollMethod.m:189)
8 appName 0x00032c26 KrollCallAsFunction (KrollMethod.m:36)
9 appname 0x001a36bc TI::TiCallbackObject::call(TI::TiExcState, TI::TiObject, TI::TiValue, TI::ArgList const&) (TiCallbackObjectFunctions.h:371)
10 appName 0x00188eb4 TI::Interpreter::privateExecute(TI::Interpreter::ExecutionFlag, TI::RegisterFile, TI::TiExcState, TI::TiValue) (Interpreter.cpp:3053)
11 appName 0x0018d3ce TI::Interpreter::execute(TI::FunctionExecutable, TI::TiExcState, TI::TiFunction, TI::TiObject, TI::ArgList const&, TI::ScopeChainNode, TI::TiValue) (Interpreter.cpp:688)
12 appName 0x00196ada TI::TiFunction::call(TI::TiExcState, TI::TiValue, TI::ArgList const&) (TiFunction.cpp:127)
13 appName 0x00152374 TI::call(TI::TiExcState*, TI::TiValue, TI::CallType, TI::CallData const&, TI::TiValue, TI::ArgList const&) (CallData.cpp:46)
14 appName 0x001a25ce TiObjectCallAsFunction (TiObjectRef.cpp:417)
15 appName 0x00037b5a -[KrollTimer invokeWithCondition:] (KrollTimer.m:68)
16 CoreFoundation 0x328d056a -[NSObject(NSObject) performSelector:withObject:withObject:] + 18
17 appName 0x0002eb18 -[KrollInvocation invoke:] (KrollContext.mm:62)
18 appName 0x0002e1ac -[KrollContext invoke:] (KrollContext.mm:757)
19 appName 0x0002f6d4 -[KrollContext main] (KrollContext.mm:1060)
20 Foundation 0x33839382 -[NSThread main] + 38
21 Foundation 0x338ab5c6 NSThreadmain__ + 966
22 libsystem_c.dylib 0x32c9530a pthread_start + 242
23 libsystem_c.dylib 0x32c96bb4 thread_start + 0
...
Christopher In order for us to progress this issue, please edit your ticket to include a proper [Use-case](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-CreatingGoodUsecases). Do you think this issue is the same as TIMOB-4493. If so, your usecase will be crucial, as the other users are not able to reproduce the problem. Also, would you format the console output block using the wiki syntax provided? Thank you
No response from user
Closing after 30 days of inactivity.
The ticket needs to be edited for a user.