isomorphic-git / isomorphic-git/examples
React Native example crashes on cloning a medium/large size repo
Personne n'a encore pris cette issue.
- Langage dominant
- TypeScript
- Étoiles
- 5
- Forks
- 2
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
While trying to clone the medium-sized repo: https://github.com/unicorn-utterances/unicorn-utterances
I find myself facing the following error:
2020-08-06 21:39:40.378 30949-31004/dev.oceanbit.gitshark W/eanbit.gitshar: Throwing OutOfMemoryError "Failed to allocate a 312742456 byte allocation with 50331648 free bytes and 228MB until OOM, target footprint 348090096, growth limit 536870912" (VmSize 7063752 kB)
2020-08-06 21:39:40.384 30949-31004/dev.oceanbit.gitshark E/AndroidRuntime: FATAL EXCEPTION: mqt_js
Process: dev.oceanbit.gitshark, PID: 30949
java.lang.OutOfMemoryError: Failed to allocate a 312742456 byte allocation with 50331648 free bytes and 228MB until OOM, target footprint 348090096, growth limit 536870912
at java.util.Arrays.copyOf(Arrays.java:3257)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:448)
at java.lang.StringBuffer.append(StringBuffer.java:270)
at java.io.StringWriter.write(StringWriter.java:101)
at android.util.JsonWriter.close(JsonWriter.java:260)
at android.util.JsonWriter.endObject(JsonWriter.java:231)
at com.facebook.react.devsupport.JSDebuggerWebSocketClient.executeJSCall(JSDebuggerWebSocketClient.java:123)
at com.facebook.react.devsupport.WebsocketJavaScriptExecutor.executeJSCall(WebsocketJavaScriptExecutor.java:170)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:26)
at android.os.Looper.loop(Looper.java:214)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:225)
at java.lang.Thread.run(Thread.java:919)
2020-08-06 21:39:40.616 30949-30949/dev.oceanbit.gitshark D/ReactNative: ReactInstanceManager.detachViewFromInstance()
2020-08-06 21:44:13.427 30949-30995/dev.oceanbit.gitshark W/System: A resource failed to call response.body().close().
This is true even when setting android:largeHeap="true"
A reproduction link can be found here:
https://github.com/oceanbit-dev/examples/commit/41c965d9932e26467e1d81646e31cc3a0d6d6e88
Related: https://github.com/oceanbit-dev/GitShark/issues/41
I'd love some help debugging this issue :( This is a major issue for my app
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par la reproduction dans le commit examples 41c965d9932e26467e1d81646e31cc3a0d6d6e88 et reproduisez le clonage du dépôt de taille moyenne lié sur Android. Lisez la trace de la pile OutOfMemoryError et comparez le comportement avec l’issue associée #41. La tâche est terminée lorsque l’exemple React Native peut cloner un dépôt de taille moyenne ou importante sans planter, y compris lorsque largeHeap est activé.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- android, react-native, typescript
- Domaine
- mobile
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 35/100