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

Andrew Grieve commented on CB-1404:
-----------------------------------

I added some logging to the exec bridge to try and figure out what's going on. 
The app is a bit hard for me to follow what's going on, and I'm having a hard 
time figuring out if it's a cordova problem, or just a problem with your app.

Here are the logs with all bridge calls logged:

2012-11-15 18:48:58.830 AudioRecall[33258:c07] Multi-tasking -> Device: YES, 
App: YES
2012-11-15 18:48:59.075 AudioRecall[33258:c07] [LOG] exec() 
NetworkStatus.getConnectionInfo ID=NetworkStatus727560950 args=[]
2012-11-15 18:48:59.076 AudioRecall[33258:c07] [LOG] exec() 
Device.getDeviceInfo ID=Device727560951 args=[]
2012-11-15 18:48:59.078 AudioRecall[33258:c07] [LOG] exec() CALLBACK: 
id=NetworkStatus727560950 status=1 args=["wifi"]
2012-11-15 18:48:59.078 AudioRecall[33258:c07] [LOG] exec() CALLBACK: 
id=Device727560951 status=1 args=[{"name":"iPhone 
Simulator","uuid":"73B3D5D9-74A2-46D5-A1A4-01EFB5241C7F","platform":"iPhone 
Simulator","version":"6.0","cordova":"2.2.0"}]
2012-11-15 18:48:59.083 AudioRecall[33258:c07] [LOG] 
deviceready######################################################################
2012-11-15 18:48:59.083 AudioRecall[33258:c07] [LOG] exec() 
File.requestFileSystem ID=File727560952 args=[0,0]
2012-11-15 18:48:59.085 AudioRecall[33258:c07] [LOG] exec() CALLBACK: 
id=File727560952 status=1 
args=[{"name":"temporary","root":{"name":"tmp","isFile":false,"isDirectory":true,"fullPath":"/Users/agrieve/Library/Application
 Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp"}}]
2012-11-15 18:48:59.086 AudioRecall[33258:c07] [LOG] exec() File.readEntries 
ID=File727560953 args=["/Users/agrieve/Library/Application Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp"]
2012-11-15 18:48:59.087 AudioRecall[33258:c07] [LOG] exec() CALLBACK: 
id=File727560953 status=1 
args=[[{"name":"audio0.wav","isFile":true,"isDirectory":false,"fullPath":"/Users/agrieve/Library/Application
 Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp/audio0.wav"},{"name":"audio1.wav","isFile":true,"isDirectory":false,"fullPath":"/Users/agrieve/Library/Application
 Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp/audio1.wav"}]]
2012-11-15 18:48:59.088 AudioRecall[33258:c07] [LOG] exec() File.getFile 
ID=File727560954 args=["/Users/agrieve/Library/Application Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp","audio0.wav",{}]
2012-11-15 18:48:59.089 AudioRecall[33258:c07] [LOG] exec() File.getFile 
ID=File727560955 args=["/Users/agrieve/Library/Application Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp","audio1.wav",{}]
2012-11-15 18:48:59.089 AudioRecall[33258:c07] [LOG] exec() CALLBACK: 
id=File727560954 status=1 
args=[{"name":"audio0.wav","isFile":true,"isDirectory":false,"fullPath":"/Users/agrieve/Library/Application
 Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp/audio0.wav"}]
2012-11-15 18:48:59.090 AudioRecall[33258:c07] [LOG] exec() CALLBACK: 
id=File727560955 status=1 
args=[{"name":"audio1.wav","isFile":true,"isDirectory":false,"fullPath":"/Users/agrieve/Library/Application
 Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp/audio1.wav"}]
2012-11-15 18:48:59.091 AudioRecall[33258:c07] [LOG] exec() 
File.requestFileSystem ID=File727560956 args=[1,0]
2012-11-15 18:48:59.093 AudioRecall[33258:c07] [LOG] exec() CALLBACK: 
id=File727560956 status=1 
args=[{"name":"persistent","root":{"name":"Documents","isFile":false,"isDirectory":true,"fullPath":"/Users/agrieve/Library/Application
 Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/Documents"}}]
2012-11-15 18:48:59.093 AudioRecall[33258:c07] [LOG] exec() File.getDirectory 
ID=File727560957 args=["/Users/agrieve/Library/Application Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/Documents","SAVED",{"create":false}]
2012-11-15 18:48:59.094 AudioRecall[33258:c07] [LOG] exec() CALLBACK: 
id=File727560957 status=1 
args=[{"name":"SAVED","isFile":false,"isDirectory":true,"fullPath":"/Users/agrieve/Library/Application
 Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/Documents/SAVED"}]
2012-11-15 18:48:59.096 AudioRecall[33258:c07] [LOG] changing mode from 
UNDEFINED to SLEEP
2012-11-15 18:49:00.996 AudioRecall[33258:c07] [LOG] changing mode from SLEEP 
to LISTEN
2012-11-15 18:49:00.996 AudioRecall[33258:c07] [LOG] buffer0, was UNUSED, will 
mark STARTED
2012-11-15 18:49:00.998 AudioRecall[33258:c07] [LOG] buffer0 changing from 
UNUSED to STARTED, reason='sLOB'
2012-11-15 18:49:00.999 AudioRecall[33258:c07] [LOG] making media for 
/Users/agrieve/Library/Application Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp/audio0.wav
2012-11-15 18:49:01.000 AudioRecall[33258:c07] [LOG] exec() Media.create 
ID=Media727560958 
args=["59c1457c-f79c-d719-9e1a-304e1218beda","/Users/agrieve/Library/Application
 Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp/audio0.wav"]
2012-11-15 18:49:01.002 AudioRecall[33258:c07] Will attempt to use file 
resource '/Users/agrieve/Library/Application Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp/audio0.wav'
2012-11-15 18:49:01.002 AudioRecall[33258:c07] [LOG] exec() CALLBACK: 
id=Media727560958 status=1 args=["OK"]
2012-11-15 18:49:01.003 AudioRecall[33258:c07] [LOG] exec() 
Media.startRecordingAudio ID=Media727560959 
args=["59c1457c-f79c-d719-9e1a-304e1218beda","/Users/agrieve/Library/Application
 Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp/audio0.wav"]
2012-11-15 18:49:01.055 AudioRecall[33258:c07] Started recording audio sample 
'/Users/agrieve/Library/Application Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp/audio0.wav'
2012-11-15 18:49:02.060 AudioRecall[33258:c07] [LOG] buffer0 listening .... 
1.065 sec
2012-11-15 18:49:03.061 AudioRecall[33258:c07] [LOG] buffer0 listening .... 
2.065 sec
2012-11-15 18:49:04.061 AudioRecall[33258:c07] [LOG] buffer0 listening .... 
3.065 sec
2012-11-15 18:49:05.061 AudioRecall[33258:c07] [LOG] buffer0 listening .... 
4.065 sec
2012-11-15 18:49:06.062 AudioRecall[33258:c07] [LOG] buffer0 listening .... 
5.066 sec
2012-11-15 18:49:07.062 AudioRecall[33258:c07] [LOG] buffer0 listening .... 
6.066 sec
2012-11-15 18:49:08.063 AudioRecall[33258:c07] [LOG] buffer0 listening .... 
7.066 sec
2012-11-15 18:49:09.063 AudioRecall[33258:c07] [LOG] buffer0 listening .... 
8.066 sec
2012-11-15 18:49:10.063 AudioRecall[33258:c07] [LOG] buffer0 listening .... 
9.067 sec
2012-11-15 18:49:11.061 AudioRecall[33258:c07] [LOG] buffer1, was UNUSED, will 
mark STARTED
2012-11-15 18:49:11.062 AudioRecall[33258:c07] [LOG] buffer1 changing from 
UNUSED to STARTED, reason='sLOB'
2012-11-15 18:49:11.063 AudioRecall[33258:c07] [LOG] making media for 
/Users/agrieve/Library/Application Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp/audio1.wav
2012-11-15 18:49:11.064 AudioRecall[33258:c07] [LOG] exec() Media.create 
ID=Media727560960 
args=["0f4a04ef-2a1d-1cb3-6662-0cf1448776ae","/Users/agrieve/Library/Application
 Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp/audio1.wav"]
2012-11-15 18:49:11.065 AudioRecall[33258:c07] Will attempt to use file 
resource '/Users/agrieve/Library/Application Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp/audio1.wav'
2012-11-15 18:49:11.066 AudioRecall[33258:c07] [LOG] exec() CALLBACK: 
id=Media727560960 status=1 args=["OK"]
2012-11-15 18:49:11.067 AudioRecall[33258:c07] [LOG] exec() 
Media.startRecordingAudio ID=Media727560961 
args=["0f4a04ef-2a1d-1cb3-6662-0cf1448776ae","/Users/agrieve/Library/Application
 Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp/audio1.wav"]
2012-11-15 18:49:11.075 AudioRecall[33258:c07] Started recording audio sample 
'/Users/agrieve/Library/Application Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp/audio1.wav'
2012-11-15 18:49:11.077 AudioRecall[33258:c07] [LOG] buffer0 listening .... 
10.082 sec
2012-11-15 18:49:12.078 AudioRecall[33258:c07] [LOG] buffer1 listening .... 
1.017 sec
2012-11-15 18:49:12.079 AudioRecall[33258:c07] [LOG] buffer0 listening .... 
11.084 sec
2012-11-15 18:49:12.720 AudioRecall[33258:c07] [LOG] buffer1 LISTENing STOP 1659
2012-11-15 18:49:12.721 AudioRecall[33258:c07] [LOG] buffer1 has audioMedia 
that needs to be stopped
2012-11-15 18:49:12.723 AudioRecall[33258:c07] [LOG] exec() 
Media.stopRecordingAudio ID=Media727560962 
args=["0f4a04ef-2a1d-1cb3-6662-0cf1448776ae"]
2012-11-15 18:49:12.724 AudioRecall[33258:c07] Stopped recording audio sample 
'/Users/agrieve/Library/Application Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp/audio1.wav'
2012-11-15 18:49:12.736 AudioRecall[33258:c07] Finished recording audio sample 
'/Users/agrieve/Library/Application Support/iPhone 
Simulator/6.0/Applications/FF5092AB-FBFD-4B11-B50D-C5EFDC73185F/tmp/audio1.wav'
2012-11-15 18:49:15.805 AudioRecall[33258:c07] [LOG] buffer1 changing from 
STARTED to PENDING_COMPLETE_NO_RESTART, reason='function stopBuffer'
2012-11-15 18:49:15.806 AudioRecall[33258:c07] [LOG] changing mode from LISTEN 
to CAPTURE
2012-11-15 18:49:16.145 AudioRecall[33258:c07] [LOG] buffer0 capturing .... 
15.149 sec
2012-11-15 18:49:17.145 AudioRecall[33258:c07] [LOG] buffer0 capturing .... 
16.149 sec
2012-11-15 18:49:18.145 AudioRecall[33258:c07] [LOG] buffer0 capturing .... 
17.149 sec

                
> EXC_BAD_ACCESS when using XHR_WITH_PAYLOAD bridge mode 
> -------------------------------------------------------
>
>                 Key: CB-1404
>                 URL: https://issues.apache.org/jira/browse/CB-1404
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPad 2, iOS 5.1.1
>            Reporter: Tom Clarkson
>            Assignee: Andrew Grieve
>             Fix For: 2.2.0
>
>
> When calling a plugin the app crashes on WebThread with EXC_BAD_ACCESS in 
> WebCore::DocumentThreadableLoader::cancel.
> This appears to be some sort of timing issue, as it does not happen on every 
> call - I am seeing it in an autosave function which makes lots of calls to 
> PGSQLitePlugin. 
> The error did not appear before upgrading to 2.1, and setting the bridge mode 
> to IFRAME_NAV restores the previous behaviour (no crashes, but odd scrolling 
> functionality).
> Setting the bridge mode to XHR_NO_PAYLOAD also seems to fix it - not sure if 
> removing the payload actually does anything different or just makes it fast 
> enough that the timing condition does not come up in normal app usage.
>   

--
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

Reply via email to