You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/06/17 13:56:07 UTC

[GitHub] [cordova-android] nirmal98kumar opened a new issue, #1442: cordova.plugins.diagnostic causes ionic app to crash

nirmal98kumar opened a new issue, #1442:
URL: https://github.com/apache/cordova-android/issues/1442

   # Bug Report
   Ionic App crash when video played using video html tag
   
   ## Problem
   cordova.plugins.diagnostic plugin when used causes the crash
   
   ### What is expected to happen?
   video should play normally in android app ( which is the case in ios and web)
   
   
   ### What does actually happen?
   Whenever a page where video is displayed using the <video> html tag , it crashes the android app.
   
   Following logs produced from android studio logcat when app crashes:
   
   2022-05-31 16:07:08.152 20971-209713/com.moterum W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
   at Zt.run(chromium-TrichromeWebViewGoogle.apk-stable-410410681:9)
   2022-05-31 16:07:08.152 20971-20971/com.moterum W/System.err: at android.os.MessageQueue.nativePollOnce(Native Method)
   2022-05-31 16:07:08.152 20971-20971/com.moterum W/System.err: at android.os.MessageQueue.next(MessageQueue.java:335)
   2022-05-31 16:07:08.152 20971-20971/com.moterum W/System.err: at android.os.Looper.loop(Looper.java:183)
   2022-05-31 16:07:08.152 20971-20971/com.moterum W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7656)
   2022-05-31 16:07:08.152 20971-20971/com.moterum W/System.err: at java.lang.reflect.Method.invoke(Native Method)
   2022-05-31 16:07:08.152 20971-20971/com.moterum W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
   2022-05-31 16:07:08.153 20971-20971/com.moterum W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
   
   2022-05-31 16:07:08.152 20971-20971/com.moterum A/chromium: [FATAL:jni_android.cc(249)] Please include Java exception stack in crash report
   2022-05-31 16:07:08.152 20971-20971/com.moterum D/SERVER: Handling local request: https://localhost/assets/icons/favicon.png
   2022-05-31 16:07:08.152 20971-20971/com.moterum A/libc: Fatal signal 5 (SIGTRAP), code -6 (SI_TKILL) in tid 13373 (com.moterum), pid 13373 (com.moterum)
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   -
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   Device : Android Simulator , Any Android phone
   
   ### Version information
   <!--
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   **Framework :** 
   Ionic (Angular)  , CLI version : 6.9.1
   
   **Cordova :** 
   CLI version : 11.0.0
   
   _Platform_
   cordova-android : 10.1.2
   
   _Plugins_
   //Plugin causing issue
      cordova.plugins.diagnostic: 6.0.2
   
   //Other plugins used
       "cordova-plugin-ionic-webview": "^5.0.0",
       "cordova-plugin-push": "0.0.1",
      "@havesource/cordova-plugin-push": "git+https://github.com/havesource/cordova-plugin-push.git",
       "cordova-open-native-settings": "1.5.2",
       "cordova-plugin-add-swift-support": "^2.0.2",
       "cordova-plugin-androidx": "^1.0.2",
       "cordova-plugin-androidx-adapter": "^1.1.1",
       "cordova-plugin-app-launcher": "^0.4.0",
       "cordova-plugin-background-fetch": "^7.0.3",
       "cordova-plugin-background-mode": "^0.7.3",
       "cordova-plugin-badge": "^0.8.8",
       "cordova-plugin-ble-central": "^1.2.5",
       "cordova-plugin-calendar": "^5.1.5",
       "cordova-plugin-camera": "^4.1.0",
       "cordova-plugin-crop": "^0.4.0",
       "cordova-plugin-device": "^2.0.3",
       "cordova-plugin-file": "^6.0.2",
       "cordova-plugin-file-opener2": "^2.2.1",
       "cordova-plugin-inappbrowser": "^5.0.0",
       "cordova-plugin-insomnia": "^4.3.0",
       "cordova-plugin-ionic-keyboard": "^2.2.0",
       "cordova-plugin-local-notification": "^0.9.0-beta.2",
       "cordova-plugin-market": "^1.2.0",
       "cordova-plugin-media-capture": "^3.0.3",
       "cordova-plugin-network-information": "^2.0.2",
       "cordova-plugin-queries-schemes": "^0.1.6",
       "cordova-plugin-splashscreen": "^5.0.3",
       "cordova-plugin-statusbar": "^2.4.3",
       "cordova-plugin-telerik-imagepicker": "^2.3.3",
       "cordova-plugin-x-socialsharing": "^5.6.4",
       "cordova-plugin-x-toast": "^2.7.2",
   
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x ] I searched for existing GitHub issues
   - [x ] I updated all Cordova tooling to most recent version
   - [ ] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [cordova-android] nirmal98kumar commented on issue #1442: cordova.plugins.diagnostic causes ionic app to crash

Posted by GitBox <gi...@apache.org>.
nirmal98kumar commented on issue #1442:
URL: https://github.com/apache/cordova-android/issues/1442#issuecomment-1160362632

   > > [FATAL:jni_android.cc(249)] Please include Java exception stack in crash report
   > 
   > Giving the provided stracktrace, the null pointer crash appears to be coming from the android webview. So there isn't anything Cordova can do about this null pointer exception. I'd suggest ensuring you have the latest webview version available installed. For android emulators, this will involve using a newer android version with Google Play Store enabled. Sign into your google account and log into the Play Store to find updates to the webview. If the issue still persists with the latest version, the crash report should be provided to [Chromium](https://www.chromium.org/for-testers/bug-reporting-guidelines/).
   > 
   > Presumably the null pointer exception is a side effect of another hidden issue, but if it only occurs with the `cordova.plugins.diagnostic` plugin, then it's reasonable to believe that the issue is with this third-party plugin, or at the very least a combination of this plugin and another plugin.
   > 
   > > cordova.plugins.diagnostic: 6.0.2
   > 
   > For what it's worth, I am using this plugin successfully in my own apps, but I'm also running the latest version, which is `6.1.1`. I'd recommend upgrading the plugin to the latest and see if this solves the issue.
   > 
   > If the issue does still occur, then the next best course of action is to prepare a sample reproduction app using the **minimal code** necessary to reproduce the issue which can be shared and will assist in isolating the issue down. If you find that the issue still only occurs with the diagnostic plugin, then an issue should be raised against the [plugin maintainer's repository](https://github.com/dpa99c/cordova-diagnostic-plugin/issues).
   > 
   > Closing this issue because it does not appear to be a bug against cordova-android.
   
   Issue fixed by updating both cordova and ionic dependencies for diagnostic plugin !


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [cordova-android] breautek closed issue #1442: cordova.plugins.diagnostic causes ionic app to crash

Posted by GitBox <gi...@apache.org>.
breautek closed issue #1442: cordova.plugins.diagnostic causes ionic app to crash
URL: https://github.com/apache/cordova-android/issues/1442


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [cordova-android] nirmal98kumar commented on issue #1442: cordova.plugins.diagnostic causes ionic app to crash

Posted by GitBox <gi...@apache.org>.
nirmal98kumar commented on issue #1442:
URL: https://github.com/apache/cordova-android/issues/1442#issuecomment-1159481131

   Thanks for quick understanding of the problem !
   
   Regarding the Android Webview , it is the latest version that is causing the issue . After uninstalling updates from Play Store which brings the webview version to base version I guess , makes the app work fine without crash . 
   
   I will try upgrading the versions of both cordova.plugins.diagnostic plugin and dependency @ionic-native/diagnostic which is used in our app.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [cordova-android] breautek commented on issue #1442: cordova.plugins.diagnostic causes ionic app to crash

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1442:
URL: https://github.com/apache/cordova-android/issues/1442#issuecomment-1158922810

   >  [FATAL:jni_android.cc(249)] Please include Java exception stack in crash report
   
   Giving the provided stracktrace, the null pointer crash appears to be coming from the android webview. So there isn't anything Cordova can do about this null pointer exception. I'd suggest ensuring you have the latest webview version available installed. For android emulators, this will involve using a newer android version with Google Play Store enabled. Sign into your google account and log into the Play Store to find updates to the webview. If the issue still persists with the latest version, the crash report should be provided to [Chromium](https://www.chromium.org/for-testers/bug-reporting-guidelines/).
   
   Presumably the null pointer exception is a side effect of another hidden issue, but if it only occurs with the `cordova.plugins.diagnostic` plugin, then it's reasonable to believe that the issue is with this third-party plugin, or at the very least a combination of this plugin and another plugin.
   
   > cordova.plugins.diagnostic: 6.0.2
   
   For what it's worth, I am using this plugin successfully in my own apps, but I'm also running the latest version, which is `6.1.1`. I'd recommend upgrading the plugin to the latest and see if this solves the issue.
   
   If the issue does still occur, then the next best course of action is to prepare a sample reproduction app using the **minimal code** necessary to reproduce the issue which can be shared and will assist in isolating the issue down. If you find that the issue still only occurs with the diagnostic plugin, then an issue should be raised against the [plugin maintainer's repository](https://github.com/dpa99c/cordova-diagnostic-plugin/issues).
   
   Closing this issue because it does not appear to be a bug against cordova-android.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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