Moodle for mobile

Moodle Mobile has stopped working - Galaxy S9+

 
Picture of Arkadiusz Malkowski
Moodle Mobile has stopped working - Galaxy S9+
 

Hi,

I have a problem with my personalized application.

My build apk works good on emulator or older devices but, I have problem with running on Galaxy S9+ (Android 8.0) Moodle Mobile has stopped working when trying to start. ( Work on Galaxy S7 - Android 8.0)


I try find error "adb logcat -v time" but it does not tell me anything.  I see "FATAL EXCEPTION" but I do not know why

08-01 14:12:06.129 D/ViewRootImpl@a18f6b4[MainActivity](13228): MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1440, 2792) ci=Rect(0, 84 - 0, 0) vi=Rect(0, 84 - 0, 0) or=1
08-01 14:12:06.133 D/AndroidRuntime(13228): Shutting down VM
08-01 14:12:06.134 E/AndroidRuntime(13228): FATAL EXCEPTION: main
08-01 14:12:06.134 E/AndroidRuntime(13228): Process: com.moodle.moodlemobile, PID: 13228
08-01 14:12:06.134 E/AndroidRuntime(13228): java.lang.RuntimeException: Canvas: trying to draw too large(120422400bytes) bitmap.
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:229)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.RecordingCanvas.drawBitmap(RecordingCanvas.java:97)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:529)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.widget.ImageView.onDraw(ImageView.java:1367)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.View.draw(View.java:20338)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.View.updateDisplayListIfDirty(View.java:19283)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.View.draw(View.java:20061)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.ViewGroup.drawChild(ViewGroup.java:4421)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4207)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.View.updateDisplayListIfDirty(View.java:19274)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.View.draw(View.java:20061)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.ViewGroup.drawChild(ViewGroup.java:4421)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4207)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.View.updateDisplayListIfDirty(View.java:19274)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.View.draw(View.java:20061)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.ViewGroup.drawChild(ViewGroup.java:4421)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4207)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.View.draw(View.java:20341)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at com.android.internal.policy.DecorView.draw(DecorView.java:979)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.View.updateDisplayListIfDirty(View.java:19283)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:686)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:692)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:800)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.ViewRootImpl.draw(ViewRootImpl.java:3488)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3275)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2810)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1779)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7800)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:911)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.Choreographer.doCallbacks(Choreographer.java:723)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.Choreographer.doFrame(Choreographer.java:658)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:897)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.os.Handler.handleCallback(Handler.java:789)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.os.Handler.dispatchMessage(Handler.java:98)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.os.Looper.loop(Looper.java:164)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at android.app.ActivityThread.main(ActivityThread.java:6938)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at java.lang.reflect.Method.invoke(Native Method)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
08-01 14:12:06.134 E/AndroidRuntime(13228):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
08-01 14:12:06.138 D/Debug   ( 4794): !@DumpState : SHIP
08-01 14:12:06.138 D/Debug   ( 4794): !@DumpState : debug level:0x4f4c
08-01 14:12:06.138 D/Debug   ( 4794): !@Dumpstate : Finally, system will skip dumpstate
08-01 14:12:06.138 W/ActivityManager( 4794): crash : com.moodle.moodlemobile,0
08-01 14:12:06.139 W/ActivityManager( 4794):   Force finishing activity com.moodle.moodlemobile/.MainActivity
08-01 14:12:06.140 W/MultiScreenManagerService( 4794): moveTaskBackToDisplayIfNeeded(): root activity or app is null, task=TaskRecord{ae22666d0 #2016 A=com.moodle.moodlemobile U=0 StackId=1 sz=1}, rootActivity=null
08-01 14:12:06.140 D/CS_HdrController( 4794): MultiWindowEventListener::onFocusStackChanged(0)
08-01 14:12:06.141 I/TrayUsageStatesWatcher( 8558): notePauseComponent : ComponentInfo{com.moodle.moodlemobile/com.moodle.moodlemobile.MainActivity}
08-01 14:12:06.145 I/ActivityManager( 4794): Showing crash dialog for package com.moodle.moodlemobile u0
08-01 14:12:06.145 D/CS_HdrController( 4794): updateMultiWindowState : 0



 
Average of ratings: -
Picture of Arkadiusz Malkowski
Odp: Moodle Mobile has stopped working - Galaxy S9+
 

Ok, I know the problem.

app does not work on high resolution WQHD+ 2960x1440 if i change phone resolution to FHD+ is fine but why?


Orginal MoodleMobile there are no problems.

 
Average of ratings: -
Picture of Dani Palou
Re: Odp: Moodle Mobile has stopped working - Galaxy S9+
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Hi,

we compile our app using Phonegap Build and this repository. I guess there's some configuration difference between our build and your build that makes this crash.

Kind regards,

Dani

 
Average of ratings: -
Picture of Claudio ancooor
Re: Moodle Mobile has stopped working - Galaxy S9+
 

Hi, I had the same problem.

In order to fix it you should check that all the splash screens (Android) are correctly located into the appropriate folders and linked to the config.xml

Each folder  (drawable-port-xxhdpi, drawable-port-xxxhdpi, etc) should have one "screen.png"

Regards

Claudio

 
Average of ratings: -