Git Product home page Git Product logo

Comments (10)

jakon2048 avatar jakon2048 commented on May 5, 2024

Hi, thank you for reporting this. I followed up with Samsung about this and it seems like AGI support for the Mali versions of Note 10 and S10 are not out yet. I will update the device validation page with the latest information and will update this once we receive word on when it will be out.

from agi.

rafaelvcaetano avatar rafaelvcaetano commented on May 5, 2024

Just an update, after several OS updates, I decided to try again using the same AGI version and the "Device support validation passed." message is shown. After starting the capture, the app is launched but it crashes immediately. The following stack trace can be found in the logs:

2021-04-22 18:29:12.216 16528-16528/<package_name> E/AndroidRuntime: FATAL EXCEPTION: main
    Process: <package_name>, PID: 16528
    java.lang.NullPointerException: Attempt to read from field 'java.lang.String android.content.pm.ApplicationInfo.primaryCpuAbi' on a null object reference
        at android.os.GraphicsEnvironment.chooseAbi(GraphicsEnvironment.java:1088)
        at android.os.GraphicsEnvironment.getDebugLayerAppPaths(GraphicsEnvironment.java:304)
        at android.os.GraphicsEnvironment.getDebugLayerPathsFromSettings(GraphicsEnvironment.java:278)
        at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:872)
        at android.app.LoadedApk.getClassLoader(LoadedApk.java:1016)
        at android.app.LoadedApk.getResources(LoadedApk.java:1260)
        at android.app.ContextImpl.createAppContext(ContextImpl.java:2788)
        at android.app.ContextImpl.createAppContext(ContextImpl.java:2780)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7329)
        at android.app.ActivityThread.access$1500(ActivityThread.java:301)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2148)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:246)
        at android.app.ActivityThread.main(ActivityThread.java:8506)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

image

Attempting to launch the app again manually also generates the same error and it will only open if I manually uninstall the GAPID app.

from agi.

jakon2048 avatar jakon2048 commented on May 5, 2024

Thanks. Let me forward this to our engineers.

from agi.

hevrard avatar hevrard commented on May 5, 2024

@lpy this looks like a bug in GraphicsEnvironment that you fixed with https://cs.android.com/android/_/android/platform/frameworks/base/+/eb1c5a4c28ec7cd2577e7182ed249a8ec4cc4c0b, could it be that Samsung didn't picked it up yet?

from agi.

lpy avatar lpy commented on May 5, 2024

We have fixed this bug on the platform side and it was rolled out through quarterly platform release. It looks like the build on this Samsung phone doesn't have the fix

from agi.

hevrard avatar hevrard commented on May 5, 2024

@rafaelvcaetano in the long term, a future system update from Samsung should bring the Android fix this gets rid of this issue.

In the meantime, you might be able to work around this issue by uninstalling AGI APKs manually:

adb shell uninstall com.google.android.gapid.armeabiv7a
adb shell uninstall com.google.android.gapid.arm64v8a

And then restarting AGI. Could you please try this (and re-try a few times if it still fails), and let us know if that unblocks you?

from agi.

rafaelvcaetano avatar rafaelvcaetano commented on May 5, 2024

I tried the workaround a few times but the problem still persists.

I will wait for the next updates and I will let you know if the problem is fixed or a different outcome is produced.

from agi.

hevrard avatar hevrard commented on May 5, 2024

@rafaelvcaetano sorry to hear that. As a last resort you can maybe try our unstable but more recent AGI dev-release, to see if that makes any difference:
https://github.com/google/agi-dev-releases/releases/latest

from agi.

rafaelvcaetano avatar rafaelvcaetano commented on May 5, 2024

Thanks for the suggestion! So, I tried the latest dev release and that actually seemed to fix the problem. The app is now launched automatically without crashing and I can perform captures without issues!

from agi.

hevrard avatar hevrard commented on May 5, 2024

Glad to hear that! I'll keep this issue open until we have confirmation that Samsung picked up the Android fix.

from agi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.