rohitjindal1184 / remail-iphone

Automatically exported from code.google.com/p/remail-iphone
0 stars 0 forks source link

crash in TTStyledLayout on autocompleting in search #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. sync emails from GMail acount
2. click on search icon
3. type a letter, e.g. 'A'
4. "Autocompleting..." appears
5. app crashes.

What is the expected output? What do you see instead?
crash 

What version of the product are you using? On what operating system?
iPhone 3GS OS 3.1.3 compiled with XCode3.2beta4 for Device3.0

Please provide any additional information below.

(gdb) bt
#0  0x31a279ac in __kill ()
#1  0x31a279a2 in kill ()
#2  0x31a27994 in raise ()
#3  0x31a3c640 in abort ()
#4  0x3361d3b6 in __gnu_cxx::__verbose_terminate_handler ()
#5  0x3240185e in _objc_terminate ()
#6  0x3361b77c in __cxxabiv1::__terminate ()
#7  0x3361b7d0 in std::terminate ()
#8  0x3361b89c in __cxa_throw ()
#9  0x3240071a in objc_exception_throw ()
#10 0x325a5216 in -[NSObject doesNotRecognizeSelector:] ()
#11 0x3252ba94 in ___forwarding___ ()
#12 0x32522ac0 in __forwarding_prep_0___ ()
#13 0x00220522 in -[TTStyledLayout layoutText:container:] 
(self=0x5a04a0, _cmd=0x27e55e, textNode=0x59fb10, 
element=0x59f8d0) at 
/Users/gevermann/project/three20/src/TTStyledLayout.m:639
#14 0x00220d88 in -[TTStyledLayout layout:container:] (self=0x5a04a0, 
_cmd=0x27e505, node=0x59fb10, element=0x59f8d0) at 
/Users/gevermann/project/three20/src/TTStyledLayout.m:733
#15 0x0021e746 in -[TTStyledLayout layoutElement:] (self=0x5a04a0, 
_cmd=0x27e58b, elt=0x59f8d0) at 
/Users/gevermann/project/three20/src/TTStyledLayout.m:399
#16 0x00220d30 in -[TTStyledLayout layout:container:] (self=0x5a04a0, 
_cmd=0x27e505, node=0x59f8d0, element=0x0) at 
/Users/gevermann/project/three20/src/TTStyledLayout.m:730
#17 0x00220e10 in -[TTStyledLayout layout:] (self=0x5a04a0, 
_cmd=0x27e4fd, node=0x59f8d0) at 
/Users/gevermann/project/three20/src/TTStyledLayout.m:741
#18 0x001fbe9a in -[TTStyledText layoutFrames] (self=0x59fcf0, 
_cmd=0x27b24e) at 
/Users/gevermann/project/three20/src/TTStyledText.m:256
#19 0x001fc04c in -[TTStyledText layoutIfNeeded] (self=0x59fcf0, 
_cmd=0x334baa88) at 
/Users/gevermann/project/three20/src/TTStyledText.m:270
#20 0x001fbc38 in -[TTStyledText rootFrame] (self=0x59fcf0, 
_cmd=0x27e7d8) at 
/Users/gevermann/project/three20/src/TTStyledText.m:224
#21 0x001fc156 in -[TTStyledText drawAtPoint:highlighted:] 
(self=0x59fcf0, _cmd=0x27b0b2, point={x = 0, y = 0}, highlighted=0 
'\000') at /Users/gevermann/project/three20/src/TTStyledText.m:288
#22 0x001f9fc6 in -[TTStyledTextLabel drawRect:] (self=0x59ef50, 
_cmd=0x334b0650, rect={origin = {x = 0, y = 0}, size = {width = 282, 
height = 21}}) at 
/Users/gevermann/project/three20/src/TTStyledTextLabel.m:291
#23 0x32b948e8 in -[UIView(CALayerDelegate) drawLayer:inContext:] ()
#24 0x30d76308 in -[CALayer drawInContext:] ()
#25 0x30d76190 in backing_callback ()
#26 0x30d75cb6 in CABackingStoreUpdate ()
#27 0x30d7547e in -[CALayer _display] ()
#28 0x30d751ce in -[CALayer display] ()
#29 0x30d7514a in CALayerDisplayIfNeeded ()
#30 0x30d7494a in CA::Context::commit_transaction ()
#31 0x30d746a8 in CA::Transaction::commit ()
#32 0x30d7a030 in CA::Transaction::observer_callback ()
#33 0x32520b56 in __CFRunLoopDoObservers ()
#34 0x32567a38 in CFRunLoopRunSpecific ()
#35 0x3256735c in CFRunLoopRunInMode ()
#36 0x32912cbe in GSEventRunModal ()
#37 0x32912d6a in GSEventRun ()
#38 0x32b6276e in -[UIApplication _run] ()
#39 0x32b61472 in UIApplicationMain ()
#40 0x00099278 in main (argc=1, argv=0x2ffff344) at 
/Users/gevermann/project/remail-iphone/Classes/main.m:47
Current language:  auto; currently objective-c
(gdb) 

I can reproduce this, so let me know if you need further info.

Original issue reported on code.google.com by gunnar.e...@gmail.com on 12 Mar 2010 at 12:59

GoogleCodeExporter commented 9 years ago
I can't reproduce this.

Can you try updating your three20 via git pull?

From the stacktrace it looks like this is missing:
[TTStyledLayout layoutText:container:] 

But it's right there in TTStyledLayout line 522. This is with a version of 
three20 I
pulled a few minutes ago.

Gabor

Original comment by gaborcse...@gmail.com on 20 Mar 2010 at 3:42

GoogleCodeExporter commented 9 years ago

Original comment by gaborcse...@gmail.com on 20 Mar 2010 at 3:42

GoogleCodeExporter commented 9 years ago
I believe this was due to a missing -all_load flag which is now fixed in this 
checkin:
http://code.google.com/p/remail-iphone/source/detail?
r=3f3868cc30d2244b1f14cc4131f42fc5a242bb00

I'm marking this bug as fixed.

Gabor

Original comment by ga...@google.com on 22 Mar 2010 at 4:43