JubeatPlus 3.9.11
Loading...
Searching...
No Matches
neUIProbe.h File Reference

Runtime UIKit diagnostics for the settings sheet's presentation and navigation. More...

import <UIKit/UIKit.h>
Include dependency graph for neUIProbe.h:

Go to the source code of this file.

Functions

NS_ASSUME_NONNULL_BEGIN void neUIProbeInstall (void)
 Installs the touch tracer, the main-thread heartbeat, and the run-loop watchdog.
void neUIProbeLogController (const char *tag, UIViewController *_Nullable controller)
 Logs one line describing where a view controller currently sits in UIKit's appearance and transition state machine.
void neUIProbeTraceTransition (const char *tag, UIViewController *controller)
 Registers a completion on the controller's current transition coordinator.
void neUIProbeLogWindowTree (const char *tag)
 Logs every window and, for the key window, its view tree.

Detailed Description

Runtime UIKit diagnostics for the settings sheet's presentation and navigation.

This code is NOT part of the original binary. Every entry point below is an empty inline unless the build defines JBDBG (see the JBDBG CMake option and neDebugLog.h ), so a faithful build carries none of it and no call site needs an #ifdef .

The settings screen fails in a way that reading the source cannot settle: a tap registers, the transition starts, and then nothing further happens. Three different faults produce exactly that and they need different fixes, so the probe is built to tell them apart in one capture:

  1. The main thread is blocked. neUIProbeInstall arms a watchdog on a background queue that watches a timestamp only the main run loop updates, so a stall shows up as an explicit "main run loop idle" line rather than as an absence of lines.
  2. UIKit is refusing to deliver events. The heartbeat reports -[UIApplication isIgnoringInteractionEvents] and the key window's interaction flag every tick, so an unbalanced ignore-interaction pair is visible even while nothing is tapped.
  3. Something is swallowing the touch. The window's -sendEvent: is traced, reporting the hit-test view and its ancestor chain for every touch that begins, so a transparent cover or a stale transition view names itself.

Capture with: idevicesyslog | grep JBPDBG

Function Documentation

◆ neUIProbeInstall()

NS_ASSUME_NONNULL_BEGIN void neUIProbeInstall ( void )

Installs the touch tracer, the main-thread heartbeat, and the run-loop watchdog.

Safe to call more than once; only the first call installs. Must be called on the main thread, after the key window exists. Does nothing unless the build defines JBDBG .

◆ neUIProbeLogController()

void neUIProbeLogController ( const char * tag,
UIViewController *_Nullable controller )

Logs one line describing where a view controller currently sits in UIKit's appearance and transition state machine.

Reports the presented/dismissed/moving flags, whether the view is in a window, whether a transition coordinator is running, and the enclosing navigation stack depth. Comparing the line from a working transition with the line from a wedged one is what localises the fault.

Parameters
tagA short call-site label, printed verbatim.
controllerThe controller to describe. A nil controller logs a "nil" line rather than nothing, so a missing object is distinguishable from a missing call.

◆ neUIProbeLogWindowTree()

void neUIProbeLogWindowTree ( const char * tag)

Logs every window and, for the key window, its view tree.

Each view reports its class, frame, alpha, hidden and user-interaction flags, so a full-screen transparent view that takes every touch is visible as a row in the dump. Bounded in depth and in the number of siblings printed, because the game's own view tree is large.

Parameters
tagA short call-site label, printed verbatim.

◆ neUIProbeTraceTransition()

void neUIProbeTraceTransition ( const char * tag,
UIViewController * controller )

Registers a completion on the controller's current transition coordinator.

Call from -viewWillAppear: or -viewWillDisappear: . The completion logs when the transition ends and, critically, whether it was cancelled – a cancelled transition leaves a navigation controller wedged while every appearance callback still looks normal, and nothing else in a capture distinguishes that from a transition that simply never finished.

Logs a line immediately when the controller has no transition coordinator, since an animated transition that reports none is itself the finding.

Parameters
tagA short call-site label, printed verbatim.
controllerThe controller whose coordinator is traced.