bitsdojo_window icon indicating copy to clipboard operation
bitsdojo_window copied to clipboard

Crashed on Windows 11

Open 4A6F6F6E61 opened this issue 1 year ago • 7 comments

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 avatar Jan 02 '23 22:01 4A6F6F6E61

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.

4A6F6F6E61 avatar Jan 03 '23 22:01 4A6F6F6E61

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

randal923 avatar Jan 05 '23 00:01 randal923

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 =]

randal923 avatar Jan 05 '23 03:01 randal923

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

bitsdojo_window: ^0.1.5

theseann avatar May 10 '23 11:05 theseann

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 avatar May 13 '23 16:05 bitsdojo

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?

bitsdojo avatar May 13 '23 16:05 bitsdojo

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

Comanx avatar Jun 14 '23 07:06 Comanx