Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10230

[WP8] Out of memory exception thrown when console.log added to cordova/exec function

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 3.8.2
    • Fix Version/s: None
    • Labels:
      None

      Description

      1. Create a new WP8 Cordova project in Visual Studio (I used the 2015 version)
      2. Press F5 to start debugging the project
      3. Notice that the project runs without any issues
      4. Stop debugging
      5. Open cordova.js
      6. Search for 'window.external.Notify'
      7. Insert 'console.log("Command: " + command);' before Notify is called
      8. Press F5
      9. Notice that an out of memory exception is thrown (console.log calls cordova/exec which in turns calls console.log again, so an infinite loop is entered, and the loop is only broken when the out of memory exception is thrown)

        Attachments

          Activity

            People

            • Assignee:
              purplecabbage Jesse MacFadyen
              Reporter:
              mchipeta Malumbo Chipeta
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: