[jira] [Commented] (CB-3451) iOS Cordova app crashes with "failed to resume in time" when reopening

2013-05-23 Thread Brendan (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13666033#comment-13666033
 ] 

Brendan commented on CB-3451:
-

I have no restore handler setup.  window.onload mainly sets up the 
ondeviceready handler.  The ondeviceready handler does kick off some asset 
retrieval: the streaming of mp3 audio, loading some web audio assets, and 
creating some canvas objects.  As the app runs, more of these assets are loaded 
and discarded from time to time.  

Upon restoration, does window.onload or ondeviceready fire again?  From what I 
can tell they aren't.

> iOS Cordova app crashes with "failed to resume in time" when reopening
> --
>
> Key: CB-3451
> URL: https://issues.apache.org/jira/browse/CB-3451
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: iOS
>Affects Versions: 2.6.0
> Environment: Running on iPhone 5
>Reporter: Brendan
>Assignee: Shazron Abdullah
> Fix For: 2.8.0
>
>
> I have a Cordova 2.6.0 app that runs well on my iPhone 5.  It uses web audio 
> and canvas, it that's relevant.  When I reopen the app, it sometimes restores 
> fine, but often it crashes, and the crash log indicates "failed to resume in 
> time".  I can share an entire crash log if useful.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-3451) iOS Cordova app crashes with "failed to resume in time" when reopening

2013-05-22 Thread Brendan (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13664743#comment-13664743
 ] 

Brendan commented on CB-3451:
-

Sorry, I've not been able to build a smaller repro that I can share, yet.  By 
startup, do you mean my "window.onload" or "ondeviceready" handler?  I do 
various initialization in each of these, but neither should run on a reload, 
because then they would reset my application state.  Let me know if I've 
misunderstood something..

> iOS Cordova app crashes with "failed to resume in time" when reopening
> --
>
> Key: CB-3451
> URL: https://issues.apache.org/jira/browse/CB-3451
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: iOS
>Affects Versions: 2.6.0
> Environment: Running on iPhone 5
>Reporter: Brendan
>Assignee: Shazron Abdullah
>
> I have a Cordova 2.6.0 app that runs well on my iPhone 5.  It uses web audio 
> and canvas, it that's relevant.  When I reopen the app, it sometimes restores 
> fine, but often it crashes, and the crash log indicates "failed to resume in 
> time".  I can share an entire crash log if useful.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-3451) iOS Cordova app crashes with "failed to resume in time" when reopening

2013-05-22 Thread Brendan (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13664724#comment-13664724
 ] 

Brendan commented on CB-3451:
-

Here you go:

Incident Identifier: 10951C64-A19E-4A93-B067-F86934BFAA8C
CrashReporter Key:   acc0827a0e8111d9e68847ae8a05fb9114cf7a7b
Hardware Model:  iPhone5,1
Process: MyApp [6926]
Path:
/var/mobile/Applications/33D857A2-B56B-4569-94F0-DCD4C89B9156/MyApp.app/MyApp
Identifier:  MyApp
Version: ??? (???)
Code Type:   ARM (Native)
Parent Process:  launchd [1]

Date/Time:   2013-05-21 11:47:45.057 -0700
OS Version:  iOS 6.1.4 (10B350)
Report Version:  104

Exception Type:  0020
Exception Codes: 0x8badf00d
Highlighted Thread:  0

Application Specific Information:
com.mycompany.myapp failed to resume in time

Elapsed total CPU time (seconds): 19.150 (user 19.150, system 0.000), 96% CPU 
Elapsed application CPU time (seconds): 18.285, 91% CPU

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0:
0   libsystem_kernel.dylib  0x39a7ae80 semaphore_wait_trap + 8
1   libdispatch.dylib   0x399b5e04 _dispatch_group_wait_slow + 
152
2   QuartzCore  0x3349cb0c 
CA::CG::IOSurfaceDataProvider::copy_data() + 48
3   QuartzCore  0x3349cc4c 
CA::CG::IOSurfaceDataProvider::get_byte_pointer(void*) + 12
4   CoreGraphics0x31912d18 
CGAccessSessionGetBytePointer + 36
5   CoreGraphics0x319118ca img_data_lock + 1122
6   CoreGraphics0x31910cc6 CGSImageDataLock + 126
7   libRIP.A.dylib  0x31c74974 ripc_AcquireImage + 1388
8   libRIP.A.dylib  0x31c737a4 ripc_DrawImage + 544
9   CoreGraphics0x31910b20 CGContextDelegateDrawImage + 
48
10  CoreGraphics0x319109a2 CGContextDrawImage + 286
11  WebCore 0x37947b5a 
WebCore::GraphicsContext::drawNativeImage(CGImage*, WebCore::FloatSize const&, 
WebCore::ColorSpace, WebCore::FloatRect const&, WebCore::FloatRect const&, 
float, WebCore::CompositeOperator, WebCore::ImageOrientation) + 1182
12  WebCore 0x37a71cf8 
WebCore::ImageBuffer::draw(WebCore::GraphicsContext*, WebCore::ColorSpace, 
WebCore::FloatRect const&, WebCore::FloatRect const&, 
WebCore::CompositeOperator, bool) + 124
13  WebCore 0x37a71c66 
WebCore::GraphicsContext::drawImageBuffer(WebCore::ImageBuffer*, 
WebCore::ColorSpace, WebCore::FloatRect const&, WebCore::FloatRect const&, 
WebCore::CompositeOperator, bool) + 326
14  WebCore 0x37a71b12 
WebCore::GraphicsContext::drawImageBuffer(WebCore::ImageBuffer*, 
WebCore::ColorSpace, WebCore::IntRect const&, WebCore::CompositeOperator, bool) 
+ 70
15  WebCore 0x37a71aa6 
WebCore::HTMLCanvasElement::paint(WebCore::GraphicsContext*, WebCore::IntRect 
const&, bool) + 186
16  WebCore 0x37a719de 
WebCore::RenderHTMLCanvas::paintReplaced(WebCore::PaintInfo&, WebCore::IntPoint 
const&) + 102
17  WebCore 0x37944cb4 
WebCore::RenderReplaced::paint(WebCore::PaintInfo&, WebCore::IntPoint const&) + 
340
18  WebCore 0x37879338 
WebCore::RenderLayer::paintLayerContents(WebCore::RenderLayer*, 
WebCore::GraphicsContext*, WebCore::IntRect const&, unsigned int, 
WebCore::RenderObject*, WebCore::RenderRegion*, 
WTF::HashMap, 
WTF::HashTraits, 
WTF::HashTraits >*, unsigned int) + 1760
19  WebCore 0x379a4712 
WebCore::RenderLayerBacking::paintIntoLayer(WebCore::RenderLayer*, 
WebCore::GraphicsContext*, WebCore::IntRect const&, unsigned int, unsigned int, 
WebCore::RenderObject*) + 154
20  WebCore 0x379a458a 
WebCore::RenderLayerBacking::paintContents(WebCore::GraphicsLayer const*, 
WebCore::GraphicsContext&, unsigned int, WebCore::IntRect const&) + 158
21  WebCore 0x379a44e2 
WebCore::GraphicsLayer::paintGraphicsLayerContents(WebCore::GraphicsContext&, 
WebCore::IntRect const&) + 94
22  WebCore 0x379a4414 
__drawLayerContents_block_invoke_0 + 180
23  WebKit  0x38139f44 
WKCALayerEnumerateRectsBeingDrawnWithBlock + 56
24  WebCore 0x379a3ff8 
drawLayerContents(CGContext*, CALayer*, WebCore::PlatformCALayer*) + 524
25  QuartzCore  0x334648c0 CABackingStoreUpdate_ + 1776
26  QuartzCore  0x33464032 CA::Layer::display_() + 970
27  WebCore 0x379a3d9e -[WebLayer display] + 50
28  QuartzCore  0x3345b0b2 
CA::Layer::display_if_needed(CA::Transaction*) + 198
29  QuartzCore  0x3345afdc 
C

[jira] [Created] (CB-3451) iOS Cordova app crashes with "failed to resume in time" when reopening

2013-05-22 Thread Brendan (JIRA)
Brendan created CB-3451:
---

 Summary: iOS Cordova app crashes with "failed to resume in time" 
when reopening
 Key: CB-3451
 URL: https://issues.apache.org/jira/browse/CB-3451
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 2.6.0
 Environment: Running on iPhone 5
Reporter: Brendan
Assignee: Shazron Abdullah


I have a Cordova 2.6.0 app that runs well on my iPhone 5.  It uses web audio 
and canvas, it that's relevant.  When I reopen the app, it sometimes restores 
fine, but often it crashes, and the crash log indicates "failed to resume in 
time".  I can share an entire crash log if useful.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira