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: Could not allocate CursorWindow #374

Closed
chengtin-tsai opened this issue Jul 5, 2023 · 1 comment · Fixed by #375
Closed

Crash: Could not allocate CursorWindow #374

chengtin-tsai opened this issue Jul 5, 2023 · 1 comment · Fixed by #375
Assignees
Labels
bug Something isn't working

Comments

@chengtin-tsai
Copy link

Expected Behavior

Current Behavior

This crash happened after we upgraded the SDK from 2.28.2 to 2.39.5.
It might relate to #285

Fatal Exception: t7.q: Could not allocate CursorWindow '/data/user/0/com.particlenews.newsbreak/databases/com.amplitude.api' of size 2097152 due to error -12.
       at com.amplitude.api.DatabaseHelper.convertIfCursorWindowException(DatabaseHelper.java:587)
       at com.amplitude.api.DatabaseHelper.getEventsFromTable(DatabaseHelper.java:373)
       at com.amplitude.api.DatabaseHelper.getIdentifyInterceptors(DatabaseHelper.java:338)
       at com.amplitude.api.IdentifyInterceptor.getTransferIdentifyEvent(IdentifyInterceptor.java:118)
       at com.amplitude.api.IdentifyInterceptor.transferInterceptedIdentify(IdentifyInterceptor.java:150)
       at com.amplitude.api.IdentifyInterceptor.intercept(IdentifyInterceptor.java:81)
       at com.amplitude.api.AmplitudeClient.saveEvent(AmplitudeClient.java:1360)
       at com.amplitude.api.AmplitudeClient.logEvent(AmplitudeClient.java:1323)
       at com.amplitude.api.AmplitudeClient$4.run(AmplitudeClient.java:1182)
       at android.os.Handler.handleCallback(Handler.java:883)
       at android.os.Handler.dispatchMessage(Handler.java:100)
       at android.os.Looper.loop(Looper.java:214)
       at android.os.HandlerThread.run(HandlerThread.java:67)

Possible Solution

Steps to Reproduce

Environment

  • SDK Version: v2.39.5
  • Android API Level: 71% Android 10, 26% Android 11
  • Device: 37% ZTE Z6250CC, 24% BLU - Mediatek B131DL, 21% TCT Mobile Limited (Alcatel)
@chengtin-tsai chengtin-tsai added the bug Something isn't working label Jul 5, 2023
@justin-fiedler justin-fiedler self-assigned this Jul 5, 2023
@justin-fiedler justin-fiedler linked a pull request Jul 6, 2023 that will close this issue
@justin-fiedler
Copy link
Contributor

Hi @chengtin-tsai we released a potential fix in v2.39.7. Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants