Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Immvision, segmentation fault when write zoom_pan_matrix in ImageParams #309

Open
aeudes opened this issue Jan 13, 2025 · 0 comments
Open

Comments

@aeudes
Copy link

aeudes commented Jan 13, 2025

Hello,
the following code works before 1.6.0 but raise a bad_cast exception after 1.6.0.
Test on wsl2, ubuntu 24.04 Noble.

from imgui_bundle import immvision  as iv
import numpy as np
params = iv.ImageParams()
print(params.zoom_pan_matrix,type(params.zoom_pan_matrix))
params.zoom_pan_matrix = np.eye(3)

With 1.5.2:

[[1. 0. 0.]
 [0. 1. 0.]
 [0. 0. 1.]] <class 'numpy.ndarray'>

With 1.6.0-1.6.2:

((1.0, 0.0, 0.0), (0.0, 1.0, 0.0), (0.0, 0.0, 1.0)) <class 'tuple'>
terminate called after throwing an instance of 'std::bad_cast'
  what():  std::bad_cast

I also note that the return type have changed between version.
I have not seen any breaking change on this params in release notes.

@aeudes aeudes changed the title In Immvision, ImageParams write zoom_pan_matrix In Immvision, segmentation fault when write zoom_pan_matrix in ImageParams Jan 13, 2025
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

No branches or pull requests

1 participant