RST-ATTA / remail-iphone

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

ReMail crashes when reading an email #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open ReMail iPhone configured with a single Rackspace account
2. Click Folders, then All Mail
3. Click on any email

(Crashes, returns to Springboard)

What is the expected output? What do you see instead?
An email

What version of the product are you using? On what operating system?
Latest checkout built today with baseline SDK 3.0 on iPhone OS 3.1.3

Please provide any additional information below.
Tue Mar  9 15:16:35 unknown kernel[0] <Debug>: launchd[3541] Builtin profile: 
container 
(seatbelt)
Tue Mar  9 15:16:35 unknown kernel[0] <Debug>: launchd[3541] Container: 
/private/var/mobile/Applications/DFADF188-B196-4D2C-975F-4AA801E6DF89 (seatbelt)
Tue Mar  9 15:16:35 unknown reMail[3541] <Warning>: applicationDidBecomeActive
Tue Mar  9 15:16:37 unknown reMail[3541] <Warning>: allMail started with dbNum 
= 0
Tue Mar  9 15:16:38 unknown reMail[3541] <Error>: *** -[UIDeviceRGBColor 
saturation]: 
unrecognized selector sent to instance 0x591c20
Tue Mar  9 15:16:38 unknown reMail[3541] <Error>: *** Terminating app due to 
uncaught 
exception 'NSInvalidArgumentException', reason: '*** -[UIDeviceRGBColor 
saturation]: 
unrecognized selector sent to instance 0x591c20'
Tue Mar  9 15:16:38 unknown reMail[3541] <Error>: Stack: (
    861696817,
    860329709,
    861700631,
    861203093,
    861166272,
    2547255,
    2547837,
    80305,
    861474215,
    2342615,
    2518333,
    2513113,
    36599,
    48223,
    861474215,
    845673073,
    861448861,
    861447005,
    861059891,
    861060063,
    834770799,
    834765939,
    624485,
    8500
)
Tue Mar  9 15:16:38 unknown UIKitApplication:net.evul.remail[0x60fc][3541] 
<Notice>: 
terminate called after throwing an instance of 'NSException'
Tue Mar  9 15:16:39 unknown ReportCrash[3542] <Notice>: Formulating crash 
report for 
process reMail[3541]
Tue Mar  9 15:16:39 unknown ReportCrash[3542] <Error>: Saved crashreport to 
/var/mobile/Library/Logs/CrashReporter/reMail_2010-03-09-151638_nicks-iPhone.pli
st using 
uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Tue Mar  9 15:16:39 unknown com.apple.launchd[1] <Warning>: 
(UIKitApplication:net.evul.remail[0x60fc]) Job appears to have crashed: Abort 
trap
Tue Mar  9 15:16:39 unknown SpringBoard[378] <Warning>: Application 'reMail' 
exited 
abnormally with signal 6: Abort trap

Original issue reported on code.google.com by rootst...@gmail.com on 9 Mar 2010 at 8:17

Attachments:

GoogleCodeExporter commented 8 years ago
When this crash happens, can you open the debug window and decipher each line 
of the
stacktrace?

You can just do:
x 861696817
x 860329709
... and so on ...

The symbolized stacktrace will help understand what's going on. Without it I 
won't
know how to start debugging.

Thanks!

Gabor

Original comment by gaborcse...@gmail.com on 10 Mar 2010 at 6:43

GoogleCodeExporter commented 8 years ago
Sorry, instead of debug window I meant console window. That's the one you get by
pressing Shift-Apple-R

Original comment by gaborcse...@gmail.com on 10 Mar 2010 at 6:44

GoogleCodeExporter commented 8 years ago

Original comment by gaborcse...@gmail.com on 10 Mar 2010 at 6:44

GoogleCodeExporter commented 8 years ago
I can reproduce this 

iPhone3GS OS 3.1.2 XCode3.2beta4

putting a breakpoint at objc_exception_throw()  I get:

2010-03-11 20:28:35.314 reMail[16324:207] applicationDidBecomeActive
2010-03-11 20:29:06.613 reMail[16324:207] folderSearch started with dbNum = 0
2010-03-11 20:29:09.854 reMail[16324:207] *** -[UIDeviceRGBColor saturation]: 
unrecognized selector sent to instance 0x537820

(gdb) bt
#0  0x324006d8 in objc_exception_throw ()
#1  0x325a5216 in -[NSObject doesNotRecognizeSelector:] ()
#2  0x3252ba94 in ___forwarding___ ()
#3  0x32522ac0 in __forwarding_prep_0___ ()
#4  0x0021887a in -[TTDefaultStyleSheet 
toolbarButtonColorWithTintColor:forState:] 
(self=0x508320, _cmd=0x27d712, color=0x537820, state=0) at 
/Users/gevermann/project/three20/src/TTDefaultStyleSheet.m:800
#5  0x00218ac0 in -[TTDefaultStyleSheet 
toolbarButtonForState:shape:tintColor:font:] (self=0x508320, _cmd=0x24e377, 
state=0, shape=0x5b4000, tintColor=0x537820, font=0x0) at 
/Users/gevermann/project/three20/src/TTDefaultStyleSheet.m:826
#6  0x0001460c in -[RemailStyleSheet blueRoundButton:] (self=0x508320, 
_cmd=0x24bfe8, state=0) at /Users/gevermann/project/remail-
iphone/Classes/HomeViewController.m:42
#7  0x3256dda6 in -[NSObject performSelector:withObject:] ()
#8  0x001e691a in -[TTStyleSheet styleWithSelector:forState:] (self=0x508320, 
_cmd=0x27dd66, selector=0x294e9c, state=0) at 
/Users/gevermann/project/three20/src/TTStyleSheet.m:90
#9  0x00211780 in -[TTButton setStylesWithSelector:] (self=0x5b61e0, 
_cmd=0x277370, selector=0x294e9c) at 
/Users/gevermann/project/three20/src/TTButton.m:433
#10 0x0021031c in +[TTButton buttonWithStyle:title:] (self=0x29b580, 
_cmd=0x24ccd8, selector=0x294e9c, title=0x5b63b0) at 
/Users/gevermann/project/three20/src/TTButton.m:169
#11 0x00009b52 in -[MailViewController 
peopleList:addToView:peopleList:top:highlightAll:highlightQuery:] 
(self=0x5cc490, 
_cmd=0x24c541, title=0x294f2c, addToView=0x5bcfb0, peopleList=0x507250, 
top=0, highlightAll=0 '\0', highlightQuery=0x0) at 
/Users/gevermann/project/remail-iphone/Classes/MailViewController.m:421
#12 0x0000c8ba in -[MailViewController loadedEmail] (self=0x5cc490, 
_cmd=0x24c438) at /Users/gevermann/project/remail-
iphone/Classes/MailViewController.m:712
#13 0x3256dda6 in -[NSObject performSelector:withObject:] ()
#14 0x313ee270 in __NSThreadPerformPerform ()
#15 0x32567a9c in CFRunLoopRunSpecific ()
#16 0x3256735c in CFRunLoopRunInMode ()
#17 0x32912cbe in GSEventRunModal ()
#18 0x32912d6a in GSEventRun ()
#19 0x32b6276e in -[UIApplication _run] ()
#20 0x32b61472 in UIApplicationMain ()
#21 0x000993c0 in main (argc=1, argv=0x2ffff344) at 
/Users/gevermann/project/remail-iphone/Classes/main.m:47
(gdb) 

Original comment by gunnar.e...@gmail.com on 12 Mar 2010 at 1:31

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I am facing same issue with below steps

1, Open ReMail iPhone configured with gmail account
2. Click Folders, then Inbox
3. Click on any email

it crashes.

Original comment by imtiyazbhat@gmail.com on 20 Mar 2010 at 2:16

GoogleCodeExporter commented 8 years ago
I can't repro this problem with any configuration I try.

From the stacktrace that Gunnar sent, it seems like this method is missing:
[TTDefaultStyleSheet toolbarButtonColorWithTintColor:forState:] 

Yet it's right there, in TTDefaultStyleSheet.m, line 790. Can you verify this 
method
is missing for you?

I tried this with the latest three20, rev 924867c..54ece47, pulled a few 
minutes ago.
You might just try doing a 
$ git pull 
in your three20 directory.

Gabor

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

GoogleCodeExporter commented 8 years ago
if you look at the stack trace it actually shows that the problem is inside 
that method 
"[TTDefaultStyleSheet toolbarButtonColorWithTintColor:forState:]" at line 800, 
which 
is:

    if (color.saturation < 0.5) {

The problem is accessing the saturation field doesn't work.

I have actually finally figured this (and the other crashes) out. For three20 
to work 
correctly you need to have "-all_load" in the Other Linker flags in addition to 
-ObjC.

I am pulling down a clean build of everything and will sent a patch then.

Original comment by gunnar.e...@gmail.com on 20 Mar 2010 at 7:01

GoogleCodeExporter commented 8 years ago
The attached patch fixes the problem for me.

The issue was that when doing a Debug build for a device (rather than the sim) 
"-
all_load" was missing from the linker flags.

I believe this fixes issues #9, 11 and 12.

Original comment by gunnar.e...@gmail.com on 20 Mar 2010 at 8:21

Attachments:

GoogleCodeExporter commented 8 years ago
Gunnar - thanks for the suggested fix. Just pushed this checkin:

http://code.google.com/p/remail-iphone/source/detail?
r=3f3868cc30d2244b1f14cc4131f42fc5a242bb00

Gabor

Original comment by gaborcse...@gmail.com on 21 Mar 2010 at 2:11