Exception Stack Acquisition for Mobile Apps
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing methods fail to timely acquire and upload exception stack information in APP programs, leading to difficulties in locating and analyzing exceptions, especially when the APP is not restarted after a crash.
Innovation Solution
An exception stack information acquisition method that senses a preset exception signal, calls an exception signal processing function to acquire native layer information, reads APP layer information, assembles both, and reports them to a server before aborting the project, allowing for real-time monitoring and rapid issue resolution.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of time
If the existing method of locally acquiring and uploading exception stack information when the APP is restarted is used, then the upload process is simple, but the exception stack information cannot be acquired and uploaded timely when the user does not restart the APP
Solution Approach 1:
The patent applies preliminary action by sensing exception signals and acquiring exception stack information immediately when an exception occurs, rather than waiting for the APP to be restarted. The exception signal sensing module continuously monitors for exceptions and triggers the acquisition process proactively, ensuring information is captured at the moment of the exception event.
Solution Approach 2:
The patent implements feedback by uploading the acquired exception stack information to a server for analysis. The server receives and processes the exception information, providing feedback to developers about the exceptions occurring in the APP. This closed-loop feedback mechanism ensures exception information is not only collected but also utilized for improvement.
2Reliability
If the APP is forcibly terminated after exception detection to prevent further damage, then system stability is improved, but complete exception stack information cannot be acquired for analysis
Solution Approach 1:
The patent applies preliminary action by acquiring the exception stack information from both the native layer and APP layer immediately when an exception signal is detected, before the APP is terminated. This ensures that all necessary information is captured while the system state is still intact and can be used for subsequent analysis.
Solution Approach 2:
The patent merges the exception stack information from two different layers - the native layer (first exception stack information) and the APP layer (second exception stack information) - into a complete exception report. This combination ensures comprehensive information capture that neither layer could provide alone.
Data Source
AI summary
An exception stack information acquisition method, including: when a preset exception signal is sensed in a running process of a project, calling and executing an exception signal processing function to acquire first exception stack information of a native layer; reading second exception stack information recorded by an Application (APP) layer when the exception signal is sensed; and assembling the first exception stack information and the second exception stack information to obtain assembled information, then reporting the assembled information to a server, and aborting the project after reporting is completed.


