Sometimes calling `GC.collect()` results in `Memor...
# kotlin-native
s
Sometimes calling
GC.collect()
results in
Memory.cpp:987: runtime assert: Must be positive
d
Haha fun. Do you have a reproducer?
s
Trying to rip out the code that’s doing it reliably atm
d
Sweet
s
The code is rather involved and there’s a lot of different pieces going on (multithreading Mac application that interfaces with K/N framework) and the failure is inconsistent so it’s hard to pin down
My application is processing network requests and it typically throws that error within a few requests but sometimes it’s the 1st, sometimes the 4th etc
o
this is likely symptom of memory corruption due to incorrect concurrency, and we recently improved it with 215cf054106a2c8610f094227e69f1cbc78bdf29 and friends, so better try with dev snapshot before deep investigation.
s
Good to hear. What do you mean by incorrect concurrency?
And do you have info on how to use a dev snapshot with gradle?
@olonho
o
See #eap