Abnormal layer processing method, device, equipment and storage medium

The layer configuration information is obtained through preset functions and the exception information is reported, which solves the problem of inefficient system operation caused by layer exceptions, and improves the overall system operation efficiency and user experience.

CN113377562BActive Publication Date: 2024-11-26BIGO TECH PTE LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202110492467.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-06
Publication Date
2024-11-26
Estimated Expiration
2041-05-06

AI Technical Summary

Technical Problem

During the system development process, due to the increase in business function iteration and application support areas, layer abnormalities occur frequently, resulting in excessive memory consumption. The existing technology lacks a reasonable and efficient processing mechanism, resulting in inefficient system operation.

Method used

The layer configuration information is obtained through the preset function, and the display layer is determined based on the set abnormal layer monitoring information. If so, the abnormal information is reported to achieve efficient inspection of abnormal information.

Benefits of technology

It improves the overall operating efficiency of the system, reduces the impact of abnormal layers on users, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113377562B_ABST
    Figure CN113377562B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses an abnormal layer processing method, device, equipment and storage medium, the method comprising: when the display layer is called, the corresponding layer configuration information is obtained through a preset function, the preset function is determined based on the original layer display function of the system; according to the set abnormal layer monitoring information and layer configuration information, it is determined whether the display layer is an abnormal layer; if the display layer is an abnormal layer, the abnormal information is reported. This scheme obtains the layer configuration information of the display layer through a preset function, and finds out the abnormal layer according to the set abnormal layer monitoring information and layer configuration information and reports the abnormal information, thereby efficiently realizing the investigation of abnormal information, improving the overall operation efficiency of the system, and reducing the impact of abnormal layers on users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and in particular, to an abnormal layer processing method, device, equipment and storage medium. Background Art

[0002] At present, in the process of developing system applications, with the iteration of business functions and the increase in the number of regions supported by the application, the complexity of the application display interface is getting higher and higher, which leads to the emergence of various layer abnormalities. For example, the pictures configured in the application are too large, the special text layout calculation is abnormal, and other problems. The emergence of these abnormal layers will cause the display content to consume a lot of memory.

[0003] In order to solve the above problems, the system usually directly terminates the application. There is a lack of a reasonable and efficient processing mechanism for abnormal layers to improve the overall operating efficiency of the system. Summary of the invention

[0004] The embodiments of the present invention provide an abnormal layer processing method, device, equipment and storage medium, which obtain corresponding layer configuration information through a preset function, and find out the abnormal layer according to the set abnormal layer monitoring information and layer configuration information and report the abnormal information, so that the abnormal information can be checked and the overall operation efficiency of the system can be improved.

[0005] In a first aspect, an embodiment of the present invention provides a method for processing abnormal layers, the method comprising:

[0006] When the display layer is called, the corresponding layer configuration information is obtained through a preset function, and the preset function is determined based on the original layer display function of the system;

[0007] Determine whether the display layer is an abnormal layer according to the set abnormal layer monitoring information and the layer configuration information;

[0008] If the displayed layer is an abnormal layer, abnormal information is reported.

[0009] In a second aspect, an embodiment of the present invention provides an abnormal layer processing device, the device comprising:

[0010] A layer information acquisition module, used to acquire corresponding layer configuration information through a preset function when a display layer is called, wherein the preset function is determined based on the original layer display function of the system;

[0011] An abnormal layer detection module, used to determine whether the display layer is an abnormal layer according to the set abnormal layer monitoring information and the layer configuration information;

[0012] The abnormality reporting module is used to report abnormal information if the display layer is an abnormal layer.

[0013] In a third aspect, an embodiment of the present invention provides an abnormal layer processing device, the device comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the abnormal layer processing method as described in the first aspect.

[0014] In a fourth aspect, an embodiment of the present invention provides a storage medium storing computer executable instructions, which, when executed by a computer processor, are used to execute the abnormal layer processing method as described in the first aspect.

[0015] In the embodiment of the present invention, a preset function is first determined based on the original layer display function of the system, so that when the display layer is called, the corresponding layer configuration information can be obtained through the preset function, and then, it is determined whether the display layer is an abnormal layer according to the set abnormal layer monitoring information and layer configuration information, and if so, the abnormal information is reported. This scheme obtains the layer configuration information of the display layer through a preset function, and finds out the abnormal layer and reports the abnormal information according to the set abnormal layer monitoring information and layer configuration information, thereby efficiently realizing the investigation of abnormal information, improving the overall operation efficiency of the system, and reducing the impact of abnormal layers on users. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A flowchart of a method for processing abnormal layers provided by an embodiment of the present invention;

[0017] Figure 2 A flowchart of another abnormal layer processing method provided by an embodiment of the present invention;

[0018] Figure 3 A flowchart of another abnormal layer processing method provided by an embodiment of the present invention;

[0019] Figure 4 A structural diagram of another abnormal layer processing system provided by an embodiment of the present invention;

[0020] Figure 5 A startup flow chart of an abnormal layer processing system provided by an embodiment of the present invention;

[0021] Figure 6 A monitoring flow chart of an abnormal layer processing system provided by an embodiment of the present invention;

[0022] Figure 7 A structural block diagram of an abnormal layer processing device provided by an embodiment of the present invention;

[0023] Figure 8 A schematic diagram of the structure of an abnormal layer processing device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0024] The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the embodiments of the present invention, rather than to limit the embodiments of the present invention. It is also necessary to explain that, for ease of description, only parts related to the embodiments of the present invention are shown in the accompanying drawings, rather than all structures.

[0025] Figure 1 The flowchart of a method for processing abnormal layers provided by an embodiment of the present invention is applicable to processing abnormal layers in a system. The method can be executed by a computing device such as a mobile terminal, a tablet computer, a computer, a server, etc., and specifically includes the following steps:

[0026] Step S101: when a display layer is called, the corresponding layer configuration information is obtained through a preset function, and the preset function is determined based on the original layer display function of the system.

[0027] The display layer refers to the layer currently displayed by the system. Each layer is composed of many pixels. The layers are stacked up and down to form the entire image. The system can call the display layer according to the image to be displayed. When the system displays the display layer, it needs to call the layer display function, so as to display the display layer according to the code instructions in the layer display function. In one embodiment, when the system refreshes the interface or the user interacts, it needs to call a certain display layer, and the display layer is displayed by calling the layer display function corresponding to the display layer.

[0028] A preset function refers to a pre-set function. In this embodiment, the preset function is determined based on the original layer display function of the system, so that the preset function can realize the functions realized by the original layer display function of the system, that is, the preset function can also realize the function of displaying the display layer. In one embodiment, when the system displays the display layer, the display layer can be displayed by calling the preset function, and the layer configuration information corresponding to the display layer can be obtained through the preset function. Exemplarily, the preset function is a HOOK function, which can be used to replace the original function and realize other behaviors, so as to obtain relevant parameter information before or after the execution of the original function.

[0029] In one embodiment, the preset function is a HOOK function. After the HOOK function is used to replace the original layer display function of the system, when the system calls and displays the display layer, the HOOK function is called to display the display layer, and the layer configuration information corresponding to the display layer is obtained through the HOOK function. Among them, the layer configuration information includes configuration information corresponding to the current display layer. For example, the layer configuration information may include the size of the layer, rendering parameters, and reference relationships. Among them, the layer configuration information can be obtained according to actual needs, and the specific type of the layer configuration information is not limited in this embodiment.

[0030] Step S102: Determine whether the displayed layer is an abnormal layer according to the set abnormal layer monitoring information and layer configuration information.

[0031] The abnormal layer monitoring information includes the configuration information of the abnormal layer set in advance. After the layer configuration information is obtained, it can be determined whether the current display layer is an abnormal layer according to the configuration information of the abnormal layer in the abnormal layer monitoring information. Exemplarily, the abnormal layer monitoring information can be an abnormal layer monitoring rule or an abnormal layer monitoring condition. Both the abnormal layer monitoring rule and the abnormal layer monitoring condition include the conditions that the normal layer needs to meet. When the layer configuration information of the display layer meets the conditions that the normal layer needs to meet, it can be determined that the display layer is a normal layer. If not, the display layer is an abnormal layer.

[0032] In one embodiment, abnormal layer monitoring information may be "the length of the display image of the layer is greater than 20cm, and the width of the display image of the layer is greater than 12cm". After obtaining the layer configuration information corresponding to the display layer through a preset function, it is determined whether the layer configuration information meets the abnormal layer monitoring rules. If the size information of the layer display image in the layer configuration information is "length is 30cm, width is 20cm", the display layer meets the abnormal layer monitoring information, and it can be determined that the display layer is an abnormal layer. In another embodiment, the abnormal layer monitoring information may also be information for monitoring rendering parameters and layer reference relationships.

[0033] Step S103: If the displayed layer is an abnormal layer, abnormal information is reported.

[0034] After determining that the display layer is an abnormal layer, abnormal information of the display layer is obtained, and the abnormal information includes configuration information of the display layer abnormality. After obtaining the abnormal information of the display layer, the abnormal information is reported.

[0035] In one embodiment, the layer configuration information of the display layer is obtained through a preset function, and the layer configuration information is compared with the preset abnormal layer monitoring information to determine whether the layer configuration information is the configuration information of the abnormal layer in the abnormal layer monitoring information. If not, the display layer is not the abnormal layer. If so, the display layer is the abnormal layer. The abnormal information of the display layer is obtained and reported to the background or terminal to facilitate the staff to analyze the abnormal information and troubleshoot abnormal problems.

[0036] From the above, it can be seen that in order to obtain abnormal information when an abnormal layer appears, this solution first determines the preset function based on the original layer display function of the system, so that when the display layer is called, the corresponding layer configuration information can be obtained through the preset function, and then, according to the set abnormal layer monitoring information and layer configuration information, it is determined whether the display layer is an abnormal layer. If so, the abnormal information is reported. This solution obtains the layer configuration information of the display layer through a preset function, and finds the abnormal layer and reports the abnormal information according to the set abnormal layer monitoring information and layer configuration information, thereby efficiently realizing the investigation of abnormal information, improving the overall operation efficiency of the system, and reducing the impact of abnormal layers on users, improving user experience.

[0037] Figure 2 A flowchart of another abnormal layer processing method provided by an embodiment of the present invention provides a method for generating abnormal layer monitoring information according to cloud control configuration data, such as Figure 2 As shown, the technical solution is as follows:

[0038] Step S201: Obtain cloud control configuration data, and generate abnormal layer monitoring information according to the cloud control configuration data. The abnormal layer monitoring information includes one or more of reference relationship monitoring information, image size monitoring information, and layer rendering parameter monitoring information.

[0039] The cloud control configuration data includes the correct layer configuration information of the display layer, or the judgment information of abnormal layer conditions. The cloud control configuration data can be pre-set or obtained from the background terminal.

[0040] After obtaining the cloud control configuration data, abnormal layer monitoring information can be generated according to the correct layer configuration information in the cloud control configuration data, or abnormal layer monitoring information can be generated according to the abnormal conditions recorded in the operation control configuration data. Abnormal layer monitoring information includes one or more of reference relationship monitoring information, image size monitoring information, and layer rendering parameter monitoring information. Among them, the reference relationship monitoring information contains the reference relationship information of the abnormal layer, the image size monitoring information contains the size information of the abnormal layer, and the layer rendering parameter monitoring information contains the rendering parameter information of the abnormal layer.

[0041] In one embodiment, the cloud control configuration data includes the correct image size information of the display layer. After the cloud control configuration data is obtained, abnormal layer monitoring information is generated according to the cloud control configuration data. The abnormal layer monitoring information includes image size monitoring information. For example, if the image size information in the cloud control configuration data is "the length of the layer display image is less than or equal to 20 cm or the width of the layer display image is less than or equal to 12 cm", then the abnormal layer monitoring information can be generated according to the cloud control configuration data. The image size monitoring information included in the abnormal layer monitoring information is "the length of the layer display image is greater than 20 cm or the width of the layer display image is greater than 12 cm". If the size of the layer meets the conditions in the image size monitoring information, the layer is determined to be an abnormal layer.

[0042] In one embodiment, step S201 is specifically implemented through steps S2011 and S2012.

[0043] Step S2011, parse the cloud control configuration data to obtain abnormal data containing different types.

[0044] After obtaining the cloud control configuration data, the correct layer configuration information of the display layer contained in the cloud control configuration data is parsed to obtain abnormal data containing different types. For example, if the layer reference information contained in the correct layer configuration information is "reference the previous layer", abnormal data containing the layer reference information of "the layer does not reference the previous layer" can be generated.

[0045] Among them, it should be noted that the types of abnormal data can be divided according to the characteristics of the abnormal data. For example, the abnormal data is divided into reference relationship abnormal data, image size abnormal data and layer rendering parameter abnormal data. It can be understood that the types of abnormal data can be divided according to actual needs. In this embodiment, the type classification method of abnormal data is not limited.

[0046] After parsing the cloud control configuration data, the same type of abnormal data can be stored in any form such as an array, a linked list, a string, etc. Exemplarily, the same type of abnormal data is stored as an array, so that multiple arrays can be obtained, each array contains one type of abnormal data; or, the same type of abnormal data is stored as a linked list, so that multiple linked lists can be obtained, each linked list contains one type of abnormal data, or, the same type of abnormal data is stored as a string, so that multiple strings can be obtained, each string contains one type of abnormal data. It is understandable that the storage method of abnormal data can be selected according to actual needs.

[0047] In one embodiment, the correct layer configuration information of the display layer contained in the cloud control configuration data is parsed to generate two types of exception data including reference relationship exception data and image size exception data. The different types of exception data are stored in the form of arrays, thereby obtaining a first array including reference relationship exception data and a second array including image size exception data.

[0048] Step S2022: Generate corresponding abnormal layer monitoring information according to different types of abnormal data.

[0049] After different types of abnormal data are obtained, abnormal layer monitoring information corresponding to each type can be generated according to the different types of abnormal data. Exemplarily, for example, if the types of abnormal data include reference relationship abnormal data and image size abnormal data, reference relationship monitoring information corresponding to the reference relationship abnormal data and image size monitoring information corresponding to the image size abnormal data can be generated, and the abnormal layer can be monitored according to the reference relationship monitoring information and the image size monitoring information.

[0050] In one embodiment, if the abnormal data includes abnormal image size data, and the content included in the abnormal image size data is "the length of the layer display image is greater than 20 cm or the width of the layer display image is greater than 12 cm", then in the abnormal layer monitoring information generated according to the abnormal data, "the length of the layer display image is greater than 20 cm or the width of the layer display image is greater than 12 cm" is set as the condition satisfied by the abnormal layer.

[0051] Step S202: when the display layer is called, the corresponding layer configuration information is obtained through a preset function, and the preset function is determined based on the original layer display function of the system.

[0052] Step S203: determining whether the displayed layer is an abnormal layer according to the set abnormal layer monitoring information and the layer configuration information.

[0053] Step S204: If the displayed layer is an abnormal layer, abnormal information is reported.

[0054] On the basis of the above embodiment, when the abnormal number layer monitoring information is the picture size monitoring information, whether the displayed layer is an abnormal layer is determined according to the set abnormal layer monitoring information and the layer configuration information, including: determining whether the picture configuration size in the layer configuration information satisfies the picture size interval set by the picture size monitoring information; since the picture size interval set by the picture size monitoring information is the picture size interval of the normal layer, therefore, by judging whether the picture configuration size in the layer configuration information satisfies the picture size interval set by the picture size monitoring information, it is possible to judge whether the displayed layer is an abnormal layer.

[0055] Correspondingly, if the displayed layer is an abnormal layer, abnormal information is reported, including:

[0056] If the image configuration size does not satisfy the image size range, the display layer is determined to be an abnormal layer, and abnormal information is reported.

[0057] In one embodiment, the image size interval set by the image size monitoring information is "the length of the layer display image is less than or equal to 25cm and the width of the layer display image is less than or equal to 12cm". After obtaining the layer configuration information of the display layer, it is determined whether the image configuration size in the layer configuration information meets the condition of "the length of the layer display image is less than or equal to 20cm and the width of the layer display image is less than or equal to 12cm". If so, the display layer is a normal layer, if not, the display layer is an abnormal layer, and the image configuration size of the display layer is reported to the background as abnormal information. It should be noted that when the abnormal layer monitoring information is one or more of the reference relationship monitoring information, the image size monitoring information, and the layer rendering parameter monitoring information, its working principle is similar to that of the abnormal number of layer monitoring information as the image size monitoring information. For example, when the abnormal number of layer monitoring information is the reference relationship monitoring information, the reference relationship set by the reference relationship monitoring information is "reference to the previous layer", then after obtaining the layer configuration information of the display layer, it is determined whether the reference relationship information of the display layer is a reference to the previous layer, if not, the display layer is an abnormal layer, and the reference relationship information of the display layer is reported to the background as abnormal information. When the abnormal layer monitoring information is the layer rendering parameter monitoring information, the layer rendering parameter of the layer rendering parameter monitoring information is set to "subdivision parameter is less than 1000", then after obtaining the layer configuration information of the display layer, it is determined whether the subdivision parameter in the layer rendering parameter of the display layer is less than 1000. If not, the display layer is an abnormal layer, and the reference relationship of the display layer is reported to the background as abnormal information.

[0058] It can be seen from the above scheme that after obtaining the cloud control configuration data, abnormal layer monitoring information is generated according to the cloud control configuration data. The abnormal layer monitoring information includes one or more of reference relationship monitoring information, image size monitoring information and layer rendering parameter monitoring information. Therefore, the abnormal monitoring information can judge whether the display layer is an abnormal layer according to the reference relationship, image size and layer rendering parameters in the layer configuration information of the display layer, thereby improving the accuracy of judging abnormal layers and avoiding misjudgment.

[0059] Figure 3 A flowchart of another abnormal layer processing method provided by an embodiment of the present invention provides a method for correcting the abnormal layer after abnormal information is reported, such as Figure 3As shown, the technical solution is as follows:

[0060] Step S301: When a display layer is called, the corresponding layer configuration information is obtained through a preset function, and the preset function is determined based on the original layer display function of the system.

[0061] Step S302: Determine whether the displayed layer is an abnormal layer according to the set abnormal layer monitoring information and layer configuration information.

[0062] Step S303: If the displayed layer is an abnormal layer, report the abnormal information.

[0063] Step S304: determine whether the abnormal layer meets the correction condition.

[0064] After the abnormal information of the abnormal layer is reported, it is further determined whether the abnormal layer meets the correction condition. In one embodiment, the system is provided with a correction condition, and the correction condition may include one or more of a reference relationship correction condition, a picture size correction condition, and a layer rendering parameter correction condition. After the abnormal layer is detected, it is determined whether the layer configuration information of the abnormal layer meets the correction condition. If so, the abnormal layer meets the correction condition, otherwise, the abnormal layer does not meet the correction condition. Exemplarily, the picture size correction condition set in the abnormal layer monitoring information is: "length greater than 25cm or width greater than 15cm", and it is determined whether the picture configuration size in the layer configuration information of the abnormal layer meets the correction condition. If so, the abnormal layer meets the correction condition, otherwise, the abnormal layer does not meet the correction condition.

[0065] Step S305: If the conditions are met, the abnormal layer is corrected.

[0066] After determining that the abnormal layer meets the correction conditions, the abnormal layer is corrected and processed to be a normal display layer, thereby avoiding the abnormal layer consuming a large amount of memory, causing the system to forcibly kill the abnormal layer.

[0067] In one embodiment, step S305 is specifically implemented through step S3051.

[0068] Step 3051: Correct and modify the layer configuration information corresponding to the abnormal layer.

[0069] In the process of correcting the abnormal layer, the correction and modification are specifically performed through the layer configuration information corresponding to the abnormal layer. In one embodiment, after determining that the abnormal layer meets the correction condition, the configuration information of the abnormal layer is modified to the configuration information of the normal display layer. For example, if the image size configuration information, reference relationship information and layer rendering parameters in the layer configuration information of the abnormal layer meet the correction condition, the image size configuration information, reference relationship information and layer rendering parameters in the layer configuration information of the abnormal layer are corrected and modified respectively, and the layer configuration information of the abnormal layer is corrected to the image configuration information of the normal layer.

[0070] In one embodiment, step 3051 is specifically implemented through step S3052.

[0071] Step 3052: When it is determined that the image size of the abnormal layer is abnormal, the image size originally configured in the layer configuration information is modified to the current display screen size.

[0072] In one embodiment, when it is determined that the image size of the abnormal layer is abnormal, the size of the current display screen is obtained, and the image size of the original configuration in the layer configuration information is modified according to the display size of the display screen, and the image size of the original configuration in the layer configuration information is modified to a size corresponding to the display screen, so that the abnormal layer can be displayed normally on the display screen.

[0073] On the basis of the above embodiment, before judging whether the abnormal layer meets the correction condition, the method further includes:

[0074] Determine whether the abnormal layer allows correction processing;

[0075] Before determining whether the abnormal layer meets the correction condition, it is also necessary to determine whether the abnormal layer allows correction processing. In one embodiment, after determining that the display layer is an abnormal layer, the layer configuration information of the abnormal layer is obtained, and whether the abnormal layer allows correction processing is determined based on the layer configuration information of the abnormal layer. For example, for some layers that cannot be actively modified, it is determined that correction processing cannot be performed, and for layers that can be custom configured, it is determined that correction processing is allowed.

[0076] Accordingly, judging whether the abnormal layer satisfies the correction condition includes:

[0077] If the abnormal layer allows correction processing, it is determined whether the abnormal layer meets the correction conditions.

[0078] After confirming that the abnormal layer allows correction processing, it is further determined whether the abnormal layer meets the correction conditions. If so, the abnormal layer is corrected and modified to be a normal display layer.

[0079] It can be seen from the above scheme that after the abnormal information is reported, it is further judged whether the abnormal layer meets the correction conditions. If the correction conditions are met, the abnormal layer is corrected, so as to correct the abnormal layer to a normal display layer, avoiding the abnormal layer from consuming a large amount of memory due to display abnormalities, improving the overall operation efficiency of the system, reducing the impact of the abnormal layer on users, and improving user experience.

[0080] Figure 4 This is a system framework diagram of an abnormal layer processing system provided by an embodiment of the present invention. The system is used to execute the abnormal layer processing method provided by the above embodiment and has the corresponding functional modules and beneficial effects of the execution method. Figure 4 As shown, the system specifically includes:

[0081] The module entry class module 401 is used to select the detector to be started according to the cloud control configuration information, and the detector is used to obtain the cloud control configuration information from the cloud control configuration management class module 402.

[0082] The cloud control configuration management module 402 is used to obtain cloud control configuration information, and save and parse the cloud control configuration information.

[0083] Abnormal layer condition description information 403 is used to monitor the display layer according to the conditions satisfied by the abnormal layer. The conditions satisfied by the abnormal layer are initialized by the module entry class module 401 after reading the cloud control configuration information from the cloud control configuration management class module 402. The conditions satisfied by the abnormal layer include two derived classes: a picture layer abnormal module 409 describing the conditions that the abnormal picture layer (huge size) needs to meet and a label layer abnormal module 410 describing the conditions that the abnormal label layer (huge size) needs to meet. The derived class also sets the conditions for the abnormal layer to be corrected and the conditions for the abnormal layer to meet the correction.

[0084] The abnormal layer detector module 404 is used to monitor the layer configuration information of the display layer in real time according to the derived class of the abnormal layer condition description information 403, determine whether the display layer is an abnormal layer, and collect abnormal information of the abnormal layer. The abnormal layer detector module 404 includes a picture layer detector 407 and a label layer detector 408, which detect the abnormal layer according to the picture layer abnormality module 409 and the label layer abnormality module 410 respectively.

[0085] Function HOOK module 405 is used to provide HOOK function.

[0086] The event reporting class 406 is used to report the abnormal information of the abnormal layer to the background.

[0087] Figure 5 For the system initialization process, such as Figure 5 As shown in the figure, the system initialization process includes:

[0088] Step S501: The detector reads cloud control configuration information from the cloud control configuration management module, and triggers the cloud control configuration management module to parse the cloud control configuration information to obtain an array containing different types of cloud control configuration information.

[0089] Step S502: The detector traverses the cloud control configuration information array to obtain all cloud control configuration information in the cloud control configuration information array.

[0090] Step S503: The detector generates a derived class of the abnormal layer condition description information module according to the acquired cloud control configuration information, that is, the conditions satisfied by the abnormal layer.

[0091] Step S504: The detector initializes the derived class of the abnormal layer condition description information module.

[0092] Step S505: start the abnormal layer detector module so that the abnormal layer detector module monitors the abnormal layer according to the derived class of the abnormal layer condition description information module.

[0093] Step S506, the function HOOK module uses the HOOK function to replace the original layer display function of the system, and waits for the HOOK function to be called.

[0094] The system monitors abnormal layers as follows: Figure 6 As shown, the following steps are included:

[0095] Step S601, after the HOOK function in the function HOOK module is called to display the display layer due to reasons such as interface refresh, user interaction, etc., the HOOK function collects the layer configuration information of the current display layer.

[0096] Step S602, the detector determines whether the display layer satisfies the derived class of the abnormal layer condition description information module according to the layer configuration information of the display layer. If so, the current display layer is an abnormal layer and step S603 is executed. If not, step S608 is executed.

[0097] Step S603: The detector collects abnormal information of the abnormal layer through the abnormal layer detector module, such as the reference relationship, current size, rendering parameters, etc. of the layer.

[0098] Step S604: The event reporting module reports the abnormal information of the abnormal layer to the background.

[0099] Step S605, the detector determines whether the abnormal layer allows correction processing according to the derived class of the abnormal layer condition description information module, if not allowed, execute step S608, if allowed, execute step S606.

[0100] Step S606: The detector determines whether the abnormal layer meets the correction conditions according to the derived class of the abnormal layer condition description information module. If not, execute step S608; if yes, execute step S607.

[0101] Step S607: The detector performs correction processing on the abnormal layer to repair the abnormal state.

[0102] Step S608: The function HOOK module waits for the next call of the HOOK function.

[0103] like Figure 7 This is a structural block diagram of an abnormal layer processing device provided by an embodiment of the present invention. The system is used to execute the abnormal layer processing method provided by the above embodiment, and has the corresponding functional modules and beneficial effects of the execution method. Figure 7 As shown, the device specifically includes:

[0104] The layer information acquisition module 701 is used to acquire the corresponding layer configuration information through a preset function when the display layer is called, and the preset function is determined based on the original layer display function of the system;

[0105] An abnormal layer detection module 702 is used to determine whether the displayed layer is an abnormal layer according to the set abnormal layer monitoring information and layer configuration information;

[0106] The abnormality reporting module 703 is used to report abnormal information if the displayed layer is an abnormal layer.

[0107] As mentioned above, in order to obtain abnormal information when an abnormal layer appears, this solution first determines a preset function based on the original layer display function of the system, so that when the display layer is called, the corresponding layer configuration information can be obtained through the preset function, and then, according to the set abnormal layer monitoring information and layer configuration information, it is determined whether the display layer is an abnormal layer. If so, the abnormal information is reported. This solution obtains the layer configuration information of the display layer through a preset function, and finds the abnormal layer and reports the abnormal information according to the set abnormal layer monitoring information and layer configuration information, thereby efficiently realizing the investigation of abnormal information, improving the overall operation efficiency of the system, and reducing the impact of abnormal layers on users, improving user experience.

[0108] Based on the above embodiment, the abnormal layer processing device also includes an abnormal layer monitoring information generation module 704, which is used to generate abnormal layer monitoring information according to the cloud control configuration data. The abnormal layer monitoring information includes one or more of reference relationship monitoring information, image size monitoring information and layer rendering parameter monitoring information.

[0109] Based on the above embodiment, the abnormal layer monitoring information generation module 704 includes a parsing submodule 7041 and a monitoring information generation submodule 7042. The parsing submodule 7041 is used to parse the cloud control configuration data to obtain abnormal data containing different types; the monitoring information generation submodule 7042 is used to generate corresponding abnormal layer monitoring information according to different types of abnormal data.

[0110] On the basis of the above embodiment, when the abnormal number layer monitoring information is the picture size monitoring information, the abnormal layer detection module 702 is specifically used to determine whether the picture configuration size in the layer configuration information satisfies the picture size interval set by the picture size monitoring information;

[0111] Correspondingly, the abnormality reporting module 703 is specifically used to determine that the display layer is an abnormal layer and report the abnormal information if the image configuration size does not meet the image size range.

[0112] On the basis of the above embodiment, the abnormal layer processing device further includes a correction condition judgment module 705 and a correction module 706. The correction condition judgment module 705 is used to judge whether the abnormal layer meets the correction condition; the correction module 706 is used to perform correction processing on the abnormal layer if the abnormal layer meets the correction condition.

[0113] On the basis of the above embodiment, the correction module 706 is specifically used to correct and modify the layer configuration information corresponding to the abnormal layer.

[0114] On the basis of the above embodiment, the correction module 706 is specifically used to modify the original configured picture size in the layer configuration information to the current display screen size when it is determined that the picture size of the abnormal layer is abnormal.

[0115] On the basis of the above embodiment, the correction condition judgment module 705 further includes a correction processing judgment submodule 7051, and the correction processing judgment submodule 7051 is used to judge whether the abnormal layer allows correction processing;

[0116] Correspondingly, the correction condition judgment module 705 is specifically used to judge whether the abnormal layer meets the correction condition if the abnormal layer allows correction processing.

[0117] Figure 8A schematic diagram of the structure of an abnormal layer processing device provided by an embodiment of the present invention is shown in FIG. Figure 8 As shown, the device includes a processor 801, a memory 802, an input device 803 and an output device 804; the number of processors 801 in the device can be one or more. Figure 8 A processor 801 is taken as an example; the processor 801, the memory 802, the input device 803 and the output device 804 in the device can be connected by a bus or other means. Figure 8 The example of the bus connection is taken in the figure. The memory 802, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the abnormal layer processing method in the embodiment of the present invention. The processor 801 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 802, that is, implements the above-mentioned abnormal layer processing method. The input device 803 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the device. The output device 804 may include a display device such as a display screen.

[0118] An embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute an abnormal layer processing method when executed by a computer processor, the method comprising:

[0119] When the display layer is called, the corresponding layer configuration information is obtained through the preset function, which is determined based on the original layer display function of the system;

[0120] Determine whether the displayed layer is an abnormal layer according to the set abnormal layer monitoring information and layer configuration information;

[0121] If the displayed layer is an abnormal layer, the abnormal information will be reported.

[0122] It is worth noting that in the above-mentioned embodiment of the abnormal layer processing device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.

[0123] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention are described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.

Claims

1. The abnormal layer processing method is characterized by: include: When the display layer is called, the corresponding layer configuration information is obtained through a preset function, and the preset function is determined based on the original layer display function of the system; Determining whether the display layer is an abnormal layer according to the set abnormal layer monitoring information and the layer configuration information, wherein the step includes: determining that the display layer is an abnormal layer when the layer configuration information does not satisfy the set abnormal layer monitoring rule or abnormal layer monitoring condition, wherein the abnormal layer monitoring information includes one or more of reference relationship monitoring information, image size monitoring information, and layer rendering parameter monitoring information, which records the corresponding abnormal layer monitoring rule or abnormal layer monitoring condition; If the displayed layer is an abnormal layer, abnormal information is reported; Determining whether the abnormal layer meets the correction condition; If the conditions are met, the abnormal layer is corrected.

2. The abnormal layer processing method according to claim 1, characterized in that: Before obtaining the corresponding layer configuration information through the preset function, it also includes: The cloud control configuration data is acquired, and abnormal layer monitoring information is generated according to the cloud control configuration data as the set abnormal layer monitoring information.

3. The abnormal layer processing method according to claim 2, characterized in that: The generating abnormal layer monitoring information according to the cloud control configuration data includes: Parsing the cloud control configuration data to obtain abnormal data containing different types; Generate corresponding abnormal layer monitoring information according to the different types of abnormal data.

4. The abnormal layer processing method according to claim 2, characterized in that: When the abnormal layer monitoring information is picture size monitoring information, determining whether the display layer is an abnormal layer according to the set abnormal layer monitoring information and the layer configuration information includes: Determine whether the image configuration size in the layer configuration information meets the image size interval set by the image size monitoring information; Correspondingly, if the displayed layer is an abnormal layer, abnormal information is reported, including: If the image configuration size does not satisfy the image size range, the display layer is determined to be an abnormal layer, and abnormal information is reported.

5. The abnormal layer processing method according to claim 1, characterized in that: The correcting process of the abnormal layer includes: Correct and modify the layer configuration information corresponding to the abnormal layer.

6. The abnormal layer processing method according to claim 5, characterized in that: The correcting and modifying the layer configuration information corresponding to the abnormal layer includes: When it is determined that the image size of the abnormal layer is abnormal, the image size of the original configuration in the layer configuration information is modified to the current display screen size.

7. The abnormal layer processing method according to claim 4, characterized in that: Before judging whether the abnormal layer meets the correction condition, the method further includes: Determine whether the abnormal layer allows correction processing; Accordingly, judging whether the abnormal layer satisfies the correction condition includes: If the abnormal layer allows correction processing, it is determined whether the abnormal layer meets the correction condition.

8. The abnormal layer processing device is characterized by: include: A layer information acquisition module, used to acquire corresponding layer configuration information through a preset function when a display layer is called, wherein the preset function is determined based on the original layer display function of the system; An abnormal layer detection module is used to determine whether the display layer is an abnormal layer according to the set abnormal layer monitoring information and the layer configuration information, which includes: when the layer configuration information does not meet the set abnormal layer monitoring rules or abnormal layer monitoring conditions, determining that the display layer is an abnormal layer, the abnormal layer monitoring information includes one or more of reference relationship monitoring information, image size monitoring information and layer rendering parameter monitoring information, which records the corresponding abnormal layer monitoring rules or abnormal layer monitoring conditions; An abnormality reporting module, used for reporting abnormal information if the display layer is an abnormal layer; A correction condition judgment module is used to judge whether the abnormal layer meets the correction condition; The correction module is used to perform correction processing on the abnormal layer if the abnormal layer meets the correction condition.

9. An abnormal layer processing device, the device comprising: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the abnormal layer processing method as described in any one of claims 1-7.

10. A storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the abnormal layer processing method according to any one of claims 1 to 7 when executed by a computer processor.

Citation Information

Patent Citations

  • Layer drawing control method and device and mobile terminal

    CN106933587A

  • User interface adjusting method and mobile terminal

    CN107203383A

  • Webpage resource lazy loading monitoring method, device and equipment and storage medium

    CN109684576A

  • Information processing method and device and computer readable storage medium

    CN110535721A

  • Page anomaly detection method and device, electronic equipment and readable storage medium

    CN110879780A