(_env) PS C:\NASCIN\flet\project-0109-sofie> flet run -r -d
C:\NASCIN\flet\project-0109-sofie\main.py:108: DeprecationWarning: update_async() is deprecated in version 0.21.0 and will be removed in version 0.26.0. Use Page.update() method instead.
await page.update_async()
C:\NASCIN\flet\project-0109-sofie\main.py:110: DeprecationWarning: add_async() is deprecated in version 0.21.0 and will be removed in version 0.26.0. Use Page.add() method instead.
await page.add_async(
C:\NASCIN\flet\project-0109-sofie\main.py:68: DeprecationWarning: start_recording_async() is deprecated in version 0.21.0 and will be removed in version 0.26.0. Use start_recording() method instead.
await audio_rec.start_recording_async(path)
StartRecording: test-audio-file.wav
Task exception was never retrieved
future: <Task finished name='Task-15' coro=<__run_socket_server.<locals>.on_event() done, defined at C:\NASCIN\flet\project-0109-sofie\_env\Lib\site-packages\flet_runtime\app.py:217> exception=TimeoutError("Timeout waiting for invokeMethod start_recording({'outputPath': 'test-audio-file.wav'}) call")>
Traceback (most recent call last):
File "C:\NASCIN\flet\project-0109-sofie\_env\Lib\site-packages\flet_runtime\app.py", line 219, in on_event
await conn.sessions[e.sessionID].on_event_async(
File "C:\NASCIN\flet\project-0109-sofie\_env\Lib\site-packages\flet_core\page.py", line 906, in on_event_async
await handler(ce)
File "C:\NASCIN\flet\project-0109-sofie\main.py", line 68, in handle_start_recording
await audio_rec.start_recording_async(path)
File "C:\NASCIN\flet\project-0109-sofie\_env\Lib\site-packages\flet_core\audio_recorder.py", line 104, in start_recording_async
return self.start_recording(output_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\NASCIN\flet\project-0109-sofie\_env\Lib\site-packages\flet_core\audio_recorder.py", line 90, in start_recording
started = self.invoke_method(
^^^^^^^^^^^^^^^^^^^
File "C:\NASCIN\flet\project-0109-sofie\_env\Lib\site-packages\flet_core\control.py", line 340, in invoke_method
return self.__page._invoke_method(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\NASCIN\flet\project-0109-sofie\_env\Lib\site-packages\flet_core\page.py", line 1343, in _invoke_method
raise TimeoutError(
TimeoutError: Timeout waiting for invokeMethod start_recording({'outputPath': 'test-audio-file.wav'}) call
State Changed: stopped
StopRecording: None
C:\NASCIN\flet\project-0109-sofie\main.py:108: DeprecationWarning: update_async() is deprecated in version 0.21.0 and will be removed in version 0.26.0. Use Page.update() method instead.
await page.update_async()
Duplicate Check
Describe the bug
When I run the example code and start recording the audio, the event takes a while to occur. When I click stop, it feels like recording has started. Finally, several error messages and depreciation warnings.
Code sample
Code
To reproduce
Run with the command
flet run -r -d;I click on start recording;
I click on stop recording.
Expected behavior
No response
Screenshots / Videos
Captures
[Upload media here]
Operating System
Windows
Operating system details
Windows 11
Flet version
0.24.1
Regression
I'm not sure / I don't know
Suggestions
No response
Logs
Logs
Additional details
No response