Application abnormality information collection method, device, computer equipment and storage medium

By collecting and annotating the operation and display data when the mobile terminal application crashes, and uploading it to the backend server, it solves the problem of difficulty in reproducing and troubleshooting sporadic anomalies, improves troubleshooting efficiency, and improves user experience.

CN113505015BActive Publication Date: 2024-09-10SHANGHAI INGOT NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110684853.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-21
Publication Date
2024-09-10
Estimated Expiration
2041-06-21

AI Technical Summary

Technical Problem

Existing technologies are difficult to reproduce and troubleshoot sporadic abnormalities when mobile terminal applications crash, making troubleshooting difficult and affecting user experience.

Method used

By detecting user-triggered operations, we collect operation data and screen display data, add touch effects, and upload them to the backend server for analysis by troubleshooters.

Benefits of technology

Quickly collect abnormal on-site information to help troubleshooters locate the cause of the exception, improve troubleshooting efficiency, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113505015B
    Figure CN113505015B
Patent Text Reader

Abstract

The present application relates to the field of computer technology, and specifically to a method, device, computer equipment and storage medium for collecting application exception information. The method includes: when an operation triggered by a user for opening a specified process in an application is detected, in response to the operation, collecting the user's operation data during the opening of the specified process, and collecting the display data of the screen of the terminal where the application is located during the opening of the specified process, and when an exception occurs during the opening of the specified process, marking the display data according to the operation data, and uploading the obtained display data with added touch effects to the background server for problem troubleshooting personnel to troubleshoot the problem. The embodiment of the present invention can collect on-site information when the exception occurs, and the problem troubleshooter can quickly troubleshoot the problem that caused the exception with the collected information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment and storage medium for collecting application abnormality information. Background Art

[0002] Currently, applications may crash or become abnormal due to anomalies in program code or hardware of mobile terminals (such as mobile phones and tablets). There are many types of situations that may lead to abnormalities, and some occasional abnormalities are difficult to reproduce. For such abnormalities, the logs uploaded by the client (such as logs generated by the application or system) cannot reproduce the scene when the abnormality occurs. This makes it difficult for troubleshooters to find out the problem that caused the abnormality, and thus they cannot solve the problem, which will bring a bad user experience to the users of the application. Summary of the invention

[0003] In view of the above-mentioned deficiencies or shortcomings, the present invention provides a method, apparatus, computer equipment and storage medium for collecting application exception information. The embodiments of the present invention can collect on-site information when the exception occurs, and the problem troubleshooter can quickly troubleshoot the problem that caused the exception with the help of the collected information.

[0004] According to a first aspect, the present invention provides a method for collecting application abnormality information. In one embodiment, the method includes:

[0005] Detecting a user-triggered action to start a specified process in the application;

[0006] In response to the operation, the user's operation data during the period when the specified process is started is collected, and the display data of the screen of the terminal where the application is located during the period when the specified process is started is collected; the operation data includes the position information and touch time of each effective touch position of the user on the screen; the display data is a screen recording video or a screenshot image;

[0007] When an exception occurs during the start of the specified process, the display data is marked according to the operation data to obtain the display data with the touch effect added;

[0008] The display data with the added touch effect is uploaded to the background server.

[0009] In one embodiment, when an exception occurs during the start of the specified process, the step of adding a user touch effect to the display data according to the operation data includes:

[0010] After detecting that the designated process is finished, determining whether an abnormality occurs during the start of the designated process according to a designated log file stored locally in the terminal, and when it is determined that an abnormality occurs during the start of the designated process, adding a user touch effect to the display data according to the operation data; or,

[0011] During the start of the designated process, whether the response to each effective touch of the user is abnormal is monitored. When an abnormal response to any effective touch of the user is detected, a user touch effect is added to the display data according to the operation data.

[0012] In one embodiment, when the display data is a screen recording video, the step of adding a user touch effect to the display data according to the operation data includes:

[0013] Determine the target image frame corresponding to the touch time of each position in the screen recording video according to the touch time of each position effectively touched by the user;

[0014] Adding a touch effect to a corresponding position of each target image frame according to position information of each position;

[0015] The target image frames corresponding to the touch time at each position in the screen recording video are replaced with target image frames with touch effects added thereto corresponding to the touch time at each position.

[0016] In one embodiment, when the display data is a screenshot image, the number of the screenshot images is multiple;

[0017] The step of adding touch effect processing to the display data according to the operation data includes:

[0018] Determine, according to the operation time of each position effectively touched by the user, a target screenshot image corresponding to the operation time of each position in the plurality of screenshot images;

[0019] Adding a touch effect to a corresponding position of each target screenshot image according to the position information of each position;

[0020] The target screenshot images corresponding to the touch time at each position in the plurality of screenshot images are replaced with the target screenshot images with the touch effect added thereto corresponding to the touch time at each position.

[0021] In one embodiment, the method further includes: in response to the operation, collecting control information corresponding to each effective touch position of the user on the screen during the start of the designated process;

[0022] The method also includes: when detecting that the designated process has ended, extracting log information generated during the start of the designated process from a designated log file stored locally on the terminal, uploading the collected control information and the extracted log information to a background server, so that the background server obtains product attribute information corresponding to the control information, and sends the product attribute information, the log information and the control information to target problem troubleshooters.

[0023] In one embodiment, the step of uploading the display data with the added touch effect to the background server includes:

[0024] Extracting log information generated during the start of the specified process from a specified log file stored locally on the terminal, and filtering out abnormal log information from the extracted log information;

[0025] According to the generation time of the abnormal log information, the abnormal log information is marked in the display data to which the touch effect has been added, so as to obtain the marked display data;

[0026] When the designated process is detected to be finished, the marked display data is uploaded to the background server.

[0027] In one embodiment, the method further includes: when no abnormality occurs during the start of the designated process, deleting the operation data and the display data.

[0028] According to a second aspect, the present invention provides an application abnormality information collection device. In one embodiment, the device includes:

[0029] An operation detection module, used to detect an operation triggered by a user to start a specified process in the application;

[0030] A data collection module, used to collect, in response to the operation, the operation data of the user during the opening of the specified process, and the display data of the screen of the terminal where the application is located during the opening of the specified process; the operation data includes the position information and touch time of each effective touch position of the user on the screen; the display data is a screen recording video or a screenshot image;

[0031] An effect adding module, used for marking the display data according to the operation data when an exception occurs during the start of the specified process, and obtaining the display data with the touch effect added;

[0032] The data uploading module is used to upload the display data with the added touch effect to the background server.

[0033] According to a third aspect, the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above method embodiments when executing the computer program.

[0034] According to a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above method embodiments are implemented.

[0035] In an embodiment of the present invention, when a user-triggered operation for starting a specified process in an application is detected, in response to the operation, the user's operation data during the specified process start-up period is collected, and the display data of the screen of the terminal where the application is located during the specified process start-up period is collected, and when an abnormality occurs during the specified process start-up period, the display data is annotated according to the operation data, and the obtained display data with added touch effects is uploaded to the background server for problem troubleshooting personnel to troubleshoot the problem. The method provided in this embodiment can collect on-site information when an abnormality occurs in the application program, so that the problem troubleshooter can quickly troubleshoot the problem that caused the abnormality with the collected information. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 An application environment diagram of an application exception information collection method in an embodiment;

[0037] Figure 2 A flowchart of a method for collecting application abnormality information in one embodiment;

[0038] Figure 3 A schematic diagram of a process of adding a touch effect in one embodiment;

[0039] Figure 4 A schematic diagram of a process for adding a touch effect in another embodiment;

[0040] Figure 5 A schematic diagram of a process for uploading application exception information in an embodiment;

[0041] Figure 6 It is a structural block diagram of an application abnormality information collection device in one embodiment;

[0042] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0044] The present invention provides a method for collecting application anomaly information. In this embodiment, the method for collecting application anomaly information can be applied to Figure 1 In the application environment shown. Among them, an application (or client) is installed in the user terminal 10, and an SDK (Software Development Kit) for collecting abnormal information of the application during operation can be integrated in the application. The SDK can control the user terminal 10 to collect the abnormal information of the application and report it to the background server 20. The background server 20 will provide the received application abnormal information to the problem troubleshooter for download, so that the problem troubleshooter can reproduce the scene when the abnormality occurs based on the application abnormal information and conduct problem troubleshooting.

[0045] The user terminal 10 may include but is not limited to various personal computers, laptop computers, smart phones, tablet computers, and desktop computers, and the backend server 20 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0046] The present embodiment provides a method for collecting application abnormality information, including: Figure 2 The steps shown below are applied to Figure 1 The user terminal in is used as an example for explanation.

[0047] S110: Detecting an operation triggered by a user for starting a specified process in an application.

[0048] Among them, the application has multiple processes. For example, the process of the application can include a stored value process, a login process, a service entry process, a registration process, a payment order process, an APP rating process, etc. The troubleshooter can perform point-burying in advance before some key processes of the application start. When it is detected that the user has triggered the point-burying, step S120 is executed. For example, when the user clicks the "Pay" button of the application, the payment process is started. In the payment process, the user can select the payment channel (such as WeChat payment, Alipay payment, bank card payment, etc.) and the input form of the payment password (such as password payment, fingerprint payment, face payment, etc.) through the payment interface provided by the application. After the user starts the payment process, he can choose to actively end the payment process (for example, the user can end the payment process by closing the payment interface), or he can choose to complete the payment process and passively end the payment process.

[0049] The above-mentioned key processes are the aforementioned designated processes. The selection of designated processes can be based on the needs of different scenarios. For example, the login process and the payment process can be selected as designated processes. For example, the process at the scene when the exception occurs that is difficult to reproduce based on the text log can be selected as the designated process. The process with more frequent occasional exceptions can be selected as the designated process, etc.

[0050] The application includes many processes, but this embodiment only executes step S120 for the specified process in the application, so that the amount of operation data and display data to be collected will be smaller, which can reduce the occupation of precious computing resources of the user terminal and will not affect the normal use of the user.

[0051] S120: In response to the operation, collect the operation data of the user during the period when the specified process is started, and collect the display data of the screen of the terminal where the application is located during the period when the specified process is started.

[0052] In this embodiment, the collected operation data of the user during the opening of the specified process includes the position information and operation time of each effective touch position of the user on the screen; the collected display data of the terminal screen during the opening of the specified process can be a screen recording video recorded during the opening of the specified process, or a plurality of screenshot images captured during the opening of the specified process. Among them, the opening period of the specified process refers to the period from the opening to the end of the specified process, which can be specifically determined by the time when the operation triggered by the user for opening the specified process is received and the time when the operation for ending the specified process is received (for example, the time when the command issued by the user for ending the process is received, or the time when the user completes the process). In addition, when the display data is a screenshot image, the screenshot image can be obtained by capturing the screen at a preset time interval during the opening of the specified process, and further, the screenshot can be captured after an abnormality is detected.

[0053] The forms of touch by the user on the terminal screen may include but are not limited to single click, double click, long press, sliding, etc.

[0054] Valid touch means that the user's touch operation can trigger the command sent to the application, and invalid touch means that the user's touch operation will not trigger any command sent to the application. Specifically, the user can touch any area on the screen or on the application interface, however, not all areas can trigger the command sent to the application. For example, the user clicks on the username or password input box on the login interface to trigger the information input command. The application will respond to the command and display the keyboard input interface so that the user can enter information through the keyboard; for example, the user clicks the login button to trigger the account login command. At this time, the application will respond to the command and generate the corresponding account login request based on the username and password information entered by the user and send it to the corresponding server; if the user clicks on a place in the login interface where no controls are set, such as a certain position of a simple background image, no command will be triggered at this time.

[0055] This embodiment only records the position information and operation time of each effective touch position of the user on the screen. On the one hand, it can reduce the storage space occupied by the collected operation data. On the other hand, it is beneficial to reduce the workload of adding touch effects when executing the subsequent step 130, and reduce the occupation of user terminal computing resources.

[0056] S130: When an exception occurs during the start of the specified process, the display data is marked according to the operation data to obtain the display data with the touch effect added.

[0057] In this embodiment, the touch effect is used to indicate the position of the user's touch on the terminal screen. Further, the touch effect can also be used to indicate the position and touch order of the user's touch on the terminal screen. Each touch of the user can be numbered, such as 1, 2, 3. This allows the troubleshooter to intuitively see which position the user touched and the number of times the user touched. For example, a user successfully paid in the application, but the server did not receive such a successful payment. For such an exception, the problem troubleshooter would go to the official inquiry or retrieve the relevant log of the user. However, the log cannot intuitively present the cause of the exception. For example, the exception occurs because there is a problem with a certain product, but the problem troubleshooter sees text from the log. At this time, it is impossible to link the text with the product seen by the user, which is not conducive to the troubleshooting of the problem. The present embodiment adopts the method of screenshot or screen recording to better present the cause of the error to the problem troubleshooter.

[0058] S140: Upload the display data with the added touch effect to the background server.

[0059] Among them, when no abnormality occurs during the opening of the specified process, the collected operation data and display data can be deleted, thereby reducing the occupation of the user terminal storage space.

[0060] In this embodiment, when the application detects an operation triggered by a user to start a specified process in the application, in response to the operation, the operation data of the user during the start of the specified process is collected, and the display data of the screen of the terminal where the application is located during the start of the specified process is collected, and when an abnormality occurs during the start of the specified process, the display data is processed by adding touch effects according to the operation data, and the display data with added touch effects is uploaded to the background server for troubleshooting personnel to troubleshoot the problem. The method provided in this embodiment can collect on-site information when an abnormality occurs in the application, so that the troubleshooter can quickly troubleshoot the problem that caused the abnormality with the collected information.

[0061] In one embodiment, when an exception occurs during the start of a specified process, the step of adding a user touch effect to the display data according to the operation data includes:

[0062] After detecting that the specified process ends (including when the process ends), judging whether an abnormality occurs during the start of the specified process based on the specified log file stored locally in the terminal, and when it is determined that an abnormality occurs during the start of the specified process, adding a user touch effect to the display data based on the operation data; or,

[0063] During the start of the specified process, monitor whether the response to each effective touch of the user is abnormal. When it is detected that the response to any effective touch of the user is abnormal, add the user touch effect to the display data according to the operation data.

[0064] The designated log files stored locally in the terminal include logs generated by the running of the application and / or logs generated by the terminal operating system.

[0065] From the above embodiments, it can be seen that after the user performs an effective touch, the relevant command will be triggered. The response of the effective touch in this embodiment refers to the feedback result obtained after executing the command triggered by the effective touch. For example, when the user clicks the payment button, it will trigger a command to send a payment request to the payment server. Then, after the application executes the command and sends the payment request to the payment server, it monitors the payment server's feedback information on the payment request. If the errorCode or errorMsg fed back by the payment server meets the specified error, it is determined that the response to the user's effective touch is abnormal.

[0066] In this embodiment, the step of adding a user touch effect to the display data according to the operation data may be started when an abnormality is detected during the start of the specified process, or may be started after the end of the specified process (in this way, a more complete execution process of the specified process can be collected). For example, when the end of the specified process is detected, it may be determined whether an abnormality occurs during the start of the specified process by checking the log information generated during the start of the specified process in the specified log file. Specifically, when it is found that there is abnormal log information generated during the start of the specified process, it is determined that an abnormality occurs during the start of the specified process, otherwise it is determined that no abnormality occurs during the start of the specified process. For another example, during the start of the specified process, the response to each effective touch of the user is detected. When an abnormality is detected in the response to the effective touch of the user, the user touch effect is added to the display data collected at this time according to the operation data collected at this time.

[0067] In one embodiment, when the display data is a screen recording video, a step of adding a user touch effect to the display data according to the operation data is performed, such as Figure 3 As shown, including:

[0068] S211: Determine the target image frame corresponding to the operation time of each position in the screen recording video according to the operation time of each position effectively touched by the user.

[0069] S212: adding a touch effect to a corresponding position of each target image frame according to the position information of each position.

[0070] S213: Replace the target image frames corresponding to the touch time at each position in the screen recording video with target image frames with touch effects added thereto corresponding to the touch time at each position.

[0071] Among them, the operation time of each position effectively touched by the user can correspond to multiple image frames in the screen recording video, that is, the target image frame is composed of multiple image frames. For example, if the user's operation time at position A on the terminal screen is 10:10:35-10:10:36, then the screen recording video can be framed to obtain a series of image frames, and then the image frames in the series of image frames whose corresponding acquisition time is in the time interval of 10:10:35-10:10:36 are used as the target image frames corresponding to the operation time of position A.

[0072] Then, a touch effect is added to the target image frame corresponding to the operation time of each position. The materials of the touch effect can be downloaded from the background server in advance and saved locally in the user terminal to speed up the adding of the touch effect. Furthermore, the troubleshooter can update the materials of the touch effect and push the updated materials to the user terminal through the background server.

[0073] In another embodiment, the step of adding a user touch effect to the display data according to the operation data is as follows: Figure 4 As shown, including:

[0074] S221: determining a target screenshot image corresponding to the operation time of each position in the plurality of screenshot images according to the operation time of each position effectively touched by the user;

[0075] S222: adding a touch effect to a corresponding position of each target screenshot image according to the position information of each position;

[0076] S223: replacing the target screenshot images corresponding to the touch time at each position in the plurality of screenshot images with the target screenshot images corresponding to the touch time at each position with the touch effect added thereto.

[0077] The target screenshot image corresponding to the operation time of each position is composed of one or more image frames. For the description of the touch effect, please refer to the relevant description of the previous embodiment, which will not be repeated here.

[0078] In one embodiment, the method for collecting application exception information further includes: in response to the operation, collecting control information corresponding to each effective touch position of the user on the screen during the opening of the specified process.

[0079] Correspondingly, the application exception information collection method also includes: when detecting the end of the specified process, extracting the log information generated during the start of the specified process from the specified log file stored locally in the terminal, uploading the collected control information and the extracted log information to the background server, so that the background server obtains the product attribute information corresponding to the control information, and sends the product attribute information, the log information and the control information to the target problem troubleshooter.

[0080] The control information is the unique code of the control, and the backend server can identify which control in the application the user clicked through the control information. The backend server can maintain the mapping relationship between each control in the specified process and its associated commodity, so that the unique code of the corresponding commodity can be found through the control information uploaded by the user terminal, and then the attribute information of the commodity (such as the price of the commodity, inventory quantity, etc.) can be obtained through the unique code of the commodity.

[0081] After the user terminal uploads the collected control information and extracted log information to the background server, the background server can obtain the attribute information of the goods associated with it based on the control information, so as to further provide more types of abnormal related information to the problem troubleshooting personnel, which is conducive to improving the speed of problem troubleshooting.

[0082] In one embodiment, the step of uploading the display data with added touch effects to the backend server is as follows: Figure 5 As shown, including:

[0083] S141: extracting log information generated during the start of a specified process from a specified log file stored locally in the terminal, and filtering out abnormal log information from the extracted log information;

[0084] S142: marking the abnormal log information in the display data to which the touch effect has been added according to the generation time of the abnormal log information, so as to obtain the marked display data;

[0085] S143: When the end of the designated process is detected, the marked display data is uploaded to the background server.

[0086] The exception log information may include, but is not limited to, the coding information corresponding to the exception and the time when the exception occurred.

[0087] In this embodiment, the exception log information generated during the start of the specified process is further filtered out, and the exception log information is marked in the form of a text box in the screen recording video or screenshot image to which the touch effect has been added according to the generation time of the exception log information. In this way, in addition to being able to see the user's touch problem from the screen recording video or screenshot image, the problem troubleshooter can also see what exceptions have occurred.

[0088] Figure 2-Figure 5 FIG. 1 is a flow chart of an abnormal information collection method in one embodiment. It should be understood that although Figure 2-Figure 5 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-Figure 5 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0089] Based on the same inventive concept, the present invention also provides an application abnormality information collection device.

[0090] In this embodiment, if Figure 6 As shown, the application abnormality information collection device includes the following modules:

[0091] An operation detection module 110 is used to detect an operation triggered by a user to start a specified process in an application;

[0092] The data collection module 120 is used to collect the operation data of the user during the opening of the specified process and the display data of the screen of the terminal where the application is located during the opening of the specified process in response to the operation; the operation data includes the position information and touch time of each effective touch position of the user on the screen; the display data is a screen recording video or a screenshot image;

[0093] The effect adding module 130 is used to mark the display data according to the operation data when an exception occurs during the start of the specified process, so as to obtain the display data with the touch effect added;

[0094] The data uploading module 140 is used to upload the display data with the added touch effect to the background server.

[0095] In one embodiment, the effect adding module is used to determine whether an abnormality occurs during the start of the specified process based on a specified log file stored locally on the terminal after detecting that the specified process has ended, and when it is determined that an abnormality occurs during the start of the specified process, add a user touch effect to the display data based on the operation data; or, during the start of the specified process, monitor whether an abnormality occurs in the response to each effective touch of the user, and when an abnormality is detected in the response to any effective touch of the user, add a user touch effect to the display data based on the operation data.

[0096] In one embodiment, when the display data is a screen recording video, the effect adding module includes:

[0097] An image frame determination submodule, used to determine a target image frame corresponding to the touch time of each position in the screen recording video according to the touch time of each position effectively touched by the user;

[0098] A touch effect adding submodule, used for adding a touch effect at a corresponding position of each target image frame according to the position information of each position;

[0099] The replacement submodule is used to replace the target image frame corresponding to the touch time of each position in the screen recording video with the target image frame with the touch effect added corresponding to the touch time of each position.

[0100] In one embodiment, when the display data is a screenshot image, the number of the screenshot images is multiple; accordingly, the effect adding module includes:

[0101] A screenshot image determination submodule, used to determine a target screenshot image corresponding to the operation time of each position in the multiple screenshot images according to the operation time of each position effectively touched by the user;

[0102] A touch effect adding submodule, used for adding a touch effect to a corresponding position of each target screenshot image according to the position information of each position;

[0103] The replacement submodule is used to replace the target screenshot images corresponding to the touch time at each position in the multiple screenshot images with the target screenshot images with touch effects added thereto corresponding to the touch time at each position.

[0104] In one embodiment, the data collection module is further used to collect, in response to the operation, control information corresponding to each effective touch position of the user on the screen during the opening of the designated process.

[0105] The data upload module is also used to extract the log information generated during the start of the specified process from the specified log file stored locally on the terminal when the end of the specified process is detected, and upload the collected control information and the extracted log information to the background server, so that the background server obtains the product attribute information corresponding to the control information, and sends the product attribute information, the log information and the control information to the target problem troubleshooter.

[0106] In one embodiment, the data upload module includes:

[0107] The abnormal log screening submodule is used to extract the log information generated during the start of the specified process from the specified log file stored locally on the terminal, and screen the abnormal log information from the extracted log information;

[0108] a marking submodule, used for marking the abnormal log information in the display data to which the touch effect has been added according to the generation time of the abnormal log information, so as to obtain the marked display data;

[0109] The upload submodule is used to upload the marked display data to the background server when the end of the specified process is detected.

[0110] In one embodiment, the device further comprises a data deletion module, which is used to delete the operation data and the display data when no abnormality occurs during the start of the designated process.

[0111] For the specific definition of the application anomaly information collection device, please refer to the definition of the application anomaly information collection method above, which will not be repeated here. Each module in the above-mentioned application anomaly information collection device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0112] In one embodiment, a computer device is provided, whose internal structure diagram can be as follows: Figure 7 shown.

[0113] The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as operation data and display data. The specific stored data can also refer to the definition in the above method embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for collecting application abnormality information is implemented.

[0114] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0115] This embodiment further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:

[0116] An operation triggered by a user for starting a specified process in an application is detected; in response to the operation, the operation data of the user during the period when the specified process is started, and the display data of the screen of the terminal where the application is located during the period when the specified process is started are collected; the operation data includes the position information and touch time of each effective touch position of the user on the screen; the display data is a screen recording video or a screenshot image; when an abnormality occurs during the period when the specified process is started, the display data is annotated according to the operation data to obtain display data with added touch effects; and the display data with added touch effects is uploaded to a background server.

[0117] In one embodiment, the processor executes a computer program to implement, when an exception occurs during the start of the specified process, adding a user touch effect to the display data according to the operation data, and further implements the following steps:

[0118] After detecting that the designated process has ended, determine whether any abnormality occurs during the start of the designated process based on the designated log file stored locally on the terminal. When it is determined that an abnormality occurs during the start of the designated process, add a user touch effect to the display data based on the operation data; or, during the start of the designated process, monitor whether any abnormality occurs in the response to each effective touch of the user. When an abnormality is detected in the response to any effective touch of the user, add a user touch effect to the display data based on the operation data.

[0119] In one embodiment, when the display data is a screen recording video, the processor executes a computer program to perform a user touch effect adding process on the display data according to the operation data, and further implements the following steps:

[0120] According to the touch time of each position effectively touched by the user, the target image frame corresponding to the touch time of each position in the recorded screen video is determined; according to the position information of each position, a touch effect is added to the corresponding position of each target image frame; and the target image frame corresponding to the touch time of each position in the recorded screen video is replaced with the target image frame with the touch effect added corresponding to the touch time of each position.

[0121] In one embodiment, when the display data is a screenshot image, the number of the screenshot images is multiple; when the processor executes the computer program to perform touch effect adding processing on the display data according to the operation data, the following steps are also implemented:

[0122] According to the operation time of each position effectively touched by the user, the target screenshot image corresponding to the operation time of each position in the multiple screenshot images is determined; according to the position information of each position, a touch effect is added to the corresponding position of each target screenshot image; and the target screenshot image corresponding to the touch time of each position in the multiple screenshot images is replaced with the target screenshot image with the touch effect added corresponding to the touch time of each position.

[0123] In one embodiment, when the processor executes the computer program, the following steps are further implemented: in response to the operation, collecting control information corresponding to each effective touch position of the user on the screen during the start of the specified process;

[0124] When the processor executes the computer program, the following steps are also implemented: when the end of the specified process is detected, the log information generated during the start of the specified process is extracted from the specified log file stored locally in the terminal, and the collected control information and the extracted log information are uploaded to the background server, so that the background server obtains the product attribute information corresponding to the control information, and sends the product attribute information, the log information and the control information to the target problem troubleshooter.

[0125] In one embodiment, when the processor executes the computer program to upload the display data with the added touch effect to the background server, the processor also implements the following steps:

[0126] Extract the log information generated during the opening of the specified process from the specified log file stored locally in the terminal, and filter out abnormal log information from the extracted log information; mark the abnormal log information in the display data with the touch effect added according to the generation time of the abnormal log information to obtain the marked display data; and upload the marked display data to the background server when the end of the specified process is detected.

[0127] In one embodiment, when the processor executes the computer program, the following steps are further implemented: when no abnormality occurs during the start of the designated process, the operation data and the display data are deleted.

[0128] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0129] An operation triggered by a user for starting a specified process in an application is detected; in response to the operation, the operation data of the user during the period when the specified process is started, and the display data of the screen of the terminal where the application is located during the period when the specified process is started are collected; the operation data includes the position information and touch time of each effective touch position of the user on the screen; the display data is a screen recording video or a screenshot image; when an abnormality occurs during the period when the specified process is started, the display data is annotated according to the operation data to obtain display data with added touch effects; and the display data with added touch effects is uploaded to a background server.

[0130] In one embodiment, the computer program is executed by a processor, and when an exception occurs during the start of the specified process, when adding a user touch effect to the display data according to the operation data, the following steps are further implemented:

[0131] After detecting that the designated process has ended, determine whether any abnormality occurs during the start of the designated process based on the designated log file stored locally on the terminal. When it is determined that an abnormality occurs during the start of the designated process, add a user touch effect to the display data based on the operation data; or, during the start of the designated process, monitor whether any abnormality occurs in the response to each effective touch of the user. When an abnormality is detected in the response to any effective touch of the user, add a user touch effect to the display data based on the operation data.

[0132] In one embodiment, when the display data is a screen recording video, the computer program is executed by the processor, and when the display data is subjected to a user touch effect adding process according to the operation data, the following steps are further implemented:

[0133] According to the touch time of each position effectively touched by the user, the target image frame corresponding to the touch time of each position in the recorded screen video is determined; according to the position information of each position, a touch effect is added to the corresponding position of each target image frame; and the target image frame corresponding to the touch time of each position in the recorded screen video is replaced with the target image frame with the touch effect added corresponding to the touch time of each position.

[0134] In one embodiment, when the display data is a screenshot image, the number of the screenshot images is multiple; when the computer program is executed by the processor, and the touch effect is added to the display data according to the operation data, the following steps are also implemented:

[0135] According to the operation time of each position effectively touched by the user, the target screenshot image corresponding to the operation time of each position in the multiple screenshot images is determined; according to the position information of each position, a touch effect is added to the corresponding position of each target screenshot image; and the target screenshot image corresponding to the touch time of each position in the multiple screenshot images is replaced with the target screenshot image with the touch effect added corresponding to the touch time of each position.

[0136] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: in response to the operation, collecting control information corresponding to each effective touch position of the user on the screen during the start of the specified process;

[0137] When the computer program is executed by the processor, the following steps are also implemented: when the end of the specified process is detected, the log information generated during the start of the specified process is extracted from the specified log file stored locally in the terminal, and the collected control information and the extracted log information are uploaded to the background server, so that the background server obtains the product attribute information corresponding to the control information, and sends the product attribute information, the log information and the control information to the target problem troubleshooter.

[0138] In one embodiment, the computer program is executed by a processor, and when uploading the display data with the added touch effect to the background server, the following steps are also implemented:

[0139] Extract the log information generated during the opening of the specified process from the specified log file stored locally in the terminal, and filter out abnormal log information from the extracted log information; mark the abnormal log information in the display data with the touch effect added according to the generation time of the abnormal log information to obtain the marked display data; and upload the marked display data to the background server when the end of the specified process is detected.

[0140] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0141] When no abnormality occurs during the start of the designated process, the operation data and the display data are deleted.

[0142] Those skilled in the art can understand that all or part of the processes in the above method embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0143] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0144] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for collecting application abnormality information, characterized in that: The method comprises: Detecting a user-triggered action to start a specified process in the application; In response to the operation, collecting the operation data of the user during the opening of the specified process, and collecting the display data of the screen of the terminal where the application is located during the opening of the specified process; the operation data includes the position information and touch time of each effective touch position of the user on the screen; the display data is a screen recording video or a screenshot image; When an exception occurs during the start of the specified process, the display data is marked according to the operation data to obtain the display data with the touch effect added; Uploading the display data with the added touch effect to the backend server; When the display data is a screen recording video, the step of adding a user touch effect to the display data according to the operation data includes: Determining target image frames corresponding to the touch time at each position in the screen recording video according to the touch time at each position effectively touched by the user; Adding a touch effect to a corresponding position of each target image frame according to position information of each position; The target image frames corresponding to the touch time at each position in the screen recording video are replaced with the target image frames with touch effects added thereto corresponding to the touch time at each position; When the display data is a screenshot image, the number of the screenshot images is multiple; The step of adding touch effect processing to the display data according to the operation data includes: Determine, according to the operation time of each position effectively touched by the user, a target screenshot image corresponding to the operation time of each position in the plurality of screenshot images; Adding a touch effect to a corresponding position of each target screenshot image according to the position information of each position; The target screenshot images corresponding to the touch time at each position in the plurality of screenshot images are replaced with the target screenshot images with the touch effect added thereto corresponding to the touch time at each position.

2. The method according to claim 1, characterized in that When an exception occurs during the start of the specified process, the step of adding a user touch effect to the display data according to the operation data includes: After detecting that the designated process is finished, judging whether an abnormality occurs during the start of the designated process according to a designated log file stored locally on the terminal, and when it is determined that an abnormality occurs during the start of the designated process, adding a user touch effect to the display data according to the operation data; or, During the start of the designated process, whether the response to each effective touch of the user is abnormal is monitored, and when an abnormal response to any effective touch of the user is monitored, a user touch effect is added to the display data according to the operation data.

3. The method according to claim 1, characterized in that The method further comprises: In response to the operation, collecting control information corresponding to each effective touch position of the user on the screen during the start of the designated process; The method further comprises: When it is detected that the designated process has ended, the log information generated during the start of the designated process is extracted from the designated log file stored locally on the terminal, and the collected control information and the extracted log information are uploaded to the background server, so that the background server obtains the product attribute information corresponding to the control information, and sends the product attribute information, the log information and the control information to the target problem troubleshooter.

4. The method according to claim 1 or 3, characterized in that The step of uploading the display data with the added touch effect to the background server includes: Extracting log information generated during the start of the specified process from a specified log file stored locally on the terminal, and filtering out abnormal log information from the extracted log information; According to the generation time of the abnormal log information, the abnormal log information is marked in the display data to which the touch effect has been added, so as to obtain the marked display data; When the designated process is detected to be finished, the marked display data is uploaded to a background server.

5. The method according to claim 1, characterized in that The method further comprises: When no abnormality occurs during the start of the designated process, the operation data and the display data are deleted.

6. A device for collecting application abnormality information, characterized in that: The device comprises: An operation detection module, used to detect an operation triggered by a user to start a specified process in the application; a data collection module, configured to collect, in response to the operation, the operation data of the user during the period when the specified process is started, and the display data of the screen of the terminal where the application is located during the period when the specified process is started; the operation data includes the position information and the touch time of each effective touch position of the user on the screen; the display data is a screen recording video or a screenshot image; When the display data is a screen recording video, the step of adding a user touch effect to the display data according to the operation data includes: Determining target image frames corresponding to the touch time at each position in the screen recording video according to the touch time at each position effectively touched by the user; Adding a touch effect to a corresponding position of each target image frame according to position information of each position; The target image frames corresponding to the touch time at each position in the screen recording video are replaced with the target image frames with touch effects added thereto corresponding to the touch time at each position; When the display data is a screenshot image, the number of the screenshot images is multiple; The step of adding touch effect processing to the display data according to the operation data includes: Determine, according to the operation time of each position effectively touched by the user, a target screenshot image corresponding to the operation time of each position in the plurality of screenshot images; Adding a touch effect to a corresponding position of each target screenshot image according to the position information of each position; The target screenshot images corresponding to the touch time of each position in the plurality of screenshot images are replaced with the target screenshot images with touch effects added corresponding to the touch time of each position. An effect adding module, used for marking the display data according to the operation data to obtain the display data with the touch effect added when an exception occurs during the start of the specified process; The data uploading module is used to upload the display data with the added touch effect to the background server.

7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.