-
Notifications
You must be signed in to change notification settings - Fork 110
android_glue::add_sender: Sender error #239
Comments
I"m not too familiar with how all the event passing works. I took a quick look and I didn't see anything obviously wrong. Are you using the glue from the master branch? I agree that the use of mem::uninitialized should be fixed. |
The event code hasn't been touched for a while, and it's riddled with raw pointers and such. This smells suspiciously like some bad pointer use. What's the smallest example you have that runs into this issue? |
Ok, so this crashes, but it's not the standard example:
The "not the standard example" I mentioned is that I've made the following modifications to
As far as I can tell these changes shouldn't realistically do anything, so I tried with the master branch:
And the same results arise. Although upon further inspection of the |
By installing as follows:
I result in the same error, with the master branch and the code above for |
@OptimisticPeach Using the android_glue crate from the master branch results in things working as expected. I assume the crash occurs because the Event enum that is exchanged between android_glue and cargo-apk has changed since the last release. |
Indeed this was the error! Thanks for the help. I'll get onto that PR in a moment. |
I get a panic when using the
android_glue::add_sender
api:I would like to provide a larger backtrace, but it is quickly followed by a
SIGABRT
from the system:Times and pid (I think) are omitted for brevity.
I have no unsafe code on my side, but while compiling I get
Which might explain it, so I changed it on my local version to use
MaybeUninit
as follows (Which should probably be done either way):Which unfortunately didn't resolve the problem. I'm not well versed on how the event system works.
The panic occurs here, on the docs version of the code and here on github.
The text was updated successfully, but these errors were encountered: