flutter_native_view icon indicating copy to clipboard operation
flutter_native_view copied to clipboard

App crashing when calling ensureInitialized

Open Paradoxu opened this issue 2 years ago β€’ 3 comments

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

Paradoxu avatar May 13 '22 08:05 Paradoxu

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

yhsj0919 avatar May 17 '22 05:05 yhsj0919

window_manager

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

Paradoxu avatar May 17 '22 11:05 Paradoxu

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.

alexmercerind avatar May 17 '22 12:05 alexmercerind