Details
Description
We use QPaintedTextureImage in a Texture2D in our application and it worked just fine. Only the size of 256x256 triggered a crash.
The demo application crashes with a segmentation fault.
Old demo application: FooBar{.zip,.tar.bz2}
$ cmake --preset debug
$ cmake --build --preset debug
$ ./build/debug/FooBar
Segmentation fault (core dumped)
New even more minimal demo application: qtbug122613{.zip,.tar.bz2}
Extract archive, open CMakeLists.txt with QtCreator and run example.
The example app crashes. Change the width as explained below to get the app running.
Change source code to not crash the app
In main.qml in line 26 or 24 the width can be changed to e.g. 257 and the app doesn't crash anymore. The size of 256x256 seems to trigger something. The QPaintedTextureImage (Foobar.hpp) and the Texture2D (main.qml) aren't used in this example but crash the app.
This example shows a window with red background when it starts successfully.