lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
245 stars 17 forks source link

12547698: Crash while displaying mail compose view when tab bar text is customized #5566

Open openradar-mirror opened 9 years ago

openradar-mirror commented 9 years ago

Description

Summary: If the mail compose view (MFMailComposeViewController) is displayed while the tab bar title text is customized using -[UIColor colorWithPattern:], an assertion failure occurs in -[UICGColor encodeWithCoder:]

Steps to Reproduce: Customize the tab bar using by setting a pattern colour for the title text appearance using -[UIColor colorWithPattern:]. The app will crash when you try to instantiate a MFMailComposeViewController. If you use an RGBA color instead of -[UIColor colorWithPattern:] the crash does not occur.

Expected Results: The mail compose view appears even when the tab bar title text is customized with a pattern colour.

Actual Results: Crash occurs with error message:

2012-10-22 11:29:21.016 MailTest[71513:1303] * Assertion failure in -[UICGColor encodeWithCoder:], /SourceCache/UIKit_Sim/UIKit-2372/UIColor.m:1191 2012-10-22 11:29:21.017 MailTest[71513:1303] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Only support RGBA or the White color space, this method is a hack.' *\ First throw call stack: (0x1cfb012 0x11dfe7e 0x1cfae78 0xc75f35 0x2d1d79 0xc1c644 0xc1c112 0xc23cdf 0x56bd10 0x5683c7 0x1ce8cdf 0x1ce887d 0x1ce87c5 0x567fac 0x6b0879 0x603359 0x6030de 0x4c80014 0x4c6fd5f 0x4c6faa3 0x4c6fe5e 0x602fad 0x60ee46 0x4c80014 0x4c7209f 0x4c72061 0x60ee0a 0x60f002 0x66c4e9 0x4c6e53f 0x4c80014 0x4c70418 0x4c702a6 0x4c71280 0x4c71450 0x90659e12 0x90641cca) libc++abi.dylib: terminate called throwing an exception

Regression: Yes. Not reproducible in iOS 5.1

Product Version: 6.0 (10A405) Created: 2012-10-22T17:03:12.812383 Originated: 2012-10-22T00:00:00 Open Radar Link: http://www.openradar.me/12547698

neste2015 commented 9 years ago

Have you found the solution to avoid the crash with customized appearance? I have the same trouble...