Fault Location Method Using Version-Based Mapping Files

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing exception analysis methods in application development are inefficient due to low time effectiveness and increasing application package sizes, leading to poor user experience.

Innovation Solution

A method that parses error information to obtain version and error attributes, determines a target mapping file based on version information, and uses the error attribute and mapping file to locate fault description content, optimizing storage and analysis efficiency by adjusting storage locations and using multilevel memories.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of time

If original exception analysis method is used, then fault information can be obtained, but time effectiveness is low

Engineering Contradiction:
Improvetime effectiveness of fault information analysisVSAvoidefficiency of exception analysis
Core Design Contradiction:
Loss of timeVSProductivity

Solution Approach 1:

The patent pre-processes and stores mapping relationships between error locations and source code positions in a mapping file before actual error analysis. When an error occurs, the system can directly query the pre-prepared mapping file to quickly locate fault information, avoiding time-consuming analysis of the entire application package at runtime.

Inventive Principle:
Principle #10Preliminary action

2Adaptability or versatility

If application functions continuously expand, then application capabilities improve, but application package size increases

Engineering Contradiction:
Improveapplication functionsVSAvoidapplication package size
Core Design Contradiction:
Adaptability or versatilityVSWeight of stationary object

Solution Approach 1:

The patent extracts only the necessary mapping information (error location to source code position relationships) from the application package and stores it in a separate mapping file. This separation allows the main application package to remain compact while still providing comprehensive error analysis capabilities through the external mapping file.

Inventive Principle:
Principle #2Taking out (Extraction)

3Measurement precision

If comprehensive error analysis is performed, then fault location accuracy improves, but analysis time increases

Engineering Contradiction:
Improvefault location accuracyVSAvoidanalysis time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system pre-calculates and stores the mapping relationships between error locations and source code positions during application development or deployment. When an error occurs, the system directly queries this pre-prepared mapping data to achieve both high accuracy in fault location and fast analysis speed, eliminating the need for time-consuming real-time analysis.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12182009B2Method, electronic device, and storage medium for locating fault information
Publication Date: 2024.12.31 BEIJING BAIDU NETCOM SCI & TECH CO LTD
  • US12182009B2 patent drawing
  • US12182009B2 patent drawing
  • US12182009B2 patent drawing

AI summary

A method for locating a fault information is provided. The method includes: parsing error information of a target application to obtain version information and an error attribute of the target application; determining, based on the version information, a target mapping file corresponding to the error information; and determining a target location by utilizing the error attribute and the target mapping file, where the target location is used to determine a location of fault description content.