0x192 / 0x192/universal-android-debloater

Crash after uninstalling each APK in version 0.5.1 - MacOS - M1 Pro

Open
#955 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
19.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Chip: Apple M1 Pro
OS: MacOS 14.2.1 (23C71)
Version: universal-android-debloater 0.5.1
Affected Versions:
uad_gui-noselfupdate-macos-opengl.tar.gz
uad_gui-noselfupdate-macos.tar.gz

Open the tool, uninstall any APK, the software crashes.

**Expected behavior**
The software should not crash, remain open and allow the user to uninstall more apps just like the older version.

**You have a solution?**
What to do to fix the issue.

**UAD log**

maulik.lakhani$ ./uad_gui-noselfupdate-macos
2024-01-08 20:56:47 WARN [src/gui/mod.rs:102] Trying to download remote UAD list
2024-01-08 20:56:48 WARN [src/gui/views/list.rs:142] No custom selection imported: No such file or directory (os error 2)
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 28', src/gui/views/list.rs:348:69
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
maulik.lakhani$

Contributor guide

No contributing guide indexed for this repository

Research direction

The crash occurs in src/gui/views/list.rs at line 348, where an index 28 is accessed on an empty list. Start by examining the list.rs file around line 348 to understand the data structure and why its length is zero. Run the GUI with RUST_BACKTRACE=1 to get a full stack trace. The issue likely relates to the APK list being empty after an uninstall operation, so check how the list is updated. Look for tests in the repository related to list updates or uninstall operations.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.