quick.flutter icon indicating copy to clipboard operation
quick.flutter copied to clipboard

Probable memory corruption, QuickBlue, Windows

Open Erhannis opened this issue 2 years ago • 1 comments

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.)

Erhannis avatar Aug 20 '22 01:08 Erhannis

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?

NeariX67 avatar Jun 09 '23 12:06 NeariX67