Error extracting the dom and axtree
I had one fully successful run, with files added to the workspace folder. I moved them out so they wouldn't get mixed up with other project ideas, and since then it gives an error after submitting a new query: An error occured while extracting the dom and axtree. Retrying (4/5 tries left). MarkingError('Cannot mark a child frame without a bid.')
That retries several times then gives about 8 lines of: Cannot mark a child frame without a bid. Skipping frame.
Below is the error output. I tried deleting the entire workspace_meta_showcase folder, but that didn't help either. Anything else I could do besides reinstall the entire package?
An error occured while extracting the dom and axtree. Retrying (4/5 tries left). MarkingError('Cannot mark a child frame without a bid.') An error occured while extracting the dom and axtree. Retrying (3/5 tries left). MarkingError('Cannot mark a child frame without a bid.') An error occured while extracting the dom and axtree. Retrying (2/5 tries left). MarkingError('Cannot mark a child frame without a bid.') An error occured while extracting the dom and axtree. Retrying (1/5 tries left). MarkingError('Cannot mark a child frame without a bid.') Cannot mark a child frame without a bid. Skipping frame. Cannot mark a child frame without a bid. Skipping frame. Cannot mark a child frame without a bid. Skipping frame. Cannot mark a child frame without a bid. Skipping frame. Cannot mark a child frame without a bid. Skipping frame. Cannot mark a child frame without a bid. Skipping frame. Cannot mark a child frame without a bid. Skipping frame. Cannot mark a child frame without a bid. Skipping frame. An error occured while extracting the dom and axtree. Retrying (4/5 tries left). MarkingError('Cannot mark a child frame without a bid.') Process Process-1: Traceback (most recent call last): File "/home/rhys/anaconda3/envs/AutoAgent/lib/python3.11/site-packages/browsergym/core/env.py", line 523, in _get_obs _pre_extract(self.page, tags_to_mark=self.tags_to_mark, lenient=(retries_left == 0)) File "/home/rhys/anaconda3/envs/AutoAgent/lib/python3.11/site-packages/browsergym/core/observation.py", line 79, in _pre_extract mark_frames_recursive(page.main_frame, frame_bid="") File "/home/rhys/anaconda3/envs/AutoAgent/lib/python3.11/site-packages/browsergym/core/observation.py", line 75, in mark_frames_recursive raise MarkingError("Cannot mark a child frame without a bid.") browsergym.core.observation.MarkingError: Cannot mark a child frame without a bid.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/rhys/anaconda3/envs/AutoAgent/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap self.run() File "/home/rhys/anaconda3/envs/AutoAgent/lib/python3.11/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/media/rhys/Data/AiWotBotxfer/AutoAgent/autoagent/environment/browser_env.py", line 522, in browser_process obs, reward, terminated, truncated, info = env.step(action) ^^^^^^^^^^^^^^^^ File "/home/rhys/anaconda3/envs/AutoAgent/lib/python3.11/site-packages/gymnasium/wrappers/common.py", line 393, in step return super().step(action) ^^^^^^^^^^^^^^^^^^^^ File "/home/rhys/anaconda3/envs/AutoAgent/lib/python3.11/site-packages/gymnasium/core.py", line 327, in step return self.env.step(action) ^^^^^^^^^^^^^^^^^^^^^ File "/home/rhys/anaconda3/envs/AutoAgent/lib/python3.11/site-packages/browsergym/core/env.py", line 431, in step obs = self._get_obs() ^^^^^^^^^^^^^^^ File "/home/rhys/anaconda3/envs/AutoAgent/lib/python3.11/site-packages/browsergym/core/env.py", line 543, in _get_obs _post_extract(self.page) File "/home/rhys/anaconda3/envs/AutoAgent/lib/python3.11/site-packages/browsergym/core/observation.py", line 108, in _post_extract raise e File "/home/rhys/anaconda3/envs/AutoAgent/lib/python3.11/site-packages/browsergym/core/observation.py", line 93, in _post_extract if not frame.frame_element().content_frame() == frame: ^^^^^^^^^^^^^^^^^^^^^ File "/home/rhys/anaconda3/envs/AutoAgent/lib/python3.11/site-packages/playwright/sync_api/_generated.py", line 3635, in frame_element return mapping.from_impl(self._sync(self._impl_obj.frame_element())) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/rhys/anaconda3/envs/AutoAgent/lib/python3.11/site-packages/playwright/_impl/_sync_base.py", line 109, in _sync return task.result() ^^^^^^^^^^^^^ File "/home/rhys/anaconda3/envs/AutoAgent/lib/python3.11/site-packages/playwright/_impl/_frame.py", line 267, in frame_element return from_channel(await self._channel.send("frameElement")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/rhys/anaconda3/envs/AutoAgent/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 61, in send return await self._connection.wrap_api_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/rhys/anaconda3/envs/AutoAgent/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 490, in wrap_api_call return await cb() ^^^^^^^^^^ File "/home/rhys/anaconda3/envs/AutoAgent/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 99, in inner_send result = next(iter(done)).result() ^^^^^^^^^^^^^^^^^^^^^^^^^ playwright._impl._api_types.Error: Target closed node:events:495 throw er; // Unhandled 'error' event ^
Error: write EPIPE at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16) Emitted 'error' event on Socket instance at: at emitErrorNT (node:internal/streams/destroy:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -32, code: 'EPIPE', syscall: 'write' }
Node.js v18.18.0
I uninstalled the module, deleted the entire AutoAgent directory, and it worked again, but is that expected behavior if I change the workplace directories?