Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Program crash information collection method and system

A technology of program crash and collection system, which is applied in the direction of instrumentation, electrical digital data processing, calculation, etc., and can solve problems such as failure to collect crash information on the Native layer

Active Publication Date: 2017-06-13
北京如布科技有限公司
View PDF2 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to solve the defect that the Native layer crash information cannot be fully collected in the prior art, the present invention provides a method for collecting program crash information, including:

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Program crash information collection method and system
  • Program crash information collection method and system
  • Program crash information collection method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] Such as figure 1 As shown, this embodiment provides a method for collecting program crash information, which is used to collect Native crash information, including the following steps:

[0033] Each application service is loaded with a monitoring interface, and the monitoring interface is initialized; the monitoring interface is used to monitor whether the Native layer crashes.

[0034] Specifically, firstly, the monitoring interfaces are respectively loaded for each application service. The listening interface is usually implemented by a listener, which is a common Java program that implements a specific interface, and the listener is used to listen to method calls or property changes of another Java object. Each listener interface contains several abstract methods for handling the above events. Usually each application service has a listening interface corresponding to it, and each interface can also define one or more methods. These methods are called when certain...

Embodiment 2

[0063] This embodiment provides a collection system corresponding to the collection method in Embodiment 1, so in this embodiment, the same content as Embodiment 1 will not be repeated here.

[0064] Such as figure 2 and image 3 As shown, this embodiment provides a system for collecting program crash information, including:

[0065] The monitoring module 1 is used to load the monitoring interface for each application service and initialize the monitoring interface. The monitoring interface is used to monitor whether the Native layer crashes.

[0066] The monitoring module contains multiple monitoring interfaces, usually one monitoring interface is configured for each application service. When a crash occurs, the corresponding program set in the monitoring interface is executed immediately, which plays a role in notifying the lower layer of the Java layer that a crash has occurred. Before starting the program, the monitoring interface needs to be initialized.

[0067] The...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of computer applications and discloses a program crash information collection method and system. The program crash information collection method comprises the steps of loading a monitoring interface by each application service, and initializing the monitoring interface; when the monitoring interface monitors that a Native layer crashes, performing crash information collection; and storing the collected crash information in a specified path, and uploading the crash information to a server, wherein the operation of performing the crash information collection comprises the steps of collecting a crash log of the Native layer; executing a Shell command and notifying a Java layer of Native crash; collecting system key information during Native crash. According to the program crash information collection method and system, the monitoring interface is loaded in each application service and is initialized, so that whether the Native layer crashes or not can be monitored in real time, and a process can skip to a crash information collection process in time when a program crashes; and the crash information is comprehensively collected, so that a developer can search for a crash reason conveniently.

Description

technical field [0001] The invention relates to the technical field of computer applications, in particular to a method and system for collecting program crash information. Background technique [0002] Android (Android) is a free and open-source operating system based on Linux, which is mainly used on mobile devices, such as smart phones and tablet computers. Due to its good open-source feature, the Android system has more and more people engaged in the development of Android application programs, which in turn has prompted the emergence of multiple versions of the Android system and application programs on the market. Numerous versions have resulted in poor compatibility of the system, serious fragmentation of the Android system, frequent application crashes, and some serious crashes even occurred after the release of the software product, making the user experience worse. Through crash capture and collection, exceptions of published applications can be collected for deve...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/30G06F11/34G06F11/36
CPCG06F11/302G06F11/3476G06F11/3612
Inventor 唐智慧雷宇
Owner 北京如布科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products