GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — update pygfx pin by kushalkolar · Pull Request #939 · fastplotlib/fastplotlib

Conversation

@kushalkolar

@kushalkolar kushalkolar commented Nov 12, 2025

Copy link
Copy Markdown
Member

@almarklein curious what exactly the new lower bounds on wgpu and rendercanvas do

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kushalkolar
update pygfx pin
57cbade
@kushalkolar
kushalkolar requested a review from clewis7 as a code owner November 12, 2025 09:17
@almarklein

almarklein commented Nov 12, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Basically make sure that imgui keeps working.

Longer answer: we made changes in the latest rendercanvas and wgpu. The changes to rendercanvas were meant to be compatible with earlier versions of wgpu, but they were not for the imgui adapter. So wgpu-py was updated to fix that, but pygfx 0.15.0 has an upper bound on wgpu, so 😕

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kushalkolar

kushalkolar commented Nov 12, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

Doesn't seem to be related to imgui, the non imgui regen screenshots is also failing with nans 🤔. Any chance you could take a look?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@almarklein

almarklein commented Nov 12, 2025

Copy link
Copy Markdown
Collaborator

Odd, it does not seem to be a problem for PyGfx ...

I have zeroes in on the problem - it seems related to some of the size-refactoring applied recently in rendercanvas. It looks like context.get_current_texture() is called before the canvas updated the size, so the returned texture is just one pixel.

I need to go now, but will work on a solution this evening / tomorrow.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@almarklein
Fix screenshot logic
8d64bf9
@almarklein

almarklein commented Nov 13, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Ok, so rendercanvas kindof assumes that there will be no rendering outside of a draw event. But the logic to take screenshots does do that. The recent refactoring in rendercanvas apparently made is less resilient to that.

Let's fix that in both places; make FPL not render outside of a draw event, and make rendercanvas resilient for when it does happen.

Remaining errors:

=========================== short test summary info ============================
FAILED examples/notebooks/test_gc.ipynb::test_gc.ipynb - ValueError: extent x-range must be non-negative: [0. 0. 0. 0.]
FAILED examples/notebooks/quickstart.ipynb::quickstart.ipynb - ValueError: extent x-range must be non-negative: [0. 0. 0. 0.]

Plus the doc-gallery errors; these actually also happen at the Pygfx repo.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Nov 14, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

📚 Docs preview built and uploaded! https://www.fastplotlib.org/ver/update-pygfx-pin

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@almarklein
new pin
59e5ffc
@almarklein

almarklein commented Nov 14, 2025

Copy link
Copy Markdown
Collaborator

Looks like the upstream fixes did the trick!

kushalkolar reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kushalkolar

kushalkolar commented Nov 14, 2025

Copy link
Copy Markdown
Member Author

@clewis7 gtg!

Thanks @almarklein !! 🥳

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kushalkolar kushalkolar mentioned this pull request Nov 14, 2025
better plot scaling logic #938
Merged
clewis7
clewis7 approved these changes Nov 14, 2025
View reviewed changes
@clewis7
clewis7 merged commit bd5101e into main Nov 14, 2025
36 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@clewis7
clewis7 deleted the update-pygfx-pin branch November 14, 2025 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@clewis7 clewis7 clewis7 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@kushalkolar @almarklein @clewis7
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.