Crash in "canvas" qml example during startup
Alexander Neundorf
neundorf at kde.org
Mon Mar 14 09:57:10 GMT 2022
On Montag, 14. März 2022 10:16:04 CET Alexander Neundorf wrote:
> On Montag, 14. März 2022 08:23:20 CET Johnny Jazeix wrote:
> > Hi,
> >
> > usually, crashes happened to me when the images size was not set or there
> > was a division by 0.
> > Maybe it's something equivalent here.
>
> Hmm, I'm just trying to run one of the "android-ready" examples from Qt, I
> would expect that they work. It also crashes if my main() doesn't actually
> do anything.
>
> Some more info:
> something at least already succeeded before:
>
> D : Gralloc Free w:1200, h:1920, f:0x1101, usage:0xb00,
> ui64Stamp:129462 line = 2376 D : Gralloc Free w:1200, h:1920,
> f:0x1101, usage:0xb00, ui64Stamp:129513 line = 2376 D : Gralloc
> Free w:1200, h:1920, f:0x1101, usage:0xb00, ui64Stamp:129462 line = 2376 D
> ip_monitor-525: fe80::1 dev wlan0 lladdr 4c:1b:86:33:c4:1e router STALE I
> QtCore : Start
> I Qt : qt started
>
> Then there are some other error messages which don't look good:
>
> W project.exampl: Accessing hidden field Landroid/graphics/drawable/
> GradientDrawable$GradientState;->mShape:I (greylist-max-p, reflection,
> denied) W System.err: java.lang.NoSuchFieldException: mShape
> 0W System.err: at java.lang.Class.getField(Class.java:1604)
> W System.err: at
> org.qtproject.qt5.android.ExtractStyle.getGradientDrawable(ExtractStyle.java
> :672) W System.err: at
> org.qtproject.qt5.android.ExtractStyle.getDrawable(ExtractStyle.java: 1039)
>
> NullPointerExceptions also looks suspicious:
>
> W System.err: java.lang.NullPointerException: Attempt to invoke virtual
> method 'float java.lang.reflect.Field.getFloat(java.lang.Object)' on a null
> object reference W System.err: at
> org.qtproject.qt5.android.ExtractStyle.getRotateDrawable(ExtractStyle.java:7
> 12) W System.err: at
> org.qtproject.qt5.android.ExtractStyle.getDrawable(ExtractStyle.java: 1043)
> W System.err: at
> org.qtproject.qt5.android.ExtractStyle.getLayerDrawable(ExtractStyle.java:62
> 3) W System.err: at
> org.qtproject.qt5.android.ExtractStyle.getDrawable(ExtractStyle.java: 1031)
> W System.err: at
> org.qtproject.qt5.android.ExtractStyle.extractProgressBarInfo(ExtractStyle.j
> ava:1665)
>
> The malloc(4GB)-call and crash happen afterward.
>
>
> I'm also trying to get some logging output:
>
> int main(int argc, char* argv[])
> {
> __android_log_write(ANDROID_LOG_DEBUG, "MyTag", "******** hello log !\n");
> // QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
> QGuiApplication app(argc,argv);
this is probably also not good ?
I/hwservicemanager( 299): getTransport: Cannot find entry
android.hardware.graphics.mapper at 3.0::IMapper/default in either framework or device
manifest.
W/Gralloc3(25555): mapper 3.x is not supported
D/ (25555): Gralloc Register w:1200, h:1920, f:0x1101
My CMakeLists.txt looks like this:
cmake_minimum_required(VERSION 3.10)
project(qmlcanvas)
find_package(Qt5 COMPONENTS Qml Quick REQUIRED)
set(CMAKE_AUTOMOC ON)
set(srcs main.cpp)
qt5_add_resources(QT_RESOURCES canvas.qrc ../shared/shared.qrc)
add_executable(qmlcanvas ${srcs} ${QT_RESOURCES})
target_link_libraries(qmlcanvas Qt5::Qml Qt5::Quick log)
install(TARGETS qmlcanvas DESTINATION bin )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-android/attachments/20220314/7044e080/attachment-0001.htm>
More information about the KDE-Android
mailing list