Skip to content

Windows Crash fixes#125

Closed
KWWyatt wants to merge 22 commits into
kewh5868:mainfrom
KWWyatt:main
Closed

Windows Crash fixes#125
KWWyatt wants to merge 22 commits into
kewh5868:mainfrom
KWWyatt:main

Conversation

@KWWyatt
Copy link
Copy Markdown
Contributor

@KWWyatt KWWyatt commented May 26, 2026

file handling adjustments to fix crashing at different steps.

KWWyatt and others added 22 commits May 13, 2026 15:46
…progress-updates

Marshal project-load progress updates to the GUI thread via Qt signal/slot
…-crash

Fix/project load threaded progress crash
This is needed to prevent crashing upon project loading.
Make ExperimentalDataHeaderDialog size itself relative to the available screen, cap max size, and relax widgets that could inflate minimum width/height (long file path label and preview box wrapping/height). Also add a regression test for long-path/long-line content and screen constraints.
…aheaderdialog

Constrain ExperimentalDataHeaderDialog to screen bounds
Make ExperimentalDataHeaderDialog size-aware using available screen geometry, wrap long file paths and preview text, and lower preview minimum height so long content cannot force oversized minimum dimensions. Add a regression test that validates the safer wrapping behavior and screen-bounded maximum size.
…aheaderdialog

Fix oversized ExperimentalDataHeaderDialog on experimental .txt load
Constrain header dialog child size hints so long labels and combo entries do not inflate minimum tracking size on Windows. Improve experimental header/column detection to ignore metadata comment lines while still accepting commented real headers like '# q I(q)'. Add regression coverage for metadata comment parsing and dialog size policies.
…aheaderdialog-snudgo

Improve experimental data header/column parsing and make header dialog UI responsive
When a commented line includes metadata and a trailing inline header fragment, extract the header-like segment instead of tokenizing metadata words as column labels. Add regression coverage for '# ... factor: 1.0 # q_(Å⁻¹) I(q)' style inputs.
…aheaderdialog-x89ihv

Ignore metadata comments in experimental data parsing and improve header dialog sizing
Load numeric data through a UTF-8 text stream with errors='replace' instead of letting numpy decode the file path with platform-default codecs. This prevents charmap decode crashes from metadata bytes while preserving numeric row parsing. Add regression coverage for comments containing invalid UTF-8 bytes.
…aheaderdialog-mncjqe

Improve experimental data parsing (metadata-aware) and tighten experimental-data dialog sizing
kewh5868 added a commit that referenced this pull request May 26, 2026
Incorporate the safe parts of PR #125 onto the up-to-date continuation branch. Preserve comment-header column detection for metadata-heavy experimental files and constrain the experimental data header dialog so long Windows paths do not oversized-crash the UI.

Co-authored-by: KWWyatt <117381914+KWWyatt@users.noreply.github.com>
@kewh5868
Copy link
Copy Markdown
Owner

Thanks for the Windows crash fixes. I pulled the safe parts of this into a fresh branch based on the current `main` baseline: `model-test-continuation`.

The incorporated commit is:

`2510447 fix(saxs): harden experimental data loading on Windows`

I kept the experimental data parsing and dialog-sizing fixes, then adjusted the implementation so pre-commit passes and so comment-header metadata is preserved even when `np.loadtxt` succeeds directly.

Validation on the cleaned branch:

- File-scoped pre-commit hooks passed.
- Focused SAXS UI/data-loading tests passed: 5 passed.

I’m going to merge via the cleaned continuation PR rather than merging this PR directly, so we can keep the history and pre-commit state clean

@kewh5868 kewh5868 closed this May 26, 2026
kewh5868 added a commit that referenced this pull request May 26, 2026
Incorporate the safe parts of PR #125 onto the up-to-date continuation branch. Preserve comment-header column detection for metadata-heavy experimental files and constrain the experimental data header dialog so long Windows paths do not oversized-crash the UI.

Co-authored-by: KWWyatt <117381914+KWWyatt@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants