Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] db not exist when initialize the task VlcCreatePlaylist #191

Open
cjfcsjt opened this issue Nov 27, 2024 · 3 comments
Open

[BUG] db not exist when initialize the task VlcCreatePlaylist #191

cjfcsjt opened this issue Nov 27, 2024 · 3 comments

Comments

@cjfcsjt
Copy link

cjfcsjt commented Nov 27, 2024

When initializing task VlcCreatePlaylist and run _clear_playlist_dbs(), it shows "/data/data/org.videolan.vlc/app_db does not exist.". I try to check the app through adb shell, and found the following files:

emu64x:/ # ls -l /data/data/org.videolan.vlc/                                                                                                                                                             
total 48
drwxrwxrwx 2 u0_a191 u0_a191       4096 2023-10-15 15:37 app_keystore
drwxrwxrwx 2 u0_a191 u0_a191       4096 2023-10-15 15:37 app_soundfont
drwxrwxrwx 3 u0_a191 u0_a191       4096 2023-10-15 15:37 app_vlc
drwxrwxrwx 2 u0_a191 u0_a191_cache 4096 2023-10-15 15:37 cache
drwxrwxrwx 2 u0_a191 u0_a191       4096 2023-10-15 15:37 databases
drwxrwxrwx 2 u0_a191 u0_a191       4096 2023-10-15 15:34 shared_prefs

How to fix this?

@crawles
Copy link
Collaborator

crawles commented Nov 27, 2024

Do you happen to have any steps you did so I can reproduce this?

@cjfcsjt
Copy link
Author

cjfcsjt commented Nov 28, 2024

Avd config: pixel_xl, 2560*1440, system-images/android-33/google_apis/x86_64/

Emulator cmd: emulator -avd test "-no-window" "-no-audio" "-skip-adb-auth" "-no-boot-anim" "-gpu" "auto" "-no-snapshot-load" "-port" "5556" "-grpc" "8556"

Reproduce (suppose we have setup android env):
git clone https://github.com/google-research/android_world.git
python setup.py install
python minimal_task_runner.py --task VlcCreatePlaylist

Error:
FileNotFoundError: /data/data/org.videolan.vlc/app_db does not exist.

@crawles
Copy link
Collaborator

crawles commented Nov 29, 2024

Ah, you need to add --perform_emulator_setup, which will install VLC player, along with other apps.

python minimal_task_runner.py --task VlcCreatePlaylist --perform_emulator_setup

You only need to do this once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants