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

QNetworkReply READ UNALIGNED IN WEBASSEMABLY

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 6.4.0 Beta2
    • Network: HTTP
    • None
    • QT 6.4.0 beta2
      WebAssemably EMSDK3.1.10
    • WebAssembly

    Description

      WebAssemably QNetworkReply Report unaligned or acces out of bounds in chrome

      thoose fails is report after function SfsGet return

      /***********************************CMAKE**********************************/

      set_target_properties(PCD PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER my.example.com MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} MACOSX_BUNDLE TRUE WIN32_EXECUTABLE TRUE LINK_FLAGS "-s FORCE_FILESYSTEM=1 -lidbfs.js -s ASYNCIFY=1" )

      /***********************************CODE**********************************/

      void SfsGet()

      { ...... if (!pReply || !spFile->open(QIODevice::ReadWrite))\{ msg = SPMSG_FAIL(spFile->errorString()); goto SFS_RETURN; }

      connect(pReply, &QNetworkReply::readyRead, [pReply, &spFile](){ if (QNetworkReply::NoError != pReply->error())

      {return;}

      spFile->write(pReply->readAll()); qDebug()<<"readyRead" << pReply; return; });

      }

      this function can be return but failed

      void Sleep(int ms){

      QTime qTm = QTime::currentTime(); while(qTm.msecsTo(QTime::currentTime()) < ms)

      { emscripten_sleep(1);   }

      }

      error such as:

      /******************************CHROME-ERROR1******************************/

      VM49:1904 Uncaught ErrorEvent {isTrusted: true, message: 'Uncaught RuntimeError: memory access out of bounds', filename: 'blob:http://localhost:30001/f66a4ac5-aafa-4059-bbe1-c477de4d9c5f', lineno: 49, colno: 3, …}

       

      Attachments

        1. qt-error2.png
          qt-error2.png
          103 kB
        2. qt-error1.png
          qt-error1.png
          259 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lpotter Lorn Potter
            cigepan aaa bbb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes