Bug 460207 - Unable to start Ghostwriter in Windows if exited fullscreen
Summary: Unable to start Ghostwriter in Windows if exited fullscreen
Status: CONFIRMED
Alias: None
Product: ghostwriter
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: megan.conkle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-10 18:18 UTC by timecrash
Modified: 2022-10-12 16:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description timecrash 2022-10-10 18:18:23 UTC
I wrote up this bug on the old GitHub repo, however it seems to have been lost after the switch to KDE. I'll try to summarize what I wrote there.

I prefer to keep Ghostwriter in fullscreen at all times. On my Linux laptop, this works without issue. On Windows, exiting the application while it's in fullscreen, then starting it again (say, the next day after turning the PC on) will cause a crash. This does not happen if I exit fullscreen BEFORE exiting the application.

The only workaround I know of is to delete ghostwriter.ini (on my system at %appdata%/ghostwriter/ghostwriter.ini). In the latter case, the application starts up with the default settings, which I then have to customize again.

STEPS TO REPRODUCE
1. Start Ghostwriter in Windows from fresh install.
2. Pres F11 to enter fullscreen.
3. Press Alt-F4, Ctrl-Q, or quit from the menu bar.
4. Attempt to start Ghostwriter again.

OBSERVED RESULT
Ghostwriter crashes without error message. Event Viewer shows a message similar to:

Faulting application name: ghostwriter.exe, version: 0.0.0.0, time stamp: 0x63264c19
Faulting module name: Qt5Widgets.dll, version: 5.15.2.0, time stamp: 0x5fa4de1c
Exception code: 0xc000041d
Fault offset: 0x0000000000045c34
Faulting process id: 0x0x354C
Faulting application start time: 0x0x1D8DCAD1C6FA97F
Faulting application path: C:\Ghostwriter\ghostwriter.exe
Faulting module path: C:\Ghostwriter\Qt5Widgets.dll
Report Id: 713dba59-3954-483b-854d-da008f4ddaf8
Faulting package full name: 
Faulting package-relative application ID: 

EXPECTED RESULT
Ghostwriter opens into fullscreen.

SOFTWARE/OS VERSIONS
Windows: 2.1.6
macOS: n/a
Linux/KDE Plasma: n/a
(available in About System)
KDE Plasma Version: n/a
KDE Frameworks Version: n/a
Qt Version: n/a

ADDITIONAL INFORMATION
Looking at ghostwriter.ini, it seems the mainWindowGeometry and mainWindowState variables under [Window] control whether the application is in fullscreen or not. I currently have it set to this, which starts Ghostwriter windowed:

[Window]
mainWindowGeometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x2/\0\0\0\xeb\0\0\x5P\0\0\x2\xfe\0\0\x2\x30\0\0\x1\n\0\0\x5O\0\0\x2\xfd\0\0\0\0\0\0\0\0\a\x80\0\0\x2\x30\0\0\x1\n\0\0\x5O\0\0\x2\xfd)
mainWindowState=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\x3 \0\0\x1\xb9\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\0)
splitterGeometry=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x3\0\0\0\xc0\0\0\x1@\0\0\x1@\0\xff\xff\xff\xff\x1\0\0\0\x1\0)
sidebarOpen=false

Upon exiting in fullscreen, Ghostwriter had these settings:

[Window]
mainWindowGeometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\a\0\0\0\0\0\0\ax\0\0\x4\x30\0\0\x2\x80\0\0\x1\x18\0\0\x5\x9f\0\0\x3\v\0\0\0\0\0\x4\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\a\x7f\0\0\x4\x37)
mainWindowState=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\a\x80\0\0\x3\xfb\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\0)
sidebarOpen=false
sidebarGeometry=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\0\xc8\0\0\x2X\x1\xff\xff\xff\xff\x1\0\0\0\x1\0)
splitterGeometry=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x3\0\0\0\xc0\0\0\x1@\0\0\x1@\0\xff\xff\xff\xff\x1\0\0\0\x1\0)