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

Crash on App Start: NoSuchMethodError for acquireEnvironmentalHdrCubeMap #463

Open
Subramanyarao11 opened this issue Mar 15, 2024 · 0 comments

Comments

@Subramanyarao11
Copy link

Hello,

I'm encountering a runtime crash in my AR app that uses Sceneform. The crash occurs immediately after granting camera and AR permissions, and it seems related to the ARCore LightEstimate functionality, although my application does not explicitly use the LightEstimate.acquireEnvironmentalHdrCubeMap() method.

Error Message:

FATAL EXCEPTION: main
Process: com.example.draw, PID: 17087
java.lang.NoSuchMethodError: No virtual method acquireEnvironmentalHdrCubeMap()[Lcom/google/ar/core/ArImage; in class Lcom/google/ar/core/LightEstimate; or its super classes (declaration of 'com.google.ar.core.LightEstimate' appears in /data/app/~~HqDIVrudygaS9gw55gIagg==/com.example.draw-CJtrcjl5EEp1CNnlpVOyNA==/base.apk) at com.gorisse.thomas.sceneform.light.LightEstimationKt.environmentalHdrEnvironmentLights(LightEstimation.kt:394)

Steps to Reproduce:

  1. Build and run the app on the device.
  2. Grant camera and AR permissions as requested.
  3. The app crashes immediately after permissions are granted.

Environment:

  • ARCore SDK version: [1.41.1]
  • Sceneform version: [1.23.0]
  • Android device and OS version: [Samsung Galaxy A14 5G, Android v13]

I've included all relevant code in a gist for review: Gist Link

Here's the screenshot of the run time error I am getting in logcat
Screenshot (32)

Could you please help identify the cause of this issue or suggest a workaround?

Thank you for your support.

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

1 participant