[TIMOB-692] camera crash
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:53:56.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.2.0 |
Components | iOS |
Labels | n/a |
Reporter | Nolan Wright |
Assignee | Blain Hamon |
Created | 2011-04-15T02:34:35.000+0000 |
Updated | 2011-04-17T01:53:56.000+0000 |
Description
Phone => Camera => Camera Basic
crashes on device
Very difficult to reproduce this crash. But the relevant stack trace is:
Isolated the crash in
-[TitaniumViewController loadView]
. Occurs in this loop:Apparently, sometimes a TiWindowProxy is not really a TiWindowProxy. There's probably an initialization race condition somewhere: This bug only seems to appear if you IMMEDIATELY tap 'use' after the picture is processed.
In this case, the
thisWindowProxy
is really aTiWindowViewController
(the one for the tab group).Aha.
windowViewControllers used to be an array of proxies, but I changed them into viewControllers. The fact that the [thisWindowProxy view] doesn't crash is due to viewControllers and proxies both having a method called that.
With viewControllers wrapping proxies, that 'view' is a TiUIView. With viewControllers that aren't, like, say, the Camera, they're standard UIViews, which would not have a reposition method.
Re: Blain's comment -
Turns out that this was fixed by Jeff as another bug (not sure which one). I'm marking it resolved - but if anyone can still reproduce it in the 1.2.0 freeze, here are instructions:
Phone -> Camera -> Camera Basic
Take a picture
As soon as the 'use' button comes up, tap it IMMEDIATELY. The bug may show up if you tap it at other times, but this seemed to be the most reliable way to reproduce.
Of course, re-open the bug if it can be reproduced and I will fix.