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.

Missing console output

See original GitHub issue

What happened

Sometimes my run console doesn’t print any output. Someone else describe it here in details: https://stackoverflow.com/q/53874157/1973391

Steps to Reproduce

It’s really randomly bug but it happened me few times so I decided to create this issue.

Version info

[√] Flutter (Channel stable, v1.7.8+hotfix.3, on Microsoft Windows [Version 10.0.17134.885], locale pl-PL)
    • Flutter version 1.7.8+hotfix.3 at C:\Android\flutter
    • Framework revision b712a172f9 (7 days ago), 2019-07-09 13:14:38 -0700
    • Engine revision 54ad777fd2
    • Dart version 2.4.0


[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 28.0.3
    • Java binary at: C:\Program Files\Android\Android Studio 3.5 Preview\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

[!] Android Studio (version 3.4)
    • Android Studio at C:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[√] Android Studio (version 3.5)
    • Android Studio at C:\Program Files\Android\Android Studio 3.5 Preview
    • Flutter plugin version 37.1.3
    • Dart plugin version 191.7830
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] Connected device (1 available)
    • F5321 • BH902V3Y5P • android-arm64 • Android 8.0.0 (API 26)

! Doctor found issues in 1 category.

info: I’m not using Android Studio 3.4

Problem details

I found that problem is with corrupted runner.layout.xml file as I described here: https://stackoverflow.com/a/57047374/1973391

The corrupted runner.layout.xml

<application>
  <component name="RunnerLayoutSettings">
    <runner id="JavaRunner">
      <ViewImpl>
        <option name="ID" value="ConsoleContent" />
        <option name="minimizedInGrid" value="false" />
        <option name="placeInGrid" value="bottom" />
        <option name="tabIndex" value="0" />
        <option name="window" value="0" />
      </ViewImpl>
      <TabImpl>
        <option name="bottomProportion" value="0.0" />
      </TabImpl>
      <General />
    </runner>
    <runner id="Android">
      <ViewImpl>
        <option name="ID" value="Android Logcat" />
        <option name="minimizedInGrid" value="false" />
        <option name="placeInGrid" value="center" />
        <option name="tabIndex" value="0" />
        <option name="window" value="0" />
      </ViewImpl>
      <TabImpl />
      <General />
    </runner>
    <runner id="Debug">
      <ViewImpl>
        <option name="ID" value="FrameContent" />
        <option name="minimizedInGrid" value="false" />
        <option name="placeInGrid" value="left" />
        <option name="tabIndex" value="0" />
        <option name="window" value="0" />
      </ViewImpl>
      <ViewImpl>
        <option name="ID" value="VariablesContent" />
        <option name="minimizedInGrid" value="false" />
        <option name="placeInGrid" value="center" />
        <option name="tabIndex" value="1" />
        <option name="window" value="0" />
      </ViewImpl>
      <ViewImpl>
        <option name="ID" value="OverheadMonitor" />
        <option name="minimizedInGrid" value="false" />
        <option name="placeInGrid" value="right" />
        <option name="tabIndex" value="2" />
        <option name="window" value="0" />
      </ViewImpl>
      <ViewImpl>
        <option name="ID" value="ThreadsContent" />
        <option name="minimizedInGrid" value="false" />
        <option name="placeInGrid" value="left" />
        <option name="tabIndex" value="3" />
        <option name="window" value="0" />
      </ViewImpl>
      <ViewImpl>
        <option name="ID" value="ConsoleContent" />
        <option name="minimizedInGrid" value="true" />
        <option name="placeInGrid" value="bottom" />
        <option name="tabIndex" value="-1" />
        <option name="window" value="0" />
      </ViewImpl>
      <TabImpl />
      <TabImpl>
        <option name="defaultIndex" value="1" />
        <option name="index" value="1" />
      </TabImpl>
      <TabImpl>
        <option name="defaultIndex" value="2" />
        <option name="index" value="2" />
      </TabImpl>
      <TabImpl>
        <option name="defaultIndex" value="3" />
        <option name="index" value="3" />
      </TabImpl>
      <TabImpl>
        <option name="defaultIndex" value="4" />
        <option name="index" value="-1" />
      </TabImpl>
      <General />
    </runner>
  </component>
</application>

Proper runner.layout.xml

<application>
  <component name="RunnerLayoutSettings">
    <runner id="JavaRunner">
      <ViewImpl>
        <option name="ID" value="ConsoleContent" />
        <option name="minimizedInGrid" value="false" />
        <option name="placeInGrid" value="bottom" />
        <option name="tabIndex" value="0" />
        <option name="window" value="0" />
      </ViewImpl>
      <TabImpl>
        <option name="bottomProportion" value="0.0" />
      </TabImpl>
      <General />
    </runner>
    <runner id="Android">
      <ViewImpl>
        <option name="ID" value="Android Logcat" />
        <option name="minimizedInGrid" value="false" />
        <option name="placeInGrid" value="center" />
        <option name="tabIndex" value="0" />
        <option name="window" value="0" />
      </ViewImpl>
      <TabImpl />
      <General />
    </runner>
    <runner id="Debug">
      <ViewImpl>
        <option name="ID" value="FrameContent" />
        <option name="minimizedInGrid" value="false" />
        <option name="placeInGrid" value="left" />
        <option name="tabIndex" value="0" />
        <option name="window" value="0" />
      </ViewImpl>
      <ViewImpl>
        <option name="ID" value="VariablesContent" />
        <option name="minimizedInGrid" value="false" />
        <option name="placeInGrid" value="center" />
        <option name="tabIndex" value="0" />
        <option name="window" value="0" />
      </ViewImpl>
      <ViewImpl>
        <option name="ID" value="OverheadMonitor" />
        <option name="minimizedInGrid" value="false" />
        <option name="placeInGrid" value="right" />
        <option name="tabIndex" value="0" />
        <option name="window" value="0" />
      </ViewImpl>
      <ViewImpl>
        <option name="ID" value="ThreadsContent" />
        <option name="minimizedInGrid" value="false" />
        <option name="placeInGrid" value="left" />
        <option name="tabIndex" value="0" />
        <option name="window" value="0" />
      </ViewImpl>
      <ViewImpl>
        <option name="ID" value="ConsoleContent" />
        <option name="minimizedInGrid" value="false" />
        <option name="placeInGrid" value="bottom" />
        <option name="tabIndex" value="1" />
        <option name="window" value="0" />
      </ViewImpl>
      <TabImpl>
        <option name="displayName" value="Debugger" />
        <option name="leftProportion" value="0.19965477" />
        <option name="rightProportion" value="0.19965477" />
      </TabImpl>
      <TabImpl>
        <option name="bottomProportion" value="0.0" />
        <option name="defaultIndex" value="1" />
        <option name="index" value="1" />
      </TabImpl>
      <General />
    </runner>
  </component>
</application>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
zaai123commented, Aug 1, 2019

MacOS: Go to: /Users/userName/Library/Preferences/AndroidStudio3.4/options Find “runner.layout.xml” Change the name of this file for ex: runner01.layout.xml Restart Android studio

Done

2reactions
HugoHeneaultcommented, Aug 14, 2019

Hi there!

So I don’t know where the issue is, but you can minimize the console output in the run tab by clicking this small arrow on the console tab name: image

image

But after you click it there is now way to restore it!

You will have to restore ~/Library/Preferences/AndroidStudio3.4/options/runner.layout.xml (macOS but same should apply for other OS) this lines:

       <ViewImpl>
         <option name="ID" value="ConsoleContent" />
         <option name="minimizedInGrid" value="false" />
         <option name="placeInGrid" value="bottom" />
         <option name="tabIndex" value="-1" />
         <option name="window" value="0" />
       </ViewImpl>

Replace

<option name="minimizedInGrid" value="true" />

by

<option name="minimizedInGrid" value="false" />

And it’s back again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS 2019 Console.Writeline - Output not present in Output ...
So, I am used to using Console.Writeline during development to generate debugging output (and then remove them and comment them out when no...
Read more >
Chrome devtools there is no console output from running ...
I have some troubles with the console's output when I try to run some snippet js code from the "source" tab. Instead of...
Read more >
Missing console logs in terminal output #2602 - GitHub
Hi, until karma 1.4.1 I had console.log / error / debug output but since 1.5.0 nothing is printed to the terminal. I have...
Read more >
Console Output is gone in VS2017 - Visual Studio Feedback
I recently upgrade my VS2017 from RC3-26127.3 to RC4-26206.0. Previously under the `Debug` section, when i launch as project there isnt `Web Server ......
Read more >
Missing Console Output when using DotTrace Profiler on Mac ...
There is no console output for the running process when using DotTrace Profiler on Mac Rider. Here's a break down of the issue:....
Read more >

github_iconTop Related Medium Post

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