Comments (2)
After some debugging it looks like the [CallbackReferenceDisposer](https://github.com/java-native-access/jna/blob/5.12.0/src/com/sun/jna/CallbackReference.java#L789-L798)
never runs, thus leaking all the allocated callbacks.
As to why it's not running, I tried poking at JNA's code and it looks pretty convoluted: there's a lot of WeakHashMap
s around that keep references to the callback, and they seemingly never get cleaned. So the JVM must think these references are still alive, but I can't figure out how. It looks to me like the JNA side is good, so it might be an issue in the generated Kotlin that keeps references alive for longer than it should.
I honestly don't have much experience with Kotlin at all, so here's where I'm stuck at the moment. Any help would be appreciated.
from uniffi-rs.
Nevermind, it looks like updating uniffi fixed it. Not sure what was causing it but I'll close this issue
from uniffi-rs.
Related Issues (20)
- Error type named `Error` emits invalid Swift code HOT 6
- Deriving `uniffi::Record` together with `ZeroizeOnDrop` does not compile. Solvable? HOT 5
- UDL2 HOT 5
- Expose panic line numbers in logcat
- Kotlin bug: enum with associated value being `Arc<Object>` generates non compiling Kotlin code (UniFFI 0.27.1) HOT 1
- Clarify `check_library_path` semantics HOT 2
- DISCUSS: Proc macro / UDL for Swift property wrappers and macro annotations HOT 4
- Issues while importing and using a created swiftmodule HOT 5
- Incorrect comments in RustBuffer about being limited to i32
- how to send Rust opaque type to Kotlin HOT 5
- Online docs have no language syntax highlighting HOT 1
- RustBuffer regression with nested Errors HOT 5
- Swift errors don't provide `localizedDescription` HOT 6
- Generating FFI bindings for dependent crates into one single Swift / Kotlin file? HOT 4
- External type fails for some corner cases HOT 1
- Config feature and Export macros don't get along HOT 1
- iOS Framework Expected in: /usr/lib/libc++.1.dylib HOT 2
- Remote interface types
- Updating from 0.25.3 to 0.26.x or 0.27.x fails for interface HOT 8
- Java 8 deprecation is unexpected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uniffi-rs.