Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1680

Starting a service that uses QApplication or registeres multiple services causes crashes and intermintant failures.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P0: Blocker
    • Resolution: Done
    • Affects Version/s: 1.1.2
    • Fix Version/s: None
    • Component/s: Service Framework
    • Labels:
    • Environment:
      Symbian
    • Commits:
      ae125f332a9fe78275928ac5421c613f86dd137d

      Description

      Hello,

      We have a Qt (in Symbian) UI application offering a service as well. It is seen that there is a (CONE 28 Panic) when ever this service is started for the first time.
      After dismissing the panic note the Service Starts up. Sometimes multiple panic notes are seen before the service can start.

      The Panic is coming because the QT Service Framework attempts to connect to the service and if it fails to connect the first time the connect is
      Called in a loop (see .. QRemoteServiceRegisterPrivate::proxyForService() ). RServiceSession::Connect() Should have worked the first time itself
      but in the case of a UI service the service application will use QApplication and QApplication creation triggers a Rendezvous and StartServer() returns much
      before the Service is published. So connect fails.

      When StartServer() tries to start the application again the second time QApplication creation panics ( @ QtEikonEnv:: ConstructAppFromCommandLineL()).
      Maybe because of a timing issue the problem is so far seen only on Emulator.

      Also if an application tries to publish multiple services then each PublishEntries() is resulting in a call to Rendezvous() (@ QRemoteServiceRegisterSymbianPrivate::publishServices() ).
      This can be a problem right?. If the client was connecting to the second service then its StartServer() will return but connect will fail and Process will be started again .

      Thanks,
      Vinod

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            vimurali Vinod Murali
            Reporter:
            stanleyj Andrew Stanley-Jones (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes