Skip to content

226 bug indexerror crashes app#261

Merged
rodolakis merged 4 commits into
mainfrom
226-bug-indexerror-crashes-app
Jan 5, 2026
Merged

226 bug indexerror crashes app#261
rodolakis merged 4 commits into
mainfrom
226-bug-indexerror-crashes-app

Conversation

@rodolakis

@rodolakis rodolakis commented Jan 5, 2026

Copy link
Copy Markdown
Collaborator

Handle dimensions with empty motor lists by using 'time' as fallback axis signal instead of raising IndexError.
- Catch exceptions in stream_data() and force_refresh_stream_data() and log them
- Catch exceptions in to_datasets() and get_field_array(), display in status bar and log them
- Calculate page size dynamically based on number of visible whole rows in table
- Auto-update page size when table is resized (with debouncing)
- Remove combobox setup and signal connections
@rodolakis rodolakis self-assigned this Jan 5, 2026
@rodolakis rodolakis linked an issue Jan 5, 2026 that may be closed by this pull request
@prjemian prjemian moved this to Review in GemViz initial release Jan 5, 2026
@prjemian

prjemian commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

I've got problems (#251 (comment)) trying to evaluate against #251.

@prjemian

prjemian commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

Page sizing works!

@prjemian

prjemian commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

Confirmed that I can't filter for scan ID 1258 in the ht_hedm catalog. Same No runs problem. Seems to be a blocker.

Can you reproduce this problem with filtering? You could try the code from my conda env:

conda run -n /home/beams/JEMIAN/.conda/envs/gemviz gemviz &

@rodolakis rodolakis requested a review from prjemian January 5, 2026 19:24
@rodolakis

rodolakis commented Jan 5, 2026

Copy link
Copy Markdown
Collaborator Author

I was able to confirm that scan ID 1258 in the ht_hedm catalog works with the fix using a downgraded conda environment (with tiled==0.1.6, see #253). That is the only way to get the filtering to work with the otz tiled server (from what I can tell).

@prjemian

prjemian commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

app tests

#226: No crash, and it plots

image

#251: no crash, run found and selected, no crash, received 405 error as explained

#232 page size controlled by table height, as expected

@prjemian prjemian left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rodolakis rodolakis merged commit c679147 into main Jan 5, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from Review to Done in GemViz initial release Jan 5, 2026
@rodolakis rodolakis deleted the 226-bug-indexerror-crashes-app branch January 5, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Error reading data for mono_thf2: 405: Method Not Allowed Page size set by number of rows in view? BUG: IndexError crashes app

2 participants