If an app crashes only when it opens a print dialog, share sheet, or file picker, the fastest fix path is to test the same action in another app, try the dialog without search/typedown, and note whether the crash happens before the dialog opens, while it is open, or after the selection returns. That usually points to the native dialog layer, a printer or share extension, a file provider, or the app’s own callback rather than the main window itself. Reinstalling first often wastes time.
Why these dialogs crash apps
Print dialogs, share sheets, and the system file picker are native OS UI. They sit outside the app’s own window logic, yet the app still has to call into them and accept the result. That makes them a shared failure point when a platform component breaks or when the app passes bad data into the dialog.
The same crash class can appear during open, save, import, export, printing, or sharing. The symptom may show up in a different place than the fault. A file can look selected, then the process dies after the dialog hands control back to the app.
That pattern matters because the crash can be in three different places. It may be in app code, in the dialog layer itself, or in a desktop component such as GTK, GLib, X11, or Wayland-related UI code. Those layers often share event handling, window focus, and file selection paths.
Say a user clicks Open, sees the native picker, chooses a PDF, and the file name appears briefly before the app closes. That does not prove the PDF is bad. It may mean the picker returned successfully and the crash happened as the app handled the selected file.
In one Bugzilla report under Core :: Widget: Gtk on Linux on x86, the signature pointed to libgtk-x11-2.0.so.0. The reporter said the crash happened when using typedown in the GTK2 File Picker, and the report said the file seemed to open correctly before the crash. The stack trace included gtk_main, and the issue was later verified as fixed. That is a narrow GTK2 example, not proof that every native dialog crash follows the same path.
How to tell where the fault
The first split is simple: does the crash happen before the dialog appears, while the dialog is open, or after the selection returns to the app? That timing often separates app logic bugs from dialog-layer failures. A crash during dialog creation points one way. A crash after selection points another.
Use the visible behavior as a clue, not a verdict. If the dialog opens, lists files, and responds to keyboard input, the app has already handed control to native UI code. If the app dies only after clicking Print, choosing a printer, or pressing Enter in the file chooser, the failure may be in the return path or in a platform component the dialog depends on.
App code signs
App code is a stronger suspect when the crash appears only in one program, only with one file type, or only after a specific import or export path. A custom preview, filter, or file-parsing hook can blow up after the dialog returns the chosen path.
Another clue is a stack trace that stays inside the app’s own frames and never reaches the dialog library. That suggests the dialog did its job and the app crashed while using the selected file, printer, or shared target.
Dialog layer signs
The dialog layer is more likely when the same action breaks several apps that use the same native picker or print UI. A crash that follows an identical path in two unrelated programs often points to the shared UI layer, not app-specific logic.
If a stack trace points into the native UI library, that is a strong signal. On Linux, frames in GTK or GLib often matter more than the app name on the top line. The relevant question is which library handled the last visible interaction before the process died.
Desktop stack signs
Desktop stack issues show up when crashes vary by session type, desktop environment, or display system. GTK, GLib, X11, and Wayland paths can change how the dialog receives input and updates focus. That is why one desktop may crash while another works.
When a report mentions a GTK widget layer, a Linux desktop stack, or a crash in the system file chooser, the app may only be the messenger. The component that failed could sit beneath the app, inside the desktop UI path that the dialog uses.
File picker crash trigger matrix
This matrix groups the common triggers into one decision table. It keeps the first check focused on the layer most likely to fail, so support can avoid random reinstalls and start with the right component.
| Trigger | Likely failing layer | First verification step |
|---|---|---|
| Print dialog opens, then the app closes | Print UI path, printer backend, or app print hook | Try the same print flow from another app and note whether the crash appears before or after printer selection. |
| Share sheet opens, then the app exits | OS share sheet or share extension integration | Share a small local file to a different target and see whether the same share panel causes the fault. |
| File picker opens, then crashes on open or save | Native file chooser, file provider, or app callback after selection | Open the dialog and wait without selecting a file, then select the same file again to compare timing. |
| Typedown or search jumps to a file, then the picker dies | GTK2 file picker search path or widget event handling | Repeat the crash without typing letters and compare the result with typedown active. |
| Crash occurs only after pressing Enter on the chosen file | Return path from dialog to app logic | Use double-click, Enter, and the dialog button separately to see which action hands control back first. |
| Crash appears in one desktop but not another | GTK, GLib, X11, or Wayland-related desktop component | Test the same action in another desktop session or on a different display path. |
A common mistake is to switch to a different cloud account, tap a protected document, and open the share sheet before testing the app again. That hides the trigger. Change one variable at a time so the crash remains tied to the same action.
- Hold the trigger steady. Reproduce the crash with the same action: open, save, print, share, or typedown. Keep the same file name, printer, or share target when possible, because changing those variables can move the fault to a different layer.
- Separate dialog from return. Note whether the app dies before the dialog appears, while it is open, or after selection. A crash after the file appears selected often points to the return path, not the dialog’s first screen.
- Repeat without search input. If typedown triggers the fault, try opening the same picker and navigating without typing letters. That split helps distinguish a search/filter bug from a plain selection bug.
- Check one other app. Use another app that opens the same kind of native dialog. If both crash in the same place, the platform layer rises on the list. If only one app fails, the app’s own code is the likelier cause.
Why typedown can crash GTK file pickers
Typedown search in a file picker is not the same as selecting a file. It asks the GTK2 File Picker to jump or filter as letters are typed. In some crash reports, that search path is the trigger, and the file itself still appears to open correctly before the process dies.
That difference matters. If typing “r” or “re” into the picker is enough to cause a crash, the fault may be in the search handling path rather than the file-open callback. A bug in the typedown logic can break before the user presses the final open button.
The Linux report tied to this pattern said the crash happened when using typedown in the GTK2 File Picker. It also said Firefox could crash a few seconds later. That kind of delay fits a dialog-layer or event-loop problem in that specific report, where the app keeps running briefly before the bad state reaches gtk_main and fails.
Suppose a user opens a save dialog, types three letters to jump to a project file, and the dialog dies after the highlight moves to the target. If the same file opens through mouse selection but not through typedown, the search path is the first thing to inspect.
What stack traces can prove
A stack trace can show where the crash landed, even when the visible symptom points elsewhere. The most useful question is whether the last frames are in libgtk, in GLib, or in the app’s own symbols. That split tells you whether to blame the dialog layer or the program logic.
If the trace includes libgtk-x11-2.0.so.0 near the top and ends near gtk_main, the crash is likely inside the GTK event loop or one of its widgets. That does not prove the app is innocent, but it does shift attention toward the Linux desktop stack.
App frames matter too. If the trace moves from the dialog library into the app right after the file, printer, or share target is returned, the fault may be in the callback that processes that result. That is common when the app parses the selected file or prepares a print job immediately afterward.
Look for the last meaningful transition. A clean handoff from dialog code into app code often marks the boundary. If the crash happens before that boundary, the native UI is the stronger suspect. If it happens after, the app owns more of the blame.
Why Linux desktops fail differently
Linux desktop behavior varies because GTK, GLib, X11, and Wayland do not all handle focus, input, and native widget events the same way. A file chooser can behave one way under one desktop session and fail under another, even when the app binary is unchanged.
That is why Bugzilla reports that point to Core :: Widget: Gtk are valuable. They often show a platform-specific crash surface rather than an app-only bug. The same is true when the signature lands in a widget library instead of the program’s own code.
OBS Studio shows how the same general class can surface in different workflows. The OBS forums include a thread about crashes when opening a file or exporting, and another thread about selecting certain application windows to share causing a segfault. Those examples are not the same bug, but they are relevant because they involve the same kind of native file, export, and share dialogs that hand control to platform UI code.
On Linux, the question is often not “Does the app crash?” but “Which stack layer fails first?” Once that is answered, the next action becomes much clearer: app bug, desktop bug, or upstream widget bug.
Frequently asked questions
Why does an app crash when I open the system file picker?
The system file picker is native OS UI, so a crash there can come from the dialog layer, a desktop component, or the app’s callback after selection. If the picker opens, lists files, and then the app dies, the problem may be in the handoff from dialog to app rather than in the app’s main window.
Why does my app crash when I try to print or choose a printer?
Print dialogs use the same kind of native integration path as file pickers and share sheets. A printer backend, print preview widget, or app print hook can fail before or after the dialog returns. Compare the crash timing with another app to see whether the print path or the specific program is at fault.
Why does sharing a file make the app close unexpectedly?
Share sheets are OS-level UI, so a share extension or the platform’s sharing code can crash the app even when the app itself is stable. If the crash happens as soon as the share panel opens, the shared UI path is the first place to inspect, especially on systems with multiple share targets.
Can a buggy file picker in the OS crash the app, not the app itself?
Sometimes, yes. On platforms where the dialog runs closely with the host app, a buggy native file picker or related extension can bring down the app. On other platforms, the failure may stay inside the dialog process or component instead. That is why the stack trace and crash timing matter more than the symptom alone.
How do I tell if the crash is in the app or the system dialog?
Check when the crash starts, which action triggers it, and where the stack trace ends. Frames in libgtk or gtk_main point toward the dialog layer or desktop stack. Frames that stay inside the app after the dialog returns point toward app code. Reproduce the same action in another app to confirm the split.
What should I test if the crash happens in print, open, save, or share dialogs?
Test the same dialog without typedown, with a different file, and in another app that uses the same native UI. Then compare whether the crash happens before selection, on selection, or after return. That sequence tells you whether the bug sits in the dialog, the platform layer, or the app logic.