When I installed my application to the N900 and run it, the application always automatically closed after running around 1 minute, the same problem occur for the default 'qthello' application.
What is the reason for this problem?
When I installed my application to the N900 and run it, the application always automatically closed after running around 1 minute, the same problem occur for the default 'qthello' application.
What is the reason for this problem?
http://wiki.forum.nokia.com/index.ph...DDE_on_Windows
Just run 'mad pscreate –t qt_simple qthello' in MADDE Terminal
For me qt_simple template produce empty package without binary.
What is content of your package?Code:dpkg -c qthello_0.1_armel.deb drwxr-xr-x root/root 0 2010-05-23 19:18 ./ drwxr-xr-x root/root 0 2010-05-23 19:18 ./usr/ drwxr-xr-x root/root 0 2010-05-23 19:18 ./usr/bin/ drwxr-xr-x root/root 0 2010-05-23 19:18 ./usr/sbin/ drwxr-xr-x root/root 0 2010-05-23 19:18 ./usr/share/ drwxr-xr-x root/root 0 2010-05-23 19:18 ./usr/share/doc/ drwxr-xr-x root/root 0 2010-05-23 19:18 ./usr/share/doc/qthello/ -rw-r--r-- root/root 1498 2010-05-23 19:00 ./usr/share/doc/qthello/copyright -rw-r--r-- root/root 192 2010-05-23 19:00 ./usr/share/doc/qthello/README.Debian -rw-r--r-- root/root 156 2010-05-23 19:00 ./usr/share/doc/qthello/changelog.gz
You can use this package as a template.
http://wiki.forum.nokia.com/index.ph...mple-0.0.1.zip
My guess would be DBus kills an application due to service name mismatch in desktop file and inside the code.
I'm getting the EXACT same problem! First I thought it was a problem in my code, but after debugging for ages, I cant seem to find the problem. If I run the application from command line, no problems. But if I run from the UI, then it will just auto close after around a minute.
Is there some crash log or something in the phone to help find the issue?
thx!
UPDATE: I've used your sample code, but the app still crashes (after around 1 minute, not specifically in one place). Can you tell me what in the source code should match the desktop file?
Last edited by gurmukh; 2010-05-24 at 15:21.
There is a /var/log/syslog if you have syslog installed, then kernel produces coredumps, if they are enabled with ulimit -c unlimited.
My sample application runs without any problems. Are you sure that you have the same version of Qt inside scratchbox and on the device (check it with dpkg -l "libqt4-*")?
How to check with the service name in desktop file and inside the code? The value of 'Name' parameter in the file 'data\qthello.desktop' is already same the the value of 'TARGET' parameter in the file 'data\qthello.desktop' in the file '\qtprog.pro'.
Btw, will this problem related to the mobile frameware? My mobile is Maemo 5 (10.2010.12-9').
Here is my return for running te command 'dpkg -c qthello_0.1_armel.deb' in X Terminal on the mobile.
========
~/MyDocs $ dpkg -c qthello_0.1_armel.deb
drwxr-xr-x 65534/65534 0 2010-05-25 10:09:56 usr
drwxr-xr-x 65534/65534 0 2010-05-25 10:09:56 usr/bin
-rwxr-xr-x 65534/65534 118307 2010-05-25 10:08:02 usr/bin/qthello
drwxr-xr-x 65534/65534 0 2010-05-25 10:09:56 usr/sbin
drwxr-xr-x 65534/65534 0 2010-05-25 10:09:56 usr/share
drwxr-xr-x 65534/65534 0 2010-05-25 10:09:56 usr/share/applications
drwxr-xr-x 65534/65534 0 2010-05-25 10:09:56 usr/share/applications/hildon
-rw-r--r-- 65534/65534 268 2010-05-25 10:06:03 usr/share/applications/hildon/qthello.desktop
drwxr-xr-x 65534/65534 0 2010-05-25 10:09:56 usr/share/dbus-1
drwxr-xr-x 65534/65534 0 2010-05-25 10:09:56 usr/share/dbus-1/services
-rw-r--r-- 65534/65534 61 2010-05-25 10:06:03 usr/share/dbus-1/services/qthello.service
drwxr-xr-x 65534/65534 0 2010-05-25 10:09:56 usr/share/doc
drwxr-xr-x 65534/65534 0 2010-05-25 10:09:56 usr/share/doc/qthello
-rw-r--r-- 65534/65534 136 2010-05-25 10:06:07 usr/share/doc/qthello/changelog.gz
-rw-r--r-- 65534/65534 1468 2010-05-25 10:06:07 usr/share/doc/qthello/copyright
-rw-r--r-- 65534/65534 177 2010-05-25 10:06:07 usr/share/doc/qthello/README.Debian
drwxr-xr-x 65534/65534 0 2010-05-25 10:09:56 usr/share/icons
drwxr-xr-x 65534/65534 0 2010-05-25 10:09:56 usr/share/icons/hicolor
drwxr-xr-x 65534/65534 0 2010-05-25 10:09:56 usr/share/icons/hicolor/64x64
drwxr-xr-x 65534/65534 0 2010-05-25 10:09:56 usr/share/icons/hicolor/64x64/apps
-rw-r--r-- 65534/65534 1249 2010-05-25 10:06:03 usr/share/icons/hicolor/64x64/apps/qthello.png
========
Last edited by wktsang1; 2010-05-25 at 04:58.
How to install the syslog?
Here is the return from running the command dpkg -l "libqt4-*" in my mobile
=========================
~ $ dpkg -l "libqt4-*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii libqt4-core 4.6.2~git20100 Qt 4 core module
ii libqt4-dbus 4.6.2~git20100 Qt 4 D-Bus module
un libqt4-dev <none> (no description available)
ii libqt4-gui 4.6.2~git20100 Qt 4 GUI module
ii libqt4-maemo5 4.6.2~git20100 Qt 4 Maemo5 module
ii libqt4-multime 4.6.2~git20100 Qt 4 Multimedia Libraries
ii libqt4-network 4.6.2~git20100 Qt 4 network module
ii libqt4-opengl 4.6.2~git20100 Qt 4 OpenGL module
ii libqt4-phonon 4.6.2~git20100 Qt 4 Phonon Libraries
ii libqt4-sql 4.6.2~git20100 Qt 4 SQL module
ii libqt4-sql-sql 4.6.2~git20100 Qt 4 SQLite plugin
ii libqt4-svg 4.6.2~git20100 Qt 4 SVG module
ii libqt4-webkit 4.6.2~git20100 Qt 4 WebKit module
ii libqt4-xml 4.6.2~git20100 Qt 4 XML module
ii libqt4-xmlpatt 4.6.2~git20100 Qt 4 XML Patterns module
=========================
You can get sysklogd package from Fremantle repository to have a syslog
http://repository.maemo.org/pool/fre...ee/s/sysklogd/
You will need to reboot a device to have it running.
In the code you must request the same name as you have in desktop and service file name for the dbus connection, Qt has its own means for that or low level DBus API or
http://dbus.freedesktop.org/doc/api/...9e49ad18e0cb25
osso_initialize (note it does many other things)
http://maemo.org/api_refs/5.0/5.0-fi...65086225141431
can be used.
Could you collect log while you are starting application until it quits
Code:dbus-monitor > starup.log
Sorry, what I meant was where is this command executed, x_terminal?
dbus-monitor > starup.log
I got the log file, does the problem come from the following line?
=============
string "type='error'"
signal sender=org.freedesktop.DBus -> dest=(null destination) serial=41 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
=============
It would be useful to see the whole log.