You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/01/18 19:49:00 UTC

[jira] [Commented] (CB-12784) [Windows 10 Creators Update] "8.1-win" app crashes on start

    [ https://issues.apache.org/jira/browse/CB-12784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16331075#comment-16331075 ] 

ASF GitHub Bot commented on CB-12784:
-------------------------------------

brodybits commented on issue #232: CB-12784 Fixed a crash on Windows 10 Creators Update
URL: https://github.com/apache/cordova-windows/pull/232#issuecomment-358761087
 
 
   I gotta agree with @Achala007: fixes in splashscreen.js are not included in cordova.js, even if I would do the following command in a new Cordova project: `cordova platform add https://github.com/apache/cordova-windows` (implicitly uses the `master` branch). No matter whether I would do `cordova platform add windows` (uses `cordova-windows@5.0.0`) or add from GitHub (shows `cordova-windows@5.1.0-dev`) I still encounter the uncaught exception on Windows 8.1.
   
   I just filed CB-13796 (<https://issues.apache.org/jira/browse/CB-13796>) to report this issue (also described in notes I made in <https://github.com/brodybits/cordova-notes/issues/3>).
   
   WORKAROUND HACK SOLUTION is to simply apply the changes by hand (replace `appView.titleBar` with `isWin10UWP` in `colorizeTitleBar` and `revertTitleBarColor` functions in cordova.js).
   
   ADDITIONAL NOTE: The crash issue discussed here was originally introduced in <https://github.com/apache/cordova-windows/pull/218> for CB-12238 (<https://issues.apache.org/jira/browse/CB-12238> - [Windows] Colorize titlebar to match splash bg color).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> [Windows 10 Creators Update] "8.1-win" app crashes on start
> -----------------------------------------------------------
>
>                 Key: CB-12784
>                 URL: https://issues.apache.org/jira/browse/CB-12784
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-windows
>    Affects Versions: Master
>         Environment: Windows 10 Creators Update (build 15063.250)
> Cordova 7.0.0 or 7.0.1
>            Reporter: Alexander Sorokin
>            Priority: Major
>
> {noformat}
> cordova create foo
> cordova platform add windows
> cordova run -- --appx=8.1-win
> {noformat}
> The stack trace is as follows:
> {noformat}
> 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_1.0.0.0_neutral__h35559jr9hy9m> PID:<16200>. 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":"Element not found.\r\n","number":-2147023728,"stack":"WinRTError: Element not found.\r\n\n   at colorizeTitleBar (ms-appx://io.cordova.hellocordova/www/cordova.js:2083:9)\n   at show (ms-appx://io.cordova.hellocordova/www/cordova.js:2100:5)\n   at module.exports.firstShow (ms-appx://io.cordova.hellocordova/www/cordova.js:2236:13)\n   at Anonymous function (ms-appx://io.cordova.hellocordova/www/cordova.js:1619:21)\n   at notifySuccess (ms-appx://microsoft.winjs.2.0/js/base.js:1550:21)\n   at state_success_notify.enter (ms-appx://microsoft.winjs.2.0/js/base.js:1232:21)\n   at _run (ms-appx://microsoft.winjs.2.0/js/base.js:1448:17)\n   at _completed (ms-appx://microsoft.winjs.2.0/js/base.js:1416:13)\n   at notifySuccess (ms-appx://microsoft.winjs.2.0/js/base.js:1550:21)\n   at state_success_notify.enter (ms-appx://microsoft.winjs.2.0/js/base.js:1232:21)"}>, and Stack Trace:- WinRTError: Element not found.
>    at colorizeTitleBar (ms-appx://io.cordova.hellocordova/www/cordova.js:2083:9)
>    at show (ms-appx://io.cordova.hellocordova/www/cordova.js:2100:5)
>    at module.exports.firstShow (ms-appx://io.cordova.hellocordova/www/cordova.js:2236:13)
>    at Anonymous function (ms-appx://io.cordova.hellocordova/www/cordova.js:1619:21)
>    at notifySuccess (ms-appx://microsoft.winjs.2.0/js/base.js:1550:21)
>    at state_success_notify.enter (ms-appx://microsoft.winjs.2.0/js/base.js:1232:21)
>    at _run (ms-appx://microsoft.winjs.2.0/js/base.js:1448:17)
>    at _completed (ms-appx://microsoft.winjs.2.0/js/base.js:1416:13)
>    at notifySuccess (ms-appx://microsoft.winjs.2.0/js/base.js:1550:21)
>    at state_success_notify.enter (ms-appx://microsoft.winjs.2.0/js/base.js:1232:21)
> .
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org