CN115269252A - Application fault handling method, device, device and storage medium - Google Patents
Application fault handling method, device, device and storage medium Download PDFInfo
- Publication number
- CN115269252A CN115269252A CN202210938380.8A CN202210938380A CN115269252A CN 115269252 A CN115269252 A CN 115269252A CN 202210938380 A CN202210938380 A CN 202210938380A CN 115269252 A CN115269252 A CN 115269252A
- Authority
- CN
- China
- Prior art keywords
- target
- crash
- module
- application program
- interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/079—Root cause analysis, i.e. error or fault diagnosis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0793—Remedial or corrective actions
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本申请涉及人工智能的技术领域,尤其涉及一种应用程序故障处理方法、装置、设备及存储介质。The present application relates to the technical field of artificial intelligence, and in particular to a method, device, device and storage medium for handling application faults.
背景技术Background technique
目前,对于很多应用程序来说,不可避免的会发生程序崩溃现象,无论开发者将程序写得多完美,总是无法完全避免程序崩溃的发生,而应用程序在出现异常时,自行处理的方式为闪退或者停止运行该应用程序,影响用户体验。At present, for many applications, it is inevitable that program crashes will occur. No matter how perfect the developer writes the program, the occurrence of program crashes cannot be completely avoided. When an exception occurs, the application will handle it by itself. To crash or stop running the application, affecting user experience.
发明内容Contents of the invention
本申请的主要目的在于提供一种应用程序故障处理方法、装置、设备及存储介质,旨在解决现有技术中应用程序崩溃导致用户体验不佳的问题。The main purpose of the present application is to provide a method, device, device, and storage medium for handling application failures, aiming at solving the problem in the prior art that application failures lead to poor user experience.
第一方面,本申请提供一种应用程序故障处理方法,包括:In a first aspect, the present application provides a method for handling application faults, including:
当接收到目标应用程序的目标界面加载指令时,判断加载所述目标界面是否会触发所述目标应用程序崩溃;When a target interface loading instruction of the target application is received, it is determined whether loading the target interface will trigger the target application to crash;
当加载所述目标界面会触发所述目标应用程序崩溃时,判断是否存在解决所述目标应用程序崩溃问题的修复代码;When loading the target interface will trigger the target application program to crash, determine whether there is a repair code to solve the target application program crash problem;
当不存在所述修复代码时,识别触发所述目标应用程序崩溃的目标模块,其中,所述目标模块为构成所述目标界面的视图模块之一;When the repair code does not exist, identifying a target module that triggers the crash of the target application program, wherein the target module is one of the view modules constituting the target interface;
在加载所述目标界面时不加载所述目标模块。The target module is not loaded when the target interface is loaded.
第二方面,本申请还提供一种应用程序故障处理装置,所述应用程序故障处理装置包括:In a second aspect, the present application also provides an application program fault processing device, the application program fault processing device comprising:
加载指令接收模块,用于当接收到目标应用程序的目标界面加载指令时,判断加载所述目标界面是否会触发所述目标应用程序崩溃;A loading instruction receiving module, configured to determine whether loading the target interface will trigger the target application to crash when receiving the target interface loading instruction of the target application;
修复代码查询模块,用于当加载所述目标界面会触发所述目标应用程序崩溃时,判断是否存在解决所述目标应用程序崩溃问题的修复代码;A repair code query module, used to determine whether there is a repair code to solve the crash problem of the target application when loading the target interface will trigger the crash of the target application;
识别模块,用于当不存在所述修复代码时,识别触发所述目标应用程序崩溃的目标模块,其中,所述目标模块为构成所述目标界面的视图模块之一;An identification module, configured to identify a target module that triggers the crash of the target application program when the repair code does not exist, wherein the target module is one of the view modules constituting the target interface;
第一加载模块,用于在加载所述目标界面时不加载所述目标模块。The first loading module is configured not to load the target module when loading the target interface.
第三方面,本申请还提供一种计算机设备,所述计算机设备包括处理器、存储器、以及存储在所述存储器上并可被所述处理器执行的计算机程序,其中所述计算机程序被所述处理器执行时,实现如上所述的应用程序故障处理方法的步骤。In a third aspect, the present application further provides a computer device, the computer device includes a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program is executed by the When the processor executes, it implements the steps of the above-mentioned application program fault handling method.
第四方面,本申请还提供一种存储介质,所述计算机可读存储介质上存储有计算机程序,其中所述计算机程序被处理器执行时,实现如上所述的应用程序故障处理方法的步骤。In a fourth aspect, the present application further provides a storage medium, where a computer program is stored on the computer-readable storage medium, wherein when the computer program is executed by a processor, the steps of the above-mentioned application program fault handling method are realized.
本申请提供一种应用程序故障处理方法、装置、设备及存储介质,本申请中,当接收到目标应用程序的目标界面加载指令时,判断加载目标界面是否会触发目标应用程序崩溃;当加载目标界面会触发目标应用程序崩溃时,判断是否存在解决目标应用程序崩溃问题的修复代码;当不存在修复代码时,识别触发目标应用程序崩溃的目标模块,在加载目标界面时不加载目标模块,即可避免出现加载目标界面导致目标应用程序崩溃的问题。通过本申请所提供的技术方案,解决了现有技术中应用程序崩溃导致用户体验不佳的问题。The present application provides a method, device, device, and storage medium for handling application faults. In the present application, when a target interface loading instruction of the target application is received, it is judged whether loading the target interface will trigger the target application to crash; when loading the target When the interface triggers the crash of the target application, determine whether there is a repair code to solve the crash of the target application; when there is no repair code, identify the target module that triggers the crash of the target application, and do not load the target module when loading the target interface, that is The problem that the target application crashes due to loading the target interface can be avoided. Through the technical solution provided by the present application, the problem in the prior art that the crash of the application program leads to poor user experience is solved.
附图说明Description of drawings
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present application. Ordinary technicians can also obtain other drawings based on these drawings on the premise of not paying creative work.
图1为本申请实施例提供的一种应用程序故障处理方法的步骤流程示意图;FIG. 1 is a schematic flowchart of the steps of a method for handling application faults provided in an embodiment of the present application;
图2为本申请实施例提供的一种应用程序故障处理装置的示意性框图;FIG. 2 is a schematic block diagram of an application program fault processing device provided by an embodiment of the present application;
图3为本申请实施例提供的一种计算机设备的结构示意性框图。FIG. 3 is a schematic structural block diagram of a computer device provided by an embodiment of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。另外,虽然在装置示意图中进行了功能模块的划分,但是在某些情况下,可以以不同于装置示意图中的模块划分。The flow charts shown in the drawings are just illustrations, and do not necessarily include all contents and operations/steps, nor must they be performed in the order described. For example, some operations/steps can be decomposed, combined or partly combined, so the actual order of execution may be changed according to the actual situation. In addition, although the functional modules are divided in the schematic diagram of the device, in some cases, they may be divided into modules different from those in the schematic diagram of the device.
本申请实施例提供一种应用程序故障处理方法、装置、设备及存储介质。其中,该方法应用于终端设备中,该终端设备可以为手机、平板电脑、笔记本电脑、台式电脑、个人数字助理和穿戴式设备等电子设备。Embodiments of the present application provide a method, device, device, and storage medium for handling application faults. Wherein, the method is applied to a terminal device, and the terminal device may be an electronic device such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some implementations of the present application will be described in detail below in conjunction with the accompanying drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
请参照图1,图1为本申请实施例提供的一种应用程序故障处理方法的步骤流程示意图。Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of steps of a method for handling an application program failure provided by an embodiment of the present application.
如图1所示,该应用程序故障处理方法包括步骤S10至步骤S13。As shown in FIG. 1 , the application program fault handling method includes steps S10 to S13.
步骤S10、当接收到目标应用程序的目标界面加载指令时,判断加载所述目标界面是否会触发所述目标应用程序崩溃。Step S10, when receiving a target interface loading instruction of the target application, determine whether loading the target interface will trigger the target application to crash.
可以理解,目标应用程序为终端设备当前正在运行的程序,而目标界面加载指令为终端设备接收到的在目标应用程序加载目标界面的指令。It can be understood that the target application program is a program currently running on the terminal device, and the target interface loading instruction is an instruction received by the terminal device to load the target interface in the target application program.
示例性的,假设终端设备上的目标应用程序当前正在展示订单列表界面,当用户点击订单列表界面上的某个订单的“订单详情”按钮,此时,终端设备接收到该目标应用程序的订单详情界面加载指令,触发目标应用程序跳转并加载订单详情界面。Exemplarily, assuming that the target application on the terminal device is currently displaying an order list interface, when the user clicks the "order details" button of an order on the order list interface, the terminal device receives the order of the target application The command to load the details interface triggers the target application to jump and load the order details interface.
可以理解,目标应用程序是根据开发人员编写的代码运行的,如果开发人员编写的代码不够严谨存在漏洞,在终端设备接收到目标界面加载指令并在目标应用程序加载目标界面的过程中,可能会因为数组越界、调用函数错误或者内存泄漏等情况而导致目标应用程序崩溃。It can be understood that the target application program runs according to the code written by the developer. If the code written by the developer is not rigorous enough and there are loopholes, when the terminal device receives the target interface loading instruction and the target application program loads the target interface, there may be The target application crashes due to conditions such as an array out of bounds, an error in calling a function, or a memory leak.
在加载目标界面之前,先判断加载目标界面是否会导致目标应用程序崩溃,并根据判断结果进行处理后再加载目标界面,可以避免目标应用程序在加载目标界面时因为程序崩溃而影响用户体验。Before loading the target interface, first judge whether loading the target interface will cause the target application to crash, and then load the target interface after processing according to the judgment result, which can prevent the target application from affecting the user experience due to the program crash when loading the target interface.
在一些实施方式中,所述判断加载所述目标界面是否会触发所述目标应用程序崩溃,包括:In some implementation manners, the judging whether loading the target interface will trigger the crash of the target application program includes:
获取所述目标应用程序的程序标识信息,并获取与所述程序标识信息匹配的历史崩溃信息;Obtaining program identification information of the target application program, and acquiring historical crash information matching the program identification information;
获取所述目标界面对应的界面标识信息,并根据所述历史崩溃信息查询是否存在与所述界面标识信息匹配的目标崩溃日志;Obtaining the interface identification information corresponding to the target interface, and querying whether there is a target crash log matching the interface identification information according to the historical crash information;
当存在所述目标崩溃日志时,根据所述目标崩溃日志判断加载所述目标界面是否会触发所述目标应用程序崩溃。When the target crash log exists, it is judged according to the target crash log whether loading the target interface will trigger the target application program to crash.
其中,程序标识信息为用于标识目标应用程序的身份的应用ID,而界面标识信息为目标应用程序中用于标识目标界面的身份的界面ID。Wherein, the program identification information is an application ID for identifying the identity of the target application program, and the interface identification information is an interface ID for identifying the identity of the target interface in the target application program.
可以理解,根据程序标识信息匹配出来的历史崩溃信息,为目标应用程序在任意终端设备上运行的过程中出现崩溃问题时记录下来的崩溃日志信息。It can be understood that the historical crash information matched according to the program identification information is the crash log information recorded when the target application program crashes on any terminal device.
具体的,当任意终端设备上的应用程序在运行的过程中出现崩溃问题时,生成崩溃日志信息并将崩溃日志信息上传到服务器,以让服务器根据崩溃的应用程序的应用ID与崩溃日志信息建立映射关系并进行保存。因此,当终端设备获取到目标应用程序的程序标识信息以后,即可通过服务器查询是否存在与该程序标识信息对应的历史崩溃信息。Specifically, when an application program on any terminal device crashes during running, generate crash log information and upload the crash log information to the server, so that the server can establish a Map the relationship and save it. Therefore, after the terminal device obtains the program identification information of the target application program, it can query whether there is historical crash information corresponding to the program identification information through the server.
示例性的,假设服务器中记录的程序标识信息与崩溃日志信息如下表一所示。Exemplarily, it is assumed that the program identification information and crash log information recorded in the server are shown in Table 1 below.
表一、Table I,
假设目标应用程序的程序标识信息为“应用1”,则通过服务器所获取到的与程序标识信息匹配的历史崩溃信息包括“日志1”、“日志2”以及“日志3”。Assuming that the program identification information of the target application is "application 1", the historical crash information obtained by the server and matching the program identification information includes "log 1", "log 2" and "log 3".
可以理解,历史崩溃信息中记录的崩溃日志的数量是不确定的,而每个崩溃日志中都记录了目标应用程序发生崩溃时的崩溃界面ID,以及目标应用程序崩溃的其他崩溃信息。It can be understood that the number of crash logs recorded in the historical crash information is uncertain, and each crash log records the crash interface ID when the target application crashes, and other crash information of the target application crash.
因此,获取到界面标识信息以及历史崩溃信息以后,即可判断历史崩溃信息中是否存在崩溃界面ID与界面标识信息匹配的目标崩溃日志。Therefore, after obtaining the interface identification information and historical crash information, it can be determined whether there is a target crash log whose crash interface ID matches the interface identification information in the historical crash information.
示例性的,假设历史崩溃信息中的崩溃日志所记录的信息如下表二所示。Exemplarily, it is assumed that the information recorded in the crash log in the historical crash information is shown in Table 2 below.
表二、Table II,
假设界面标识信息为“OrderDetailVC”,则历史崩溃信息中存在与界面标识信息匹配的目标崩溃日志,且所确定的目标崩溃日志为“日志3”。Assuming that the interface identification information is "OrderDetailVC", there is a target crash log matching the interface identification information in the historical crash information, and the determined target crash log is "log 3".
当获取到目标崩溃日志以后,即可根据目标崩溃日志的崩溃原因判断加载目标界面是否会触发目标应用程序崩溃。After the target crash log is obtained, it can be judged according to the crash cause of the target crash log whether loading the target interface will trigger the crash of the target application.
在一些实施方式中,所述根据所述目标崩溃日志判断加载所述目标界面是否会触发所述目标应用程序崩溃,包括:In some implementation manners, the judging according to the target crash log whether loading the target interface will trigger the target application to crash includes:
获取当前运行的所述目标应用程序的版本号作为第一版本号,并从所述目标崩溃日志中获取发生崩溃的所述目标应用程序的版本号作为第二版本号;Obtaining the version number of the currently running target application program as a first version number, and obtaining the version number of the target application program that crashed from the target crash log as a second version number;
当所述第一版本号等于所述第二版本号时,判定加载所述目标界面会触发所述目标应用程序崩溃。When the first version number is equal to the second version number, it is determined that loading the target interface will trigger the target application program to crash.
可以理解,当开发人员完成产品经理的迭代需求以后,就会发布新版本的应用程序到应用市场上,并通过版本号来区分应用程序的版本。It can be understood that when the developer completes the iterative requirements of the product manager, he will release a new version of the application to the application market, and use the version number to distinguish the version of the application.
目标崩溃日志中记录了之前发生崩溃的目标应用程序的版本号,也即第二版本号,终端设备当前运行的目标应用程序的版本号即为第一版本号。The target crash log records the version number of the target application program that crashed before, that is, the second version number, and the version number of the target application program currently running on the terminal device is the first version number.
可以理解,若第一版本号等于第二版本号。此时,终端设备如果直接加载目标界面,则极有可能会再次出现目标应用程序崩溃的情况。因此,判定加载目标界面会触发目标应用程序崩溃。It can be understood that if the first version number is equal to the second version number. At this time, if the terminal device directly loads the target interface, it is very likely that the target application program will crash again. Therefore, it is determined that loading the target interface will trigger the target application to crash.
步骤S11、当加载所述目标界面会触发所述目标应用程序崩溃时,判断是否存在解决所述目标应用程序崩溃问题的修复代码。Step S11 , when loading the target interface will trigger the target application program to crash, determine whether there is a repair code to solve the problem of the target application program crashing.
可以理解,目标应用程序在加载目标界面时出现崩溃,极有可能是因为编写的目标应用程序的运行代码有问题导致的。另外,开发人员在目标应用程序的迭代开发的过程中,可能已经解决了加载目标界面时目标应用程序崩溃的问题,此时,如果开发人员将代码上传到预设的代码仓库,终端设备即可从代码仓库中获取到修复代码。It can be understood that the crash of the target application program when loading the target interface is most likely caused by a problem with the running code of the written target application program. In addition, during the iterative development of the target application, the developer may have solved the problem of the target application crashing when loading the target interface. At this time, if the developer uploads the code to the preset code warehouse, the terminal device can Get the fix code from the code repository.
修复代码为用于解决加载目标界面导致目标应用程序崩溃问题的代码,因此,当判定加载目标界面会触发目标应用程序崩溃时,可以先去判断是否存在修复代码。The repair code is the code used to solve the problem that the target application program crashes due to loading the target interface. Therefore, when it is determined that loading the target interface will trigger the target application program to crash, you can first determine whether there is a repair code.
在一些实施方式中,所述判断是否存在解决所述目标应用程序崩溃问题的修复代码,包括:In some implementation manners, the judging whether there is a repair code for solving the crash problem of the target application includes:
获取与所述程序标识信息匹配的崩溃应对策略,并根据所述崩溃应对策略判断是否存在与所述目标崩溃日志匹配的目标修复策略;Obtaining a crash response strategy that matches the program identification information, and judging whether there is a target repair strategy that matches the target crash log according to the crash response strategy;
当存在所述目标修复策略时,判定存在解决所述目标应用程序崩溃问题的修复代码。When the target repair strategy exists, it is determined that there is a repair code for solving the crash problem of the target application program.
可以理解,目标应用程序可能存在多种触发崩溃的情况,如,在加载界面1的时候可能会崩溃,在加载界面2的时候也可能会崩溃。开发人员根据崩溃日志发现崩溃问题以后,会尝试解决崩溃问题,并将已解决崩溃问题的解决方案存储到服务器中,形成崩溃应对策略。It can be understood that there may be multiple situations that trigger the crash of the target application program, for example, it may crash when the interface 1 is loaded, and it may also crash when the interface 2 is loaded. After the developer discovers the crash problem based on the crash log, he will try to solve the crash problem, and store the solution to the crash problem in the server to form a crash response strategy.
但是,崩溃应对策略中并不一定记载有目标应用程序所有崩溃场景的修复策略,如果崩溃应对策略中记录有与目标崩溃日志匹配的目标修复策略,则说明开发人员已经解决了目标应用程序加载目标界面的崩溃问题,因此,判定存在解决程序崩溃问题的修复代码However, the crash response strategy does not necessarily record the repair strategy for all crash scenarios of the target application. If the crash response strategy records a target repair strategy that matches the target crash log, it means that the developer has solved the target application loading target. The crash problem of the interface, therefore, it is determined that there is a fix code to solve the program crash problem
步骤S12、当不存在所述修复代码时,识别触发所述目标应用程序崩溃的目标模块,其中,所述目标模块为构成所述目标界面的视图模块之一。Step S12. When the repair code does not exist, identify the target module that triggers the crash of the target application program, wherein the target module is one of the view modules constituting the target interface.
在一些实施方式中,当崩溃应对策略中不存在与目标崩溃日志匹配的目标修复策略时,说明不存在修复代码。In some embodiments, when there is no target repair policy matching the target crash log in the crash response policy, it means that there is no repair code.
可以理解,目标界面中可能包含多个视图模块,目标应用程序通过加载这些视图模块来加载目标界面。而目标应用程序加载目标界面出现崩溃的情况,可能是加载其中的某些视图模块的过程中出现的。从构成目标界面的视图模块之中识别出加载目标界面时导致目标应用程序崩溃的视图模块,即得到目标模块。It can be understood that the target interface may contain multiple view modules, and the target application program loads the target interface by loading these view modules. However, when the target application program loads the target interface and crashes, it may occur during the process of loading some of the view modules. The view module that causes the target application program to crash when the target interface is loaded is identified from the view modules constituting the target interface, that is, the target module is obtained.
在一些实施方式中,所述识别触发所述目标应用程序崩溃的目标模块,包括:In some implementation manners, the identifying the target module that triggers the crash of the target application program includes:
根据所述目标崩溃日志识别触发所述目标应用程序崩溃的目标模块。A target module that triggers the crash of the target application program is identified according to the target crash log.
可以理解,目标崩溃日志中记载有在加载目标界面时,引发目标应用程序崩溃的目标视图模块ID,根据目标视图模块ID即可确定目标模块。It can be understood that when the target interface is loaded, the target view module ID that causes the target application program to crash is recorded in the target crash log, and the target module can be determined according to the target view module ID.
示例性的,假设目标界面所包括的视图模块如下表三所示。Exemplarily, it is assumed that the view modules included in the target interface are shown in Table 3 below.
表三、Table three,
假设目标崩溃日志中记载的在加载目标界面时,引发目标应用程序崩溃的目标视图模块ID为“ToolBarView”,则确定“工具栏视图”为目标模块。Assuming that the ID of the target view module that causes the target application to crash when loading the target interface recorded in the target crash log is "ToolBarView", then determine "ToolBarView" as the target module.
步骤S13、在加载所述目标界面时不加载所述目标模块。Step S13, the target module is not loaded when the target interface is loaded.
可以理解,在不存在修复代码的情况下,在加载目标界面时,如果继续加载引发目标应用程序崩溃的目标模块,可能会再次触发目标应用程序崩溃。相反,如果不加载目标模块,则目标应用程序在加载目标界面时至少不会因为加载目标模块而导致崩溃。It can be understood that if the target module that causes the crash of the target application continues to be loaded when the target interface is loaded in the absence of the repair code, the crash of the target application may be triggered again. On the contrary, if the target module is not loaded, the target application will at least not crash due to loading the target module when loading the target interface.
在一些实施方式中,不加载目标模块包括但不限定于不调用目标模块的初始化代码。In some implementations, not loading the target module includes but is not limited to not calling the initialization code of the target module.
示例性的,假设假设目标界面所包括的视图模块包括“导航栏视图”、“商品信息视图”、“订单信息视图”以及“工具栏视图”,假设目标模块为“工具栏视图”,则不加载目标模块之后,目标界面当前显示的视图模块包括“导航栏视图”、“商品信息视图”以及“订单信息视图”。Exemplarily, assume that the view modules included in the target interface include "navigation bar view", "commodity information view", "order information view" and "toolbar view", assuming that the target module is "toolbar view", then no After the target module is loaded, the view modules currently displayed on the target interface include "navigation bar view", "commodity information view" and "order information view".
在一些实施方式中,所述在加载所述目标界面时不加载所述目标模块之后,所述方法还包括:In some implementation manners, after the target module is not loaded when the target interface is loaded, the method further includes:
获取与所述目标模块关联的关联模块,并监测所述关联模块是否有向所述目标模块发送消息;Obtain an associated module associated with the target module, and monitor whether the associated module sends a message to the target module;
当监测所述关联模块向所述目标模块发送消息时,拦截所述消息并触发模块禁用提醒。When the monitoring module sends a message to the target module, intercept the message and trigger the module to disable the reminder.
可以理解,目标界面中的视图模块之间可能存在关联关系,目标界面中与目标模块有关联关系的视图模块即为目标模块的关联模块。在隐藏目标模块以后,仍存在关联模块向目标模块发送消息的情况。It can be understood that there may be an associated relationship between the view modules in the target interface, and the view modules in the target interface that are associated with the target module are the associated modules of the target module. After hiding the target module, there is still a situation where the associated module sends a message to the target module.
而在不加载目标模块以后,如果关联模块向目标模块发送消息,有可能会触发目标界面再次加载目标模块而导致目标应用程序崩溃,又或者会在关联模块向目标模块发送消息后,因为作为消息接受者的目标模块的指针为空而导致目标应用程序崩溃。After the target module is not loaded, if the associated module sends a message to the target module, it may trigger the target interface to load the target module again and cause the target application to crash, or after the associated module sends a message to the target module, because as a message The receiver's target module pointer is null and the target application crashes.
示例性的,假设目标界面包括“A视图模块”以及“B视图模块”,在加载目标界面时,检测到加载“B视图模块”会导致目标应用程序崩溃,并且检测到没有修复代码可以拉取用于解决目标应用程序崩溃的问题,此时,目标应用程序在加载目标界面时,不加载“B视图模块”。但是,用户在终端设备使用目标应用程序的过程中,可能点击了“A视图模块”中的某些按钮,这些按钮点击后会向当前没有被加载“B视图模块”发送消息。此时,如果不做消息拦截,可能会触发目标应用程序再次加载“B视图模块”,并导致目标应用程序崩溃。Exemplarily, assuming that the target interface includes "A view module" and "B view module", when loading the target interface, it is detected that loading "B view module" will cause the target application to crash, and it is detected that no repair code can be pulled It is used to solve the problem that the target application crashes. At this time, the target application does not load the "B view module" when loading the target interface. However, during the process of using the target application program on the terminal device, the user may click some buttons in the "A view module", and after clicking these buttons, a message will be sent to the "B view module" that is not currently loaded. At this time, if the message interception is not performed, the target application may be triggered to load the "B view module" again, and cause the target application to crash.
在一些实施方式中,模块禁用提醒可以为在目标界面中弹出提示框,以提示用户目标模块已经被禁用。在一些实施方式中,提示框中的提醒内容可以为“模块功能未上线”之类的提醒消息,当然,提示框中的提醒内容还可以为其他内容,在此不做限制。In some implementations, the module disabling reminder may be popping up a prompt box in the target interface to remind the user that the target module has been disabled. In some implementations, the reminder content in the prompt box may be a reminder message such as "the module function is not online". Of course, the reminder content in the prompt box may also be other content, which is not limited here.
本实施方式中,在识别到关联模块后,拦截关联模块向目标模块发送的消息,可以避免目标应用程序崩溃,而触发模块禁用提醒,可以告诉用户目标模块当前不可用,可以提高用户体验。In this embodiment, after identifying the associated module, intercepting the message sent by the associated module to the target module can prevent the target application from crashing, and triggering the module to disable the reminder can tell the user that the target module is currently unavailable, which can improve user experience.
在一些实施方式中,所述判断是否存在解决所述目标应用程序崩溃问题的修复代码之后,所述方法还包括:In some implementation manners, after determining whether there is a repair code for solving the crash problem of the target application program, the method further includes:
当存在所述修复代码时,拉取所述修复代码,并根据所述修复代码对所述目标应用程序进行热更新操作;When the repair code exists, pull the repair code, and perform a hot update operation on the target application program according to the repair code;
加载所述目标界面。Load the target interface.
可以理解,通过对目标应用程序进行热更新操作,可以将目标应用程序中原本会引发程序崩溃的代码替换为修复代码。在目标应用程序完成热更新操作之后再去加载目标界面,即可避免出现加载目标界面目标应用程序崩溃的问题。It can be understood that by performing a hot update operation on the target application program, the code in the target application program that would otherwise cause a program crash can be replaced with the repair code. The target interface is loaded after the target application program completes the hot update operation, so that the problem of the target application program crashing when loading the target interface can be avoided.
在一些实施方式中,所述拉取所述修复代码,并根据所述修复代码对所述目标应用程序进行热更新操作,包括:In some implementation manners, the pulling the repair code, and performing a hot update operation on the target application program according to the repair code includes:
从所述目标修复策略中获取存储所述修复代码的仓库地址,并根据所述仓库地址拉取所述修复代码,以根据所述修复代码对所述目标应用程序进行热更新操作。A warehouse address storing the repair code is obtained from the target repair policy, and the repair code is pulled according to the warehouse address, so as to perform a hot update operation on the target application program according to the repair code.
可以理解,目标修复策略中还记录有存储修复代码的仓库地址,确定仓库地址以后,即可通过仓库地址拉取到修复代码以对目标应用程序进行热更新操作。It can be understood that the address of the warehouse storing the repair code is also recorded in the target repair policy. After the warehouse address is determined, the repair code can be pulled through the warehouse address to perform a hot update operation on the target application.
在一些实施方式中,所述加载所述目标界面之后,所述方法还包括:In some implementation manners, after the loading of the target interface, the method further includes:
监测所述目标应用程序的运行情况;monitor the operation of the target application;
当监测到所述目标应用程序出现崩溃情况时,收集崩溃信息以生成崩溃日志;When the crash of the target application is detected, the crash information is collected to generate a crash log;
存储所述崩溃日志并根据所述崩溃日志更新所述历史崩溃信息。storing the crash log and updating the historical crash information according to the crash log.
可以理解,在加载目标界面以后,目标应用程序在目标界面还可能会因为其他不确定的原因而导致程序崩溃,又或者,在目标应用程序后续退出目标界面并加载其他界面的时候,也可能会出现目标应用程序崩溃的情况。It can be understood that after the target interface is loaded, the target application program may crash due to other uncertain reasons on the target interface, or, when the target application subsequently exits the target interface and loads other interfaces, it may also crash. There are instances where the target application crashes.
本实施方式中,在目标应用程序后续出现崩溃情况时,生成崩溃日志,并将崩溃日志发送给服务器进行存储,服务器即可根据接收到的崩溃日志去更新历史崩溃信息。则后续任意终端设备在运行目标应用程序的过程中,可以根据更新后的历史崩溃信息判断即将加载的界面是否存在崩溃风险,当判定存在崩溃风险时,即可进行相应处理。In this embodiment, when the target application subsequently crashes, a crash log is generated and sent to the server for storage, and the server can update historical crash information according to the received crash log. In the process of running the target application program, any subsequent terminal device can judge whether there is a crash risk in the interface to be loaded according to the updated historical crash information, and when it is determined that there is a crash risk, corresponding processing can be performed.
在一些实施方式中,所述获取与所述程序标识信息匹配的崩溃应对策略之后,所述方法还包括:In some implementation manners, after the acquisition of the crash response strategy matching the program identification information, the method further includes:
存储所述历史崩溃信息以及所述崩溃应对策略;storing the historical crash information and the crash response strategy;
当接收到所述目标应用程序的第二界面加载指令时,根据所述历史崩溃信息判断加载所述第二界面是否会触发所述目标应用程序崩溃;When receiving the second interface loading instruction of the target application, judging according to the historical crash information whether loading the second interface will trigger the target application to crash;
当加载所述第二界面会触发所述目标应用程序崩溃时,根据所述崩溃应对策略加载所述第二界面。When loading the second interface will trigger the target application program to crash, load the second interface according to the crash response strategy.
可以理解,第二界面可以为目标应用程序的任意界面。将历史崩溃信息以及崩溃应对策略缓存到内存中,则后续终端设备再接收到目标应用程序加载第二界面的加载指令时,可直接从缓存中提取历史崩溃信息以及崩溃应对策略,并利用历史崩溃信息以及崩溃应对策略来加载第二界面,以降低加载第二界面触发目标应用程序崩溃的风险。It can be understood that the second interface may be any interface of the target application program. Cache historical crash information and crash response strategies in the memory, then when the subsequent terminal device receives the loading instruction of the target application to load the second interface, it can directly extract historical crash information and crash response strategies from the cache, and use the historical crash The information and the crash response strategy are used to load the second interface, so as to reduce the risk that the loading of the second interface triggers the crash of the target application.
本实施方式中,在目标应用程序后续加载第二界面时,无需再次从服务器获取历史崩溃信息以及崩溃应对策略,可以提高目标应用程序处理崩溃的异常情况的处理效率。In this embodiment, when the target application program subsequently loads the second interface, there is no need to obtain historical crash information and crash handling strategies from the server again, which can improve the processing efficiency of the target application program in dealing with abnormal situations of crashes.
本申请中,当接收到目标应用程序的目标界面加载指令时,判断加载目标界面是否会触发目标应用程序崩溃;当加载目标界面会触发目标应用程序崩溃时,判断是否存在解决目标应用程序崩溃问题的修复代码;当不存在修复代码时,识别触发目标应用程序崩溃的目标模块,在加载目标界面时不加载目标模块,即可避免出现加载目标界面导致目标应用程序崩溃的问题。通过本申请所提供的技术方案,解决了现有技术中应用程序崩溃导致用户体验不佳的问题。In this application, when receiving the target interface loading instruction of the target application, judge whether loading the target interface will trigger the target application to crash; when loading the target interface will trigger the target application to crash, judge whether there is a solution to the target application crash problem The repair code; when there is no repair code, identify the target module that triggers the crash of the target application, and not load the target module when loading the target interface, so as to avoid the problem that the target application crashes due to loading the target interface. Through the technical solution provided by the present application, the problem in the prior art that the crash of the application program leads to poor user experience is solved.
请参照图2,图2为本申请实施例提供的一种应用程序故障处理装置的示意性框图。Please refer to FIG. 2 . FIG. 2 is a schematic block diagram of an application program fault handling device provided by an embodiment of the present application.
如图2所示,该应用程序故障处理装置201,包括:As shown in Figure 2, the application program
加载指令接收模块2011,用于当接收到目标应用程序的目标界面加载指令时,判断加载所述目标界面是否会触发所述目标应用程序崩溃;The loading
修复代码查询模块2012,用于当加载所述目标界面会触发所述目标应用程序崩溃时,判断是否存在解决所述目标应用程序崩溃问题的修复代码;The repair
识别模块2013,用于当不存在所述修复代码时,识别触发所述目标应用程序崩溃的目标模块,其中,所述目标模块为构成所述目标界面的视图模块之一;An
第一加载模块2014,用于在加载所述目标界面时不加载所述目标模块。The
在一些实施方式中,所述应用程序故障处理装置201还包括第二加载模块2015,在所述修复代码查询模块2012在判断是否存在解决所述目标应用程序崩溃问题的修复代码之后,所述第二加载模块2015用于当存在所述修复代码时,拉取所述修复代码,并根据所述修复代码对所述目标应用程序进行热更新操作;In some implementations, the application program
加载所述目标界面。Load the target interface.
在一些实施方式中,所述加载指令接收模块2011在判断加载所述目标界面是否会触发所述目标应用程序崩溃时,包括:In some implementations, when the loading
获取所述目标应用程序的程序标识信息,并获取与所述程序标识信息匹配的历史崩溃信息;Obtaining program identification information of the target application program, and acquiring historical crash information matching the program identification information;
获取所述目标界面对应的界面标识信息,并根据所述历史崩溃信息查询是否存在与所述界面标识信息匹配的目标崩溃日志;Obtaining the interface identification information corresponding to the target interface, and querying whether there is a target crash log matching the interface identification information according to the historical crash information;
当存在所述目标崩溃日志时,根据所述目标崩溃日志判断加载所述目标界面是否会触发所述目标应用程序崩溃。When the target crash log exists, it is judged according to the target crash log whether loading the target interface will trigger the target application program to crash.
在一些实施方式中,所述加载指令接收模块2011在根据所述目标崩溃日志判断加载所述目标界面是否会触发所述目标应用程序崩溃时,包括:In some implementations, when the loading
获取当前运行的所述目标应用程序的版本号作为第一版本号,并从所述目标崩溃日志中获取发生崩溃的所述目标应用程序的版本号作为第二版本号;Obtaining the version number of the currently running target application program as a first version number, and obtaining the version number of the target application program that crashed from the target crash log as a second version number;
当所述第一版本号等于所述第二版本号时,判定加载所述目标界面会触发所述目标应用程序崩溃。When the first version number is equal to the second version number, it is determined that loading the target interface will trigger the target application program to crash.
在一些实施方式中,所述修复代码查询模块2012在判断是否存在解决所述目标应用程序崩溃问题的修复代码时,包括:In some implementation manners, when the repair
获取与所述程序标识信息匹配的崩溃应对策略,并根据所述崩溃应对策略判断是否存在与所述目标崩溃日志匹配的目标修复策略;Obtaining a crash response strategy that matches the program identification information, and judging whether there is a target repair strategy that matches the target crash log according to the crash response strategy;
当存在所述目标修复策略时,判定存在解决所述目标应用程序崩溃问题的修复代码;When the target repair strategy exists, it is determined that there is a repair code to solve the crash problem of the target application;
所述第二加载模块2015在拉取所述修复代码,并根据所述修复代码对所述目标应用程序进行热更新操作时,包括:When the
从所述目标修复策略中获取存储所述修复代码的仓库地址,并根据所述仓库地址拉取所述修复代码,以根据所述修复代码对所述目标应用程序进行热更新操作。A warehouse address storing the repair code is obtained from the target repair policy, and the repair code is pulled according to the warehouse address, so as to perform a hot update operation on the target application program according to the repair code.
在一些实施方式中,所述识别模块2013在识别触发所述目标应用程序崩溃的目标模块时,包括:In some implementation manners, when the
根据所述目标崩溃日志识别触发所述目标应用程序崩溃的目标模块。A target module that triggers the crash of the target application program is identified according to the target crash log.
在一些实施方式中,所述应用程序故障处理装置201还包括消息拦截模块2016,在所述第一加载模块2014在加载所述目标界面时不加载所述目标模块之后,所述消息拦截模块2016用于获取与所述目标模块关联的关联模块,并监测所述关联模块是否有向所述目标模块发送消息;In some implementations, the application program
当监测所述关联模块向所述目标模块发送消息时,拦截所述消息并触发模块禁用提醒。When the monitoring module sends a message to the target module, intercept the message and trigger the module to disable the reminder.
需要说明的是,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的装置和各模块及单元的具体工作过程,可以参考前述应用程序故障处理方法实施例中的对应过程,在此不再赘述。It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described devices and modules and units can refer to the corresponding The process will not be repeated here.
上述实施例提供的装置可以实现为一种计算机程序的形式,该计算机程序可以在如图3所示的计算机设备上运行。The apparatus provided in the foregoing embodiments may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in FIG. 3 .
请参阅图3,图3为本申请实施例提供的一种计算机设备的结构示意性框图。该计算机设备包括但不限定于终端设备。Please refer to FIG. 3 . FIG. 3 is a schematic structural block diagram of a computer device provided by an embodiment of the present application. The computer equipment includes but is not limited to terminal equipment.
如图3所示,该计算机设备301包括通过系统总线连接的处理器3011、存储器和网络接口,其中,存储器可以包括存储介质3012和内存储器3015,存储介质3012可以是非易失性的,也可以是易失性的。As shown in FIG. 3 , the
存储介质3012可存储操作系统和计算机程序。该计算机程序包括程序指令,该程序指令被执行时,可使得处理器3011执行任意一种应用程序故障处理方法。The
处理器3011用于提供计算和控制能力,支撑整个计算机设备的运行。The
内存储器3015为存储介质3012中的计算机程序的运行提供环境,该计算机程序被处理器3011执行时,可使得处理器3011执行任意一种应用程序故障处理方法。The
该网络接口用于进行网络通信,如发送分配的任务等。本领域技术人员可以理解,图3中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。This network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art can understand that the structure shown in Figure 3 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation to the computer equipment on which the solution of the application is applied. The specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
应当理解的是,处理器3011可以是中央处理单元(Central Processing Unit,CPU),该处理器3011还可以是其他通用处理器、数字信号处理器(Digital SignalProcessor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that the
其中,在一些实施方式中,所述处理器3011用于运行存储在存储器中的计算机程序,以实现如下步骤:Wherein, in some implementation manners, the
当接收到目标应用程序的目标界面加载指令时,判断加载所述目标界面是否会触发所述目标应用程序崩溃;When a target interface loading instruction of the target application is received, it is determined whether loading the target interface will trigger the target application to crash;
当加载所述目标界面会触发所述目标应用程序崩溃时,判断是否存在解决所述目标应用程序崩溃问题的修复代码;When loading the target interface will trigger the target application program to crash, determine whether there is a repair code to solve the target application program crash problem;
当不存在所述修复代码时,识别触发所述目标应用程序崩溃的目标模块,其中,所述目标模块为构成所述目标界面的视图模块之一;When the repair code does not exist, identifying a target module that triggers the crash of the target application program, wherein the target module is one of the view modules constituting the target interface;
在加载所述目标界面时不加载所述目标模块。The target module is not loaded when the target interface is loaded.
在一些实施方式中,所述处理器3011在判断是否存在解决所述目标应用程序崩溃问题的修复代码之后,还用于实现:In some implementation manners, after the
当存在所述修复代码时,拉取所述修复代码,并根据所述修复代码对所述目标应用程序进行热更新操作;When the repair code exists, pull the repair code, and perform a hot update operation on the target application program according to the repair code;
加载所述目标界面。Load the target interface.
在一些实施方式中,所述处理器3011在判断加载所述目标界面是否会触发所述目标应用程序崩溃时,用于实现:In some implementation manners, when the
获取所述目标应用程序的程序标识信息,并获取与所述程序标识信息匹配的历史崩溃信息;Obtaining program identification information of the target application program, and acquiring historical crash information matching the program identification information;
获取所述目标界面对应的界面标识信息,并根据所述历史崩溃信息查询是否存在与所述界面标识信息匹配的目标崩溃日志;Obtaining the interface identification information corresponding to the target interface, and querying whether there is a target crash log matching the interface identification information according to the historical crash information;
当存在所述目标崩溃日志时,根据所述目标崩溃日志判断加载所述目标界面是否会触发所述目标应用程序崩溃。When the target crash log exists, it is judged according to the target crash log whether loading the target interface will trigger the target application program to crash.
在一些实施方式中,所述处理器3011在根据所述目标崩溃日志判断加载所述目标界面是否会触发所述目标应用程序崩溃时,用于实现:In some implementations, when the
获取当前运行的所述目标应用程序的版本号作为第一版本号,并从所述目标崩溃日志中获取发生崩溃的所述目标应用程序的版本号作为第二版本号;Obtaining the version number of the currently running target application program as a first version number, and obtaining the version number of the target application program that crashed from the target crash log as a second version number;
当所述第一版本号等于所述第二版本号时,判定加载所述目标界面会触发所述目标应用程序崩溃。When the first version number is equal to the second version number, it is determined that loading the target interface will trigger the target application program to crash.
在一些实施方式中,所述处理器3011在判断是否存在解决所述目标应用程序崩溃问题的修复代码时,用于实现:In some implementation manners, the
获取与所述程序标识信息匹配的崩溃应对策略,并根据所述崩溃应对策略判断是否存在与所述目标崩溃日志匹配的目标修复策略;Obtaining a crash response strategy that matches the program identification information, and judging whether there is a target repair strategy that matches the target crash log according to the crash response strategy;
当存在所述目标修复策略时,判定存在解决所述目标应用程序崩溃问题的修复代码;When the target repair strategy exists, it is determined that there is a repair code to solve the crash problem of the target application;
所述处理器3011在拉取所述修复代码,并根据所述修复代码对所述目标应用程序进行热更新操作时,用于实现:When the
从所述目标修复策略中获取存储所述修复代码的仓库地址,并根据所述仓库地址拉取所述修复代码,以根据所述修复代码对所述目标应用程序进行热更新操作。A warehouse address storing the repair code is obtained from the target repair policy, and the repair code is pulled according to the warehouse address, so as to perform a hot update operation on the target application program according to the repair code.
在一些实施方式中,所述处理器3011在识别触发所述目标应用程序崩溃的目标模块时,用于实现:In some implementation manners, when the
根据所述目标崩溃日志识别触发所述目标应用程序崩溃的目标模块。A target module that triggers the crash of the target application program is identified according to the target crash log.
在一些实施方式中,所述处理器3011在加载所述目标界面时不加载所述目标模块之后,还用于实现:In some implementation manners, after the
获取与所述目标模块关联的关联模块,并监测所述关联模块是否有向所述目标模块发送消息;Obtain an associated module associated with the target module, and monitor whether the associated module sends a message to the target module;
当监测所述关联模块向所述目标模块发送消息时,拦截所述消息并触发模块禁用提醒。When the monitoring module sends a message to the target module, intercept the message and trigger the module to disable the reminder.
需要说明的是,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述计算机设备的具体工作过程,可以参考前述应用程序故障处理方法实施例中的对应过程,在此不再赘述。It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the computer device described above can refer to the corresponding process in the above-mentioned embodiment of the application program fault handling method, which is not described here. Let me repeat.
本申请实施例还提供一种存储介质,该存储介质为计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序中包括程序指令,所述程序指令被执行时所实现的方法可参照本申请应用程序故障处理方法的各个实施例。The embodiment of the present application also provides a storage medium, the storage medium is a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium, and the computer program includes program instructions, and when the program instructions are executed, For the implemented method, reference may be made to various embodiments of the application program fault handling method in this application.
其中,所述计算机可读存储介质可以是前述实施例所述的计算机设备的内部存储单元,例如所述计算机设备的硬盘或内存。所述计算机可读存储介质也可以是所述计算机设备的外部存储设备,例如所述计算机设备上配备的插接式硬盘,智能存储卡(SmartMedia Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。Wherein, the computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiments, such as a hard disk or a memory of the computer device. The computer-readable storage medium can also be an external storage device of the computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, flash memory card (Flash Card), etc.
应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should be understood that the terms used in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit the application. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural referents unless the context clearly dictates otherwise.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should also be understood that the term "and/or" used in the description of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations. It should be noted that, as used herein, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or system comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or system. Without further limitations, an element defined by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system comprising that element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments. The above is only a specific embodiment of the application, but the scope of protection of the application is not limited thereto. Any person familiar with the technical field can easily think of various equivalents within the scope of the technology disclosed in the application. Modifications or replacements, these modifications or replacements shall be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210938380.8A CN115269252A (en) | 2022-08-05 | 2022-08-05 | Application fault handling method, device, device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210938380.8A CN115269252A (en) | 2022-08-05 | 2022-08-05 | Application fault handling method, device, device and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115269252A true CN115269252A (en) | 2022-11-01 |
Family
ID=83749468
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210938380.8A Pending CN115269252A (en) | 2022-08-05 | 2022-08-05 | Application fault handling method, device, device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115269252A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116679900A (en) * | 2022-12-23 | 2023-09-01 | 荣耀终端有限公司 | An audio service processing method, a firmware deloading method, and related devices |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017219589A1 (en) * | 2016-06-19 | 2017-12-28 | 乐视控股(北京)有限公司 | Method and system for processing program crash message |
| CN107817984A (en) * | 2016-09-13 | 2018-03-20 | 高德信息技术有限公司 | A kind of hot patch loading method and device |
| CN110399246A (en) * | 2019-07-30 | 2019-11-01 | 腾讯科技(深圳)有限公司 | Program restorative procedure and device |
| CN112395121A (en) * | 2019-08-15 | 2021-02-23 | 奇安信安全技术(珠海)有限公司 | Drive loading processing method and device, storage medium and computer equipment |
| CN112559234A (en) * | 2020-12-18 | 2021-03-26 | 深圳赛安特技术服务有限公司 | Crash processing method and device, computer equipment and medium |
-
2022
- 2022-08-05 CN CN202210938380.8A patent/CN115269252A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017219589A1 (en) * | 2016-06-19 | 2017-12-28 | 乐视控股(北京)有限公司 | Method and system for processing program crash message |
| CN107817984A (en) * | 2016-09-13 | 2018-03-20 | 高德信息技术有限公司 | A kind of hot patch loading method and device |
| CN110399246A (en) * | 2019-07-30 | 2019-11-01 | 腾讯科技(深圳)有限公司 | Program restorative procedure and device |
| CN112395121A (en) * | 2019-08-15 | 2021-02-23 | 奇安信安全技术(珠海)有限公司 | Drive loading processing method and device, storage medium and computer equipment |
| CN112559234A (en) * | 2020-12-18 | 2021-03-26 | 深圳赛安特技术服务有限公司 | Crash processing method and device, computer equipment and medium |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116679900A (en) * | 2022-12-23 | 2023-09-01 | 荣耀终端有限公司 | An audio service processing method, a firmware deloading method, and related devices |
| CN116679900B (en) * | 2022-12-23 | 2024-04-09 | 荣耀终端有限公司 | Audio service processing method, firmware unloading method and related device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109309712B (en) | Data transmission method based on interface asynchronous call, server and storage medium | |
| WO2019148722A1 (en) | Electronic device, data migrating and calling method and storage medium | |
| WO2019148727A1 (en) | Electronic device, redis-based exception warning method and storage medium | |
| CN111338958B (en) | Parameter generation method and device for test cases and terminal equipment | |
| WO2020224238A1 (en) | Blockchain node depolyment method, device and equipment, and storage medium | |
| CN110881224B (en) | Network long connection method, device, equipment and storage medium | |
| US20260046227A1 (en) | Service session data tracing method and apparatus, and related device | |
| CN114185804B (en) | Interface testing method and device and terminal equipment | |
| CN112948434B (en) | Business event-based business processing method, device, computer equipment and storage medium | |
| CN119105846A (en) | Method and device for obtaining CPU kernel call stack based on user mode commands | |
| CN115269252A (en) | Application fault handling method, device, device and storage medium | |
| CN104392362B (en) | Information processing method and device | |
| WO2022206253A1 (en) | Exception handling method and apparatus, device, and storage medium | |
| US20220214910A1 (en) | Information processing system, information processing apparatus, and information processing method | |
| CN114722927A (en) | Collapse clustering method and device, electronic equipment and storage medium | |
| CN112261072B (en) | A service calling method, device, equipment and storage medium | |
| CN111045983B (en) | Nuclear power station electronic file management method, device, terminal equipment and medium | |
| US20070294584A1 (en) | Detection and isolation of data items causing computer process crashes | |
| CN111400085A (en) | Transaction rollback exception processing method, device, computer equipment and storage medium | |
| CN109446462B (en) | Page-based data monitoring processing method, device, equipment and storage medium | |
| US8285775B2 (en) | Expedited transaction failure handling by leveraging a reliable message transport protocol to assist detection of discarded processing | |
| CN115454845A (en) | Method, device and terminal equipment for verifying business rules | |
| CN111061576B (en) | A method and system for creating entity objects | |
| CN117270977A (en) | SMBIOS power information update method, system, electronic device and storage medium | |
| CN116975200A (en) | Methods, devices, equipment and media for controlling the working status of servers |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |

