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

Crashed on Windows 11 #210

Open
4A6F6F6E61 opened this issue Jan 2, 2023 · 7 comments
Open

Crashed on Windows 11 #210

4A6F6F6E61 opened this issue Jan 2, 2023 · 7 comments

Comments

@4A6F6F6E61
Copy link

Windows Version: 22621.963

My App crashes when I run it on Windows 11 with the error:

Error waiting for a debug connection: The log reader stopped unexpectedly, or never started. 

Error launching application on Windows.

This does not happen on Windows 10. When I remove the added lines in /windows/runner/main.cpp the App works (but of course, without this package). When I execute the compiled .exe of my App, It works fine on Windows 10 but instantly closes on Windows 11.

@4A6F6F6E61
Copy link
Author

With "the added lines" I mean the 2 lines required for the package. This happens on every Windows 11 PC I own. I even tried reinstalling Windows but that didn't help either. You can find my repo with the problem here.

@randal923
Copy link

Happening to me as well. Probably an issue with Windows 11

@randal923
Copy link

randal923 commented Jan 5, 2023

Ok, after many hours debugging I figured it out. First, create a new Flutter project and see if it works in the new project. If it does, the the issue is within your project. I cleared the cache flutter clean, deleted the windows model and created a new one flutter create -platform=windows . but nothing worked. I then copied the pubspec.yaml from the new project into the one that was not working, saved it so flutter could run the new pubspec.yaml code. I then returned back to the old pubspec.yaml and it worked =]

@theseann
Copy link

Happening to me as well. Probably an issue with Windows 11

bitsdojo_window: ^0.1.5

@bitsdojo
Copy link
Owner

With "the added lines" I mean the 2 lines required for the package. This happens on every Windows 11 PC I own. I even tried reinstalling Windows but that didn't help either. You can find my repo with the problem here.

Cloned your repo and tried running the app. Seems like there is a crash related to the flutter_acrylic package. Removing these lines related to the flutter_acrylic package made the app run without any error.

await Window.setEffect(
    effect: WindowEffect.transparent,
    color: darkMode! ? const Color(0xCC222222) : const Color(0xCCDDDDDD),
  )

@bitsdojo
Copy link
Owner

Happening to me as well. Probably an issue with Windows 11

bitsdojo_window: ^0.1.5

Tried it on my Windows 11 machine but everything ran ok. Do you have a sample repo that I could try?

@Comanx
Copy link

Comanx commented Jun 14, 2023

OS information:
版本 Windows 11 家庭中文版 (Chinese Home)
版本 21H2
安装日期 ‎2022/‎8/‎6
操作系统版本 22000.1936
体验 Windows 功能体验包 1000.22001.1000.0

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

5 participants