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

app crashes on startup on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Master
    • None
    • cordova-windows
    • Windows 8.1

    • Important

    Description

      cordova create foo
      cd foo
      cordova platform add https://github.com/apache/cordova-windows
      cordova run windows
      

      App starts and then crashes immediately with following message in windows log:

      App <io.cordova.hellocordova> terminated itself by calling terminateApp API. App details are as follows:  Display Name:<HelloCordova>, AppUserModelId: <io.cordova.hellocordova_h35559jr9hy9m!io.cordova.hellocordova> Package Identity:<io.cordova.hellocordova_0.0.1.0_neutral__h35559jr9hy9m> PID:<3508>. The API was called from the context of the following HTML document:  </www/index.html>. Error object passed to terminateApp carried the following details Description:<{"description":"'platform' is undefined","number":-2146823279,"stack":"ReferenceError: 'platform' is undefined\n   at activationHandler (ms-appx://io.cordova.hellocordova/www/cordova.js:1320:17)\n   at dispatchOne (ms-appx://microsoft.winjs.2.0/js/base.js:9416:25)\n   at dispatchEvent (ms-appx://microsoft.winjs.2.0/js/base.js:9415:21)\n   at drainOneEvent (ms-appx://microsoft.winjs.2.0/js/base.js:9469:13)\n   at drainQueue (ms-appx://microsoft.winjs.2.0/js/base.js:9486:9)\n   at Anonymous function (ms-appx://microsoft.winjs.2.0/js/base.js:2952:17)\n   at state_running.enter (ms-appx://microsoft.winjs.2.0/js/base.js:2951:13)\n   at _setState (ms-appx://microsoft.winjs.2.0/js/base.js:2667:13)\n   at Anonymous function (ms-appx://microsoft.winjs.2.0/js/base.js:2866:13)\n   at _execute (ms-appx://microsoft.winjs.2.0/js/base.js:2642:13)"}>, and Stack Trace:- ReferenceError: 'platform' is undefined
         at activationHandler (ms-appx://io.cordova.hellocordova/www/cordova.js:1320:17)
         at dispatchOne (ms-appx://microsoft.winjs.2.0/js/base.js:9416:25)
         at dispatchEvent (ms-appx://microsoft.winjs.2.0/js/base.js:9415:21)
         at drainOneEvent (ms-appx://microsoft.winjs.2.0/js/base.js:9469:13)
         at drainQueue (ms-appx://microsoft.winjs.2.0/js/base.js:9486:9)
         at Anonymous function (ms-appx://microsoft.winjs.2.0/js/base.js:2952:17)
         at state_running.enter (ms-appx://microsoft.winjs.2.0/js/base.js:2951:13)
         at _setState (ms-appx://microsoft.winjs.2.0/js/base.js:2667:13)
         at Anonymous function (ms-appx://microsoft.winjs.2.0/js/base.js:2866:13)
         at _execute (ms-appx://microsoft.winjs.2.0/js/base.js:2642:13)
      .
      

      Attachments

        Activity

          People

            alsorokin Alexander Sorokin
            alsorokin Alexander Sorokin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: