markdown rendering causes reboot #84

Closed
opened 2025-10-31 17:05:17 -05:00 by GiteaMirror · 11 comments
Owner

Originally created by @ghost on GitHub (Nov 2, 2020).

Samsung Galaxy S8, Android 9, One UI

Opening this repo by going through settings crashes Android and causes a soft reboot. Issue was not present in previous play release

Originally created by @ghost on GitHub (Nov 2, 2020). Samsung Galaxy S8, Android 9, One UI Opening this repo by going through settings crashes Android and causes a soft reboot. Issue was not present in previous play release
GiteaMirror added the bug label 2025-10-31 17:05:17 -05:00
Author
Owner

@ghost commented on GitHub (Nov 2, 2020):

This also seems to happen with my own repos, although testing is a bit of a pain. Gitlab is also effected, I suspect the markdown renderer may have something to do with this since repositories without a readme seem to be fine

@ghost commented on GitHub (Nov 2, 2020): This also seems to happen with my own repos, although testing is a bit of a pain. Gitlab is also effected, I suspect the markdown renderer may have something to do with this since repositories without a readme seem to be fine
Author
Owner

@pd4d10 commented on GitHub (Nov 2, 2020):

The latest version uses webview_flutter to display readmes. Probably related to this change.

@pd4d10 commented on GitHub (Nov 2, 2020): The latest version uses [webview_flutter](https://pub.dev/packages/webview_flutter) to display readmes. Probably related to this change.
Author
Owner

@pd4d10 commented on GitHub (Nov 8, 2020):

Hi, @kakolisgay , you could select Markdown render engine in the latest version v1.9.0, which has been published and in review.

simulator_screenshot_9F696016-7303-4A3B-9EBE-082B2F6AE396

@pd4d10 commented on GitHub (Nov 8, 2020): Hi, @kakolisgay , you could select Markdown render engine in the latest version v1.9.0, which has been published and in review. ![simulator_screenshot_9F696016-7303-4A3B-9EBE-082B2F6AE396](https://user-images.githubusercontent.com/9524411/98466630-a0a3b500-220b-11eb-8c54-173842b117dc.png)
Author
Owner

@ghost commented on GitHub (Nov 8, 2020):

Updated to 1.9.0* and strangely enough, it no longer crashes. Even in flutter rendering mode. Webview rendering mode doesn't seem to work though. Was the crash fixed upstream?

@ghost commented on GitHub (Nov 8, 2020): Updated to 1.9.0* and strangely enough, it no longer crashes. Even in flutter rendering mode. Webview rendering mode doesn't seem to work though. Was the crash fixed upstream?
Author
Owner

@pd4d10 commented on GitHub (Nov 8, 2020):

Markdown render engine history:

  • v1.7.0 and before: flutter
  • v1.8.0: webview
  • v1.9.0: two options: flutter and webview, default to webview
@pd4d10 commented on GitHub (Nov 8, 2020): Markdown render engine history: - v1.7.0 and before: flutter - v1.8.0: webview - v1.9.0: two options: flutter and webview, default to webview
Author
Owner

@ghost commented on GitHub (Nov 26, 2020):

Still not entire sure what was causing the crashes but I assume it was likely fixed upstream. Closing for now

@ghost commented on GitHub (Nov 26, 2020): Still not entire sure what was causing the crashes but I assume it was likely fixed upstream. Closing for now
Author
Owner

@pd4d10 commented on GitHub (Dec 13, 2020):

E/flutter (27924): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Invalid @IntRange(from = 1): 0
E/flutter (27924): 	at com.android.internal.util.AnnotationValidations.invalid(AnnotationValidations.java:227)
E/flutter (27924): 	at com.android.internal.util.AnnotationValidations.invalid(AnnotationValidations.java:223)
E/flutter (27924): 	at com.android.internal.util.AnnotationValidations.validate(AnnotationValidations.java:74)
E/flutter (27924): 	at android.hardware.display.VirtualDisplayConfig$Builder.<init>(VirtualDisplayConfig.java:336)
E/flutter (27924): 	at android.hardware.display.DisplayManager.createVirtualDisplay(DisplayManager.java:649)
E/flutter (27924): 	at android.hardware.display.DisplayManager.createVirtualDisplay(DisplayManager.java:600)
E/flutter (27924): 	at io.flutter.plugin.platform.VirtualDisplayController.create(VirtualDisplayController.java:42)
E/flutter (27924): 	at io.flutter.plugin.platform.PlatformViewsController$1.createVirtualDisplayForPlatformView(PlatformViewsController.java:207)
E/flutter (27924): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:104)
E/flutter (27924): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
E/flutter (27924): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/flutter (27924): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/flutter (27924): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692)
E/flutter (27924): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (27924): 	at android.os.MessageQueue.next(MessageQueue.java:335)
E/flutter (27924): 	at android.os.Looper.loop(Looper.java:183)
E/flutter (27924): 	at android.app.ActivityThread.main(ActivityThread.java:7656)
E/flutter (27924): 	at java.lang.reflect.Method.invoke(Native Method)
E/flutter (27924): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/flutter (27924): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
E/flutter (27924): , null, null)

@pd4d10 commented on GitHub (Dec 13, 2020): ```sh E/flutter (27924): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Invalid @IntRange(from = 1): 0 E/flutter (27924): at com.android.internal.util.AnnotationValidations.invalid(AnnotationValidations.java:227) E/flutter (27924): at com.android.internal.util.AnnotationValidations.invalid(AnnotationValidations.java:223) E/flutter (27924): at com.android.internal.util.AnnotationValidations.validate(AnnotationValidations.java:74) E/flutter (27924): at android.hardware.display.VirtualDisplayConfig$Builder.<init>(VirtualDisplayConfig.java:336) E/flutter (27924): at android.hardware.display.DisplayManager.createVirtualDisplay(DisplayManager.java:649) E/flutter (27924): at android.hardware.display.DisplayManager.createVirtualDisplay(DisplayManager.java:600) E/flutter (27924): at io.flutter.plugin.platform.VirtualDisplayController.create(VirtualDisplayController.java:42) E/flutter (27924): at io.flutter.plugin.platform.PlatformViewsController$1.createVirtualDisplayForPlatformView(PlatformViewsController.java:207) E/flutter (27924): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:104) E/flutter (27924): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59) E/flutter (27924): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233) E/flutter (27924): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85) E/flutter (27924): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692) E/flutter (27924): at android.os.MessageQueue.nativePollOnce(Native Method) E/flutter (27924): at android.os.MessageQueue.next(MessageQueue.java:335) E/flutter (27924): at android.os.Looper.loop(Looper.java:183) E/flutter (27924): at android.app.ActivityThread.main(ActivityThread.java:7656) E/flutter (27924): at java.lang.reflect.Method.invoke(Native Method) E/flutter (27924): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) E/flutter (27924): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) E/flutter (27924): , null, null) ```
Author
Owner

@pd4d10 commented on GitHub (Dec 13, 2020):

It seems happen again at v1.10.0

@pd4d10 commented on GitHub (Dec 13, 2020): It seems happen again at v1.10.0
Author
Owner

@pd4d10 commented on GitHub (Dec 13, 2020):

It is probably caused by the webview component. Selecting 'Flutter' markdown render engine would solve this temporarily.

@pd4d10 commented on GitHub (Dec 13, 2020): It is probably caused by the webview component. Selecting 'Flutter' markdown render engine would solve this temporarily.
Author
Owner

@ThisNekoGuy commented on GitHub (Feb 27, 2021):

Still happens for me with webview*

@ThisNekoGuy commented on GitHub (Feb 27, 2021): Still happens for me with webview*
Author
Owner

@Lehmaning commented on GitHub (Jan 22, 2022):

The problem still exists. Maybe we should open this issue again...

@Lehmaning commented on GitHub (Jan 22, 2022): The problem still exists. Maybe we should open this issue again...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/git-touch#84