Details
Description
Application built for Android at crashes at startup on Sony Xperia Phablet
The crash is in the code (qsgatlastexture.cpp):
#ifdef QT_OPENGL_ES
#if defined(Q_OS_ANDROID) && !defined(Q_OS_ANDROID_NO_SDK)
QString *deviceName =
static_cast<QString *>(QGuiApplication::platformNativeInterface()->nativeResourceForIntegration("AndroidDeviceName"));
>>crash here>> static bool wrongfullyReportsBgra8888Support = deviceName->compare(QStringLiteral("samsung SM-T211"), Qt::CaseInsensitive) == 0
deviceName->compare(QStringLiteral("samsung SM-T210"), Qt::CaseInsensitive) == 0 |
---|
deviceName->compare(QStringLiteral("samsung SM-T215"), Qt::CaseInsensitive) == 0; #else static bool wrongfullyReportsBgra8888Support = false; #endif |
Crash reason: the deviceName pointer is null