Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.8.0, 5.9.0 RC 2, 5.9.0, 5.9.1
-
None
-
Host: Mac OS 10.12.6
Tested devices: iPhone 4 iOS 9.3.5, iPhone Simulator iOS 11
Tested Qt versions: 5.8.0, 5.9.0, 5.9.1, 5.9.2
Description
Displaying a SpriteSequence crashes the app on iOS, but only if QtQuick.Particles 2.0 is imported.
This is a regression as the problem definitely did not occur Qt 5.4.
The crash seems to happen when the QML import scanner imports the library libparticlesplugin.prl (full path: /5.9/ios/qml/QtQuick/Particles.2/libparticlesplugin.prl).
Crash happens in QSGBatchRenderer::ShaderManager::prepareMaterial (qsgbatchrenderer.cpp line 150).
Backtrace: https://www.dropbox.com/s/8ikiur3mu369l48/Screenshot%202017-09-28%2003.24.13.png?dl=0
Locals: https://www.dropbox.com/s/j8j4axzx0wraxn0/Screenshot%202017-09-28%2003.32.46.png?dl=0
Minimal example:
- Removing the line "import QtQuick.Particles" makes it work without crashing
- Image used is Qt logo from http://brand.qt.io/downloads/ (though it crashes with any image)
import QtQuick 2.8
import QtQuick.Window 2.2
import QtQuick.Particles 2.0
Window {
visible: true
width: 640
height: 480
SpriteSequence {
width: 128
height: 128
anchors.centerIn: parent
goalSprite: "test"
Sprite {
name: "test"
frameWidth: 128
frameHeight: 128
frameCount: 1
source: "qt_logo_green_128x128px.png"
}
}
}