Frida+javascript:missing ScriptRunContext


I want to use the frida module to call the JavaScript API interface to get the variable value and display the result through st.write().But “Thread ‘Dummy-8’: missing ScriptRunContext”

Steps to reproduce

Code snippet:

jsCode = """"""

def on_message(message, data):
    if message['type'] == 'send':
        st.write(("[*] {0}".format(message['payload'])))

process = st.text_input("process_name")

    device = frida.get_usb_device()
    pid = device.spawn([process])   
    process = device.attach(pid)
    script = process.create_script(jsCode)
    script.on('message', on_message)

If applicable, please provide the steps we should take to reproduce the error or specified behavior.

I tried the method on GitHub but it didn’t work, hope it can be solved.Improve "missing ReportContext" threading error · Issue #1326 · streamlit/streamlit · GitHub

Explain what you expect to happen when you run the code above.

If possible, please provide the solution code.Successfully printed via st.write().

Explain the undesired behavior or error you see when you run the code above.
Thread ‘Dummy-7’: missing ScriptRunContext

Debug info

  • Streamlit version: Streamlit, version 1.20.0
  • Python version: Python 3.8.10
  • Frida version:15.1.0

Requirements file

Using Conda? PipEnv? PyEnv? Pex? Share the contents of your requirements file here.
Not sure what a requirements file is? Check out this doc and add a requirements file to your app.


  • Link to your GitHub repo:
  • Link to your deployed app:

Additional information

If needed, add any other context about the problem here.