codex icon indicating copy to clipboard operation
codex copied to clipboard

[ChatGPT Android] Frequent apparent crash on app resume after >10 minutes in background

Open monag144 opened this issue 1 month ago • 1 comments

Product / scope

ChatGPT consumer Android app — ordinary ChatGPT conversations, not Codex CLI or Codex Remote. Submitted at the repository linked by OpenAI Support. If another private tracker owns ChatGPT Android app reliability, please route/transfer this report to that team.

Summary

The ChatGPT Android app frequently fails to resume normally after the user sends a prompt or performs an operation, backgrounds the app via the Android Home screen, leaves it for more than roughly 10 minutes, and returns.

The user estimates that this happens in approximately 45% of attempts. This is an informal, unmeasured estimate with unknown margin of error, not a benchmark or controlled failure rate.

The behavior is reported even when the user has not deliberately left other applications running. That does not rule out Android background process management.

Environment

  • Device: Android phone (specific manufacturer/model not captured in this report)
  • OS: Android 14, as previously reported in the user's mobile development context; affected app-version/build number not captured
  • App: official ChatGPT for Android; version not captured
  • Account tier: ChatGPT Plus
  • Networking, battery-optimization configuration, and crash stack traces: not captured
  • Report compiled: 2026-10-20; exact incident timestamps unavailable

Reproduction steps reported by user

  1. Launch the ChatGPT Android app and enter an ordinary conversation.
  2. Submit a prompt / run an operation and allow the interaction to take place.
  3. Press Home to background ChatGPT.
  4. Leave ChatGPT in the background for longer than 10 minutes.
  5. Return to ChatGPT, either through the launcher or recent-apps UI.
  6. Intermittently, the app has crashed/closed or fails to return to the prior usable conversation state, rather than resuming cleanly.

Expected

  • Returning to the app restores a responsive conversation and its persisted history.
  • Even if Android terminates the app process to reclaim memory, relaunch restores state without exposing a crash or losing unsent work.
  • Running ordinary operations must not make the app unusually vulnerable to background/resume failure.

Actual

  • Very frequent apparent crashes on resume, per the user's report.
  • Problem reported without active competing foreground apps.
  • No Android tombstone, logcat output, exception signature, or structured sampling log yet; a native crash, process eviction, session-state failure, and UI restart have not been technically distinguished.

Useful engineering investigation

  • Inspect process lifecycle, activity recreation, saved-state restoration, and session hydration after >10-minute background intervals.
  • Correlate Android crash/ANR telemetry with ChatGPT process restarts and memory pressure.
  • Check whether in-flight assistant/tool operations create a resume-only failure.
  • Provide an opt-in diagnostic/export path that records the actual reason for process termination and the previous conversation's last persisted turn.

Suggested verification

  • Controlled 20–30-trial background/resume reproduction across clean/long chats, with exact app version, battery state, memory pressure, device model, and logcat.
  • Compare return after 2, 10, 15, and 30 minutes; differentiate system process eviction from genuine app exceptions.

Related but not equivalent: #53871 tracks a specific duplicate-list-key exception in Codex Remote on Android. This report concerns ordinary ChatGPT usage and has no verified exception signature.

No private conversations, account identifiers, credentials, or diagnostic contents are included.

monag144 avatar Oct 20 '26 07:10 monag144

Additional, closely related ChatGPT consumer Android reproduction with concrete Android framework evidence (not Codex Remote). This case occurs within seconds, rather than after 10+ minutes.

Environment

  • Google Pixel 7 Pro; Android 16
  • ChatGPT Android 1.2026.314 (versionCode 2631431), package com.openai.chatgpt
  • Battery mode Unrestricted already enabled
  • Same issue after clearing app cache and switching from the new UI to the classic UI (no app-data wipe performed)
  • Existing conversation remains accessible via history; on returning from Recent Apps the UI shows an empty/new chat.

Repro

  1. Open an existing conversation in the ChatGPT Android app.
  2. Switch to another app / Android Recent Apps for a few seconds.
  3. Return to ChatGPT.
  4. Observe that the active conversation view was replaced by a blank new chat, although the original conversation still exists.

Confirmed Android lifecycle / process evidence (2026-11-22, device local time UTC+05:00):

12:54:44.623 wm_pause_activity: [0,223117884,com.openai.chatgpt/.MainActivity,userLeaving=true,pauseBackTasks]
12:54:44.698 wm_on_stop_called: [223117884,com.openai.chatgpt.MainActivity,STOP_ACTIVITY_ITEM,1]
12:54:45.185 wm_destroy_activity: [0,223117884,84604,com.openai.chatgpt/.MainActivity,low-mem]
12:54:45.251 wm_on_destroy_called: [223117884,com.openai.chatgpt.MainActivity,performDestroy,2]
12:54:45.580 wm_restart_activity: [0,223117884,84604,com.openai.chatgpt/.MainActivity]
12:54:45.598 wm_on_create_called: [223117884,com.openai.chatgpt.MainActivity,performCreate,7]
12:54:45.610 wm_on_resume_called: [223117884,com.openai.chatgpt.MainActivity,RESUME_ACTIVITY,1]

The ChatGPT process PID 29089 stayed alive throughout. The same wm_destroy_activity ... low-mem event happened again at 12:55:28.076 and 12:56:18.321 (UTC+05:00). Thus this particular regression is Activity recreation without process death, not merely Android killing the background process.

Memory / possible mechanism (hypothesis, not proved)

  • dalvik.vm.heapgrowthlimit=256m and dalvik.vm.heapsize=512m
  • dumpsys meminfo com.openai.chatgpt sample: Dalvik Heap size 262,144 KiB; allocated 196,349 KiB (~74.9% of growth limit).
  • AOSP ActivityThread GC watcher calls releaseSomeActivities() after heap use exceeds 3/4 of runtime max. This looks consistent with low-mem, though no direct stack capture established that the watcher invoked it in this case: https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/ActivityThread.java
  • dumpsys meminfo --oom separately reported system RAM status normal. A low free-RAM or heavily occupied zram reading alone does not establish a global OOM.

Engineering request: Persist and restore the previously selected conversation route / ID (and any in-progress response state) across MainActivity.onDestroy() -> onCreate(), including Android memory-reclaim scenarios while app process remains alive. Test immediate switch-out/switch-back with wm_destroy_activity ... low-mem and verify the active conversation is restored, rather than navigating to the new-chat home screen. Investigate unnecessary retained Java heap causing premature Activity trimming.

This is the ChatGPT consumer app, not the Codex CLI; if this repository is not the owning team’s tracker, please route these findings to the ChatGPT Android engineers. No account IDs, chat contents, auth data, or full unredacted logs are included. Related community report: https://community.openai.com/t/android-active-chat-resets-to-empty-home-after-recent-apps-also-observed-during-standard-voice/1412675 .

SHAREN avatar Nov 22 '26 08:11 SHAREN