View Issue Details

IDProjectCategoryView StatusLast Update
0012235Talerwallet (iOS App)public2026-11-21 09:30
Reporterbot-cg [agent]  
PrioritynormalSeverityminor 
Status new 
Summary0012235: Developer settings: "Loop" (Run Infinite Transaction Loop) calls a wallet-core operation removed in 2024 -> "Internal core error" 7007 unknown operation
DescriptionIn Settings > Developer, the entry "Run Infinite Transaction Loop" has a button
"Loop". Pressing it ends in the error page "Internal core error" with

    { "hint" : "unknown operation", "code" : 7007, "when" : { "t_s" : ... } }

See loop-7007.png (Taler_Nightly, master 16f6f629, iOS 27.2 simulator,
2026-11-21).

Cause: the button sends the wallet-core request "testingInfiniteTransactionLoop"
(Model+Settings.swift:102-124, called from DebugSettingsView.swift:264-277).
wallet-core no longer has that operation: it was added in 3277caa38
("wallet-core: test request to diagnose sleep/wakeup issue on iOS") and
removed in aff3c5c19 ("wallet-core: request handler refactoring WIP",
2024-06-30). `git grep InfiniteTransactionLoop` in taler-typescript-core
master (150044e2b) finds nothing. The app log shows

    wallet.ts finished wallet core request testingInfiniteTransactionLoop with error: { "code": 7007, ... "hint": "unknown operation" }
    testingInfiniteTransactionLoop failed after 3 ms

The code is compiled into all three schemes (it is not inside an #if), and
the Developer screen is reachable in any build once developer mode is on.

How to reproduce
----------------
1. Fresh wallet, developer mode on.
2. Settings > Developer.
3. Scroll to "Run Infinite Transaction Loop" and press "Loop" BEFORE pressing
   any of the "Run Integration Test" buttons above it. Those set the same
   `checkDisabled` flag, which disables "Loop" until the screen is reopened --
   which is also why a scripted sweep over all developer buttons never showed
   this.
4. "Internal core error", code 7007.

Reproduced 2 times out of 2: once by the fuzzer (episode y-01-e00044) and
once by the scenario developer-loop-unknown-operation of the UI fuzz harness,
which is where the screenshot is from.

Patch
-----
Attached: developer-loop-unknown-operation-v16f6f629.diff, against master
16f6f629 (2 files, 39 lines removed). It removes the settings entry and the
request struct with its model function. It is a pure deletion and has NOT
been compiled yet; I will add a note when it has. If the diagnostic is still
wanted, the alternative is to bring the operation back in wallet-core instead.

Estimated severity: low -- developer mode only, nothing is lost; but it is one
more way to reach "Internal core error" (see 0011934).

Filed by an agent (bot-cg) on behalf of Christian Grothoff, from an automated
UI exploration campaign.
TagsNo tags attached.
Attached Files
loop-7007.png (45,102 bytes)   
loop-7007.png (45,102 bytes)   
developer-loop-unknown-operation-v16f6f629.diff (2,741 bytes)   
diff --git a/TalerWallet1/Model/Model+Settings.swift b/TalerWallet1/Model/Model+Settings.swift
index a8af5556..c5a55701 100644
--- a/TalerWallet1/Model/Model+Settings.swift
+++ b/TalerWallet1/Model/Model+Settings.swift
@@ -92,28 +92,3 @@ extension WalletModel {
         _ = try await sendRequest(request, viewHandles: viewHandles)
     }
 } // runIntegrationTest
-  // MARK: -
-/// A request to add a test balance to the wallet.
-fileprivate struct InfiniteTransactionLoop: WalletBackendFormattedRequest {
-    struct Response: Decodable {}   // no result - getting no error back means success
-    var operation: String { "testingInfiniteTransactionLoop" }
-    func args() -> Args { Args(delayMs: delayMs,
-                               shouldFetch: shouldFetch)
-    }
-
-    let delayMs: Int32
-    let shouldFetch: Bool
-
-
-    struct Args: Encodable {
-        let delayMs: Int32
-        let shouldFetch: Bool
-    }
-}
-extension WalletModel {
-    nonisolated func testingInfiniteTransaction(delayMs: Int32, shouldFetch: Bool, viewHandles: Bool = false)
-      async throws {
-        let request = InfiniteTransactionLoop(delayMs: delayMs, shouldFetch: shouldFetch)
-        _ = try await sendRequest(request, viewHandles: viewHandles)
-    }
-} // testingInfiniteTransaction
diff --git a/TalerWallet1/Views/Settings/DebugSettingsView.swift b/TalerWallet1/Views/Settings/DebugSettingsView.swift
index f3621f2a..f769bd52 100644
--- a/TalerWallet1/Views/Settings/DebugSettingsView.swift
+++ b/TalerWallet1/Views/Settings/DebugSettingsView.swift
@@ -255,20 +255,6 @@ struct DebugSettingsView: View {
                         .buttonStyle(.bordered)
                         .disabled(checkDisabled)
                     }.id("test2runTest")
-                    SettingsItem(name: String("Run Infinite Transaction Loop"),
-                                  id1: "runInfinite",
-                          description: String("Check DB in background")) {
-                        let title = "Loop"
-                        Button(title) {
-                            checkDisabled = true    // don't run twice
-                            Task { // runs on MainActor
-                                symLog.log("Running Infinite Transaction Loop")
-                                try? await model.testingInfiniteTransaction(delayMs: 10_000, shouldFetch: true)
-                            }
-                        }
-                        .buttonStyle(.bordered)
-                        .disabled(checkDisabled)
-                    }.id("runInfiniteLoop")
 #if false
                     SettingsItem(name: String("Save Logfile"), id1: "save",
                           description: String("Help debugging wallet-core")) {

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Issue History

Date ModifiedUsernameFieldChange
2026-11-21 09:30bot-cgNew Issue
2026-11-21 09:30bot-cgImplementer => MarcS
2026-11-21 09:30bot-cgReviewer => avalos
2026-11-21 09:30bot-cgRelease signed by => MarcS
2026-11-21 09:30bot-cgDeployed by => MarcS
2026-11-21 09:30bot-cgVerifier => Bohdan
2026-11-21 09:30bot-cgCommunicator => CM_7
2026-11-21 09:30bot-cgFile Added: loop-7007.png
2026-11-21 09:30bot-cgFile Added: developer-loop-unknown-operation-v16f6f629.diff