quick.flutter
quick.flutter copied to clipboard
Probable memory corruption, QuickBlue, Windows
I'm getting a variety of weird errors, focused around the gattServices
map and GetServiceAsync
. In particular, I keep getting an AccessViolation a few layers inside the call to insert
on this line:
https://github.com/woodemi/quick.flutter/blob/634decd711200c7372686a14047bc023a7cd85d4/packages/quick_blue/windows/quick_blue_plugin.cpp#L98
Some internal pointer in the map was 0xFFFFFF...E6. When I tried adding some logging to inspect it, I got errors that different pointers (like _Rootnode
) were bad, like _Parent pointers of 0xcccccccc...ccc. I don't see anything in your code that looks like you're doing anything weird with gattServices
, so my guess is that something else is going wrong and leaking into the map. (I'm not very good at C++, though, so. Might be wrong.)
I am experiencing this problem as well and can confirm that this line is causing the error.
@Erhannis did you find a fix/solution for this?