You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Olivier Louvignes (JIRA)" <ji...@apache.org> on 2012/05/01 12:54:50 UTC
[jira] [Created] (CB-614) New 1.7.0rc exception debugging seems
broken
Olivier Louvignes created CB-614:
------------------------------------
Summary: New 1.7.0rc exception debugging seems broken
Key: CB-614
URL: https://issues.apache.org/jira/browse/CB-614
Project: Apache Callback
Issue Type: Bug
Reporter: Olivier Louvignes
I'm trying to use/test the new awesome exception debugging for Cordova that shipped with 1.7.0rc1
First of all, "CDVDebugWebView.m" would not compile with packaged version without this conditional in the header:
{quote}
#ifdef CORDOVA_FRAMEWORK
#import <Cordova/CDVCordovaView.h>
#else
#import "CDVCordovaView.h"
#endif
{quote}
By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not work in my case (i get a file not found error) while it seems to work with the .h import. (comment in https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
Then when it compiles, it appears to be enabled (get two popups, cordova is working & cordova is in debug mode).
However I get this error in Xcode :
{quote}
2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
Line: cordova.fireDocumentEvent('active');
wait_fences: failed to receive reply: 10004003
{quote}
Finally when trying to throw some exception, i just replace in given index.html "navigator.notification.alert("Cordova is working")" by "throw "test trace";"
{quote}
2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
Line: cordova.fireDocumentEvent('active');
wait_fences: failed to receive reply: 10004003
2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success callback: NetworkStatus0 = test trace
{quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-614) New 1.7.0rc exception debugging seems
broken
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah updated CB-614:
--------------------------------
Fix Version/s: 1.7.0
> New 1.7.0rc exception debugging seems broken
> --------------------------------------------
>
> Key: CB-614
> URL: https://issues.apache.org/jira/browse/CB-614
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Reporter: Olivier Louvignes
> Labels: debugging, ios
> Fix For: 1.7.0
>
>
> I'm trying to use/test the new awesome exception debugging for Cordova that shipped with 1.7.0rc1
> First of all, "CDVDebugWebView.m" would not compile with packaged version without this conditional in the header:
> {quote}
> #ifdef CORDOVA_FRAMEWORK
> #import <Cordova/CDVCordovaView.h>
> #else
> #import "CDVCordovaView.h"
> #endif
> {quote}
> By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not work in my case (i get a file not found error) while it seems to work with the .h import. (comment in https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
> Then when it compiles, it appears to be enabled (get two popups, cordova is working & cordova is in debug mode).
> However I get this error in Xcode :
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> {quote}
> Finally when trying to throw some exception, i just replace in given index.html "navigator.notification.alert("Cordova is working")" by "throw "test trace";"
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> 2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
> 2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success callback: NetworkStatus0 = test trace
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-614) New 1.7.0rc exception debugging seems
broken
Posted by "Olivier Louvignes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265974#comment-13265974 ]
Olivier Louvignes commented on CB-614:
--------------------------------------
Nice, just copy-pasted the blob from this commit and the result is now :
{quote}
2012-05-01 20:58:04.494 Cordova-170rc[45903:15403] JavaScript exception: (www/index.html):42 - ReferenceError - Can't find variable: foo
Function name: '(null)' Line: ' '
2012-05-01 20:58:04.496 Cordova-170rc[45903:13703] [WARN] doCrash
{quote}
But I have nothing at l.42 (but the onDeviceReady declaration on l.43), is it supposed to support lambdas/anonymous-methods tracing?
Anyway just the correct exc. message is a big leap forward... !
> New 1.7.0rc exception debugging seems broken
> --------------------------------------------
>
> Key: CB-614
> URL: https://issues.apache.org/jira/browse/CB-614
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Reporter: Olivier Louvignes
> Labels: debugging, ios
> Fix For: 1.7.0
>
>
> I'm trying to use/test the new awesome exception debugging for Cordova that shipped with 1.7.0rc1
> First of all, "CDVDebugWebView.m" would not compile with packaged version without this conditional in the header:
> {quote}
> #ifdef CORDOVA_FRAMEWORK
> #import <Cordova/CDVCordovaView.h>
> #else
> #import "CDVCordovaView.h"
> #endif
> {quote}
> By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not work in my case (i get a file not found error) while it seems to work with the .h import. (comment in https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
> Then when it compiles, it appears to be enabled (get two popups, cordova is working & cordova is in debug mode).
> However I get this error in Xcode :
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> {quote}
> Finally when trying to throw some exception, i just replace in given index.html "navigator.notification.alert("Cordova is working")" by "throw "test trace";"
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> 2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
> 2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success callback: NetworkStatus0 = test trace
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Issue Comment Edited] (CB-614) New 1.7.0rc exception
debugging seems broken
Posted by "Olivier Louvignes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265962#comment-13265962 ]
Olivier Louvignes edited comment on CB-614 at 5/1/12 6:49 PM:
--------------------------------------------------------------
Ok, great.
Another test still on 1.7.0rc :
{quote}
function onDeviceReady()
{
// do your thing!
//navigator.notification.alert("Cordova is working");
setTimeout(function(){
console.warn('doCrash');
var crash = foo.bar;
}, 1500);
}
{quote}
And the XCode console output
{quote}
2012-05-01 20:46:31.413 Cordova-170rc[44171:13703] Multi-tasking -> Device: YES, App: YES
2012-05-01 20:46:31.939 Cordova-170rc[44171:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
Line: cordova.fireDocumentEvent('active');
wait_fences: failed to receive reply: 10004003
2012-05-01 20:46:34.015 Cordova-170rc[44171:15403] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSRangeException> *** -[__NSArrayM objectAtIndex:]: index 50 beyond bounds [0 .. 42]
2012-05-01 20:46:34.016 Cordova-170rc[44171:13703] [WARN] doCrash
{quote}
was (Author: mgcrea):
Ok, great.
Another test still on 1.7.0rc :
{quote}
function onDeviceReady()
{
// do your thing!
//navigator.notification.alert("Cordova is working");
setTimeout(function() {
console.warn('doCrash');
var crash = foo.bar;
}, 1500);
}
{quote}
And the XCode console output
{quote}
2012-05-01 20:46:31.413 Cordova-170rc[44171:13703] Multi-tasking -> Device: YES, App: YES
2012-05-01 20:46:31.939 Cordova-170rc[44171:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
Line: cordova.fireDocumentEvent('active');
wait_fences: failed to receive reply: 10004003
2012-05-01 20:46:34.015 Cordova-170rc[44171:15403] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSRangeException> *** -[__NSArrayM objectAtIndex:]: index 50 beyond bounds [0 .. 42]
2012-05-01 20:46:34.016 Cordova-170rc[44171:13703] [WARN] doCrash
{quote}
> New 1.7.0rc exception debugging seems broken
> --------------------------------------------
>
> Key: CB-614
> URL: https://issues.apache.org/jira/browse/CB-614
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Reporter: Olivier Louvignes
> Labels: debugging, ios
>
> I'm trying to use/test the new awesome exception debugging for Cordova that shipped with 1.7.0rc1
> First of all, "CDVDebugWebView.m" would not compile with packaged version without this conditional in the header:
> {quote}
> #ifdef CORDOVA_FRAMEWORK
> #import <Cordova/CDVCordovaView.h>
> #else
> #import "CDVCordovaView.h"
> #endif
> {quote}
> By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not work in my case (i get a file not found error) while it seems to work with the .h import. (comment in https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
> Then when it compiles, it appears to be enabled (get two popups, cordova is working & cordova is in debug mode).
> However I get this error in Xcode :
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> {quote}
> Finally when trying to throw some exception, i just replace in given index.html "navigator.notification.alert("Cordova is working")" by "throw "test trace";"
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> 2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
> 2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success callback: NetworkStatus0 = test trace
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-614) New 1.7.0rc exception debugging seems
broken
Posted by "Olivier Louvignes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271952#comment-13271952 ]
Olivier Louvignes commented on CB-614:
--------------------------------------
Jumping back in with a question:
I haven't found so far any enhancement over a basic :
window.onerror = function(msg, url, line) {
console.error('# Error occurred: ' + url + ':[' + line + ']: ' + msg);
};
To me the most problematic js debugging issue is to get a correct trace/line for lambda's.
Doesn't look like this debugView enables this...
So what does it enables?
> New 1.7.0rc exception debugging seems broken
> --------------------------------------------
>
> Key: CB-614
> URL: https://issues.apache.org/jira/browse/CB-614
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Reporter: Olivier Louvignes
> Assignee: Shazron Abdullah
> Labels: debugging, ios
> Fix For: 1.8.0
>
>
> I'm trying to use/test the new awesome exception debugging for Cordova that shipped with 1.7.0rc1
> First of all, "CDVDebugWebView.m" would not compile with packaged version without this conditional in the header:
> {quote}
> #ifdef CORDOVA_FRAMEWORK
> #import <Cordova/CDVCordovaView.h>
> #else
> #import "CDVCordovaView.h"
> #endif
> {quote}
> By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not work in my case (i get a file not found error) while it seems to work with the .h import. (comment in https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
> Then when it compiles, it appears to be enabled (get two popups, cordova is working & cordova is in debug mode).
> However I get this error in Xcode :
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> {quote}
> Finally when trying to throw some exception, i just replace in given index.html "navigator.notification.alert("Cordova is working")" by "throw "test trace";"
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> 2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
> 2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success callback: NetworkStatus0 = test trace
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CB-614) New 1.7.0rc exception debugging seems
broken
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah reassigned CB-614:
-----------------------------------
Assignee: Shazron Abdullah
> New 1.7.0rc exception debugging seems broken
> --------------------------------------------
>
> Key: CB-614
> URL: https://issues.apache.org/jira/browse/CB-614
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Reporter: Olivier Louvignes
> Assignee: Shazron Abdullah
> Labels: debugging, ios
> Fix For: 1.8.0
>
>
> I'm trying to use/test the new awesome exception debugging for Cordova that shipped with 1.7.0rc1
> First of all, "CDVDebugWebView.m" would not compile with packaged version without this conditional in the header:
> {quote}
> #ifdef CORDOVA_FRAMEWORK
> #import <Cordova/CDVCordovaView.h>
> #else
> #import "CDVCordovaView.h"
> #endif
> {quote}
> By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not work in my case (i get a file not found error) while it seems to work with the .h import. (comment in https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
> Then when it compiles, it appears to be enabled (get two popups, cordova is working & cordova is in debug mode).
> However I get this error in Xcode :
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> {quote}
> Finally when trying to throw some exception, i just replace in given index.html "navigator.notification.alert("Cordova is working")" by "throw "test trace";"
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> 2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
> 2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success callback: NetworkStatus0 = test trace
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Issue Comment Edited] (CB-614) New 1.7.0rc exception
debugging seems broken
Posted by "Olivier Louvignes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265962#comment-13265962 ]
Olivier Louvignes edited comment on CB-614 at 5/1/12 6:50 PM:
--------------------------------------------------------------
Ok, great.
Another test still on 1.7.0rc :
{quote}
function onDeviceReady()
{
// do your thing!
//navigator.notification.alert("Cordova is working");
setTimeout(function(){ console.warn('doCrash'); var crash = foo.bar; }, 1500);
}
{quote}
And the XCode console output
{quote}
2012-05-01 20:46:31.413 Cordova-170rc[44171:13703] Multi-tasking -> Device: YES, App: YES
2012-05-01 20:46:31.939 Cordova-170rc[44171:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
Line: cordova.fireDocumentEvent('active');
wait_fences: failed to receive reply: 10004003
2012-05-01 20:46:34.015 Cordova-170rc[44171:15403] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSRangeException> *** -[__NSArrayM objectAtIndex:]: index 50 beyond bounds [0 .. 42]
2012-05-01 20:46:34.016 Cordova-170rc[44171:13703] [WARN] doCrash
{quote}
was (Author: mgcrea):
Ok, great.
Another test still on 1.7.0rc :
{quote}
function onDeviceReady()
{
// do your thing!
//navigator.notification.alert("Cordova is working");
setTimeout(function(){
console.warn('doCrash');
var crash = foo.bar;
}, 1500);
}
{quote}
And the XCode console output
{quote}
2012-05-01 20:46:31.413 Cordova-170rc[44171:13703] Multi-tasking -> Device: YES, App: YES
2012-05-01 20:46:31.939 Cordova-170rc[44171:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
Line: cordova.fireDocumentEvent('active');
wait_fences: failed to receive reply: 10004003
2012-05-01 20:46:34.015 Cordova-170rc[44171:15403] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSRangeException> *** -[__NSArrayM objectAtIndex:]: index 50 beyond bounds [0 .. 42]
2012-05-01 20:46:34.016 Cordova-170rc[44171:13703] [WARN] doCrash
{quote}
> New 1.7.0rc exception debugging seems broken
> --------------------------------------------
>
> Key: CB-614
> URL: https://issues.apache.org/jira/browse/CB-614
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Reporter: Olivier Louvignes
> Labels: debugging, ios
>
> I'm trying to use/test the new awesome exception debugging for Cordova that shipped with 1.7.0rc1
> First of all, "CDVDebugWebView.m" would not compile with packaged version without this conditional in the header:
> {quote}
> #ifdef CORDOVA_FRAMEWORK
> #import <Cordova/CDVCordovaView.h>
> #else
> #import "CDVCordovaView.h"
> #endif
> {quote}
> By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not work in my case (i get a file not found error) while it seems to work with the .h import. (comment in https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
> Then when it compiles, it appears to be enabled (get two popups, cordova is working & cordova is in debug mode).
> However I get this error in Xcode :
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> {quote}
> Finally when trying to throw some exception, i just replace in given index.html "navigator.notification.alert("Cordova is working")" by "throw "test trace";"
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> 2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
> 2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success callback: NetworkStatus0 = test trace
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-614) New 1.7.0rc exception debugging seems
broken
Posted by "Olivier Louvignes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265962#comment-13265962 ]
Olivier Louvignes commented on CB-614:
--------------------------------------
Ok, great.
Another test still on 1.7.0rc :
{quote}
function onDeviceReady()
{
// do your thing!
//navigator.notification.alert("Cordova is working");
setTimeout(function() {
console.warn('doCrash');
var crash = foo.bar;
}, 1500);
}
{quote}
And the XCode console output
{quote}
2012-05-01 20:46:31.413 Cordova-170rc[44171:13703] Multi-tasking -> Device: YES, App: YES
2012-05-01 20:46:31.939 Cordova-170rc[44171:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
Line: cordova.fireDocumentEvent('active');
wait_fences: failed to receive reply: 10004003
2012-05-01 20:46:34.015 Cordova-170rc[44171:15403] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSRangeException> *** -[__NSArrayM objectAtIndex:]: index 50 beyond bounds [0 .. 42]
2012-05-01 20:46:34.016 Cordova-170rc[44171:13703] [WARN] doCrash
{quote}
> New 1.7.0rc exception debugging seems broken
> --------------------------------------------
>
> Key: CB-614
> URL: https://issues.apache.org/jira/browse/CB-614
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Reporter: Olivier Louvignes
> Labels: debugging, ios
>
> I'm trying to use/test the new awesome exception debugging for Cordova that shipped with 1.7.0rc1
> First of all, "CDVDebugWebView.m" would not compile with packaged version without this conditional in the header:
> {quote}
> #ifdef CORDOVA_FRAMEWORK
> #import <Cordova/CDVCordovaView.h>
> #else
> #import "CDVCordovaView.h"
> #endif
> {quote}
> By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not work in my case (i get a file not found error) while it seems to work with the .h import. (comment in https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
> Then when it compiles, it appears to be enabled (get two popups, cordova is working & cordova is in debug mode).
> However I get this error in Xcode :
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> {quote}
> Finally when trying to throw some exception, i just replace in given index.html "navigator.notification.alert("Cordova is working")" by "throw "test trace";"
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> 2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
> 2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success callback: NetworkStatus0 = test trace
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-614) New 1.7.0rc exception debugging seems
broken
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271953#comment-13271953 ]
Shazron Abdullah commented on CB-614:
-------------------------------------
@maxogden this is expected, and is harmless. that event is fired on the app being brought to the foreground (active), but in this case "deviceready" has not been fired. I guess we could add a "if (cordova && cordova.fireDocumentEvent) cordova.fireDocumentEvent('active')" in there.
> New 1.7.0rc exception debugging seems broken
> --------------------------------------------
>
> Key: CB-614
> URL: https://issues.apache.org/jira/browse/CB-614
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Reporter: Olivier Louvignes
> Assignee: Shazron Abdullah
> Labels: debugging, ios
> Fix For: 1.8.0
>
>
> I'm trying to use/test the new awesome exception debugging for Cordova that shipped with 1.7.0rc1
> First of all, "CDVDebugWebView.m" would not compile with packaged version without this conditional in the header:
> {quote}
> #ifdef CORDOVA_FRAMEWORK
> #import <Cordova/CDVCordovaView.h>
> #else
> #import "CDVCordovaView.h"
> #endif
> {quote}
> By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not work in my case (i get a file not found error) while it seems to work with the .h import. (comment in https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
> Then when it compiles, it appears to be enabled (get two popups, cordova is working & cordova is in debug mode).
> However I get this error in Xcode :
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> {quote}
> Finally when trying to throw some exception, i just replace in given index.html "navigator.notification.alert("Cordova is working")" by "throw "test trace";"
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> 2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
> 2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success callback: NetworkStatus0 = test trace
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-614) New 1.7.0rc exception debugging seems
broken
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271956#comment-13271956 ]
Shazron Abdullah commented on CB-614:
-------------------------------------
@olivier support for this in iOS 4, window.onerror is only iOS 5. Also, if you look in the delegate functions that are unimplemented, possible function tracing of javascript calls. This lays the groundwork for future work (possibly integrating with Weinre? I dunno yet).
> New 1.7.0rc exception debugging seems broken
> --------------------------------------------
>
> Key: CB-614
> URL: https://issues.apache.org/jira/browse/CB-614
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Reporter: Olivier Louvignes
> Assignee: Shazron Abdullah
> Labels: debugging, ios
> Fix For: 1.8.0
>
>
> I'm trying to use/test the new awesome exception debugging for Cordova that shipped with 1.7.0rc1
> First of all, "CDVDebugWebView.m" would not compile with packaged version without this conditional in the header:
> {quote}
> #ifdef CORDOVA_FRAMEWORK
> #import <Cordova/CDVCordovaView.h>
> #else
> #import "CDVCordovaView.h"
> #endif
> {quote}
> By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not work in my case (i get a file not found error) while it seems to work with the .h import. (comment in https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
> Then when it compiles, it appears to be enabled (get two popups, cordova is working & cordova is in debug mode).
> However I get this error in Xcode :
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> {quote}
> Finally when trying to throw some exception, i just replace in given index.html "navigator.notification.alert("Cordova is working")" by "throw "test trace";"
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> 2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
> 2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success callback: NetworkStatus0 = test trace
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-614) New 1.7.0rc exception debugging seems
broken
Posted by "max ogden (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271946#comment-13271946 ]
max ogden commented on CB-614:
------------------------------
On a freshly compiled cordova (git ref 85f8ef73f965a07c6cf5b18f98b2bf02671fb38f) and a brand new project I get the following after enabling debugging via the Cordova JavaScript Exception Logging guide:
2012-05-09 16:33:05.486 tes.test.test[5858:13403] Multi-tasking -> Device: YES, App: YES
2012-05-09 16:33:06.034 tes.test.test[5858:13403] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
Function name: '(null)' Line: 'cordova.fireDocumentEvent('active');'
wait_fences: failed to receive reply: 10004003
> New 1.7.0rc exception debugging seems broken
> --------------------------------------------
>
> Key: CB-614
> URL: https://issues.apache.org/jira/browse/CB-614
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Reporter: Olivier Louvignes
> Assignee: Shazron Abdullah
> Labels: debugging, ios
> Fix For: 1.8.0
>
>
> I'm trying to use/test the new awesome exception debugging for Cordova that shipped with 1.7.0rc1
> First of all, "CDVDebugWebView.m" would not compile with packaged version without this conditional in the header:
> {quote}
> #ifdef CORDOVA_FRAMEWORK
> #import <Cordova/CDVCordovaView.h>
> #else
> #import "CDVCordovaView.h"
> #endif
> {quote}
> By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not work in my case (i get a file not found error) while it seems to work with the .h import. (comment in https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
> Then when it compiles, it appears to be enabled (get two popups, cordova is working & cordova is in debug mode).
> However I get this error in Xcode :
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> {quote}
> Finally when trying to throw some exception, i just replace in given index.html "navigator.notification.alert("Cordova is working")" by "throw "test trace";"
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> 2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
> 2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success callback: NetworkStatus0 = test trace
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-614) New 1.7.0rc exception debugging seems
broken
Posted by "Olivier Louvignes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Louvignes updated CB-614:
---------------------------------
Component/s: iOS
> New 1.7.0rc exception debugging seems broken
> --------------------------------------------
>
> Key: CB-614
> URL: https://issues.apache.org/jira/browse/CB-614
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Reporter: Olivier Louvignes
> Labels: debugging, ios
>
> I'm trying to use/test the new awesome exception debugging for Cordova that shipped with 1.7.0rc1
> First of all, "CDVDebugWebView.m" would not compile with packaged version without this conditional in the header:
> {quote}
> #ifdef CORDOVA_FRAMEWORK
> #import <Cordova/CDVCordovaView.h>
> #else
> #import "CDVCordovaView.h"
> #endif
> {quote}
> By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not work in my case (i get a file not found error) while it seems to work with the .h import. (comment in https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
> Then when it compiles, it appears to be enabled (get two popups, cordova is working & cordova is in debug mode).
> However I get this error in Xcode :
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> {quote}
> Finally when trying to throw some exception, i just replace in given index.html "navigator.notification.alert("Cordova is working")" by "throw "test trace";"
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> 2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
> 2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success callback: NetworkStatus0 = test trace
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-614) New 1.7.0rc exception debugging seems
broken
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265966#comment-13265966 ]
Shazron Abdullah commented on CB-614:
-------------------------------------
This should be all handled in my commit last night: http://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=commit;h=7b40297668f7413e50cb72beab8d63a83c412dea
Should be in 1.7.0 final
> New 1.7.0rc exception debugging seems broken
> --------------------------------------------
>
> Key: CB-614
> URL: https://issues.apache.org/jira/browse/CB-614
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Reporter: Olivier Louvignes
> Labels: debugging, ios
>
> I'm trying to use/test the new awesome exception debugging for Cordova that shipped with 1.7.0rc1
> First of all, "CDVDebugWebView.m" would not compile with packaged version without this conditional in the header:
> {quote}
> #ifdef CORDOVA_FRAMEWORK
> #import <Cordova/CDVCordovaView.h>
> #else
> #import "CDVCordovaView.h"
> #endif
> {quote}
> By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not work in my case (i get a file not found error) while it seems to work with the .h import. (comment in https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
> Then when it compiles, it appears to be enabled (get two popups, cordova is working & cordova is in debug mode).
> However I get this error in Xcode :
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> {quote}
> Finally when trying to throw some exception, i just replace in given index.html "navigator.notification.alert("Cordova is working")" by "throw "test trace";"
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> 2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
> 2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success callback: NetworkStatus0 = test trace
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-614) New 1.7.0rc exception debugging seems
broken
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265742#comment-13265742 ]
Shazron Abdullah commented on CB-614:
-------------------------------------
this is all updated in 1.7.0:
http://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=blobdiff;f=CordovaLib/Classes/debugview/CDVDebugWebView.h;h=2ff720c137df7bebb3116d1624e271b96a9d2146;hp=232d3200ca4dbd346f7bfdc4ec5fbb655341fb22;hb=0b2f98c824c304c08ed46c56fdfef4cad962eee3;hpb=f51e8339423e67ca00e9105c0e927a1a9a0e4a73
No where does it mention using .m - I corrected your misconception in maxogden's comment.
That first error is expected.
I'll look into the second error.
> New 1.7.0rc exception debugging seems broken
> --------------------------------------------
>
> Key: CB-614
> URL: https://issues.apache.org/jira/browse/CB-614
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Reporter: Olivier Louvignes
> Labels: debugging, ios
>
> I'm trying to use/test the new awesome exception debugging for Cordova that shipped with 1.7.0rc1
> First of all, "CDVDebugWebView.m" would not compile with packaged version without this conditional in the header:
> {quote}
> #ifdef CORDOVA_FRAMEWORK
> #import <Cordova/CDVCordovaView.h>
> #else
> #import "CDVCordovaView.h"
> #endif
> {quote}
> By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not work in my case (i get a file not found error) while it seems to work with the .h import. (comment in https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
> Then when it compiles, it appears to be enabled (get two popups, cordova is working & cordova is in debug mode).
> However I get this error in Xcode :
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> {quote}
> Finally when trying to throw some exception, i just replace in given index.html "navigator.notification.alert("Cordova is working")" by "throw "test trace";"
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> 2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
> 2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success callback: NetworkStatus0 = test trace
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-614) New 1.7.0rc exception debugging seems
broken
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265981#comment-13265981 ]
Shazron Abdullah commented on CB-614:
-------------------------------------
@Olivier - don't really know, could be an off by one error in my code, I'll check. I'm just reporting what the delegate function returns usually for line number.
> New 1.7.0rc exception debugging seems broken
> --------------------------------------------
>
> Key: CB-614
> URL: https://issues.apache.org/jira/browse/CB-614
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Reporter: Olivier Louvignes
> Labels: debugging, ios
> Fix For: 1.7.0
>
>
> I'm trying to use/test the new awesome exception debugging for Cordova that shipped with 1.7.0rc1
> First of all, "CDVDebugWebView.m" would not compile with packaged version without this conditional in the header:
> {quote}
> #ifdef CORDOVA_FRAMEWORK
> #import <Cordova/CDVCordovaView.h>
> #else
> #import "CDVCordovaView.h"
> #endif
> {quote}
> By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not work in my case (i get a file not found error) while it seems to work with the .h import. (comment in https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
> Then when it compiles, it appears to be enabled (get two popups, cordova is working & cordova is in debug mode).
> However I get this error in Xcode :
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> {quote}
> Finally when trying to throw some exception, i just replace in given index.html "navigator.notification.alert("Cordova is working")" by "throw "test trace";"
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> 2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
> 2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success callback: NetworkStatus0 = test trace
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-614) New 1.7.0rc exception debugging seems
broken
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah updated CB-614:
--------------------------------
Fix Version/s: (was: 1.7.0)
1.8.0
> New 1.7.0rc exception debugging seems broken
> --------------------------------------------
>
> Key: CB-614
> URL: https://issues.apache.org/jira/browse/CB-614
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Reporter: Olivier Louvignes
> Labels: debugging, ios
> Fix For: 1.8.0
>
>
> I'm trying to use/test the new awesome exception debugging for Cordova that shipped with 1.7.0rc1
> First of all, "CDVDebugWebView.m" would not compile with packaged version without this conditional in the header:
> {quote}
> #ifdef CORDOVA_FRAMEWORK
> #import <Cordova/CDVCordovaView.h>
> #else
> #import "CDVCordovaView.h"
> #endif
> {quote}
> By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not work in my case (i get a file not found error) while it seems to work with the .h import. (comment in https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
> Then when it compiles, it appears to be enabled (get two popups, cordova is working & cordova is in debug mode).
> However I get this error in Xcode :
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> {quote}
> Finally when trying to throw some exception, i just replace in given index.html "navigator.notification.alert("Cordova is working")" by "throw "test trace";"
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> 2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
> 2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success callback: NetworkStatus0 = test trace
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CB-614) New 1.7.0rc exception debugging seems
broken
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah resolved CB-614.
---------------------------------
Resolution: Fixed
> New 1.7.0rc exception debugging seems broken
> --------------------------------------------
>
> Key: CB-614
> URL: https://issues.apache.org/jira/browse/CB-614
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Reporter: Olivier Louvignes
> Assignee: Shazron Abdullah
> Labels: debugging, ios
> Fix For: 1.8.0
>
>
> I'm trying to use/test the new awesome exception debugging for Cordova that shipped with 1.7.0rc1
> First of all, "CDVDebugWebView.m" would not compile with packaged version without this conditional in the header:
> {quote}
> #ifdef CORDOVA_FRAMEWORK
> #import <Cordova/CDVCordovaView.h>
> #else
> #import "CDVCordovaView.h"
> #endif
> {quote}
> By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not work in my case (i get a file not found error) while it seems to work with the .h import. (comment in https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
> Then when it compiles, it appears to be enabled (get two popups, cordova is working & cordova is in debug mode).
> However I get this error in Xcode :
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> {quote}
> Finally when trying to throw some exception, i just replace in given index.html "navigator.notification.alert("Cordova is working")" by "throw "test trace";"
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device: YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception: (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> 2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
> 2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success callback: NetworkStatus0 = test trace
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira