inaturalist / react-native-inat-camera

React Native package that provides a camera with optional species recognition.
MIT License
10 stars 6 forks source link

java.lang.OutOfMemoryError: inatcamera.classifier.Taxonomy.aggregateScores newNode #57

Closed albullington closed 3 years ago

albullington commented 3 years ago

Similar but slightly different stack trace than #53.

java.lang.OutOfMemoryError: 
  at java.util.HashMap.newNode (HashMap.java:1746)
  at java.util.HashMap.putVal (HashMap.java:630)
  at java.util.HashMap.putMapEntries (HashMap.java:514)
  at java.util.HashMap.putAll (HashMap.java:784)
  at org.inaturalist.inatcamera.classifier.Taxonomy.aggregateScores (Taxonomy.java:130)
  at org.inaturalist.inatcamera.classifier.Taxonomy.aggregateScores (Taxonomy.java:118)
  at org.inaturalist.inatcamera.classifier.Taxonomy.predict (Taxonomy.java:109)
  at org.inaturalist.inatcamera.classifier.ImageClassifier.classifyFrame (ImageClassifier.java:111)
  at org.inaturalist.inatcamera.nativecamera.RNCameraView.classifyFrame (RNCameraView.java:478)
  at org.inaturalist.inatcamera.nativecamera.RNCameraView.access$1200 (RNCameraView.java:46)
  at org.inaturalist.inatcamera.nativecamera.RNCameraView$4.run (RNCameraView.java:453)
  at android.os.Handler.handleCallback (Handler.java:883)
  at android.os.Handler.dispatchMessage (Handler.java:100)
  at android.os.Looper.loop (Looper.java:237)
  at android.os.HandlerThread.run (HandlerThread.java:67)