Skip to content

Black screen on linux #43

Description

@empirefox

Hi!

I create a new flutter test project. It runs fine on the web, but on Linux it shows a black screen.

console:

Building Linux application...                                           
✓ Built build/linux/x64/debug/bundle/test
Syncing files to device Linux...                                   280ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

A Dart VM Service on Linux is available at: http://127.0.0.1:40135/XkrxDzMhUVs=/
The Flutter DevTools debugger and profiler on Linux is available at:
http://127.0.0.1:40135/XkrxDzMhUVs=/devtools/?uri=ws://127.0.0.1:40135/XkrxDzMhUVs=/ws
.... initOpenGL
EGL createTexture
Window Size:1280,720
Create Texture
.... OpenglRenderer create
EGL resizeTexture
Window Size:1920,1080
Disposed of and deleted everything.
Create Texture

Application finished.

pubspec.yaml:

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  three_js: 0.2.7
  fullscreen_window: ^1.2.0

flutter doctor -v

[✓] Flutter (Channel stable, 3.38.6, on Ubuntu 24.04.3 LTS 6.11.0-29-generic, locale zh_CN.UTF-8) [82ms]
    • Flutter version 3.38.6 on channel stable at /home/dev/soft/Flutter/flutter-sdk
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 8b87286849 , 2026-01-08 10:49:17 -0800
    • Engine revision 78fc3012e4
    • Dart version 3.10.7
    • DevTools version 2.51.1
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations,
      enable-native-assets, omit-legacy-version-file, enable-lldb-debugging

[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [2.3s]
    • Android SDK at /home/dev/Android/Sdk
    • Emulator version 36.2.12.0 (build_id 14214601) (CL:N/A)
    • Platform android-36.1, build-tools 36.1.0
    • ANDROID_SDK_ROOT = /home/dev/Android/Sdk
    • Java binary at: /home/dev/soft/android-studio-2025.2.1.7-linux/android-studio/jbr/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72)
    • All Android licenses accepted.

[✓] Chrome - develop for the web [18ms]
    • CHROME_EXECUTABLE = /snap/bin/chromium

[✓] Linux toolchain - develop for Linux desktop [1,037ms]
    • Ubuntu clang version 18.1.3 (1ubuntu1)
    • cmake version 3.28.3
    • ninja version 1.11.1
    • pkg-config version 1.8.1
    • OpenGL core renderer: NVIDIA GeForce GT 730/PCIe/SSE2 (X11)
    • OpenGL core version: 4.6.0 NVIDIA 470.256.02 (X11)
    • OpenGL core shading language version: 4.60 NVIDIA (X11)
    • OpenGL ES renderer: NVIDIA GeForce GT 730/PCIe/SSE2 (X11)
    • OpenGL ES version: OpenGL ES 3.2 NVIDIA 470.256.02 (X11)
    • OpenGL ES shading language version: OpenGL ES GLSL ES 3.20 (X11)
    • GL_EXT_framebuffer_blit: yes (X11)
    • GL_EXT_texture_format_BGRA8888: yes (X11)

[✓] Connected device (2 available) [555ms]
    • Linux (desktop) • linux  • linux-x64      • Ubuntu 24.04.3 LTS 6.11.0-29-generic
    • Chrome (web)    • chrome • web-javascript • Chromium 143.0.7499.146 snap

[✓] Network resources [19.8s]     
    • All expected network resources are available.

• No issues found!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions