×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Regular Contributor
    Join Date
    Feb 2005
    Posts
    53

    Unhappy Application auto closed when running in N900

    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?

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Application auto closed when running in N900

    Quote Originally Posted by wktsang1 View Post
    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?
    Could you please give a link to the default 'qthello' application.

  3. #3
    Regular Contributor
    Join Date
    Feb 2005
    Posts
    53

    Re: Application auto closed when running in N900

    Quote Originally Posted by divanov View Post
    Could you please give a link to the default 'qthello' application.
    http://wiki.forum.nokia.com/index.ph...DDE_on_Windows
    Just run 'mad pscreate –t qt_simple qthello' in MADDE Terminal

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Application auto closed when running in N900

    For me qt_simple template produce empty package without binary.
    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
    What is content of your package?

    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.

  5. #5
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    54

    Re: Application auto closed when running in N900

    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.

  6. #6
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Application auto closed when running in N900

    Quote Originally Posted by gurmukh View Post
    Is there some crash log or something in the phone to help find the issue?
    There is a /var/log/syslog if you have syslog installed, then kernel produces coredumps, if they are enabled with ulimit -c unlimited.

    Quote Originally Posted by gurmukh View Post
    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?
    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-*")?

  7. #7
    Regular Contributor
    Join Date
    Feb 2005
    Posts
    53

    Re: Application auto closed when running in N900

    Quote Originally Posted by divanov View Post
    For me qt_simple template produce empty package without binary.
    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
    What is content of your package?

    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.
    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.

  8. #8
    Regular Contributor
    Join Date
    Feb 2005
    Posts
    53

    Re: Application auto closed when running in N900

    Quote Originally Posted by divanov View Post
    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 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
    =========================

  9. #9
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Application auto closed when running in N900

    Quote Originally Posted by wktsang1 View Post
    How to install the syslog?
    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.

    Quote Originally Posted by wktsang1 View Post
    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'.
    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

  10. #10
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    54

    Re: Application auto closed when running in N900

    dbus-monitor > starup.log

    Is this written in QT?

  11. #11
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Application auto closed when running in N900

    Quote Originally Posted by gurmukh View Post
    dbus-monitor > starup.log

    Is this written in QT?
    No, dbus-monitor is written in C and part of dbus package.

  12. #12
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    54

    Re: Application auto closed when running in N900

    Sorry, what I meant was where is this command executed, x_terminal?

    dbus-monitor > starup.log

  13. #13
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Application auto closed when running in N900

    Quote Originally Posted by gurmukh View Post
    Sorry, what I meant was where is this command executed, x_terminal?

    dbus-monitor > starup.log
    Yes, X Terminal is one of the options.

  14. #14
    Regular Contributor
    Join Date
    Feb 2005
    Posts
    53

    Re: Application auto closed when running in N900

    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
    =============

  15. #15
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Application auto closed when running in N900

    It would be useful to see the whole log.

Similar Threads

  1. Replies: 0
    Last Post: 2009-11-22, 19:03
  2. Uninstall MTM while message application is running
    By heuven in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2009-04-14, 17:14
  3. Do Symbian rejects the Express Signing request on any Business Development ground?
    By arpit2agrawal in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 23
    Last Post: 2009-02-19, 10:46
  4. Replies: 7
    Last Post: 2009-02-12, 13:37
  5. Any way to auto start / launch an application ?
    By handsetproject in forum Mobile Java General
    Replies: 2
    Last Post: 2007-11-27, 11:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×