question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Flutter inspector using embedded DevTools is resized and moved (linux)

See original GitHub issue

So this is happening to me in Ubuntu right now when trying to use the Flutter Inspector with a sample app in a Pixel emulator. You’ll see the inspector with its layout explorer gets in the middle of the window instead of its intended place at the top right under the tab:

Screenshot from 2021-06-16 22-19-52

The view mode in the gear is at its default “Dock pinned”.

Android Studio 4.2 Build #AI-202.7660.26.42.7322048, built on April 29, 2021 Runtime version: 11.0.8+0-b944-P17168821 amd64 VM: OpenJDK 64-Bit Server VM by N/A Linux 5.8.0-56-generic GC: G1 Young Generation, G1 Old Generation Memory: 1280M Cores: 8 Registry: external.system.auto.import.disabled=true Non-Bundled Plugins: com.thoughtworks.gauge, Dart, org.jetbrains.kotlin, io.flutter, org.intellij.plugins.markdown Current Desktop: ubuntu:GNOME

Emulator info:

Name: Pixel_3a_API_30 CPU/ABI: Google Play Intel Atom (x86) Path: /home/fran/.android/avd/Pixel_3a_API_30.avd Target: google_apis_playstore [Google Play] (API level 30) Skin: pixel_3a SD Card: 512M fastboot.chosenSnapshotFile: runtime.network.speed: full hw.accelerometer: yes hw.device.name: pixel_3a hw.lcd.width: 1080 hw.initialOrientation: Portrait image.androidVersion.api: 30 tag.id: google_apis_playstore hw.mainKeys: no hw.camera.front: emulated avd.ini.displayname: Pixel 3a API 30 hw.gpu.mode: auto hw.ramSize: 1536 PlayStore.enabled: true fastboot.forceColdBoot: no hw.cpu.ncore: 4 hw.keyboard: yes hw.sensors.proximity: yes hw.dPad: no hw.lcd.height: 2220 vm.heapSize: 256 skin.dynamic: yes hw.device.manufacturer: Google hw.gps: yes hw.audioInput: yes image.sysdir.1: system-images/android-30/google_apis_playstore/x86/ showDeviceFrame: yes hw.camera.back: virtualscene AvdId: Pixel_3a_API_30 hw.lcd.density: 440 hw.arc: false hw.device.hash2: MD5:0e6953ebf01bdc6b33a2f54746629c50 fastboot.forceChosenSnapshotBoot: no fastboot.forceFastBoot: yes hw.trackBall: no hw.battery: yes hw.sdCard: yes tag.display: Google Play runtime.network.latency: none disk.dataPartition.size: 6442450944 hw.sensors.orientation: yes avd.ini.encoding: UTF-8 hw.gpu.enabled: yes

OS info:

$ neofetch 
            .-/+oossssoo+/-.               fran@oso 
        `:+ssssssssssssssssss+:`           -------- 
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 20.04.2 LTS x86_64 
    .ossssssssssssssssssdMMMNysssso.       Host: MACHC-WAX9 M1150 
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 5.8.0-56-generic 
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 1 day, 52 mins 
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 2450 (dpkg), 21 (snap) 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: bash 5.0.17 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 3000x2000 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: GNOME 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Prof-Gnome-Dark-3.6 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Prof-Gnome-Dark-3.6 [GTK2/3] 
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: kora [GTK2/3] 
  +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: gnome-terminal 
   /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: Intel i7-10510U (8) @ 4.900GHz 
    .ossssssssssssssssssdMMMNysssso.       GPU: Intel UHD Graphics 
      -+sssssssssssssssssyyyssss+-         GPU: NVIDIA GeForce MX250 
        `:+ssssssssssssssssss+:`           Memory: 7765MiB / 15755MiB 
            .-/+oossssoo+/-.

Flutter doctor output:

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.2, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 4.2)
[✓] Android Studio (version 4.1)
[✓] Android Studio
[✓] IntelliJ IDEA Ultimate Edition (version 2021.1)
[✓] Connected device (2 available)

• No issues found!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
helin24commented, Jun 28, 2021

@fmmarzoa thanks! I see the logs we’re expecting. I don’t notice anything suspect from first glance, but I’m hoping that the JxBrowser team will have more insight about why this might be happening.

0reactions
helin24commented, Jul 20, 2021

@fmmarzoa thanks for checking! Sorry to hear it didn’t fix the problem; I’ll keep investigating.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using the Flutter inspector
Note: The inspector works with all Flutter applications. What is it? The Flutter widget inspector is a powerful tool for visualizing and exploring...
Read more >
Resizing Flutter Inspector window causes a crash · Issue #5169
Steps to Reproduce Run a Flutter app Open Flutter Inspector window, this should look normal Resize the window See crash below: Version info ......
Read more >
Flutter inspector stuck on "Installing Dev tools" - Stack Overflow
I have my Flutter version up to date and my Android Studio's version ... “Enable embedding DevTools in the Flutter Inspector tool window”....
Read more >
How to debug layout issues with the Flutter Inspector - Medium
Navigate to DevTools and open the Layout Explorer tab. Overflow error on the Layout Explorer. Click Row. (The numbers on the image ...
Read more >
Flutter 2.0 관련 모음 - 조용한 담장 - 티스토리
Flutter for Linux. Flutter Embedded (with Toyota). Dart Update 2.12. AdMob의 인라인 배너와 네이티브 광고 개선 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found