Reg : Activating installed Qt/Qml application using agl-shell-protocols not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have taken alexa-viewer as a reference application and implemented a popup window using CMake. Popup window was appearing on top of the AGL home screen application without any issues, added one button on the popup window named as FullView. Implemented onReleased callback for the FullView button and called aglShell activate_app function call,

aglShell->activate_app(nullptr, application_id, nullptr);

But activation did not happen when I released the FullView button, from logs noticed some segmentation core dump issues. Please find the following debugging logs for more information,

Journalctl Logs :
----------------------
Jan 01 00:12:22 imx8mqevk afbd-parking-assist[945]: qml: AlertDialog FullView btn onPressed
Jan 01 00:12:22 imx8mqevk afbd-parking-assist[945]: qml: AlertDialog FullView btn onReleased
Jan 01 00:12:22 imx8mqevk afbd-parking-assist[945]: qml: alertDialog fullview btn clicked!
Jan 01 00:12:22 imx8mqevk afbd-parking-assist[945]: fullscreen_view:   fullview_flag:  1
Jan 01 00:12:22 imx8mqevk afbd-parking-assist[945]: fullview_flag == 1 TRUE
Jan 01 00:12:22 imx8mqevk afbd-parking-assist[945]: Activating Radar Application
Jan 01 00:12:22 imx8mqevk afbd-parking-assist[945]: activate_app function call
Jan 01 00:12:24 imx8mqevk afbd-parking-assist[945]: qml: AlertDialog FullView btn onPressed
Jan 01 00:12:24 imx8mqevk afbd-parking-assist[945]: qml: AlertDialog FullView btn onReleased
Jan 01 00:12:24 imx8mqevk afbd-parking-assist[945]: qml: alertDialog fullview btn clicked!
Jan 01 00:12:24 imx8mqevk afbd-parking-assist[945]: fullscreen_view:   fullview_flag:  1
Jan 01 00:12:24 imx8mqevk afbd-parking-assist[945]: fullview_flag == 1 TRUE
Jan 01 00:12:24 imx8mqevk audit[945]: ANOM_ABEND auid=4294967295 uid=1001 gid=1001 ses=4294967295 subj=User::App::parking-assist pid=945 comm="parking-assist" exe="/var/local/lib/afm/applications/parking-assist/bin/parking-assist" sig=11 res=1
Jan 01 00:12:24 imx8mqevk kernel: audit: type=1701 audit(744.939:6): auid=4294967295 uid=1001 gid=1001 ses=4294967295 subj=User::App::parking-assist pid=945 comm="parking-assist" exe="/var/local/lib/afm/applications/parking-assist/bin/parking-assist" sig=11 res=1
Jan 01 00:12:24 imx8mqevk systemd[1]: Created slice system-systemd\x2dcoredump.slice.
Jan 01 00:12:24 imx8mqevk systemd[1]: Started Process Core Dump (PID 1105/UID 0).
Jan 01 00:12:25 imx8mqevk systemd[1]: afm-service-parking-assist--1.0-57881a9-dirty--main@1001.service: Succeeded.

GDB Logs
--------------
imx8mqevk:/home# gdb /usr/local/lib/afm/applications/parking-assist/bin/parking-assist
GNU gdb (GDB) 9.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-agl-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/lib/afm/applications/parking-assist/bin/parking-assist...
(gdb) run
Starting program: /var/local/lib/afm/applications/parking-assist/bin/parking-assist
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Application  launcher  created
[New Thread 0xfffff2f730e0 (LWP 1491)]
[Detaching after fork from child process 1492]
[New Thread 0xffffebfff0e0 (LWP 1493)]
[New Thread 0xffffeb7fe0e0 (LWP 1494)]
[Thread 0xffffeb7fe0e0 (LWP 1494) exited]
[Thread 0xffffebfff0e0 (LWP 1493) exited]
[New Thread 0xffffebfff0e0 (LWP 1495)]
[New Thread 0xffffeb7fe0e0 (LWP 1496)]
[New Thread 0xffffeaffd0e0 (LWP 1497)]
[New Thread 0xffffea7fc0e0 (LWP 1498)]
[New Thread 0xffffe9ffb0e0 (LWP 1499)]
[Thread 0xffffe9ffb0e0 (LWP 1499) exited]
[Thread 0xffffea7fc0e0 (LWP 1498) exited]
[New Thread 0xffffea7fc0e0 (LWP 1500)]
[New Thread 0xffffe9ffb0e0 (LWP 1501)]
[New Thread 0xffffe97fa0e0 (LWP 1502)]
[New Thread 0xffffe8f5e0e0 (LWP 1503)]
[New Thread 0xffffd3fff0e0 (LWP 1504)]
[New Thread 0xffffd37fe0e0 (LWP 1505)]
[New Thread 0xffffd1b150e0 (LWP 1506)]
[New Thread 0xffffd13140e0 (LWP 1507)]
[New Thread 0xffffc37fe0e0 (LWP 1509)]
[New Thread 0xffffc3fff0e0 (LWP 1508)]
activate_app function call
[New Thread 0xffffc2ffd0e0 (LWP 1510)]
Application  parking-assist  created
app_id  parking-assist  app_state  0  app_role  0
[Thread 0xffffe8f5e0e0 (LWP 1503) exited]
qml: onActiveFocusControlChanged
qml: AlertDialog FullView btn onPressed
qml: AlertDialog FullView btn onReleased
qml: alertDialog fullview btn clicked!
fullscreen_view:   fullview_flag:  1
fullview_flag == 1 TRUE
Activating Radar Application
activate_app function call
qml: AlertDialog FullView btn onPressed
qml: AlertDialog FullView btn onReleased
qml: alertDialog fullview btn clicked!
fullscreen_view:   fullview_flag:  1
fullview_flag == 1 TRUE

Thread 1 "parking-assist" received signal SIGSEGV, Segmentation fault.
0x0000fffff7c7f7fc in __GI___pthread_mutex_lock (mutex=0x656c41203a6c6da9) at pthread_mutex_lock.c:67
67    pthread_mutex_lock.c: No such file or directory.
(gdb) backtrace
#0  0x0000fffff7c7f7fc in __GI___pthread_mutex_lock (mutex=0x656c41203a6c6da9) at pthread_mutex_lock.c:67
#1  0x0000fffff7d8dfd0 in afb_wsj1_call_s () from /usr/lib/libafbwsc.so.1
#2  0x0000fffff7d8e1cc in afb_wsj1_call_j () from /usr/lib/libafbwsc.so.1
#3  0x0000fffff7dca2c8 in LibHomeScreen::call(char const*, json_object*) () from /usr/lib/libhomescreen.so.0.1
#4  0x0000aaaaaaab3f70 in Shell::fullscreen_view (this=0xaaaaaac264e0, fullview_flag=<optimized out>)
    at /opt/agl-sdk/11.91.0+snapshot-aarch64/sysroots/aarch64-agl-linux/usr/include/c++/9.3.0/bits/basic_string.h:2300
#5  0x0000aaaaaaab0a54 in Shell::qt_static_metacall (_o=_o@entry=0xaaaaaac264e0, _c=_c@entry=QMetaObject::InvokeMetaMethod,
    _id=_id@entry=1, _a=_a@entry=0xffffffffa748)
    at /home/manikandan/QT_apps_workspace/radar_popup/build_popup/app/parking-assist_autogen/EWIEGA46WW/moc_shell-desktop.cpp:106
#6  0x0000aaaaaaab1078 in Shell::qt_metacall (this=0xaaaaaac264e0, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xffffffffa748)
    at /home/manikandan/QT_apps_workspace/radar_popup/build_popup/app/parking-assist_autogen/EWIEGA46WW/moc_shell-desktop.cpp:172
#7  0x0000fffff7aad928 in ?? () from /usr/lib/libQt5Qml.so.5
#8  0x0000fffff7988738 in ?? () from /usr/lib/libQt5Qml.so.5
#9  0x0000fffff798a6e0 in ?? () from /usr/lib/libQt5Qml.so.5
#10 0x0000fffff798b2f8 in QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const ()
   from /usr/lib/libQt5Qml.so.5
#11 0x0000fffff79a8298 in ?? () from /usr/lib/libQt5Qml.so.5
#12 0x0000fffff79aa198 in ?? () from /usr/lib/libQt5Qml.so.5
#13 0x0000fffff793ed7c in QV4::Function::call(QV4::Value const*, QV4::Value const*, int, QV4::ExecutionContext const*) ()
   from /usr/lib/libQt5Qml.so.5
#14 0x0000fffff7aca4b0 in QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*) () from /usr/lib/libQt5Qml.so.5
#15 0x0000fffff7a70fd0 in QQmlBoundSignalExpression::evaluate(void**) () from /usr/lib/libQt5Qml.so.5
#16 0x0000fffff7a72048 in ?? () from /usr/lib/libQt5Qml.so.5
#17 0x0000fffff7aad3a4 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () from /usr/lib/libQt5Qml.so.5
#18 0x0000fffff7a53028 in QQmlData::signalEmitted(QAbstractDeclarativeData*, QObject*, int, void**) () from /usr/lib/libQt5Qml.so.5
#19 0x0000fffff6ede974 in ?? () from /usr/lib/libQt5Core.so.5
#20 0x0000fffff7a4eb2c in QQmlVMEMetaObject::metaCall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQt5Qml.so.5
#21 0x0000fffff7aad928 in ?? () from /usr/lib/libQt5Qml.so.5
#22 0x0000fffff7988aec in ?? () from /usr/lib/libQt5Qml.so.5
#23 0x0000fffff798a6a8 in ?? () from /usr/lib/libQt5Qml.so.5
#24 0x0000fffff798b2f8 in QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const ()
   from /usr/lib/libQt5Qml.so.5
#25 0x0000fffff79a8298 in ?? () from /usr/lib/libQt5Qml.so.5
#26 0x0000fffff79aa198 in ?? () from /usr/lib/libQt5Qml.so.5
#27 0x0000fffff793ed7c in QV4::Function::call(QV4::Value const*, QV4::Value const*, int, QV4::ExecutionContext const*) ()
   from /usr/lib/libQt5Qml.so.5
#28 0x0000fffff7aca4b0 in QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*) () from /usr/lib/libQt5Qml.so.5
#29 0x0000fffff7a70fd0 in QQmlBoundSignalExpression::evaluate(void**) () from /usr/lib/libQt5Qml.so.5
#30 0x0000fffff7a72048 in ?? () from /usr/lib/libQt5Qml.so.5
#31 0x0000fffff7aad3a4 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () from /usr/lib/libQt5Qml.so.5
#32 0x0000fffff7a53028 in QQmlData::signalEmitted(QAbstractDeclarativeData*, QObject*, int, void**) () from /usr/lib/libQt5Qml.so.5
#33 0x0000fffff6ede974 in ?? () from /usr/lib/libQt5Core.so.5
#34 0x0000fffff1518abc in QQuickAbstractButtonPrivate::handleRelease(QPointF const&) () from /usr/lib/libQt5QuickTemplates2.so.5
#35 0x0000fffff1535624 in QQuickControl::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQt5QuickTemplates2.so.5
#36 0x0000fffff1a21a08 in QQuickItem::event(QEvent*) () from /usr/lib/libQt5Quick.so.5
#37 0x0000fffff6ea6c80 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#38 0x0000fffff1a3c11c in QQuickWindowPrivate::deliverMouseEvent(QQuickPointerMouseEvent*) () from /usr/lib/libQt5Quick.so.5
#39 0x0000fffff1a3d7c0 in QQuickWindowPrivate::deliverPointerEvent(QQuickPointerEvent*) () from /usr/lib/libQt5Quick.so.5
#40 0x0000fffff1a3e488 in QQuickWindowPrivate::handleMouseEvent(QMouseEvent*) () from /usr/lib/libQt5Quick.so.5
#41 0x0000fffff72cc418 in QWindow::event(QEvent*) () from /usr/lib/libQt5Gui.so.5
#42 0x0000fffff1a3facc in QQuickWindow::event(QEvent*) () from /usr/lib/libQt5Quick.so.5
--Type <RET> for more, q to quit, c to continue without paging--c
#43 0x0000fffff6ea6c80 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#44 0x0000fffff72c0f28 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/libQt5Gui.so.5
#45 0x0000fffff72c1fb8 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/libQt5Gui.so.5
#46 0x0000fffff729c254 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5
#47 0x0000fffff3d41b00 in ?? () from /usr/lib/libQt5WaylandClient.so.5
#48 0x0000fffff6ea538c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#49 0x0000fffff6eade8c in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#50 0x0000aaaaaaaaf7e4 in main (argc=<optimized out>, argv=<optimized out>) at /home/manikandan/QT_apps_workspace/radar_popup/app/main.cpp:320

Please help me and provide the correct way of activating Qt/Qml applications using agl-shell-protocols.

Regards,
Manikandan.
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#9530) | Reply To Group | Reply To Sender | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [list-automotive-discussions82@xxxxxxxxxxx]

_._,_._,_

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux