This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
CB 13855 Fix Windows 8.1 crash on cordova-windows@5 #247
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Platforms affected
Windows
What does this PR do?
CB-13855 (https://issues.apache.org/jira/browse/CB-13855): Fix crash of 8.1-win (Windows 8.1) build on cordova-windows@5 in
5.0.x
branchWhat testing has been done on this change?
Reproduction: Crash was consistently observed on Windows 8.1 build with cordova-windows@5.0.0 (on my Windows 10 development system).
Verification of bug fix: If I would create a test project (
cordova create CB-13855-test2
), add the Windows platform using the following command:and then run Windows 8.1 x86 or x64 Release build (or Windows 8.1 Debug build) on my Windows 10 development system then the app would start without crashing.
Sanity testing: if I would run Windows Phone 8.1 ARM Debug or Release build on my Windows Mobile (Windows 10 Mobile) test device the app would start up as normal. If I would run Windows 10 x86 or x64 Release Build on my Windows 10 development system, or run Windows 10 ARM Release build on my Windows 10 Mobile device, the app would start up as normal.
Checklist
Added automated test coverage as appropriate for this change.not done for this changeAdditional notes
I am raising this fix out of general frustration with cordova-windows@5 which would consistently crash on Windows 8.1 build. This issue was fixed on the master branch after multiple tries (PR #232 for CB-12784 (https://issues.apache.org/jira/browse/CB-12784) and PR #239 for CB-13175). I had expected a 5.1.0 release to be issued 1-2 weeks ago but just learned that the master branch is now targeted for cordova-windows@6.0.0 (http://callback.markmail.org/thread/rzfa2zoydyjq6xso) and cannot be released until a test failure is resolved (#246 (comment)).
I am raising this fix with the following commits:
cordova-js-src/splashscreen.js
) from CB-12784 Fixed a crash on Windows 10 Creators Update #232template/www/cordova.js
5.0.1
releaseI would definitely understand this to be a very unusual way to issue a bug fix. I manually applied the change to
template/www/cordova.js
since I could not understand how to automate this change in the 5.0.1 branch (not sure if this is possible or not). I will also understand if the cordova-windows team does not want me to mark the proposed5.0.1
release.I would be happy to rework this fix if needed to get the new cordova-windows@5 release not crashing on Windows 8.1 build. It has been broken for way too long.