Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Friendlychat freezes after adding 1 message #10861

Closed
ericpaepe opened this issue Jun 20, 2017 · 4 comments
Closed

Friendlychat freezes after adding 1 message #10861

ericpaepe opened this issue Jun 20, 2017 · 4 comments
Assignees
Labels
team-codelabs Owned by Codelabs team

Comments

@ericpaepe
Copy link

Steps to Reproduce

Friendlychat
step_3_displaying_messages
run main.dart from webstorm or IntelliJ
app freezes after adding 1 message on acer T06

Logs - console output

Launching lib/main.dart on T06 in debug mode...
Built build/app/outputs/apk/app-debug.apk (21.6MB).
V/InputMethodManager(20921): START INPUT: io.flutter.view.FlutterView{45d515a VFE...... .F...... 0,0-720,1184} ic=io.flutter.plugin.editing.InputConnectionAdaptor@b0a27d6 tba=android.view.inputmethod.EditorInfo@fa5a57 controlFlags=#0
I/SurfaceView(20921): updateWindow -- setFrame, this = io.flutter.view.FlutterView{45d515a VFE...... .F....I. 0,0-720,1184}
I/SurfaceView(20921): updateWindow -- OnPreDrawListener, mHaveFrame = true, this = io.flutter.view.FlutterView{45d515a VFE...... .F....I. 0,0-720,1184}
I/SurfaceView(20921): updateWindow -- setFrame, this = io.flutter.view.FlutterView{45d515a VFE...... .F....I. 0,0-720,1184}
I/SurfaceView(20921): updateWindow -- OnPreDrawListener, mHaveFrame = true, this = io.flutter.view.FlutterView{45d515a VFE...... .F....I. 0,0-720,1184}
D/GraphicBuffer(20921): register, handle(0xb937bcc0) (w:720 h:1184 s:720 f:0x1 u:0x000f02)
E/MethodChannel#flutter/textinput(20921): Failed to handle method call
E/MethodChannel#flutter/textinput(20921): java.lang.IndexOutOfBoundsException: setSpan (-1 ... -1) starts before 0
E/MethodChannel#flutter/textinput(20921): at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1113)
E/MethodChannel#flutter/textinput(20921): at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:680)
E/MethodChannel#flutter/textinput(20921): at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:673)
E/MethodChannel#flutter/textinput(20921): at android.text.Selection.setSelection(Selection.java:76)
E/MethodChannel#flutter/textinput(20921): at io.flutter.plugin.editing.TextInputPlugin.setTextInputEditingState(TextInputPlugin.java:147)
E/MethodChannel#flutter/textinput(20921): at io.flutter.plugin.editing.TextInputPlugin.onMethodCall(TextInputPlugin.java:66)
E/MethodChannel#flutter/textinput(20921): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:191)
E/MethodChannel#flutter/textinput(20921): at io.flutter.view.FlutterView.handlePlatformMessage(FlutterView.java:643)
E/MethodChannel#flutter/textinput(20921): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#flutter/textinput(20921): at android.os.MessageQueue.next(MessageQueue.java:328)
E/MethodChannel#flutter/textinput(20921): at android.os.Looper.loop(Looper.java:164)
E/MethodChannel#flutter/textinput(20921): at android.app.ActivityThread.main(ActivityThread.java:5730)
E/MethodChannel#flutter/textinput(20921): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#flutter/textinput(20921): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
E/MethodChannel#flutter/textinput(20921): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
I/flutter (20921): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter (20921): The following assertion was thrown during paint():
I/flutter (20921): 'package:flutter/src/rendering/object.dart': Failed assertion: line 2110: 'owner == null ||
I/flutter (20921): !owner.debugDoingPaint': is not true.
I/flutter (20921): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter (20921): more information in this error message to help you determine and fix the underlying cause.
I/flutter (20921): In either case, please report this assertion by filing a bug on GitHub:
I/flutter (20921): https://github.com/flutter/flutter/issues/new
I/flutter (20921): When the exception was thrown, this was the stack:
I/flutter (20921): #2 RenderObject.markNeedsPaint (package:flutter/src/rendering/object.dart:2110)
I/flutter (20921): #3 _RenderInkFeatures._didChangeLayout (package:flutter/src/material/material.dart:315)
I/flutter (20921): #4 _MaterialState.build. (package:flutter/src/material/material.dart:228)
I/flutter (20921): #5 NotificationListener._dispatch (package:flutter/src/widgets/notification_listener.dart:110)
I/flutter (20921): #6 Notification.visitAncestor (package:flutter/src/widgets/notification_listener.dart:43)
I/flutter (20921): #7 LayoutChangedNotification&ViewportNotificationMixin.visitAncestor (package:flutter/src/widgets/scroll_notification.dart:36)
I/flutter (20921): #8 Element.visitAncestorElements (package:flutter/src/widgets/framework.dart:3103)
I/flutter (20921): #9 Notification.dispatch (package:flutter/src/widgets/notification_listener.dart:57)
I/flutter (20921): #10 ScrollActivity.dispatchScrollStartNotification (package:flutter/src/widgets/scroll_activity.dart:90)
I/flutter (20921): #11 ScrollPosition.didStartScroll (package:flutter/src/widgets/scroll_position.dart:543)
I/flutter (20921): #12 ScrollPosition.beginActivity (package:flutter/src/widgets/scroll_position.dart:535)
I/flutter (20921): #13 ScrollPositionWithSingleContext.beginActivity (package:flutter/src/widgets/scroll_position_with_single_context.dart:119)
I/flutter (20921): #14 ScrollPositionWithSingleContext.animateTo (package:flutter/src/widgets/scroll_position_with_single_context.dart:186)
I/flutter (20921): #15 ScrollController.animateTo (package:flutter/src/widgets/scroll_controller.dart:143)
I/flutter (20921): #16 EditableTextState._handleCaretChanged (package:flutter/src/widgets/editable_text.dart:463)
I/flutter (20921): #17 RenderEditable._paintCaret (package:flutter/src/rendering/editable.dart:497)
I/flutter (20921): #18 RenderEditable._paintContents (package:flutter/src/rendering/editable.dart:515)
I/flutter (20921): #19 RenderEditable.paint (package:flutter/src/rendering/editable.dart:531)
I/flutter (20921): #20 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2259)
I/flutter (20921): #21 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:116)
I/flutter (20921): #22 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:123)
I/flutter (20921): #23 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2259)
I/flutter (20921): #24 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:116)
I/flutter (20921): #25 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:123)
I/flutter (20921): #26 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2259)
I/flutter (20921): #27 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:116)
I/flutter (20921): #28 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:123)
I/flutter (20921): #29 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2259)
I/flutter (20921): #30 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:116)
I/flutter (20921): #31 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:123)
I/flutter (20921): #32 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2259)
I/flutter (20921): #33 PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:96)
I/flutter (20921): #34 PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:1085)
I/flutter (20921): #35 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:253)
I/flutter (20921): #36 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:504)
I/flutter (20921): #37 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:189)
I/flutter (20921): #38 BindingBase&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:688)
I/flutter (20921): #39 BindingBase&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:636)
I/flutter (20921): #40 _drawFrame (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:70)
I/flutter (20921): (elided 2 frames from class _AssertionError)
I/flutter (20921): The following RenderObject was being processed when the exception was fired:
I/flutter (20921): RenderEditable#108999517 relayoutBoundary=up16
I/flutter (20921): creator: _Editable ← _ScrollableScope ← IgnorePointer-[GlobalKey#655002960] ← Listener ←
I/flutter (20921): _GestureSemantics ← RawGestureDetector-[LabeledGlobalKey#71161294] ←
I/flutter (20921): RepaintBoundary ← CustomPaint ← RepaintBoundary ← NotificationListener ←
I/flutter (20921): GlowingOverscrollIndicator ← Scrollable ← ⋯
I/flutter (20921): parentData: (can use size)
I/flutter (20921): constraints: BoxConstraints(w=288.0, 0.0<=h<=Infinity)
I/flutter (20921): size: Size(288.0, 19.0)
I/flutter (20921): cursorColor: Color(0xff90caf9)
I/flutter (20921): showCursor: ValueNotifier#547527972(true)
I/flutter (20921): maxLines: 1
I/flutter (20921): selectionColor: Color(0xff90caf9)
I/flutter (20921): textScaleFactor: 1.0
I/flutter (20921): selection: TextSelection(baseOffset: -1, extentOffset: -1, affinity: TextAffinity.downstream,
I/flutter (20921): isDirectional: false)
I/flutter (20921): offset: ScrollPositionWithSingleContext#554787583(offset: 0.0, range: 0.0..0.0, viewport: 288.0,
I/flutter (20921): ScrollableState, ClampingScrollPhysics -> ClampingScrollPhysics,
I/flutter (20921): DrivenScrollActivity#13191381(AnimationController#202864342(▶ 0.000; for DrivenScrollActivity)),
I/flutter (20921): ScrollDirection.idle)
I/flutter (20921): This RenderObject has no descendants.
I/flutter (20921): ════════════════════════════════════════════════════════════════════════════════════════════════════

Flutter Doctor

/home/blakveld/flutter/bin/flutter --no-color doctor
[✓] Flutter (on Linux, locale nl_BE.UTF-8, channel alpha)
• Flutter at /home/blakveld/flutter
• Framework revision 3b6d84b (4 days ago), 2017-06-16 12:58:23 -0700
• Engine revision 784e975
• Tools Dart version 1.24.0-dev.6.7

[✓] Android toolchain - develop for Android devices (Android SDK 26.0.0)
• Android SDK at /home/blakveld/Android/Sdk
• Platform android-26, build-tools 26.0.0
• Java binary at: /home/blakveld/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] Android Studio (version 2.3)
• Android Studio at /home/blakveld/android-studio
• Gradle version 3.2
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] WebStorm (version 2017.1)
• Flutter plugin version 14.0

[-] IntelliJ IDEA Ultimate Edition (version 15)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about managing plugins, see
https://www.jetbrains.com/help/idea/managing-plugins.html
✗ This install is older than the minimum recommended version of 2017.1.0.

[✓] IntelliJ IDEA Community Edition (version 2017.1)
• Flutter plugin version 14.0
• Dart plugin version 171.4694.29

[✓] Connected devices
• T06 • HMHU6EE001639020024 • android-arm • Android 6.0 (API 23)

@Hixie Hixie added this to the 3: Current Milestone milestone Jun 20, 2017
@Hixie Hixie added the team-codelabs Owned by Codelabs team label Jun 20, 2017
@jason-simmons
Copy link
Member

The Java exception is a duplicate of #10748

The fix isn't in the current alpha branch. We should do another push to alpha soon.

@jason-simmons
Copy link
Member

This has been rolled out to alpha

@ericpaepe
Copy link
Author

• Framework revision d36e2f6 (2 days ago), 2017-06-21 15:09:10 -0700

OK , after Flutter upgrade problem is solved, Friendlychat is running.

@github-actions
Copy link

github-actions bot commented Sep 4, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
team-codelabs Owned by Codelabs team
Projects
None yet
Development

No branches or pull requests

4 participants