Skip to content
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

x/mobile: Multiple independent lib using gomobile in the same app #57661

Closed
hpcarlos opened this issue Jan 6, 2023 · 1 comment
Closed

x/mobile: Multiple independent lib using gomobile in the same app #57661

hpcarlos opened this issue Jan 6, 2023 · 1 comment
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile
Milestone

Comments

@hpcarlos
Copy link

hpcarlos commented Jan 6, 2023

What version of Go are you using (go version)?

1.19

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
GO111MODULE="on"
GOARCH="arm64"
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOOS="darwin"
GOVERSION="go1.19.3"

What did you do?

I have a problem which is as follows.
I have a legacy android app that already has a lib.so made using gomobile, this lib is necessary for the app, and I don't have its code, much less is it simple to reproduce what this lib does, and I need to include it another lib made by me in the same project, but as soon as I load the lib made by me, in several versions of android I have the following crash:

17:33:40.619 system_process W  channel 'f020b3a mypackage.android/org.dep.ClassDep (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
17:33:40.619 system_process E  channel 'f020b3a mypackage.android/org.dep.ClassDep (server)' ~ Channel is unrecoverably broken and will be disposed!

What did you expect to see?

I need both libs to work in the same app.
If there is a way where I can free up the communication channel and let the other use it, and then manage to keep alternating between the libs where each one does what it needs and free this channel, it would be interesting.

Or maybe a way to load the two separately inside the android where each one is inside a sandbox or something along those lines.

What did you see instead?

The error mentioned above.

@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Jan 6, 2023
@gopherbot gopherbot added this to the Unreleased milestone Jan 6, 2023
@seankhliao
Copy link
Member

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2023
@golang golang locked and limited conversation to collaborators Jan 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile
Projects
None yet
Development

No branches or pull requests

3 participants