ugnich opened a new issue #259:
URL: https://github.com/apache/cordova-plugin-splashscreen/issues/259
# Bug Report
## Problem
On some devices my application crashes because the splash screen image is
too big.
### What is expected to happen?
Show splash screen.
### What does actually happen?
Crash.
## Information
I'm using the same 2732x2732px splash image for iOS and Android.
### Command or Code
```<plugin name="cordova-plugin-splashscreen" source="npm" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="FadeSplashScreen" value="false" />
<preference name="ShowSplashScreenSpinner" value="false" />
<preference name="SplashMaintainAspectRatio" value="true" />
<splash src="res/splash/ios/Default@2x~universal~anyany.png" />
```
```
java.lang.RuntimeException:
at android.view.DisplayListCanvas.throwIfCannotDraw
(DisplayListCanvas.java:229)
at android.view.RecordingCanvas.drawBitmap (RecordingCanvas.java:97)
at android.graphics.drawable.BitmapDrawable.draw (BitmapDrawable.java:529)
at android.widget.ImageView.onDraw (ImageView.java:1367)
at android.view.View.draw (View.java:19214)
at android.view.View.updateDisplayListIfDirty (View.java:18164)
at android.view.View.draw (View.java:18942)
at android.view.ViewGroup.drawChild (ViewGroup.java:4236)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4022)
at android.view.View.updateDisplayListIfDirty (View.java:18155)
at android.view.View.draw (View.java:18942)
at android.view.ViewGroup.drawChild (ViewGroup.java:4236)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4022)
at android.view.View.updateDisplayListIfDirty (View.java:18155)
at android.view.View.draw (View.java:18942)
at android.view.ViewGroup.drawChild (ViewGroup.java:4236)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4022)
at android.view.View.draw (View.java:19217)
at com.android.internal.policy.DecorView.draw (DecorView.java:799)
at android.view.View.updateDisplayListIfDirty (View.java:18164)
at android.view.ThreadedRenderer.updateViewTreeDisplayList
(ThreadedRenderer.java:676)
at android.view.ThreadedRenderer.updateRootDisplayList
(ThreadedRenderer.java:682)
at android.view.ThreadedRenderer.draw (ThreadedRenderer.java:790)
at android.view.ViewRootImpl.draw (ViewRootImpl.java:3021)
at android.view.ViewRootImpl.performDraw (ViewRootImpl.java:2825)
at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2370)
at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1403)
at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:6804)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:911)
at android.view.Choreographer.doCallbacks (Choreographer.java:723)
at android.view.Choreographer.doFrame (Choreographer.java:658)
at android.view.Choreographer$FrameDisplayEventReceiver.run
(Choreographer.java:897)
at android.os.Handler.handleCallback (Handler.java:790)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:169)
at android.app.ActivityThread.main (ActivityThread.java:6521)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run
(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:807)
```
### Environment, Platform, Device
PhoneGap Build
Android 8.0, Android 8.1
ZenFone 4 Max (ZC554KL) (ASUS_X00IDC)
Galaxy J7 Prime (on7xelte)
Xperia XZ2 (H8266)
Harry2 (W-V600)
Galaxy J7+ (jadelte)
ZenFone Max Plus M1 (ZB570TL) (ASUS_X018_1)
Galaxy C9 Pro (c9lte)
Redmi Note 5 Pro (whyred)
### Version information
PhoneGap (iOS / Android / Windows) cli-9.0.0 (5.0.1 / 8.0.0 / 7.0.0)
cordova-plugin-splashscreen 5.0.3
## 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
- [x] 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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]