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

android/386 android/amd64 #52

Open
dzeckelev opened this issue Nov 3, 2017 · 10 comments
Open

android/386 android/amd64 #52

dzeckelev opened this issue Nov 3, 2017 · 10 comments

Comments

@dzeckelev
Copy link

Hi. Please tell why they removed these lines from the file?
I could not find the answer to this question? sorry if already answered it.
in matcha/cmd/bind.go

//targets["android/386"] = struct{}{}
//targets["android/amd64"] = struct{}{}

@overcyn
Copy link
Contributor

overcyn commented Nov 3, 2017

What do you need it for? I’m not too knowledgeable about android development.

@dzeckelev
Copy link
Author

it is convenient to debug the code using the Genymotion emulator for Android.

Genymotion launches x86 android images.
Many devices on the platform Intel Atom x86 and Atom x64.
P.S. the question is not the topic. I still could not launch the Insta example in Android. How can I track errors through the Matcha?

@overcyn
Copy link
Contributor

overcyn commented Nov 3, 2017

Readded the targets here #53.

@overcyn
Copy link
Contributor

overcyn commented Nov 3, 2017

What error do you get when you launch the Insta example?

@dzeckelev
Copy link
Author

dzeckelev commented Nov 4, 2017

What error do you get when you launch the Insta example?

Android Studio 3.0
Android 7.1.1 (API 25)
Go 1.9.1
Matcha Latast
insta_app.txt

@overcyn
Copy link
Contributor

overcyn commented Nov 7, 2017

Weird, does it crash consistently? I've been trying to track down a similar crash that happens very occasionally for me. I think there is a bug in the Android to Go bridge code.

@dzeckelev
Copy link
Author

dzeckelev commented Nov 7, 2017

Weird, does it crash consistently? I've been trying to track down a similar crash that happens very occasionally for me. I think there is a bug in the Android to Go bridge code.

Yes, the application always crashes. This bug is always reproduced on android.

@overcyn
Copy link
Contributor

overcyn commented Nov 7, 2017

For some context, the crash is at Java-Tracker.java:64. From Go we try to call a method on a java object using reflection. But the java object returned by this.get(v) is not the one we expect, which leads to InvocationTargetException. Why the tracker has the wrong object or Go has the wrong foreignId is unknown.

@overcyn
Copy link
Contributor

overcyn commented Nov 8, 2017

Cleaned up the JNI code a bit here #54. Not sure if it would fix your crash but might be worth trying.

@dzeckelev
Copy link
Author

The error is the same. Resource ID #0x0 . So it should be?

11-10 05:45:05.658 1999-1999/com.example.bik.insta I/InstantRun: starting instant run server: is main process
11-10 05:45:05.756 1999-1999/com.example.bik.insta W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
                                                          
                                                          [ 11-10 05:45:06.050  1999: 1999 D/         ]
                                                          HostConnection::get() New Host Connection established 0xdc184880, tid 1999
                                                          
                                                          
                                                          [ 11-10 05:45:06.052  1999: 1999 W/         ]
                                                          Process pipe failed
11-10 05:45:06.142 1999-1999/com.example.bik.insta W/ResourceType: No package identifier when getting value for resource number 0x00000000
11-10 05:45:06.143 1999-1999/com.example.bik.insta V/Bridge: foreignCall, 1, getPropertiesForResource, [2], android.content.res.Resources$NotFoundException: Resource ID #0x0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants