Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-15095

AccessPointsAvailabilityScanner::StartScanning causes stray signal panic

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • 4.7.2
    • 4.7.0
    • None
    • symbian^3 emulator and hw
    • 4c9651219140141da49d0ea965544d8f64dbf323, 113a23a61b3ac840cfdec2d2297b7881f495c924

      Using the QNetworkAccessManager and CActiveSchedulerWait causes stray signal in CActiveScheduler::DoRunL function, because AccessPointAvailabilityScanner::StartScanning uses CActive::iStatus to get data synchronously from connectionmanager on first update. I have attached a simple application, which reproduces the bug.

      The problem can be solved by introducing local TRequestStatus object and giving it to the connection manager:

      symbianengine.cpp
      if (iOwner.iFirstUpdate) {
              // On first update (the mgr is being instantiated) update only those bearers who
              // don't need time-consuming scans (WLAN).
              // Note: EBearerIdWCDMA covers also GPRS bearer
              TRequestStatus status;
              iConnectionMonitor.GetPckgAttribute(EBearerIdWCDMA, 0, KIapAvailability, iIapBuf, status);
              User::WaitForRequest(status);
              if (status.Int() == KErrNone) {
                  iOwner.accessPointScanningReady(true,iIapBuf());
              }
      

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

            sikylmal Sipi Kylmälä
            mlackman Mika Lackman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes