Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8
-
None
-
windows 11, visual studio 2022, computer with 20 logical cores, edge or chrome
-
-
1a57c3866 (dev), 18c4841ec (6.7), 772531c8a (tqtc/lts-6.5)
Description
QCoreApplication sets QThreadPrivate::idealThreadCount to navigator.hardwareConcurrency
wasm.prf sets PTHREAD_POOL_SIZE to 4.
This causes the qtdoc/examples/demos/dice example to not start.
Adding
QT_WASM_PTHREAD_POOL_SIZE=navigator.hardwareConcurrency+2
and
set(QT_WASM_PTHREAD_POOL_SIZE navigator.hardwareConcurrency+2)
to dice.pro/CMakeLists.txt fixes the dice demo
Attachments
For Gerrit Dashboard: QTBUG-123888 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
552308,4 | wasm: PTHREAD_POOL_SIZE and QThreadPrivate::idealThreadCount not in sync | dev | qt/qtbase | Status: DEFERRED | 0 | 0 |
552945,9 | wasm: Fix problem with dice demo deadlocking waiting for thread startup | dev | qt/qtquick3dphysics | Status: MERGED | +2 | +1 |
555406,2 | wasm: Fix problem with dice demo deadlocking waiting for thread startup | 6.7 | qt/qtquick3dphysics | Status: MERGED | +2 | 0 |
555651,2 | wasm: Fix problem with dice demo deadlocking waiting for thread startup | tqtc/lts-6.5 | qt/tqtc-qtquick3dphysics | Status: MERGED | +2 | 0 |