Opened 6 years ago
Closed 6 years ago
Last modified 6 years ago
#13239 closed Bug Report - Crash (fixed)
Android seg fault when changing certain settings
Reported by: | Peter Bennett | Owned by: | Peter Bennett |
---|---|---|---|
Priority: | minor | Milestone: | 30.0 |
Component: | Ports - Android | Version: | Master Head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
When changing theme or language, after saving the setting the frontend encounters a Segmentation fault. It seem to be related to the fact that the frontend destroys and recreates the main window in these cases.
Backtrace attached.
Version: mythfrontend-20180308-arm64-v30-Pre-527-g02de2e4-dirty
Attachments (2)
Change History (9)
comment:1 Changed 6 years ago by
Owner: | changed from Mark Spieth to Peter Bennett |
---|---|
Status: | new → accepted |
Changed 6 years ago by
Fix for seg fault
comment:2 Changed 6 years ago by
Patch 20180723_1243_fix_themechange_segfault_with_restart_also_startup_gui.patch :
The seg fault is in QWindow::isVisible many levels deep in code that orignates from QT event loop. The back trace gives no information as to which routine posted the message that is causing the fault. Presumably android does allow the main window to be destroyed and a new one created.
This patch changes the code to restart mythfrontend instead of recreating the main window. This applies to Setup Appearance changes.
In the case of the initial window that comes up if you have never connected this android device (TempWindow? in MythContext), we simply keep the window instead of destroying and recreating.
comment:3 Changed 6 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:5 Changed 6 years ago by
Milestone: | needs_triage → 30.0 |
---|
backtrace