Skip to content

Troubleshooting

Sam MG Harish edited this page Oct 15, 2026 · 3 revisions

Troubleshooting

Read the scan log first. The UI shows it with a filter and a download link.

Run the server with -V to get one with detail in it: verbose mode is what writes scan.log to the scan folder, and it also keeps the JADX tree, the copied APK and provider request/metrics logs. Without -V only the WebSocket's bounded in-memory backlog exists, and GET /api/scans/{id}/logs reports persisted: false.

Scans will not start

POST /api/scans returns 400 with a status object. Check which flag is false:

Flag Fix
jadx_configured JADX path is empty, still the placeholder, or does not exist. Set an absolute path to the executable
ollama_configured The active provider has no stored key (or, for custom, no base URL). The flag covers whichever provider is active, despite the name

The scan stopped early and the report says so

The report's Incomplete analysis notice names one of:

Reason Fix
the scan's time budget was reached Raise Settings → agent budget → minutes, or set 0 for unbounded
the per-region step budget was reached Raise steps per region, or set 0
AI provider became unavailable (…) The whole key pool hit a fatal error: an exhausted quota or a rejected key. Add another key to the pool, or fix the account
one or more regions did not finish A region errored or was cancelled. agent_coverage.regions[].stop_reason says which and why

Deterministic scanner findings are complete regardless; only model-sourced findings may be missing.

The report says "Incomplete source"

Classes the decompiler never emitted. They stay in the call graph (callers and callees are still correct) but nobody could read them. The usual cause is obfuscated class names differing only by letter case, which cannot coexist on a case-insensitive filesystem. Nothing to configure; the notice exists so the gap is stated rather than silent.

Provider is rate-limiting or stalling

Symptoms: long silences at agentic, blocked_seconds climbing, regions stopping on budget_time.

  • Lower max_concurrent_requests for that provider. The fan-out runs up to 8 regions at once against one account.
  • The provider narrows its own in-flight ceiling to 1 automatically on the first real throttle; that is not an error.
  • Throttled time is credited back to the wall-clock budget, up to half the original budget. A provider stalling for longer than that will still end the phase on budget_time.
  • Add more keys to the pool. Rotation happens on fatal errors (exhausted quota, rejected key), not on ordinary throttling.

"Ollama response truncated at the output cap"

The model reasoned past its output cap: with thinking on, the reasoning trace counts against num_predict. A caller's cap already gets 4,096 tokens added for the trace (OLLAMA_THINKING_ALLOWANCE), and the provider retries such a reply with the cap doubled each time, up to OLLAMA_MAX_NUM_PREDICT (65,536), and an agent region survives a failed turn - it asks for one short action and carries on, ending only after a third failure in a row. If a model hits this on most turns, it is a poor fit for agent work; gemma4:31b was chosen for the free plan partly because others overran the cap repeatedly.

"you have reached your monthly usage limit" / "You reached the Free usage limit"

The Ollama account behind that key is out of quota (HTTP 429, classified fatal). The pool moves to the next key on its own. Once every key is out, the provider becomes unavailable, regions stop with provider_unavailable, and the scan pauses with pause_reason: "provider_quota" instead of failing; with Auto-resume on it is retried automatically after resume_after (five hours later). To continue sooner, add keys under Settings → AI providers → Ollama - or move fresh keys above exhausted ones, since keys are tried in the order listed - and resume the scan.

A scan paused with "AI provider unreachable"

Every request failed to reach the provider's host (nodename nor servname provided, Name or service not known, Connection refused): the machine was offline or asleep, or the host is down. Such failures are retried within each call; a scan that ends while the host is still unreachable pauses with pause_reason: "provider_unreachable" instead of finishing, keeps its checkpoint and working files, and with Auto-resume on is retried ten minutes later. Reconnect and resume it, or let auto-resume pick it up. An agent region resumed from a checkpoint keeps the steps and findings it had, even when its first new turn fails.

JADX decompilation fails

Decompilation is treated as failed only when the output directory is missing or empty; a non-zero exit with output present is tolerated, since JADX reports per-class failures that way.

  • The path points at the launcher script (jadx), not the GUI (jadx-gui).
  • Java is installed and on PATH. JADX is a JVM tool and fails with no useful message otherwise.
  • The APK is not an .apks, .xapk or split bundle. Only a single .apk is supported.
  • Disk space. A large app expands to a lot of source.

A Flutter, React Native, Cordova or Xamarin scan comes back detection-only or reduced

Check analysis.error first: it names the specific missing setting. The scan page shows it in a The analysis did not run card, the HTML report in place of the statistics, and the log feed as Analysis failed: <reason>. A scan that finishes in seconds with no findings and a 0.0 score is this case, not a clean app. A scan that ran but could read part of the app only in reduced form shows a Reduced coverage card with analysis.limitation.

  • Flutter, "Blutter is not configured": set blutter_path to blutter.py from a Blutter checkout. Only release builds need it; a debug build (it ships kernel_blob.bin) is analysed from its recovered Dart source without Blutter.
  • Flutter, "no app source could be recovered from the kernel snapshot": a debug build whose kernel_blob.bin holds no app source table the extractor recognises. Report the Flutter version.
  • Flutter, "Reduced coverage: Blutter disassembles arm64-v8a only": the APK has no arm64-v8a slice, typically because it was pulled from an x86_64 emulator, which is delivered only the x86_64 split. Blutter cannot read it and no general disassembler can stand in (see Static analysis), so the scan runs on libapp.so's strings, the platform layer and the native libraries. For full Dart coverage, scan an arm64-v8a or universal APK (pulled from an arm64 device, or downloaded).
  • Flutter, "Reduced coverage: Blutter could not disassemble": Blutter failed on the binary, and the scan continued in the same reduced mode. Check the checkout works and that this app's Dart version is one Blutter supports. The first run against a new Dart version compiles the SDK and can look like a hang; the 30-minute timeout covers it.
  • React Native, "This app's bundle is Hermes bytecode and hermes-decomp is not configured": set hermes_decomp_path. A plain-JavaScript bundle needs no tool.
  • React Native, "Neither hermes-decomp nor react-native-decompiler is configured": only shown when the bundle could not be read from the APK to tell its format; set hermes_decomp_path.
  • React Native, hermes-decomp exits with 137 on macOS: Gatekeeper killed a downloaded binary. Clear its quarantine flag: xattr -d com.apple.quarantine <path to hermes-decomp>.
  • React Native, "hermes-decomp could not decompile": the bundle may be outside HBC versions 40–99, or the path is wrong.
  • React Native, "react-native-decompiler could not decompile": only reached for a plain bundle the built-in Metro splitter did not recognise (Webpack, Haul); Webpack v5 is unsupported by either route.
  • Cordova, "No Cordova web assets (assets/www/) were found": the APK has no assets/www/ tree, so it isn't a Cordova app. Cordova needs no external tool.
  • Xamarin: never detection-only for a missing tool; assemblies are recovered in pure Python. ilspycmd only adds decompiled C#.
  • Any framework, "the active AI provider could not drive the agentic analysis loop": the model isn't reliably emitting the JSON action schema. Only Java/Kotlin has a full-dump fallback; switch models or providers.

The agent produces no findings

Distinguish four cases in the log:

  • Agentic loop unsupported by provider; using full-dump fallback (Java/Kotlin only): the provider errored or emitted unparseable output before any valid action. Usually a model that cannot follow a JSON schema.
  • Agent loop ended without a report; forcing a final report: a budget was hit or the provider failed after some progress. The forced report returns whatever was gathered, and anything already committed with add_finding survives regardless.
  • A report with an empty array: the model looked and concluded nothing was there. Check the code-graph line in the log to confirm the app's own code was found.
  • Findings demoted to Informational en masse: check gate_result.reasons. check_evidence_depth demotes findings from a region that read almost nothing before its provider died; that is the intended behaviour, not a bug.

Code graph did not build

Code graph build failed (...) / Flutter graph build failed (...) / RN graph build failed (...), followed by falling back to file tree. The loop still works from the flat tree, with lower-quality guidance and no region partitioning (a single unbounded agent instead).

Causes by framework. Java/Kotlin: androguard failing to parse the APK, or ownership resolving no app packages. Flutter: no asm/ in Blutter's output, no recovered dart_source/, and no recoverable secrets in pp.txt. React Native: no app_modules/ (the module split failed) and no JS files from a fallback decompiler, or a module directory containing only vendored code. Xamarin: string sidecars only, with no decompiled C# to graph (expected without ilspycmd).

A resumed scan starts from the top

A checkpoint is best-effort. A missing, unreadable or malformed checkpoint/ just runs the scan from the beginning. By design, nothing in that module may raise into a scan.

POST /scans/{id}/resume returns 400 "Scan could not be resumed" when the uploaded APK is no longer on disk. The scan folder holds the copy, so this means the folder was cleaned.

No device found for phase 2

The result records dynamic_session.reason. Check:

  • adb devices lists the device and it is not unauthorized or offline.
  • adb is on the PATH of the process running the server, which may differ from your interactive shell.
  • Dynamic verification is enabled: dynamic_verification in settings.json, or PUT /api/settings (there is no toggle on the Settings page).
  • Static analysis succeeded. Phase 2 needs the decompiled tree a failed phase 1 never produced.

Frida checks fail

Message Meaning
Root access is required for Frida. Not rooted. Use an emulator with a Google APIs image, not a Play Store image
frida-tools not found: frida-ps is neither on PATH nor beside the running Python. Install frida-tools into the environment this tool runs in; it ships as a dependency. A venv's own copy is found even when the venv is not activated. Older versions said frida-tools not available on PATH. whenever the venv was not on PATH, with the tool installed
Unsupported architecture: <abi> Only arm64-v8a, armeabi-v7a, x86_64 and x86 are mapped
Failed to download/extract frida-server No network access to GitHub releases, or the pinned version has no asset for that architecture
frida-server did not start. Usually SELinux or a stale process. Check /data/local/tmp/frida-server on the device

The on-device server version is derived from the installed frida Python binding, pinned to 16.x deliberately: Frida 17 removed the built-in Java global from raw create_script scripts, which the verification hooks use. Upgrading past 16.x breaks phase 2 hooks even though the connection succeeds.

If the loop aborts with "a device tool failed identically 3 times in a row", the runtime environment is broken rather than the finding being unprovable; the message names the failing call.

HTTPS interception fails

run_https_check distinguishes the causes:

  • Firewall. On macOS the Application Firewall silently drops inbound connections from the emulator's virtual network to an interpreter with no explicit allow rule. The tool tries to add one; grant it manually if it cannot.
  • CA install. Writing the mitmproxy CA into the system trust store needs root and a writable /system. On a modern emulator this may require restarting adbd as root and remounting.
  • Routing. Some emulator network configurations do not route through the configured proxy even after adb reverse. Known limitation.

A failed check does not fail the scan; it means no interception evidence is available for findings that would rely on it.

PDF export returns 400

pdf_generation is off in Settings. Scans that finished while it was off record reports.pdf: false, so the download button stays hidden for them until re-run.

PDF export returns 500

macOS and Linux need WeasyPrint's native dependencies (Pango and friends). Windows needs Microsoft Edge. See Installation. JSON and HTML are unaffected.

If the comprehensive PDF generator itself fails to import, the error is now a clear RuntimeError naming what to install, raised before any generator is constructed. It used to fall back to a differently-shaped generator that does not have the method being called, which crashed with an unrelated AttributeError/TypeError instead of saying what was actually missing.

inspect_native shows no decompiled code

The output's first lines say why:

  • Ghidra is not configured: set ghidra_path (see Installation). Without it the agent sees signals, strings and symbols only.
  • ... is a framework runtime, not app code: libflutter.so, libhermes.so, libreactnativejni.so and other runtimes are deliberately never decompiled.
  • library is N MB, over the 64 MB decompilation limit: skipped by design.
  • A timeout or failed run: Ghidra is given 240 s of analysis and a 720 s process limit, after which its whole process group is killed. Failures are cached for the rest of the process, so one slow library is not retried by every region. -V logs Ghidra's output.
  • objdump is not installed on this host: only the symbol table is missing. Install binutils; strings and signals are produced either way.

The agent continues in every case.

Two scans of the same APK give different reports

Expected. Same APK and same model does not necessarily mean the same results. The agents, the file review, the review pass, the title pass, chain confirmation and device verification are model calls, and a model call is not repeatable: another run reads files in a different order, follows different leads, words titles differently, can grade a borderline finding a rung differently, can accept or reject a borderline chain, and occasionally finds one issue more or one less. The scanners, mechanical gates, class ceilings, review floor, deduplication and score formula are deterministic and give the same answer for the same input.

To tell a real regression from run-to-run variation:

  • Compare the findings, not the wording: the same issue under a different title at the same file is the same finding.
  • Score both against an answer key where one exists (the lab apps in Development); a dropped issue or a severity that moves more than a rung is worth investigating, a reworded one is not.
  • Read the verbose provider logs (-V): every agent turn and every grading request and answer is kept in the scan folder, so the reason a run differs can be traced.
  • Check the coverage notice: a run that stopped on a time budget, a step budget or a provider quota covered less of the app.

A scan runs for hundreds of agent steps without finishing

With agent_budget set to 0/0 (unbounded) nothing but the model's own report ends a region. Weaker models used to lose track once old turns were compacted away and re-read the same files indefinitely; the loop now restates what has been examined and what is left after every compaction, which fixed the observed case. If a model still loops, set max_steps_per_region or max_minutes, or switch models.

Ctrl+C does not exit

It should. Workers are daemon threads specifically so interpreter shutdown is not blocked by a scan sitting in a long adb, Frida or provider call. If the process hangs, check for a foreground subprocess such as JADX inheriting the terminal.

Scans interrupted this way are recovered on the next startup: those with a usable checkpoint become paused and are auto-resumed if the setting is on.

A scan is stuck at a percentage

Percentages are not monotonic across the phase boundary: static analysis reaches 82 and dynamic verification restarts at 63. Read the phase name.

A long silence at agentic is normal: each region turn is one round trip and can take 15 seconds or more, and a stalled provider adds to it. Watch the log rather than the bar.

Deleted scan reappears, or does not

Neither should happen. A worker finishing after its scan was deleted checks whether the folder still exists and discards its result. stop_and_delete waits 10 seconds for a cancelled worker to unwind, which is shorter than a JADX run or a long provider call, so a delete during a long step returns before the worker notices; the folder is still removed.

Settings changes seem ignored

Settings are cached in-process after first load. Changes through the UI or the API refresh the cache; hand-editing settings.json while the server runs does not. Restart after editing the file directly.

Prompt overrides and skills are the exception; both resolve fresh at the start of every scan, so they apply on the next scan with no restart.

Uploaded skill is not being used

Uploads land in <config dir>/skills/ and shadow a bundled skill of the same name. Check GET /api/settings/skills: the entry should report "source": "user". A skill with a new name is only loaded when something triggers it: the core-skill table, a framework's profile skills, a region's sink families, a keyword rule in _contextual_skills, or the file review's fixed set (file_review.REVIEW_SKILLS).

The scan spends a long time on the device

Phase 2 has two parts, both costing a model call per step: verification (up to 60 steps, scaled to the number of findings) and the on-device session (up to 8 UI iterations plus environment checks). Triage decides which findings go to the device; a scan log line Verification triage failed (...); verifying all findings means every finding did, which takes longer and can leave the ones that need runtime proof unreached. Two scans share one device in turn ("Waiting for : another scan is using it"), so a second scan's device phase starts when the first one's ends. Turn off dynamic verification for static-only scans, or detach the device. Installing is skipped when the device already holds the same build (same version and SHA-256), so repeated scans of one APK do not reinstall it each time.

Clone this wiki locally