WO2022206253A1 - 一种异常处理方法、装置、设备及存储介质 - Google Patents
一种异常处理方法、装置、设备及存储介质 Download PDFInfo
- Publication number
- WO2022206253A1 WO2022206253A1 PCT/CN2022/078363 CN2022078363W WO2022206253A1 WO 2022206253 A1 WO2022206253 A1 WO 2022206253A1 CN 2022078363 W CN2022078363 W CN 2022078363W WO 2022206253 A1 WO2022206253 A1 WO 2022206253A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- java
- exception
- event
- preset
- jni
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/362—Debugging of software
- G06F11/366—Debugging of software using diagnostics
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45591—Monitoring or debugging support
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the present disclosure relates to the field of data processing, and in particular, to an exception processing method, apparatus, device, and storage medium.
- Java Native Interface is a native interface that allows java code running on the JVM to call native code, and also allows native code to call java code.
- the local code calls the java code running on the JVM through JNI
- if an abnormal event occurs in the java code the system will not crash, but will return to the local code. If the java code continues to be called at this time, it will be identified as A local crash event, that is, a native crash, can easily lead to inaccurate results of subsequent developers' aggregate analysis of this abnormal event based on the identified crash type.
- the present disclosure provides an exception handling method, apparatus, device and storage medium, which can report an exception event that occurs in java code as a java crash event, and reduce the type of exception caused by the exception. The probability of inaccurate aggregate analysis results caused by reporting errors.
- the present disclosure provides an exception handling method, the method comprising:
- the java exception object corresponding to the abnormal event is obtained; wherein, the java exception object is used to represent the abnormal event;
- the abnormality identifier is used to represent that the java virtual machine is in an abnormal working state
- the preset java exception handler is called based on the JNI, and the java exception handler is used to perform exception processing on the java exception object; wherein the java exception handler is used to report the exception event corresponding to the exception object as java crash event.
- the method further includes:
- calling a preset java exception handler based on the JNI, and using the java exception handler to perform exception handling on the java exception object includes:
- Exception processing is performed on the java exception object by using the java exception handler.
- the method before calling the preset java method in the preset exception resolution class based on the JNI, the method further includes:
- calling the preset java method in the preset exception resolution class based on the JNI includes:
- the preset java method in the preset exception resolution class is invoked through the JNI.
- the present disclosure provides an exception handling method, the method comprising:
- java exception object Receives a java exception object through JNI; wherein, the java exception object is used to represent an exception event that occurs by calling java code based on JNI;
- a preset java exception handler is invoked, and the java exception handler is used to perform exception handling on the java exception object; wherein the java exception handler is used to report the exception event corresponding to the exception object as a java crash event.
- the present disclosure provides an exception processing device, the device comprising:
- an obtaining module configured to obtain a java exception object corresponding to the exception event when it is determined that an exception event occurs in the java code invoked based on the java local interface JNI; wherein the java exception object is used to represent the exception event;
- a deletion module used to delete the abnormality identifier corresponding to the abnormal event; the abnormality identifier is used to represent that the java virtual machine is in an abnormal working state;
- a first exception handling module configured to call a preset java exception handler based on the JNI, and use the java exception handler to perform exception handling on the java exception object; wherein the java exception handler is used to The exception event corresponding to the exception object is reported as a java crash event.
- the present disclosure provides an exception handling device, the device comprising:
- the receiving module is used to receive the java exception object through JNI; wherein, the java exception object is used to represent the abnormal event that occurs based on the JNI calling java code;
- the second exception handling module is used to call a preset java exception handler, and use the java exception handler to perform exception handling on the java exception object; wherein the java exception handler is used to Abnormal events are reported as java crash events.
- the present disclosure provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a terminal device, the terminal device is made to implement the above method.
- the present disclosure provides a device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, when the processor executes the computer program, Implement the above method.
- the present disclosure provides a computer program product, wherein the computer program product includes a computer program/instruction, and the computer program/instruction implements the above method when executed by a processor.
- the embodiment of the present disclosure provides an exception handling method. Specifically, if it is determined that an exception event occurs in the java code invoked based on the java native interface JNI, the java exception object corresponding to the exception event is obtained; wherein, the java exception object uses to characterize the abnormal event. Then, the abnormality identifier corresponding to the abnormal event is deleted; the abnormality identifier is used to represent that the java virtual machine is in an abnormal working state. Finally, the preset java exception handler is called based on the JNI, and the java exception handler is used to perform exception processing on the java exception object; wherein, the java exception handler is used for the exception event corresponding to the exception object It is reported as a java crash event.
- the embodiments of the present disclosure process the abnormal events that occur in the java code by invoking the java exception handling program, and report the abnormal events that occur in the java code as java crash events, thereby reducing the occurrence of inaccurate aggregation analysis results caused by errors in abnormal event type reporting. probability.
- FIG. 1 is a flowchart of an exception handling method provided by an embodiment of the present disclosure
- FIG. 2 is a flowchart of another exception handling method provided by an embodiment of the present disclosure.
- FIG. 3 is a schematic structural diagram of an exception processing apparatus provided by an embodiment of the present disclosure.
- FIG. 4 is a schematic structural diagram of another exception processing apparatus provided by an embodiment of the present disclosure.
- FIG. 5 is a schematic structural diagram of an exception processing device according to an embodiment of the present disclosure.
- the java native interface (Java Native Interface; JNI) allows java code to interact with code written in other languages.
- JNI Java Native Interface
- the native code calls java code through JNI, if an exception occurs in the java code, it should theoretically be recognized as a java crash event, but , At present, the abnormal event that occurs in the java code in the above scenario is incorrectly identified as a native crash event, which leads to inaccuracy and other problems in the subsequent aggregation analysis of abnormal events based on the wrong identification.
- the embodiments of the present disclosure provide an exception handling method.
- the exception event that occurs in the java code in the above scenario can be reported as a java crash event, thereby improving The accuracy of subsequent aggregated analysis results of abnormal events is improved.
- a java exception object corresponding to the abnormal event is obtained; wherein, the java exception object is used to represent the abnormal event.
- the abnormality identifier corresponding to the abnormal event is deleted; the abnormality identifier is used to represent that the java virtual machine is in an abnormal working state.
- the preset java exception handler is called based on the JNI, and the java exception handler is used to perform exception processing on the java exception object; wherein, the java exception handler is used for the exception event corresponding to the exception object Reported as a java crash event.
- an embodiment of the present disclosure provides an exception handling method.
- a flowchart of an exception handling method provided by an embodiment of the present disclosure includes:
- the java exception object is used to represent the exception event.
- the exception handling method provided by the embodiment of the present disclosure is applied to the native layer, that is, the native code. Specifically, when it is determined that an abnormal event occurs in the java code invoked based on JNI, the java exception object corresponding to the abnormal event is first obtained.
- the java exception object includes event information of the exception event, for example, the occurrence event of the exception event, the event feature, and the like.
- the CheckException function can be used to check whether an abnormal event occurs in the called java code. If it is determined that no abnormal event has occurred, just return the check result. If it is determined that an abnormal event has occurred in the called java code, the currently thrown java exception object can be obtained through the ExceptionOccurred function, and the java exception object is recorded as throwable.
- the exception identifier is used to represent that the java virtual machine is in an abnormal working state.
- the abnormal identifier corresponding to the abnormal event may also be deleted.
- an exception identifier is marked for the abnormal event to indicate that the java virtual machine is in an abnormal working state.
- the embodiment of the present disclosure deletes the exception identifier used to indicate that the java virtual machine is in an abnormal working state.
- the ExceptionClear function may be called to clear the current exception identifier.
- the purpose of clearing the current exception identifier is to continue calling the java code in the future.
- S103 Call a preset java exception handler based on the JNI, and use the java exception handler to perform exception processing on the java exception object.
- the java exception handler is used to report the exception event corresponding to the exception object as a java crash event.
- the embodiment of the present disclosure after the exception identifier is deleted and the java exception object is obtained, the preset java exception handler is invoked based on JNI. Since the java exception handler is used to report the exception event corresponding to the exception object as a java crash event, the embodiment of the present disclosure can process the java exception object by calling the java exception handler, and can report the exception event corresponding to the java exception object as java crash event.
- a preset java method in a preset exception resolution class can be called based on JNI, and the java exception object can be passed to the preset java method, and the preset java method can be called by using the preset java method.
- the exception handler transfers the java exception object to the java exception handler, uses the java exception handler to perform exception processing on the java exception object, and reports the exception event corresponding to the java exception object as a java crash event.
- the default exception resolution class can be set as a global reference.
- the identifier of the preset java method in the preset exception resolution class can be obtained in advance, so that the identifier can be used for subsequent processing based on the identifier. make a call.
- the JNIExecptionHelper class may be pre-defined as a preset exception resolution class, and the handleJNIException method may be declared in the JNIExecptionHelper class as a preset java method in the preset exception resolution class.
- init a native method named init, the init method, is also declared in the JNIExecptionHelper class.
- the embodiment of the present disclosure can also call the GetStaticMethodID function to obtain the id of the handleJNIException method, and record it as midHandleJNIException and save it.
- a java exception object corresponding to the exception event is obtained; wherein, the java exception object is used to represent the abnormal event.
- the abnormality identifier corresponding to the abnormal event is deleted; the abnormality identifier is used to represent that the java virtual machine is in an abnormal working state.
- the preset java exception handler is called based on the JNI, and the java exception handler is used to perform exception processing on the java exception object; wherein, the java exception handler is used for the exception event corresponding to the exception object Reported as a java crash event.
- the abnormal event that occurs in the java code in the above scenario can be reported as the java crash event, which improves the accuracy of the subsequent aggregation analysis results of the abnormal event. sex.
- the embodiments of the present disclosure also provide an exception handling method.
- FIG. 2 it is a flowchart of another exception handling method provided by the embodiments of the present disclosure.
- the method is applied to the java layer, that is, in the java code. .
- the method includes:
- the java exception object is used to represent an exception event that occurs based on JNI calling java code.
- a java exception object corresponding to the abnormal event can be received through JNI for subsequent processing of the abnormal event.
- the handleJNIException method in the JNIExecptionHelper class can receive the java exception object throwable through JNI, and record the throwable as jthrowable.
- S202 Call a preset java exception handler, and use the java exception handler to perform exception handling on the java exception object; wherein the java exception handler is used to report the exception event corresponding to the exception object as a java crash event.
- the current java exception handler can be obtained through the getDefaultUncaughtExceptionHandler method of the Thread class, that is, the java exception handler preset in the embodiment of the present disclosure, denoted as currentHandler .
- currentHandler is the java exception handler registered by default when the java crash monitoring program starts, using currentHandler to handle an exception event will report the exception event as a java crash event. Specifically, by calling the uncaughtException method of currentHandler, the java crash monitoring program can be notified that a java crash event has occurred, and then the crash information can be collected, and the collected crash information can be reported at an appropriate time, which is used for the current java crash event. analysis.
- the present disclosure also provides an exception handling apparatus.
- FIG. 3 a schematic structural diagram of an exception handling apparatus provided in an embodiment of the present disclosure, the apparatus includes:
- the obtaining module 301 is configured to obtain a java exception object corresponding to the exception event when it is determined that an exception event occurs in the java code invoked based on the java local interface JNI; wherein, the java exception object is used to represent the exception event;
- the deletion module 302 is used to delete the abnormality identifier corresponding to the abnormal event; the abnormality identifier is used to represent that the java virtual machine is in an abnormal working state;
- the first exception handling module 303 is configured to call a preset java exception handler based on the JNI, and use the java exception handler to perform exception handling on the java exception object; wherein the java exception handler is used for Report the exception event corresponding to the exception object as a java crash event.
- the device further includes:
- the determining module is configured to determine whether an abnormal event occurs in the invoked java code after detecting that the java code is invoked based on the JNI.
- the first exception handling module includes:
- a first delivery submodule configured to call a preset java method in a preset exception resolution class based on the JNI, and transfer the java exception object to the preset java method;
- a second delivery submodule configured to use the preset java method to call a preset java exception handler, and deliver the java exception object to the java exception handler;
- the first exception handling submodule is configured to perform exception handling on the java exception object by using the java exception handler.
- the first exception handling module further includes:
- the first transfer submodule is specifically used for:
- the preset java method in the preset exception resolution class is invoked through the JNI.
- the present disclosure also provides another exception handling apparatus.
- FIG. 4 a schematic structural diagram of another exception handling apparatus provided by the embodiment of the present disclosure, the apparatus includes:
- the receiving module 401 is used to receive a java exception object through JNI; wherein, the java exception object is used to represent an exception event that occurs based on JNI calling java code;
- the second exception handling module 402 is configured to call a preset java exception handler, and use the java exception handler to perform exception handling on the java exception object; wherein the java exception handler is used to map the exception object to The abnormal event is reported as a java crash event.
- a java exception object corresponding to the exception event is obtained; wherein, the java exception object is used to represent the abnormal event.
- the abnormality identifier corresponding to the abnormal event is deleted; the abnormality identifier is used to represent that the java virtual machine is in an abnormal working state.
- the preset java exception handler is invoked based on the JNI, and the java exception handler is used to perform exception processing on the java exception object; wherein the java exception handler is used for the exception event corresponding to the exception object It is reported as a java crash event.
- the abnormal event that occurs in the java code in the above scenario can be reported as a java crash event, which improves the accuracy of the subsequent aggregation analysis results of the abnormal event. sex.
- embodiments of the present disclosure also provide a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a terminal device, the terminal device is made to implement the present invention.
- the exception handling method described in the embodiments is disclosed.
- An embodiment of the present disclosure also provides a computer program product, including a computer program/instruction, characterized in that, when the computer program/instruction is executed by a processor, the exception handling method described in the embodiment of the present disclosure is implemented.
- an embodiment of the present disclosure also provides an exception processing device, as shown in FIG. 5 , which may include:
- Processor 501 memory 502 , input device 503 and output device 504 .
- the number of processors 501 in the exception handling device may be one or more, and one processor is taken as an example in FIG. 5 .
- the processor 501 , the memory 502 , the input device 503 and the output device 504 may be connected by a bus or in other ways, wherein the connection by a bus is taken as an example in FIG. 5 .
- the memory 502 can be used to store software programs and modules, and the processor 501 executes various functional applications and data processing of the exception handling device by running the software programs and modules stored in the memory 502 .
- the memory 502 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function, and the like. Additionally, memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
- the input device 503 can be used to receive input numerical or character information, and generate signal input related to user setting and function control of the exception handling device.
- the processor 501 loads the executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 501 runs the executable files stored in the memory 502 application program, so as to realize various functions of the above exception handling device.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Devices For Executing Special Programs (AREA)
Abstract
Description
Claims (10)
- 一种异常处理方法,其特征在于,所述方法包括:如果确定基于java本地接口JNI调用的java代码发生异常事件,则获取所述异常事件对应的java异常对象;其中,所述java异常对象用于表征所述异常事件;删除所述异常事件对应的异常标识;所述异常标识用于表征java虚拟机处于异常工作状态;基于所述JNI调用预置的java异常处理程序,并利用所述java异常处理程序对所述java异常对象进行异常处理;其中,所述java异常处理程序用于将异常对象对应的异常事件上报为java崩溃事件。
- 根据权利要求1所述的方法,其特征在于,所述如果确定基于java本地接口JNI调用的java代码发生异常事件,则获取所述异常事件对应的java异常对象之前,还包括:在检测到基于JNI调用java代码后,确定被调用的所述java代码是否发生异常事件。
- 根据权利要求1所述的方法,其特征在于,所述基于所述JNI调用预置的java异常处理程序,并利用所述java异常处理程序对所述java异常对象进行异常处理,包括:基于所述JNI调用预设异常解决类中的预设java方法,并将所述java异常对象传递至所述预设java方法;利用所述预设java方法调用预置的java异常处理程序,并将所述java异常对象传递至所述java异常处理程序;利用所述java异常处理程序对所述java异常对象进行异常处理。
- 根据权利要求3所述的方法,其特征在于,所述基于所述JNI调用预设异常解决类中的预设java方法之前,还包括:将预设异常解决类设置为全局引用;获取所述预设异常解决类中的预设java方法的标识;相应的,所述基于所述JNI调用预设异常解决类中的预设java方法,包括:基于所述预设java方法的标识,通过所述JNI调用预设异常解决类中的所述预设java方法。
- 一种异常处理方法,其特征在于,所述方法包括:通过JNI接收java异常对象;其中,所述java异常对象用于表征基于JNI调用java代码发生的异常事件;调用预置的java异常处理程序,并利用所述java异常处理程序对所述java异常对象进行异常处理;其中,所述java异常处理程序用于将异常对象对应的异常事件上报为java崩溃事件。
- 一种异常处理装置,其特征在于,所述装置包括:获取模块,用于在确定基于java本地接口JNI调用的java代码发生异常事件时,获取所述异常事件对应的java异常对象;其中,所述java异常对象用于表征所述异常事件;删除模块,用于删除所述异常事件对应的异常标识;所述异常标识用于表征java虚拟机处于异常工作状态;第一异常处理模块,用于基于所述JNI调用预置的java异常处理程序,并利用所述java异常处理程序对所述java异常对象进行异常处理;其中,所述java异常处理程序用于将异常对象对应的异常事件上报为java崩溃事件。
- 一种异常处理装置,其特征在于,所述装置包括:接收模块,用于通过JNI接收java异常对象;其中,所述java异常对象用于表征基于JNI调用java代码发生的异常事件;第二异常处理模块,用于调用预置的java异常处理程序,并利用所述java异常处理程序对所述java异常对象进行异常处理;其中,所述java异常处理程序用于将异常对象对应的异常事件上报为java崩溃事件。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当所述指令在终端设备上运行时,使得所述终端设备实现如权利要求1-5任一项所述的方法。
- 一种设备,其特征在于,包括:存储器,处理器,及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如权利要求1-5任一项所述的方法。
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序/指令,所述计算机程序/指令被处理器执行时实现如权利要求1-5任一项所述的方法。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/283,696 US12405879B2 (en) | 2021-03-29 | 2022-02-28 | Exception handling method and apparatus, device, and storage medium |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110333171.6 | 2021-03-29 | ||
| CN202110333171.6A CN113032100B (zh) | 2021-03-29 | 2021-03-29 | 一种异常处理方法、装置、设备及存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022206253A1 true WO2022206253A1 (zh) | 2022-10-06 |
Family
ID=76452704
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/078363 Ceased WO2022206253A1 (zh) | 2021-03-29 | 2022-02-28 | 一种异常处理方法、装置、设备及存储介质 |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US12405879B2 (zh) |
| CN (1) | CN113032100B (zh) |
| WO (1) | WO2022206253A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118132344A (zh) * | 2024-05-06 | 2024-06-04 | 四川天邑康和通信股份有限公司 | Iptv机顶盒的运行控制方法和装置、机顶盒及介质 |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113032100B (zh) | 2021-03-29 | 2023-07-18 | 北京字节跳动网络技术有限公司 | 一种异常处理方法、装置、设备及存储介质 |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050204341A1 (en) * | 2004-03-11 | 2005-09-15 | International Business Machines Corp. | Method, system and article for detecting critical memory leaks causing out-of-memory errors in Java software |
| US20090217245A1 (en) * | 2008-02-26 | 2009-08-27 | International Business Machines Corporation | Method and implementation for constructing of corrected java native code |
| CN101794243A (zh) * | 2010-03-18 | 2010-08-04 | 浪潮电子信息产业股份有限公司 | 一种利用操作系统结构化异常处理加固java应用程序的方法 |
| CN108334415A (zh) * | 2017-01-20 | 2018-07-27 | 百度在线网络技术(北京)有限公司 | 一种容错处理方法、装置、终端及存储介质 |
| CN108763060A (zh) * | 2018-04-27 | 2018-11-06 | 广州华多网络科技有限公司 | Android系统中Native层崩溃溯源方法、装置、存储介质及终端 |
| CN111414270A (zh) * | 2020-03-24 | 2020-07-14 | 北京字节跳动网络技术有限公司 | 一种异常处理方法及装置 |
| CN113032100A (zh) * | 2021-03-29 | 2021-06-25 | 北京字节跳动网络技术有限公司 | 一种异常处理方法、装置、设备及存储介质 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6457142B1 (en) * | 1999-10-29 | 2002-09-24 | Lucent Technologies Inc. | Method and apparatus for target application program supervision |
| US7793275B2 (en) * | 2006-03-31 | 2010-09-07 | Intel Corporation | Methods and apparatus to tune intermediate representations in a managed runtime environment |
| US8074116B2 (en) * | 2009-05-06 | 2011-12-06 | Microsoft Corporation | Exception raised notification |
-
2021
- 2021-03-29 CN CN202110333171.6A patent/CN113032100B/zh active Active
-
2022
- 2022-02-28 US US18/283,696 patent/US12405879B2/en active Active
- 2022-02-28 WO PCT/CN2022/078363 patent/WO2022206253A1/zh not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050204341A1 (en) * | 2004-03-11 | 2005-09-15 | International Business Machines Corp. | Method, system and article for detecting critical memory leaks causing out-of-memory errors in Java software |
| US20090217245A1 (en) * | 2008-02-26 | 2009-08-27 | International Business Machines Corporation | Method and implementation for constructing of corrected java native code |
| CN101794243A (zh) * | 2010-03-18 | 2010-08-04 | 浪潮电子信息产业股份有限公司 | 一种利用操作系统结构化异常处理加固java应用程序的方法 |
| CN108334415A (zh) * | 2017-01-20 | 2018-07-27 | 百度在线网络技术(北京)有限公司 | 一种容错处理方法、装置、终端及存储介质 |
| CN108763060A (zh) * | 2018-04-27 | 2018-11-06 | 广州华多网络科技有限公司 | Android系统中Native层崩溃溯源方法、装置、存储介质及终端 |
| CN111414270A (zh) * | 2020-03-24 | 2020-07-14 | 北京字节跳动网络技术有限公司 | 一种异常处理方法及装置 |
| CN113032100A (zh) * | 2021-03-29 | 2021-06-25 | 北京字节跳动网络技术有限公司 | 一种异常处理方法、装置、设备及存储介质 |
Non-Patent Citations (4)
| Title |
|---|
| ANONYMOUS: "JNI Crash: Exception Location and Capture Processing", BAIDU, 6 July 2018 (2018-07-06), XP055973231, Retrieved from the Internet <URL:https://www.jianshu.com/p/b6129f110e86> [retrieved on 20221020] * |
| ANONYMOUS: "JNI exception handling", BAIDU, 11 July 2020 (2020-07-11), XP055973229, Retrieved from the Internet <URL:https://zhuanlan.zhihu.com/p/158727336> [retrieved on 20221020] * |
| ANONYMOUS: "JNI exception handling", BAIDU, 13 October 2018 (2018-10-13), XP055973233, Retrieved from the Internet <URL:https://blog.csdn.net/b1480521874/article/details/83040400> [retrieved on 20221020] * |
| CHANG LIMEI, INFORMATION & TECHNOLOGY, CHINA DOCTORAL DISSERTATIONS/MASTER'S THESES FULL-TEXT DATABASE (MASTER) (MONTHLY): "Design and Implementation of Android Mobile Application Defect Monitoring System", MASTER THESIS, TIANJIN POLYTECHNIC UNIVERSITY, CN, no. 12, 15 January 2019 (2019-01-15), CN , XP055973143, ISSN: 1674-0246 * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118132344A (zh) * | 2024-05-06 | 2024-06-04 | 四川天邑康和通信股份有限公司 | Iptv机顶盒的运行控制方法和装置、机顶盒及介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| US12405879B2 (en) | 2025-09-02 |
| CN113032100B (zh) | 2023-07-18 |
| US20240168865A1 (en) | 2024-05-23 |
| CN113032100A (zh) | 2021-06-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110865888B (zh) | 一种资源加载方法、装置、服务器及存储介质 | |
| US20100058351A1 (en) | Information processing apparatus and information processing method | |
| WO2019161619A1 (zh) | 接口自动化测试方法、装置、设备及计算机可读存储介质 | |
| CN108038039B (zh) | 记录日志的方法及微服务系统 | |
| CN108170552B (zh) | 一种抓取Dump文件的方法、装置和设备 | |
| WO2022206253A1 (zh) | 一种异常处理方法、装置、设备及存储介质 | |
| CN110727581A (zh) | 崩溃定位方法与电子设备 | |
| CN110992188B (zh) | 交易处理方法、装置及设备 | |
| CN112035292A (zh) | 一种数据写入异常的处理方法、装置、设备及存储介质 | |
| CN117992204A (zh) | 内存检测方法、装置、设备及存储介质 | |
| CN112667371B (zh) | 异步任务的处理方法、装置、设备及存储介质 | |
| CN112787999B (zh) | 跨链调用方法、装置、系统与计算机可读存储介质 | |
| CN116450398A (zh) | 异常回溯方法、装置、设备和介质 | |
| CN110134498A (zh) | 一种应用兼容性评估方法及装置 | |
| CN114356211B (zh) | 一种存储空间的处理方法、装置、电子设备及存储介质 | |
| CN113900743B (zh) | 一种Java对象访问的方法和装置 | |
| CN116225755A (zh) | 云计算环境的容器处理方法、装置、电子设备及可读介质 | |
| US20220269520A1 (en) | Factor identification method and information processing device | |
| CN111858258A (zh) | 一种内存监控方法、装置及电子设备和存储介质 | |
| CN113961366B (zh) | 操作系统的内核函数调用方法及计算机设备 | |
| CN115269252A (zh) | 应用程序故障处理方法、装置、设备及存储介质 | |
| CN116126703A (zh) | 调试方法、调试装置及可读存储装置 | |
| CN108920683A (zh) | 一种云计算平台下载外部资源的方法、装置和存储介质 | |
| CN115469934A (zh) | 配置文件加载方法、装置及设备 | |
| WO2022237570A1 (zh) | 死锁检测方法、装置以及相关设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22778438 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 18283696 Country of ref document: US |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 150224) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22778438 Country of ref document: EP Kind code of ref document: A1 |
|
| WWG | Wipo information: grant in national office |
Ref document number: 18283696 Country of ref document: US |