Details
-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
6.4.0 Beta2
-
None
-
QT 6.4.0 beta2
WebAssemably EMSDK3.1.10
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, …}