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

example ssh.dart: crash when opening text file with vim #84

Open
Daliji opened this issue Jan 26, 2022 · 0 comments
Open

example ssh.dart: crash when opening text file with vim #84

Daliji opened this issue Jan 26, 2022 · 0 comments
Assignees

Comments

@Daliji
Copy link

Daliji commented Jan 26, 2022

open a text file on linux server, hen a line of text file has thousands of characters, exception occurred:

flutter: ssh://xxx:22: ssh negotiated { kex=curve25519-sha256@libssh.org, hostkey=ssh-ed25519, cipher=aes128-ctr, mac=hmac-sha1, compress=none }
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: RangeError: Invalid value: Not in inclusive range 0..44: 45
#0      CircularList.[]
package:xterm/util/circular_list.dart:58
#1      Buffer.getViewLine
package:xterm/buffer/buffer.dart:127
#2      Buffer.currentLine
package:xterm/buffer/buffer.dart:131
#3      Buffer.writeChar
package:xterm/buffer/buffer.dart:100
#4      Terminal._processChar
package:xterm/terminal/terminal.dart:293
#5      Terminal._processInput
package:xterm/terminal/terminal.dart:284
#6      Terminal.write
package:xterm/terminal/terminal.dart:243
#7      _rootRunUnary (dart:async/zone.dart:1436:47)
#8      _CustomZone.runUnary (dart:async/zone.dart:1335:19)
#9      _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
#10     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#11     _DelayedData.perform (dart:async/stream_impl.dart:591:14)
#12     _StreamImplEvents.handleNext (dart:async/stream_impl.dart:706:11)
#13     _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:663:7)
#14     _rootRun (dart:async/zone.dart:1420:47)
#15     _CustomZone.run (dart:async/zone.dart:1328:19)
#16     _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#17     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1276:23)
#18     _rootRun (dart:async/zone.dart:1428:13)
#19     _CustomZone.run (dart:async/zone.dart:1328:19)

flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.5.3, on macOS 12.1 21C52 darwin-arm, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.2.1)
[✓] VS Code (version 1.63.2)
[✓] Connected device (2 available)

! Doctor found issues in 1 category.
@xtyxtyx xtyxtyx self-assigned this Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants