#38 new
cfox

iPhone Ti Mobile SDK 1.6.2 Crash after hiding ImageView

Reported by cfox | May 31st, 2011 @ 02:03 AM

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 myGEOS 0x0008371c DoProxyDelegateChangedValuesWithProxy (TiProxy.m:57)
2 myGEOS 0x00055946 -[TiUIView propertyChanged:oldValue:newValue:proxy:] (TiUIView.m:591)
3 myGEOS 0x0008670a -[TiProxy replaceValue:forKey:notification:] (TiProxy.m:798)
4 myGEOS 0x00041304 -[TiViewProxy hide:] (TiViewProxy.m:188)
5 CoreFoundation 0x3296379c invoking + 60
6 CoreFoundation 0x328db436 -[NSInvocation invoke] + 102
7 myGEOS 0x000336ce -[KrollMethod call:] (KrollMethod.m:189)
8 myGEOS 0x00032c26 KrollCallAsFunction (KrollMethod.m:36)
9 myGEOS 0x001a36bc TI::TiCallbackObject<TI::TiObject>::call(TI::TiExcState
, TI::TiObject, TI::TiValue, TI::ArgList const&) (TiCallbackObjectFunctions.h:371)
10 myGEOS 0x00188eb4 TI::Interpreter::privateExecute(TI::Interpreter::ExecutionFlag, TI::RegisterFile, TI::TiExcState, TI::TiValue) (Interpreter.cpp:3053)
11 myGEOS 0x0018d3ce TI::Interpreter::execute(TI::FunctionExecutable
, TI::TiExcState, TI::TiFunction, TI::TiObject, TI::ArgList const&, TI::ScopeChainNode, TI::TiValue) (Interpreter.cpp:688)
12 myGEOS 0x00196ada TI::TiFunction::call(TI::TiExcState
, TI::TiValue, TI::ArgList const&) (TiFunction.cpp:127)
13 myGEOS 0x00152374 TI::call(TI::TiExcState*, TI::TiValue, TI::CallType, TI::CallData const&, TI::TiValue, TI::ArgList const&) (CallData.cpp:46)
14 myGEOS 0x001a25ce TiObjectCallAsFunction (TiObjectRef.cpp:417)
15 myGEOS 0x00037b5a -[KrollTimer invokeWithCondition:] (KrollTimer.m:68)
16 CoreFoundation 0x328d056a -[NSObject(NSObject) performSelector:withObject:withObject:] + 18
17 myGEOS 0x0002eb18 -[KrollInvocation invoke:] (KrollContext.mm:62)
18 myGEOS 0x0002e1ac -[KrollContext invoke:] (KrollContext.mm:757)
19 myGEOS 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
...

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages