• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vispy / vispy / 15131877268
75%

Build:
DEFAULT BRANCH: main
Ran 20 May 2025 07:50AM UTC
Jobs 4
Files 345
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 May 2025 07:47AM UTC coverage: 74.897% (-0.002%) from 74.899%
15131877268

push

github

web-flow
Only use last 2 event dimensions for arcball calculation (#2677)

When using arcball camera and pressing shift to switch from rotating
panning, if shift is released before the drag is finished, one receives
this traceback:


```py
Traceback (most recent call last):
  File ".../lib/site-packages/vispy/util/event.py", line 469, in _invoke_callback
    cb(event)
  File ".../lib/site-packages/napari/_vispy/camera.py", line 244, in viewbox_mouse_event
<class 'TypeError'> SceneMouseEvent type 'mouse_move' has no scale <traceback object at 0x000002867B3AFE00>
    super().viewbox_mouse_event(event)
  File ".../lib/site-packages/vispy/scene/cameras/perspective.py", line 233, in viewbox_mouse_event
    self._update_rotation(event)
  File ".../lib/site-packages/vispy/scene/cameras/arcball.py", line 65, in _update_rotation
    Quaternion(*_arcball(self._event_value, wh)) *
  File ".../lib/site-packages/vispy/scene/cameras/arcball.py", line 101, in _arcball
    x, y = xy
ValueError: too many values to unpack (expected 2)

[...]
```


This is because in that specific moment, the event received will have a
3dimensional position instead of a 2D canvas position. I simply copied
how the `p2` wa taking the last 2 dims, and everything works fine.


Related issues:

-
https://forum.image.sc/t/sometimes-the-3d-viewer-of-napari-crashes-when-moving-the-center-of-the-camera/112571
- https://github.com/napari/napari/issues/6806

5871 of 10619 branches covered (55.29%)

0 of 1 new or added line in 1 file covered. (0.0%)

1 existing line in 1 file now uncovered.

24188 of 32295 relevant lines covered (74.9%)

2.45 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
52.5
-1.35% vispy/scene/cameras/arcball.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
52.5
-1.35% vispy/scene/cameras/arcball.py
Jobs
ID Job ID Ran Files Coverage
1 run-2 - 15131877268.1 20 May 2025 08:00AM UTC 345
74.15
2 run-3 - 15131877268.2 20 May 2025 08:00AM UTC 345
52.0
3 run-1 - 15131877268.3 20 May 2025 08:00AM UTC 345
46.68
4 run-4 - 15131877268.4 20 May 2025 08:00AM UTC 345
72.46
Source Files on build 15131877268
  • Tree
  • List 345
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 44432740 on github
  • Prev Build on main (#15112972814)
  • Next Build on main (#15189779805)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc