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

Uncaught exception in Windows 8.1 build

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 5.0.0, 5.1.0
    • None
    • cordova-windows
    • None
    • Cordova CLI 8.0.0 on Windows 10 Professional system with Visual Studio 2015 Update 3 (Community Edition)

    Description

      If I would try the following steps:

      1. create a new project using Cordova CLI 8.0.0
      2. do cordova platform add windows (uses cordova-windows@5.0.0)
      3. open the generated project with Visual Studio 2015
      4. attempt to run Windows 8.1 build on my system

      it would break with an exception at line 2083, column 9 in cordova.js.

      I would encounter a similar issue if I would replace step 2 above with the following command:

      (shows the following relevant output: Windows project created with cordova-windows@5.1.0-dev)

      POSSIBLE WORKAROUND HACK SOLUTION:

      If I would MANUALLY APPLY the change in apache/cordova-windows@2798167 for CB-12784 (Fixed a crash on Windows 10 Creators Update):

      • replace appView.titleBar with isWin10UWP in colorizeTitleBar and revertTitleBarColor functions in cordova.js (right around the code that fails)

      then it would run OK.

      This WORKAROUND HACK works for me regardless of whether I used cordova platform add windows (using cordova-windows@5.0.0) or cordova platform add https://github.com/apache/cordova-windows (using Windows project created with cordova-windows@5.1.0-dev).

      POSSIBLE EXPLANATION:

       My theory is that for some reasons fixes made to splashscreen.js in apache/cordova-windows@2798167 (see apache/cordova-windows#232 (CB-12784 Fixed a crash on Windows 10 Creators Update)) are not synchronized into cordova.js, as stated in apache/cordova-windows@2798167#commitcomment-26631344.

      ADDITIONAL NOTE: CB-12784 seems to be intended to fix a problem that was introduced by the change in CB-12238 ([Windows] Colorize titlebar to match splash bg color).

      I originally noted this issue in brodybits/cordova-notes#3, along with the exception messages from Visual Studio 2015.

      Attachments

        Issue Links

          Activity

            People

              purplecabbage Jesse MacFadyen
              brodybits Chris Brody
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: