Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Getting an ART error, Android, Bluetooth
QtWS25 Last Chance

Getting an ART error, Android, Bluetooth

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
artandroidbluetooth
4 Posts 2 Posters 2.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ala ala
    wrote on 31 Mar 2016, 09:51 last edited by
    #1

    I developed an app in Qt and it sometimes crashes. I get the following error:

    F/art (19932): art/runtime/runtime.cc:295] Dumping all threads without appropriate locks held: thread list lock mutator lock
    

    Do you have any suggestion why the app is not running correctly? How can I remove these crashes?

    The lines below is what I get when the crashes happen :

    Uruchamianie zdalnego procesu.I/ActivityManager(  871): Start proc 19932:org.qtproject.example.Waga_Przeplywowa/u0a850 for activity org.qtproject.example.Waga_Przeplywowa/org.qtproject.qt5.android.bindings.QtActivity
    I/art     (19932): Late-enabling -Xcheck:jni
    W/ResourceType(19932): Found multiple library tables, ignoring...
    W/ActivityThread(19932): Application org.qtproject.example.Waga_Przeplywowa can be debugged on port 8100...
    I/Qt      (19932): qt start
    I/Adreno-EGL(19932): <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_LA.BF.1.1.1_RB1.05.01.00.042.030_msm8974_LA.BF.1.1.1_RB1__release_AU ()
    I/Adreno-EGL(19932): OpenGL ES Shader Compiler Version: E031.25.03.06
    I/Adreno-EGL(19932): Build Date: 07/13/15 Mon
    I/Adreno-EGL(19932): Local Branch: mybranch11906725
    I/Adreno-EGL(19932): Remote Branch: quic/LA.BF.1.1.1_rb1.26
    I/Adreno-EGL(19932): Local Patches: NONE
    I/Adreno-EGL(19932): Reconstruct Branch: AU_LINUX_ANDROID_LA.BF.1.1.1_RB1.05.01.00.042.030 + 6151be1 + a1e0343 + 002d7d6 + 7d0e3f7 +  NOTHING
    D/OpenGLRenderer(19932): Use EGL_SWAP_BEHAVIOR_PRESERVED: true
    D/Atlas   (19932): Validating map...
    I/OpenGLRenderer(19932): Initialized EGL, version 1.4
    D/Qt      (19932): fontdatabases\basic\qbasicfontdatabase.cpp:239 (static QStringList QBasicFontDatabase::addTTFile(const QByteArray&, const QByteArray&, QSupportedWritingSystems*)): FT_New_Face failed with index 0 : 90
    D/OpenGLRenderer(19932): Enabling debug mode 0
    D/Qt      (19932): ../waga_przeplywowa/okno_glowne.cpp:14 (Okno_glowne::Okno_glowne(QWidget*)):
    D/Qt      (19932):
    D/Qt      (19932): Wersja do debugowania.
    D/Qt      (19932):
    D/Qt      (19932):
    D/Qt      (19932): ../waga_przeplywowa/okno_glowne.cpp:15 (Okno_glowne::Okno_glowne(QWidget*)): Program waga_przeplywowa,  data kompilacji: Mar 30 2016, 14:42:52.
    D/Qt      (19932):
    I/Timeline(19932): Timeline: Activity_idle id: android.os.BinderProxy@2555e83f time:2661889
    W/Qt      (19932): kernel\qobject.cpp:2694 (static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)): QObject::connect: Incompatible sender/receiver arguments
    W/Qt      (19932):         QBluetoothLocalDevice::pairingFinished(QBluetoothAddress,QBluetoothLocalDevice::Pairing) --> Bluetooth::pairingDone(QBluetoothLocalDevice::Pairing)
    W/Qt      (19932): kernel\qobject.cpp:2694 (static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)): QObject::connect: Incompatible sender/receiver arguments
    W/Qt      (19932):         QBluetoothLocalDevice::pairingFinished(QBluetoothAddress,QBluetoothLocalDevice::Pairing) --> Bluetooth::pairingDone(QBluetoothLocalDevice::Pairing)
    W/Qt      (19932): kernel\qobject.cpp:777 (bool check_parent_thread(QObject*, QThreadData*, QThreadData*)): QObject: Cannot create children for a parent that is in a different thread.
    W/Qt      (19932): (Parent is QBluetoothServiceDiscoveryAgent(0xb4b38e00), parent's thread is QThread(0xb4803fd8), current thread is Bluetooth(0xb4b490a0)
    W/Qt      (19932): qbluetoothservicediscoveryagent_android.cpp:188 (void QBluetoothServiceDiscoveryAgentPrivate::start(const QBluetoothAddress&)): qt.bluetooth.android: Cannot retrieve SDP UUIDs for "PAWEŁ" ( "AC:D1:B8:CD:57:92" )
    F/art     (19932): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: can't call java.lang.String java.lang.String.toString() on instance of android.os.ParcelUuid
    F/art     (19932): art/runtime/check_jni.cc:65]     in call to CallObjectMethodV
    F/art     (19932): art/runtime/check_jni.cc:65] "QtThread-18446744072451751936" prio=5 tid=15 Runnable
    F/art     (19932): art/runtime/check_jni.cc:65]   | group="main" sCount=0 dsCount=0 obj=0x12d3b1c0 self=0xb49d0800
    F/art     (19932): art/runtime/check_jni.cc:65]   | sysTid=19975 nice=0 cgrp=default sched=0/0 handle=0xb5078000
    F/art     (19932): art/runtime/check_jni.cc:65]   | state=R schedstat=( 5680987765 1698293807 5170 ) utm=516 stm=52 core=0 HZ=100
    F/art     (19932): art/runtime/check_jni.cc:65]   | stack=0xaeb04000-0xaeb06000 stackSize=1012KB
    F/art     (19932): art/runtime/check_jni.cc:65]   | held mutexes= "mutator lock"(shared held)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #00 pc 0000484c  /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #01 pc 00003031  /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #02 pc 00242f8b  /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*, BacktraceMap*)+70)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #03 pc 002276af  /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, BacktraceMap*) const+154)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #04 pc 000b006d  /system/lib/libart.so (art::JniAbort(char const*, char const*)+584)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #05 pc 000b07b5  /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+60)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #06 pc 000b1543  /system/lib/libart.so (art::ScopedCheck::CheckVirtualMethod(_jobject*, _jmethodID*)+250)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #07 pc 000b805b  /system/lib/libart.so (art::CheckJNI::CallObjectMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+70)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #08 pc 001e96e5  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QJNIObjectPrivate::callObjectMethod(char const*, char const*, std::__va_list) const+68)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #09 pc 001e9747  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QJNIObjectPrivate::callObjectMethod(char const*, char const*, ...) const+18)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #10 pc 000087dd  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5AndroidExtras.so (QAndroidJniObject QAndroidJniObject::callObjectMethod<_jstring*>(char const*) const+12)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #11 pc 00010aef  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Bluetooth.so (???)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #12 pc 0001634f  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Bluetooth.so (???)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #13 pc 0000d403  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Bluetooth.so (???)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #14 pc 00016345  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Bluetooth.so (???)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #15 pc 0000d403  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Bluetooth.so (???)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #16 pc 0000d463  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Bluetooth.so (???)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #17 pc 001ca7ad  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QMetaCallEvent::placeMetaCall(QObject*)+64)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #18 pc 001cd04b  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QObject::event(QEvent*)+534)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #19 pc 000d62ef  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Widgets.so (QApplicationPrivate::notify_helper(QObject*, QEvent*)+104)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #20 pc 000d94e7  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Widgets.so (QApplication::notify(QObject*, QEvent*)+3430)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #21 pc 001ad113  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QCoreApplication::notifyInternal(QObject*, QEvent*)+62)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #22 pc 001af4c1  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)+336)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #23 pc 001e35dd  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+28)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #24 pc 0004fcdd  /data/data/org.qtproject.example.Waga_Przeplywowa/qt-reserved-files/plugins/platforms/android/libqtforandroid.so (???)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #25 pc 001ac1bb  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+14)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #26 pc 001ac8b9  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+232)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #27 pc 001b13a1  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QCoreApplication::exec()+84)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #28 pc 0001c824  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libWaga_Przeplywowa.so (main+168)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #29 pc 00018149  /data/data/org.qtproject.example.Waga_Przeplywowa/qt-reserved-files/plugins/platforms/android/libqtforandroid.so (???)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #30 pc 0001402b  /system/lib/libc.so (__pthread_start(void*)+30)
    F/art     (19932): art/runtime/check_jni.cc:65]   native: #31 pc 00011f73  /system/lib/libc.so (__start_thread+6)
    F/art     (19932): art/runtime/check_jni.cc:65]   (no managed stack frames)
    F/art     (19932): art/runtime/check_jni.cc:65]
    F/art     (19932): art/runtime/runtime.cc:295] Runtime aborting...
    F/art     (19932): art/runtime/runtime.cc:295] Aborting thread:
    F/art     (19932): art/runtime/runtime.cc:295] "QtThread-18446744072451751936" prio=5 tid=15 Native
    F/art     (19932): art/runtime/runtime.cc:295]   | group="" sCount=0 dsCount=0 obj=0x12d3b1c0 self=0xb49d0800
    F/art     (19932): art/runtime/runtime.cc:295]   | sysTid=19975 nice=0 cgrp=default sched=0/0 handle=0xb5078000
    F/art     (19932): art/runtime/runtime.cc:295]   | state=R schedstat=( 5701778651 1700454223 5187 ) utm=518 stm=52 core=0 HZ=100
    F/art     (19932): art/runtime/runtime.cc:295]   | stack=0xaeb04000-0xaeb06000 stackSize=1012KB
    F/art     (19932): art/runtime/runtime.cc:295]   | held mutexes= "abort lock" "mutator lock"(shared held)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #00 pc 0000484c  /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #01 pc 00003031  /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #02 pc 00242f8b  /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*, BacktraceMap*)+70)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #03 pc 002276af  /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, BacktraceMap*) const+154)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #04 pc 0021765d  /system/lib/libart.so (art::AbortState::DumpThread(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Thread*)+24)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #05 pc 0021790d  /system/lib/libart.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+436)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #06 pc 00217ae1  /system/lib/libart.so (art::Runtime::Abort()+72)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #07 pc 000a654b  /system/lib/libart.so (art::LogMessage::~LogMessage()+1322)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #08 pc 000b025b  /system/lib/libart.so (art::JniAbort(char const*, char const*)+1078)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #09 pc 000b07b5  /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+60)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #10 pc 000b1543  /system/lib/libart.so (art::ScopedCheck::CheckVirtualMethod(_jobject*, _jmethodID*)+250)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #11 pc 000b805b  /system/lib/libart.so (art::CheckJNI::CallObjectMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+70)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #12 pc 001e96e5  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QJNIObjectPrivate::callObjectMethod(char const*, char const*, std::__va_list) const+68)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #13 pc 001e9747  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QJNIObjectPrivate::callObjectMethod(char const*, char const*, ...) const+18)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #14 pc 000087dd  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5AndroidExtras.so (QAndroidJniObject QAndroidJniObject::callObjectMethod<_jstring*>(char const*) const+12)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #15 pc 00010aef  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Bluetooth.so (???)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #16 pc 0001634f  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Bluetooth.so (???)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #17 pc 0000d403  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Bluetooth.so (???)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #18 pc 00016345  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Bluetooth.so (???)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #19 pc 0000d403  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Bluetooth.so (???)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #20 pc 0000d463  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Bluetooth.so (???)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #21 pc 001ca7ad  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QMetaCallEvent::placeMetaCall(QObject*)+64)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #22 pc 001cd04b  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QObject::event(QEvent*)+534)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #23 pc 000d62ef  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Widgets.so (QApplicationPrivate::notify_helper(QObject*, QEvent*)+104)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #24 pc 000d94e7  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Widgets.so (QApplication::notify(QObject*, QEvent*)+3430)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #25 pc 001ad113  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QCoreApplication::notifyInternal(QObject*, QEvent*)+62)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #26 pc 001af4c1  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)+336)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #27 pc 001e35dd  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+28)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #28 pc 0004fcdd  /data/data/org.qtproject.example.Waga_Przeplywowa/qt-reserved-files/plugins/platforms/android/libqtforandroid.so (???)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #29 pc 001ac1bb  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+14)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #30 pc 001ac8b9  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+232)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #31 pc 001b13a1  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libQt5Core.so (QCoreApplication::exec()+84)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #32 pc 0001c824  /data/app/org.qtproject.example.Waga_Przeplywowa-1/lib/arm/libWaga_Przeplywowa.so (main+168)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #33 pc 00018149  /data/data/org.qtproject.example.Waga_Przeplywowa/qt-reserved-files/plugins/platforms/android/libqtforandroid.so (???)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #34 pc 0001402b  /system/lib/libc.so (__pthread_start(void*)+30)
    F/art     (19932): art/runtime/runtime.cc:295]   native: #35 pc 00011f73  /system/lib/libc.so (__start_thread+6)
    F/art     (19932): art/runtime/runtime.cc:295]   (no managed stack frames)
    F/art     (19932): art/runtime/runtime.cc:295] Dumping all threads without appropriate locks held: thread list lock mutator lock
    F/art     (19932): art/runtime/runtime.cc:295]
    F/libc    (19932): Fatal signal 6 (SIGABRT), code -6 in tid 19975 (QtThread-184467)
    I/DEBUG   (  332): pid: 19932, tid: 19975, name: QtThread-184467  >>> org.qtproject.example.Waga_Przeplywowa <<<
    E/lowmemorykiller(  287): Error writing /proc/19932/oom_score_adj; errno=22
    I/Zygote  (  360): Process 19932 exited due to signal (6)
    I/ActivityManager(  871): Process org.qtproject.example.Waga_Przeplywowa (pid 19932) has died
    
    
    "org.qtproject.example.Waga_Przeplywowa" zakończył pracę.
    

    I think it is something connected to bluetooth.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 31 Mar 2016, 11:41 last edited by
      #2

      The actual error is:
      W/Qt (19932): qbluetoothservicediscoveryagent_android.cpp:188 (void QBluetoothServiceDiscoveryAgentPrivate::start(const QBluetoothAddress&)): qt.bluetooth.android: Cannot retrieve SDP UUIDs for "PAWEŁ" ( "AC:D1:B8:CD:57:92" )
      F/art (19932): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: can't call java.lang.String java.lang.String.toString() on instance of android.os.ParcelUuid
      F/art (19932): art/runtime/check_jni.cc:65] in call to CallObjectMethodV

      It looks like you try to call toString() on android.os.ParcelUuid which does not have such a method.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Ala ala
        wrote on 31 Mar 2016, 15:47 last edited by
        #3

        You have right. It repeat in all logs:

        F/art     (29577): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: can't call java.lang.String java.lang.String.toString() on instance of android.os.ParcelUuid
        F/art     (29577): art/runtime/check_jni.cc:65]     in call to CallObjectMethodV
        

        Do you have suggestion what i can change?

        Normally program goes correctly, only sometimes this problem occurs.
        The lines below is how i handle discovered service:

        void Bluetooth::serviceDiscovered(const QBluetoothServiceInfo &serviceInfo)
        {
            if (serviceInfo.serviceName().isEmpty())
                return;
        
            QBluetoothAddress address = serviceInfo.device().address();
            QString name = serviceInfo.device().name();
        
            QString nazwa_Waga = "WagaPrze";
            QString label = QString("%1 %2").arg(address.toString()).arg(name);
            if(findWagaOnList(label) == -1 && name == nazwa_Waga)
            {
                Waga_Form* newStab = new Waga_Form();
                newStab->stab.label = label;
                newStab->stab.address = address;
                newStab->stab.serviceInfo = serviceInfo;
        
                QBluetoothLocalDevice::Pairing pairingStatus =
                        localDevice->pairingStatus(address);
                if (pairingStatus == QBluetoothLocalDevice::Paired ||
                        pairingStatus == QBluetoothLocalDevice::AuthorizedPaired )
                    newStab->stab.paired = true;
        
                list.push_back(newStab);
            }
        }
        
        1 Reply Last reply
        0
        • A Offline
          A Offline
          Ala ala
          wrote on 1 Apr 2016, 09:22 last edited by
          #4

          It Looks like this problem appear after I start QBluetoothServiceDiscoveryAgent->start and before The program enter to QBluetoothServiceDiscoveryAgent->serviceDiscovered.

          It means that this method (java.lang.String java.lang.String.toString()) is call in QBluetoothServiceDiscoveryAgent.

          I updated SDK and nothing has changed.

          Should i write this in java, becouse with QBluetoothServiceDiscoveryAgent is something wrong?

          1 Reply Last reply
          0

          4/4

          1 Apr 2016, 09:22

          • Login

          • Login or register to search.
          4 out of 4
          • First post
            4/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved