Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
6.7.1
-
None
-
-
b640458cd (dev), 11afd18d3 (dev), 21031ef8a (dev), 0e35b1f80 (6.7), 209bdaa1f (6.7), 527eec228 (dev), 678a35302 (6.7)
Description
I was trying to create a QTexture3D from a Numpy array (I'm trying to create a raycasting viewer using Qt3D). So I'm using a Qt3DRender.QTextureImageData to do that. Since QTextureDataUpdate.setData needs Qt3DRender.QTextureImageDataPtr I'm creating it from my Qt3DRender.QTextureImageData. But it's not working. In my testings QTextureImageDataPtr is deleting my Qt3DRender.QTextureImageData. Running the sample code I attached here:
$ python test_QTextureImageDataPtr.py ... fE\x7f\x91?\x17j\x1d\xbf@\x0f\xed\xbe\xd6g\xd1?"\xb6\x8a?\xb8\xd4\xcc\xbfhn\x8b\xbf"\x19\x17\xc0\xe4Ub\xbfc\x8e\xa1\xbe\x00\x9c=\xbfjn\xa2\xbe9\xa6\xcb>' Traceback (most recent call last): File "/var/home/thiago/Sources/qt3d_raycasting/test_QTextureImageDataPtr.py", line 23, in <module> print(texture_image_data.data(0, 0, 0)) # not possible to print because RuntimeError: Internal C++ object (PySide6.Qt3DRender.Qt3DRender.QTextureImageData) already deleted. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: Internal C++ object (PySide6.Qt3DRender.Qt3DRender.QTextureImageData) already deleted.
It seems that QTextureImageDataPtr is deleting the QTextureImageData
Attachments
For Gerrit Dashboard: PYSIDE-2768 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
564279,8 | pyi: Fix smart pointer signatures | dev | pyside/pyside-setup | Status: MERGED | +2 | +1 |
564284,2 | pyi: Disable lazy loading for generation | dev | pyside/pyside-setup | Status: ABANDONED | 0 | 0 |
564507,8 | WIP: shiboken6: Extract a helper for determining a smart pointer instantiation target lang name | dev | pyside/pyside-setup | Status: DEFERRED | -2 | 0 |
564528,11 | Fix lazy loading of smart pointers | dev | pyside/pyside-setup | Status: MERGED | +2 | +1 |
564538,3 | WIP pyi: Fix smart pointer signatures | dev | pyside/pyside-setup | Status: ABANDONED | -2 | 0 |
565028,2 | WIP: Fix lazy loading of smart pointers in namespaces (subtypes), approach 1 | dev | pyside/pyside-setup | Status: ABANDONED | -2 | 0 |
565549,8 | shiboken6: Fix type names of smart pointers in namespaces in the cppApi array | dev | pyside/pyside-setup | Status: MERGED | +2 | +1 |
565916,2 | shiboken6: Fix type names of smart pointers in namespaces in the cppApi array | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
565917,2 | pyi: Fix smart pointer signatures | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
567118,3 | Fix non-unity build | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
567141,3 | Fix non-unity build | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |