studio icon indicating copy to clipboard operation
studio copied to clipboard

Studio app cannot activate WordPress plugins using Freemius if using MySQL database

Open codex-m opened this issue 11 months ago • 5 comments

Quick summary

The Studio app can support a MySQL database as provided by this documentation. However, it does not work with plugins that are using Freemius.

If we activate these plugins (for Studio app + MySQL database), they cannot be activated and appear stuck. It keeps loading, and nothing will happen. Of all local development app platforms (e.g., Local by Flywheel, XAMPP, Laragon, WAMP, MAMP), this issue seems to occur only with Studio App.

Steps to reproduce

1.) Start studio app (either Windows or Mac). 2.) Create a test site using MySQL database (not SQL Lite). This is the documented procedure. 3.) Once the WordPress site is up and running with MySQL database - log in as administrator. 4.) Install and activate any WordPress plugins using Freemius. You can find the complete list here

What you expected to happen

I expected that these plugins would activate normally—without errors, hangs, or freezes—just like when activated on other platforms.

What actually happened

The plugin will never be activated, so any of these plugins will be unusable with Studio App + MySQL.

Impact

Some (< 50%)

Available workarounds?

No and the app is unusable

Platform

Windows, Mac Intel

Logs or notes

Even if we enable WordPress debugging, no debug.log is generated explaining why this is happening. We tried restarting the app or the MySQL server. It didn't help either. Take note that this only affects WordPress plugins using Freemius (if the Studio app is used with MySQL). Other WordPress (non-Freemius-based) plugins appear to be activated.

We tried changing the PHP version and are using the latest Studio app. The issue remains.

codex-m avatar Jan 29 '25 04:01 codex-m

Hi @codex-m 👋

I think I'm missing something here.

I followed your instruction, but stumbled upon the step 4. If I install a plugin from the list you referred to, everything works fine. But I suppose "Install and activate ... using Freemius" means I need to use something in-between? Like a plugin to install other plugins?

merkushin avatar Jan 31 '25 00:01 merkushin

Hello, thanks for looking into this. I could reproduce this with any Freemius plugin. But you can install TablePress or Prime Mover, which are the ones I've used in my local setup.

I never see these plugins activated with the MySQL database used with Studio App. Do you think you're using MySQL with your Studio App? I've tested this with Windows and Mac OSX, and it never works.

You'll need to install and activate the plugin mentioned because it already includes the Freemius library; you don't need to install other plugins. I use MacOSX (or Windows) with the Studio App on a virtual machine (using VirtualBox). The MySQL version I've used is MySQL 8.0.

codex-m avatar Jan 31 '25 01:01 codex-m

Thanks @codex-m!

I could reproduce it with both TablePress and Prime Mover.

When I click Activate, I see something is loading, then it finished and nothing changes. The plugin remains deactivated.

Even though debugging and showing errors was turned on, nothing appeared on the screen or in log files.

@Automattic/yolo could you investigate it further?

merkushin avatar Jan 31 '25 04:01 merkushin

I have looked into this issue and could reproduce it (tested with the TablePress plugin).

There's an error related to WASM where it seems when the plugin tries to activate itself, it reaches a memory limit.

  WASM ERROR
  memory access out of bounds

ErrorEvent2 {
  type: 'error',
  defaultPrevented: false,
  cancelable: false,
  timeStamp: 123425.4245
}
RuntimeError: memory access out of bounds
Please click here to see the full error

  WASM ERROR
  memory access out of bounds

ErrorEvent2 {
  type: 'error',
  defaultPrevented: false,
  cancelable: false,
  timeStamp: 123425.4245
}
RuntimeError: memory access out of bounds
    at php.wasm.zval_undefined_cv (wasm://wasm/php.wasm-038659a6:wasm-function[190]:0x118cf)
    at php.wasm.ZEND_ASSIGN_OBJ_SPEC_VAR_CV_OP_DATA_CV_HANDLER (wasm://wasm/php.wasm-038659a6:wasm-function[14797]:0x7970b6)
    at php.wasm.execute_ex (wasm://wasm/php.wasm-038659a6:wasm-function[13071]:0x7068ed)
    at php.wasm.zend_call_function (wasm://wasm/php.wasm-038659a6:wasm-function[392]:0x2d7c2)
    at php.wasm.zend_call_known_function (wasm://wasm/php.wasm-038659a6:wasm-function[404]:0x2ed92)
    at php.wasm.zend_std_write_property (wasm://wasm/php.wasm-038659a6:wasm-function[1051]:0xa0008)
    at php.wasm.zend_default_exception_new (wasm://wasm/php.wasm-038659a6:wasm-function[4672]:0x317a3e)
    at php.wasm.object_init_ex (wasm://wasm/php.wasm-038659a6:wasm-function[205]:0x12bc7)
    at php.wasm.zend_throw_exception_zstr (wasm://wasm/php.wasm-038659a6:wasm-function[3470]:0x242606)
    at php.wasm.zend_throw_exception (wasm://wasm/php.wasm-038659a6:wasm-function[243]:0x16f75)
    at php.wasm.zend_throw_error (wasm://wasm/php.wasm-038659a6:wasm-function[124]:0x9bc2)
    at php.wasm.zend_throw_non_object_error (wasm://wasm/php.wasm-038659a6:wasm-function[391]:0x2cc93)
    at php.wasm.ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_VAR_HANDLER (wasm://wasm/php.wasm-038659a6:wasm-function[14799]:0x79767a)
    at php.wasm.execute_ex (wasm://wasm/php.wasm-038659a6:wasm-function[13071]:0x7068ed)
    at php.wasm.zend_execute (wasm://wasm/php.wasm-038659a6:wasm-function[3520]:0x248779)
    at php.wasm.zend_execute_scripts (wasm://wasm/php.wasm-038659a6:wasm-function[9439]:0x5b37f5) {
  cause: Error
      at Asyncify.handleSleep (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:159804:45)
      at returnCallback (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:152691:51)
      at wasm_poll_socket (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:152698:12)
      at php.wasm.php_pollfd_for (wasm://wasm/php.wasm-038659a6:wasm-function[1027]:0x9d95b)
      at php.wasm.php_sockop_read (wasm://wasm/php.wasm-038659a6:wasm-function[11090]:0x633262)
      at php.wasm.php_openssl_sockop_io (wasm://wasm/php.wasm-038659a6:wasm-function[5583]:0x3c8036)
      at php.wasm.php_openssl_sockop_read (wasm://wasm/php.wasm-038659a6:wasm-function[11148]:0x63949b)
      at php.wasm._php_stream_fill_read_buffer (wasm://wasm/php.wasm-038659a6:wasm-function[3301]:0x2284f4)
      at php.wasm._php_stream_read (wasm://wasm/php.wasm-038659a6:wasm-function[230]:0x14d37)
      at php.wasm.mysqlnd_mysqlnd_vio_network_read_pub (wasm://wasm/php.wasm-038659a6:wasm-function[11668]:0x672195)
      at php.wasm.mysqlnd_mysqlnd_pfc_receive_pub (wasm://wasm/php.wasm-038659a6:wasm-function[11773]:0x67973e)
      at php.wasm.mysqlnd_read_header (wasm://wasm/php.wasm-038659a6:wasm-function[4034]:0x2b3732)
      at php.wasm.mysqlnd_read_packet_header_and_body (wasm://wasm/php.wasm-038659a6:wasm-function[1357]:0xcb570)
      at php.wasm.php_mysqlnd_rset_header_read (wasm://wasm/php.wasm-038659a6:wasm-function[11174]:0x63a2f4)
      at php.wasm.mysqlnd_query_read_result_set_header (wasm://wasm/php.wasm-038659a6:wasm-function[11658]:0x6704d8)
      at php.wasm.mysqlnd_mysqlnd_command_reap_result_pub (wasm://wasm/php.wasm-038659a6:wasm-function[11871]:0x67fa49)
}
ErrorEvent2 {
  type: 'error',
  defaultPrevented: false,
  cancelable: false,
  timeStamp: 123425.926875
}
RuntimeError: unreachable
    at php.wasm.php_execute_script (wasm://wasm/php.wasm-038659a6:wasm-function[11334]:0x648dc9)
    at php.wasm.dynCall_ii (wasm://wasm/php.wasm-038659a6:wasm-function[13262]:0x720f3a)
    at ret.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:158897:22)
    at t.wasmExports.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197174:12070)
    at t.wasmExports.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197174:12070)
    at invoke_ii (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:159502:14)
    at php.wasm.wasm_sapi_handle_request (wasm://wasm/php.wasm-038659a6:wasm-function[9835]:0x5cbc94)
    at ret.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:158897:22)
    at t.wasmExports.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197174:12070)
    at t.wasmExports.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197174:12070)
    at Object.doRewind (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:158982:14)
    at /Users/user/a8c/studio/.webpack/main/siteServerProcess.js:159005:45
    at /Users/user/a8c/studio/.webpack/main/siteServerProcess.js:152770:11
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  cause: Error
      at Asyncify.handleSleep (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:159804:45)
      at returnCallback (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:152691:51)
      at wasm_poll_socket (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:152698:12)
      at php.wasm.php_pollfd_for (wasm://wasm/php.wasm-038659a6:wasm-function[1027]:0x9d95b)
      at php.wasm.php_sockop_read (wasm://wasm/php.wasm-038659a6:wasm-function[11090]:0x633262)
      at php.wasm.php_openssl_sockop_io (wasm://wasm/php.wasm-038659a6:wasm-function[5583]:0x3c8036)
      at php.wasm.php_openssl_sockop_read (wasm://wasm/php.wasm-038659a6:wasm-function[11148]:0x63949b)
      at php.wasm._php_stream_fill_read_buffer (wasm://wasm/php.wasm-038659a6:wasm-function[3301]:0x2284f4)
      at php.wasm._php_stream_read (wasm://wasm/php.wasm-038659a6:wasm-function[230]:0x14d37)
      at php.wasm.mysqlnd_mysqlnd_vio_network_read_pub (wasm://wasm/php.wasm-038659a6:wasm-function[11668]:0x672195)
      at php.wasm.mysqlnd_mysqlnd_pfc_receive_pub (wasm://wasm/php.wasm-038659a6:wasm-function[11773]:0x67973e)
      at php.wasm.mysqlnd_read_header (wasm://wasm/php.wasm-038659a6:wasm-function[4034]:0x2b3732)
      at php.wasm.mysqlnd_read_packet_header_and_body (wasm://wasm/php.wasm-038659a6:wasm-function[1357]:0xcb570)
      at php.wasm.php_mysqlnd_rset_header_read (wasm://wasm/php.wasm-038659a6:wasm-function[11174]:0x63a2f4)
      at php.wasm.mysqlnd_query_read_result_set_header (wasm://wasm/php.wasm-038659a6:wasm-function[11658]:0x6704d8)
      at php.wasm.mysqlnd_mysqlnd_command_reap_result_pub (wasm://wasm/php.wasm-038659a6:wasm-function[11871]:0x67fa49)
}
ErrorEvent2 {
  type: 'error',
  defaultPrevented: false,
  cancelable: false,
  timeStamp: 123426.405666
}
RuntimeError: unreachable
    at php.wasm.wasm_sapi_handle_request (wasm://wasm/php.wasm-038659a6:wasm-function[9835]:0x5cbfdc)
    at ret.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:158897:22)
    at t.wasmExports.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197174:12070)
    at t.wasmExports.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197174:12070)
    at Object.doRewind (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:158982:14)
    at /Users/user/a8c/studio/.webpack/main/siteServerProcess.js:159005:45
    at /Users/user/a8c/studio/.webpack/main/siteServerProcess.js:152770:11
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  cause: Error
      at Asyncify.handleSleep (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:159804:45)
      at returnCallback (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:152691:51)
      at wasm_poll_socket (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:152698:12)
      at php.wasm.php_pollfd_for (wasm://wasm/php.wasm-038659a6:wasm-function[1027]:0x9d95b)
      at php.wasm.php_sockop_read (wasm://wasm/php.wasm-038659a6:wasm-function[11090]:0x633262)
      at php.wasm.php_openssl_sockop_io (wasm://wasm/php.wasm-038659a6:wasm-function[5583]:0x3c8036)
      at php.wasm.php_openssl_sockop_read (wasm://wasm/php.wasm-038659a6:wasm-function[11148]:0x63949b)
      at php.wasm._php_stream_fill_read_buffer (wasm://wasm/php.wasm-038659a6:wasm-function[3301]:0x2284f4)
      at php.wasm._php_stream_read (wasm://wasm/php.wasm-038659a6:wasm-function[230]:0x14d37)
      at php.wasm.mysqlnd_mysqlnd_vio_network_read_pub (wasm://wasm/php.wasm-038659a6:wasm-function[11668]:0x672195)
      at php.wasm.mysqlnd_mysqlnd_pfc_receive_pub (wasm://wasm/php.wasm-038659a6:wasm-function[11773]:0x67973e)
      at php.wasm.mysqlnd_read_header (wasm://wasm/php.wasm-038659a6:wasm-function[4034]:0x2b3732)
      at php.wasm.mysqlnd_read_packet_header_and_body (wasm://wasm/php.wasm-038659a6:wasm-function[1357]:0xcb570)
      at php.wasm.php_mysqlnd_rset_header_read (wasm://wasm/php.wasm-038659a6:wasm-function[11174]:0x63a2f4)
      at php.wasm.mysqlnd_query_read_result_set_header (wasm://wasm/php.wasm-038659a6:wasm-function[11658]:0x6704d8)
      at php.wasm.mysqlnd_mysqlnd_command_reap_result_pub (wasm://wasm/php.wasm-038659a6:wasm-function[11871]:0x67fa49)
}
Error: memory access out of bounds
    at PHP.ae (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197223:8479)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async PHP.run (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197223:1726)
    at async PHPRequestHandler.pe (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197229:6613)
    at async PHPRequestHandler.ce (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197229:6221) {
  cause: Error: Rethrown
      at UnhandledRejectionsTarget.e (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197223:7927)
      at [nodejs.internal.kHybridDispatch] (node:internal/event_target:820:20)
      at UnhandledRejectionsTarget.dispatchEvent (node:internal/event_target:755:26)
      at t.wasmExports.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197174:12288)
      at invoke_iiiii (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:159590:14)
      at php.wasm.php_execute_script (wasm://wasm/php.wasm-038659a6:wasm-function[11334]:0x6489d1)
      at php.wasm.dynCall_ii (wasm://wasm/php.wasm-038659a6:wasm-function[13262]:0x720f3a)
      at ret.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:158897:22)
      at t.wasmExports.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197174:12070)
      at t.wasmExports.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197174:12070)
      at invoke_ii (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:159502:14)
      at php.wasm.wasm_sapi_handle_request (wasm://wasm/php.wasm-038659a6:wasm-function[9835]:0x5cbc94)
      at ret.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:158897:22)
      at t.wasmExports.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197174:12070)
      at t.wasmExports.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197174:12070)
      at Object.doRewind (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:158982:14) {
    cause: RuntimeError: memory access out of bounds
        at php.wasm.zval_undefined_cv (wasm://wasm/php.wasm-038659a6:wasm-function[190]:0x118cf)
        at php.wasm.ZEND_ASSIGN_OBJ_SPEC_VAR_CV_OP_DATA_CV_HANDLER (wasm://wasm/php.wasm-038659a6:wasm-function[14797]:0x7970b6)
        at php.wasm.execute_ex (wasm://wasm/php.wasm-038659a6:wasm-function[13071]:0x7068ed)
        at php.wasm.zend_call_function (wasm://wasm/php.wasm-038659a6:wasm-function[392]:0x2d7c2)
        at php.wasm.zend_call_known_function (wasm://wasm/php.wasm-038659a6:wasm-function[404]:0x2ed92)
        at php.wasm.zend_std_write_property (wasm://wasm/php.wasm-038659a6:wasm-function[1051]:0xa0008)
        at php.wasm.zend_default_exception_new (wasm://wasm/php.wasm-038659a6:wasm-function[4672]:0x317a3e)
        at php.wasm.object_init_ex (wasm://wasm/php.wasm-038659a6:wasm-function[205]:0x12bc7)
        at php.wasm.zend_throw_exception_zstr (wasm://wasm/php.wasm-038659a6:wasm-function[3470]:0x242606)
        at php.wasm.zend_throw_exception (wasm://wasm/php.wasm-038659a6:wasm-function[243]:0x16f75)
        at php.wasm.zend_throw_error (wasm://wasm/php.wasm-038659a6:wasm-function[124]:0x9bc2)
        at php.wasm.zend_throw_non_object_error (wasm://wasm/php.wasm-038659a6:wasm-function[391]:0x2cc93)
        at php.wasm.ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_VAR_HANDLER (wasm://wasm/php.wasm-038659a6:wasm-function[14799]:0x79767a)
        at php.wasm.execute_ex (wasm://wasm/php.wasm-038659a6:wasm-function[13071]:0x7068ed)
        at php.wasm.zend_execute (wasm://wasm/php.wasm-038659a6:wasm-function[3520]:0x248779)
        at php.wasm.zend_execute_scripts (wasm://wasm/php.wasm-038659a6:wasm-function[9439]:0x5b37f5) {
      cause: Error
          at Asyncify.handleSleep (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:159804:45)
          at returnCallback (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:152691:51)
          at wasm_poll_socket (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:152698:12)
          at php.wasm.php_pollfd_for (wasm://wasm/php.wasm-038659a6:wasm-function[1027]:0x9d95b)
          at php.wasm.php_sockop_read (wasm://wasm/php.wasm-038659a6:wasm-function[11090]:0x633262)
          at php.wasm.php_openssl_sockop_io (wasm://wasm/php.wasm-038659a6:wasm-function[5583]:0x3c8036)
          at php.wasm.php_openssl_sockop_read (wasm://wasm/php.wasm-038659a6:wasm-function[11148]:0x63949b)
          at php.wasm._php_stream_fill_read_buffer (wasm://wasm/php.wasm-038659a6:wasm-function[3301]:0x2284f4)
          at php.wasm._php_stream_read (wasm://wasm/php.wasm-038659a6:wasm-function[230]:0x14d37)
          at php.wasm.mysqlnd_mysqlnd_vio_network_read_pub (wasm://wasm/php.wasm-038659a6:wasm-function[11668]:0x672195)
          at php.wasm.mysqlnd_mysqlnd_pfc_receive_pub (wasm://wasm/php.wasm-038659a6:wasm-function[11773]:0x67973e)
          at php.wasm.mysqlnd_read_header (wasm://wasm/php.wasm-038659a6:wasm-function[4034]:0x2b3732)
          at php.wasm.mysqlnd_read_packet_header_and_body (wasm://wasm/php.wasm-038659a6:wasm-function[1357]:0xcb570)
          at php.wasm.php_mysqlnd_rset_header_read (wasm://wasm/php.wasm-038659a6:wasm-function[11174]:0x63a2f4)
          at php.wasm.mysqlnd_query_read_result_set_header (wasm://wasm/php.wasm-038659a6:wasm-function[11658]:0x6704d8)
          at php.wasm.mysqlnd_mysqlnd_command_reap_result_pub (wasm://wasm/php.wasm-038659a6:wasm-function[11871]:0x67fa49)
    },
    betterMessage: 'memory access out of bounds'
  }
}
Recreating and rotating PHP runtime
Trace: Error: memory access out of bounds
    at PHP.ae (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197223:8479)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async PHP.run (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197223:1726)
    at async PHPRequestHandler.pe (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197229:6613)
    at async PHPRequestHandler.ce (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197229:6221) {
  cause: Error: Rethrown
      at UnhandledRejectionsTarget.e (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197223:7927)
      at [nodejs.internal.kHybridDispatch] (node:internal/event_target:820:20)
      at UnhandledRejectionsTarget.dispatchEvent (node:internal/event_target:755:26)
      at t.wasmExports.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197174:12288)
      at invoke_iiiii (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:159590:14)
      at php.wasm.php_execute_script (wasm://wasm/php.wasm-038659a6:wasm-function[11334]:0x6489d1)
      at php.wasm.dynCall_ii (wasm://wasm/php.wasm-038659a6:wasm-function[13262]:0x720f3a)
      at ret.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:158897:22)
      at t.wasmExports.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197174:12070)
      at t.wasmExports.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197174:12070)
      at invoke_ii (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:159502:14)
      at php.wasm.wasm_sapi_handle_request (wasm://wasm/php.wasm-038659a6:wasm-function[9835]:0x5cbc94)
      at ret.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:158897:22)
      at t.wasmExports.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197174:12070)
      at t.wasmExports.<computed> (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:197174:12070)
      at Object.doRewind (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:158982:14) {
    cause: RuntimeError: memory access out of bounds
        at php.wasm.zval_undefined_cv (wasm://wasm/php.wasm-038659a6:wasm-function[190]:0x118cf)
        at php.wasm.ZEND_ASSIGN_OBJ_SPEC_VAR_CV_OP_DATA_CV_HANDLER (wasm://wasm/php.wasm-038659a6:wasm-function[14797]:0x7970b6)
        at php.wasm.execute_ex (wasm://wasm/php.wasm-038659a6:wasm-function[13071]:0x7068ed)
        at php.wasm.zend_call_function (wasm://wasm/php.wasm-038659a6:wasm-function[392]:0x2d7c2)
        at php.wasm.zend_call_known_function (wasm://wasm/php.wasm-038659a6:wasm-function[404]:0x2ed92)
        at php.wasm.zend_std_write_property (wasm://wasm/php.wasm-038659a6:wasm-function[1051]:0xa0008)
        at php.wasm.zend_default_exception_new (wasm://wasm/php.wasm-038659a6:wasm-function[4672]:0x317a3e)
        at php.wasm.object_init_ex (wasm://wasm/php.wasm-038659a6:wasm-function[205]:0x12bc7)
        at php.wasm.zend_throw_exception_zstr (wasm://wasm/php.wasm-038659a6:wasm-function[3470]:0x242606)
        at php.wasm.zend_throw_exception (wasm://wasm/php.wasm-038659a6:wasm-function[243]:0x16f75)
        at php.wasm.zend_throw_error (wasm://wasm/php.wasm-038659a6:wasm-function[124]:0x9bc2)
        at php.wasm.zend_throw_non_object_error (wasm://wasm/php.wasm-038659a6:wasm-function[391]:0x2cc93)
        at php.wasm.ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_VAR_HANDLER (wasm://wasm/php.wasm-038659a6:wasm-function[14799]:0x79767a)
        at php.wasm.execute_ex (wasm://wasm/php.wasm-038659a6:wasm-function[13071]:0x7068ed)
        at php.wasm.zend_execute (wasm://wasm/php.wasm-038659a6:wasm-function[3520]:0x248779)
        at php.wasm.zend_execute_scripts (wasm://wasm/php.wasm-038659a6:wasm-function[9439]:0x5b37f5) {
      cause: Error
          at Asyncify.handleSleep (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:159804:45)
          at returnCallback (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:152691:51)
          at wasm_poll_socket (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:152698:12)
          at php.wasm.php_pollfd_for (wasm://wasm/php.wasm-038659a6:wasm-function[1027]:0x9d95b)
          at php.wasm.php_sockop_read (wasm://wasm/php.wasm-038659a6:wasm-function[11090]:0x633262)
          at php.wasm.php_openssl_sockop_io (wasm://wasm/php.wasm-038659a6:wasm-function[5583]:0x3c8036)
          at php.wasm.php_openssl_sockop_read (wasm://wasm/php.wasm-038659a6:wasm-function[11148]:0x63949b)
          at php.wasm._php_stream_fill_read_buffer (wasm://wasm/php.wasm-038659a6:wasm-function[3301]:0x2284f4)
          at php.wasm._php_stream_read (wasm://wasm/php.wasm-038659a6:wasm-function[230]:0x14d37)
          at php.wasm.mysqlnd_mysqlnd_vio_network_read_pub (wasm://wasm/php.wasm-038659a6:wasm-function[11668]:0x672195)
          at php.wasm.mysqlnd_mysqlnd_pfc_receive_pub (wasm://wasm/php.wasm-038659a6:wasm-function[11773]:0x67973e)
          at php.wasm.mysqlnd_read_header (wasm://wasm/php.wasm-038659a6:wasm-function[4034]:0x2b3732)
          at php.wasm.mysqlnd_read_packet_header_and_body (wasm://wasm/php.wasm-038659a6:wasm-function[1357]:0xcb570)
          at php.wasm.php_mysqlnd_rset_header_read (wasm://wasm/php.wasm-038659a6:wasm-function[11174]:0x63a2f4)
          at php.wasm.mysqlnd_query_read_result_set_header (wasm://wasm/php.wasm-038659a6:wasm-function[11658]:0x6704d8)
          at php.wasm.mysqlnd_mysqlnd_command_reap_result_pub (wasm://wasm/php.wasm-038659a6:wasm-function[11871]:0x67fa49)
    },
    betterMessage: 'memory access out of bounds'
  }
}
    at /Users/user/a8c/studio/.webpack/main/siteServerProcess.js:80778:99
    at Generator.throw (<anonymous>)
    at rejected (/Users/user/a8c/studio/.webpack/main/siteServerProcess.js:80683:65)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Does anyone from Yolo have any thoughts how we could take this further?

ivan-ottinger avatar Mar 18 '25 13:03 ivan-ottinger

I was able to reproduce this issue by connecting to Mysql and then installing and trying to activate 3DViewer Plugin. It seems to me like a Playground Asyncify error. We might need to add some PHP functions to ASYNCIFY_ONLY list.

sejas avatar Mar 20 '25 13:03 sejas

Implemented in https://github.com/Automattic/studio/pull/1425

bgrgicak avatar May 27 '25 10:05 bgrgicak