-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Comments
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. |
Happening to me as well. Probably an issue with Windows 11 |
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 |
Happening to me as well. Probably an issue with Windows 11 bitsdojo_window: ^0.1.5 |
Cloned your repo and tried running the app. Seems like there is a crash related to the
|
Tried it on my Windows 11 machine but everything ran ok. Do you have a sample repo that I could try? |
OS information: |
any update on this? |
I think a windows update and/or package update fixed the issue for me. It doesn't crash anymore. |
Idk why but I am facing this issue right now, I am on windows 11 canary version |
Ok, I fixed this a year ago so I'm not sure what exactly fixed it, but after reading through this thread I think I remembered that I created a new project and copied the |
Yes, I tried that. But now when I removed this complete package implementation, the app is still not opening |
Did you try to create a new empty project just with this package set up and run it? Does it also crash? |
Just made a new project, release build worked. Then I copied my main project's dependencies and built, didn't open. pubspec.yaml name: test
description: "A new Flutter project."
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.0+1
environment:
sdk: '>=3.4.1 <4.0.0'
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.6
logger: ^2.3.0
get: ^4.6.6
shared_preferences: ^2.2.3
google_fonts: ^6.2.1
dio: ^5.4.3+1
hive: ^2.2.3
hive_flutter: ^1.1.0
flutter_svg: ^2.0.10+1
cached_network_image: ^3.3.1
intl: ^0.19.0
expandable: ^5.0.1
media_kit: ^1.1.10+1
media_kit_libs_video: ^1.0.4
media_kit_video: ^1.2.4
flutter_audio_waveforms: ^1.2.1+8
audioplayers: ^6.0.0
http: ^1.2.1
stomp_dart_client: ^2.0.0
emoji_picker_flutter: ^2.2.0
styled_text: ^8.1.0
easy_rich_text: ^2.1.0
flutter_markdown: ^0.7.2+1
url_launcher: ^6.3.0
enough_giphy: ^0.2.1
file_picker: ^8.0.5
desktop_drop: ^0.4.4
video_thumbnail: ^0.5.3
dev_dependencies:
flutter_test:
sdk: flutter
# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^3.0.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter packages.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
|
If this doesn't work, try using a different computer or use a virtual machine and see if it works there. |
Hm. Maybe try adding the dependencies one by one and see which crashes the program. |
ok |
oh my god, the culprit was media_kit, removing that made it work. |
Windows Version: 22621.963
My App crashes when I run it on Windows 11 with the error:
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.The text was updated successfully, but these errors were encountered: