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

App crashing when calling ensureInitialized #8

Open
Paradoxu opened this issue May 13, 2022 · 3 comments
Open

App crashing when calling ensureInitialized #8

Paradoxu opened this issue May 13, 2022 · 3 comments

Comments

@Paradoxu
Copy link

As by the docs I have added the requested lines on my main.cpp for the windows folder, until here if I run the app there's no problem. But when I call FlutterNativeView.ensureInitialized(); on my main method the app just crashes, I've tried placing it inside a try/catch but nothing happens and no detailed error is thrown.

Here's the output of my flutter doctor command

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.0.0, on Microsoft Windows [versÆo 10.0.19043.1645], locale pt-BR)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.4)
[√] Android Studio (version 2021.1)
[√] VS Code (version 1.67.0)
[√] Connected device (3 available)
[√] HTTP Host Availability

• No issues found!

Using:
flutter_native_view: ^0.0.1+1

@yhsj0919
Copy link

are you using window_manager?
I had the same problem when I used the settings
window_class, title.c_str(), WS_OVERLAPPEDWINDOW,

@Paradoxu
Copy link
Author

window_manager

Yes, I'm using window_manager, did you manage to solve this problem?

@alexmercerind
Copy link
Owner

Hey there guys, currently this project is a research & I can't provide any deadlines.
Even the features currently added need improvements & changes can be made to nearly anything at current moment.
Thanks.

BTW, I had successfully used the plugin along bitsdojo_window, but it's not something I can confirm after recent commits in the repository. With that being said, I don't recommend any of bitsdojo_window or window_manager personally.

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

3 participants