-
Notifications
You must be signed in to change notification settings - Fork 50
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
NSData.dataWithBytesNoCopy_length_
is crashing
#1107
Comments
Is the |
LLDB is the Mac variant.
native/pkgs/ffi/lib/src/allocation.dart Lines 15 to 16 in 6a9282c
Yep, it's |
I'm not sure how this fits together. Presumably the Apple's documentation isn't very clear on this. I also notice that we don't use I think that this code is probably OK how it is now. If people complain about the performance when using large blocks of memory, we could use |
From the docs:
|
ns_data_test.dart
causes some sort of seg faults crash loop when usingNSData.dataWithBytesNoCopy_length_
. I'm switching toNSData.dataWithBytes_length_
for now, which fixes the crash but is slower. Logs.I noticed the crash in #1100, but it predates that PR (that log is from a nightly run). I haven't been able to get GDB working on my macbook, so I'm not sure exactly where the crash is happening. From the logs it seems to be happening when the NSData is destroyed.
The text was updated successfully, but these errors were encountered: