CN112882897A - Abnormal scene processing method and device, electronic equipment and storage medium - Google Patents

Abnormal scene processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112882897A
CN112882897A CN202110205257.0A CN202110205257A CN112882897A CN 112882897 A CN112882897 A CN 112882897A CN 202110205257 A CN202110205257 A CN 202110205257A CN 112882897 A CN112882897 A CN 112882897A
Authority
CN
China
Prior art keywords
information
abnormal scene
abnormal
solution
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110205257.0A
Other languages
Chinese (zh)
Inventor
温启智
刘圣杰
罗宗凯
毛淑平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110205257.0A priority Critical patent/CN112882897A/en
Publication of CN112882897A publication Critical patent/CN112882897A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an abnormal scene processing method, an abnormal scene processing device, electronic equipment and a storage medium, and relates to the technical field of 5G communication, wherein the method comprises the following steps: receiving abnormal scene information from an application program; matching a preset scheme pool according to the abnormal scene information, and determining solution information corresponding to the abnormal scene information, wherein the scheme pool comprises: abnormal scene information and corresponding solution information thereof; importing the abnormal scene information into a preset simulator for abnormal scene simulation, so that the simulator can repair the simulated abnormal scene according to the determined solution information; and responding to the simulated abnormal scene repair, and sending the determined solution information to the application program so as to facilitate the application program to repair the abnormal scene. By the method and the device, the labor cost can be reduced, and the experience of the user is improved.

Description

Abnormal scene processing method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of 5G communication, in particular to an abnormal scene processing method and device, electronic equipment and a storage medium.
Background
With the development of front-end monitoring technology, the content of front-end page monitoring in various forms is becoming rich, the monitoring is not limited to abnormal and common functions, and with the gradual development and formation of a big data analysis platform, much front-end monitored data becomes more meaningful for reference and analysis. The front end includes various third-party SDKs (software development kits) integrated at the C end or the B end, and in the case of facilitating engineering development and enriching the integration function, compatibility problems due to various factors may be caused, for example, a browser version, a mobile phone model, a screen aspect ratio and a resolution, even a Central Processing Unit (CPU) kernel version of a mobile phone may affect the performance and the function of the integrated SDKs to different degrees, and even some problems may occur that affect normal use of the front end function (such as flash back, memory occupation, and the like).
In the prior art, in order to solve the compatibility problems, library files with different architectures are not integrated, after application installation, operating system architecture information is collected, the library files are dynamically pulled from a server, the size of an initial installation package is compressed in a hot loading mode, if abnormity occurs, field information is stored and analyzed, then manual checking and debugging are carried out, a new version is released after debugging, and a user is prompted to update. If some APPs (application programs) have defects in design, before the update prompt is popped up, the APPs crash, and a user cannot see even the update prompt.
In summary, the conventional compatibility problem processing has the following problems:
1. the period for collecting the information of the problem site is long, the manual analysis and debugging time is long, and the labor cost is high.
2. Many problems affecting the normal functional use of the user or causing poor experience need to be solved by reminding the user to download the APP update client again.
3. Some special models need to adjust the application layer or driver layer codes in a targeted manner even after the matching source library is hot-loaded, and the codes are easy to cause code coupling of unrelated services.
Disclosure of Invention
In view of the above, the present invention provides an abnormal scene processing method, an abnormal scene processing apparatus, an electronic device, and a storage medium, so as to solve at least one of the above-mentioned problems.
According to a first aspect of the present invention, there is provided an abnormal scenario processing method, the method including:
receiving abnormal scene information from an application program;
matching a preset scheme pool according to the abnormal scene information, and determining solution information corresponding to the abnormal scene information, wherein the scheme pool comprises: abnormal scene information and corresponding solution information thereof;
importing the abnormal scene information into a preset simulator for abnormal scene simulation, so that the simulator can repair the simulated abnormal scene according to the determined solution information;
and responding to the simulated abnormal scene repair, and sending the determined solution information to the application program so as to facilitate the application program to repair the abnormal scene.
According to a second aspect of the present invention, there is provided an abnormal situation handling apparatus, the apparatus comprising:
an exception information receiving unit for receiving exception scenario information from an application program;
a matching unit, configured to match a preset solution pool according to the abnormal scene information, and determine solution information corresponding to the abnormal scene information, where the solution pool includes: abnormal scene information and corresponding solution information thereof;
the simulation unit is used for importing the abnormal scene information into a preset simulator to simulate the abnormal scene so as to facilitate the simulator to repair the simulated abnormal scene according to the determined solution information;
and the solution sending unit is used for responding to the simulated abnormal scene repair and sending the determined solution information to the application program so as to facilitate the application program to repair the abnormal scene.
According to a third aspect of the present invention, there is provided an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method when executing the program.
According to a fourth aspect of the invention, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
According to the technical scheme, the preset scheme pool is matched according to the received abnormal scene information from the application program, the solution information corresponding to the abnormal scene information is determined, then the abnormal scene information is led into the preset simulator to be subjected to abnormal scene simulation, the simulator carries out repairing processing on the simulated abnormal scene according to the determined solution information, and when the simulated abnormal scene is repaired, the determined solution information is sent to the application program, so that the application program can repair the abnormal scene conveniently.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow diagram of an exception scenario handling method according to an embodiment of the present invention;
FIG. 2 is a detailed flowchart of an exception scenario handling method according to an embodiment of the present invention;
fig. 3 is a block diagram of the structure of an abnormal situation processing apparatus according to an embodiment of the present invention;
FIG. 4 is an exemplary block diagram of an exception scenario handling system in accordance with an embodiment of the present invention;
fig. 5 is a schematic block diagram of a system configuration of an electronic apparatus 600 according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, the compatibility problem of the application program is mainly solved by workers, which increases the labor cost, and sometimes needs to be solved by downloading the application program again to update the client, which reduces the experience of the user. Based on this, the embodiment of the present invention provides an abnormal scene processing scheme, which can implement automatic detection of an abnormal scene of an application program and automatic issue of a solution, reduce labor cost, and improve user experience without updating a client by a user. The following describes embodiments of the present invention in detail.
Fig. 1 is a flowchart of an abnormal scenario processing method according to an embodiment of the present invention, as shown in fig. 1, the method includes:
step 101, receiving abnormal scene information from an application program.
In general, the exceptional scenario information includes two types of information, among which: one type is error reporting abnormal information; and the other is application program environment information, such as terminal CPU architecture information, operating system version, kernel version information and the like.
102, matching a preset scheme pool according to the abnormal scene information, and determining solution information corresponding to the abnormal scene information, wherein the scheme pool comprises: abnormal scenario information and its corresponding solution information.
Specifically, preset abnormal scene information in the scheme pool may be matched according to the abnormal scene information; in response to the matching result being that a predetermined threshold (e.g., 80%) is exceeded, the solution information corresponding to the matched preset exception scenario information is determined as solution information for solving the received application exception scenario.
Specifically, the matching process may be based on technologies of character recognition, character matching, and the like in the prior art, which is not limited in the present invention.
103, importing the abnormal scene information into a preset simulator to perform abnormal scene simulation, so that the simulator can repair the simulated abnormal scene according to the determined solution information.
Specifically, the application environment information in the abnormal scene information may be imported to a preset simulator to perform the field environment simulation of the application.
The simulator is a front-end application program simulator, restores an abnormal field by importing abnormal field information, triggers a script to simulate the basic function of an application program, and verifies the reliability of solution information.
And 104, responding to the simulated abnormal scene repair, and sending the determined solution information to the application program so as to facilitate the application program to repair the abnormal scene.
In one embodiment, the determined solution information may be sent to the application program in the form of a patch package, and the application program hot loads the patch package to repair the abnormal scenario.
And when the simulated abnormal scene is not repaired, the abnormal scene information can be registered so as to facilitate the analysis and debugging of the staff.
And then, updating the scheme pool according to the solution information successfully debugged by the staff and the corresponding abnormal scene information.
The method comprises the steps of matching a preset scheme pool according to received abnormal scene information from an application program, determining solution scheme information corresponding to the abnormal scene information, then leading the abnormal scene information into a preset simulator to simulate the abnormal scene, repairing the simulated abnormal scene according to the determined solution scheme information by the simulator, and sending the determined solution scheme information to the application program when the simulated abnormal scene is repaired so as to repair the abnormal scene by the application program.
For a better understanding of the present invention, embodiments of the present invention are described below in conjunction with the detailed process flow of the exception scenario illustrated in FIG. 2.
In this embodiment, the exception scenario processing flow includes:
step 1): and before the application program is online, presetting a preparation library of the mainstream architecture.
The content of the preparation library is various versions of source libraries such as ARM, X86 and MIPS aiming at various architecture operating systems in the existing market, and the source library files are matched and downloaded for hot loading through uploading system architecture information when the APP is initialized, so that the normal use of the most basic functions of the APP is ensured.
It should be noted that, for some special models, such as armatai using a relatively old architecture, an exception may still occur after a source library of a corresponding architecture is hot-loaded, and at this time, a solution pool (i.e., the above-mentioned preset solution pool) needs to be used, and some compatible problem repair patches for the special models, including codes (NDK package) of an application layer (JS script file, independent DEX) and a driver layer, are pre-prepared in the solution pool. The adjustment codes aiming at different problems are extracted into patches and stored in a solution pool by taking the operating system architecture and kernel information as granularity.
Through compatibility testing and development, finding out an abnormal environment in which problems still occur even after the files of the preparation library are loaded, and extracting the abnormal environment into an independent patch file to form a basic solution (namely, the solution information) in the solution pool, wherein the basic solution comprises: the abnormal field which is composed of various data collected during debugging and follows a specific format and the patch number which corresponds to the abnormal field one by one.
In one example, the information of the abnormal field corresponding to the patch package number 1 is:
1. an exception menu: APP some function page ID (identity).
2. Operating system type: android system
3. Version of the operating system: 7.0 >
4、API Level:》=24
5. Screen resolution: HVGA, VGA, 720p, 1080p
6. The browser kernel: webKit, Blink, Trident, Gecko
7. The kernel architecture is as follows: armeabi, armeabi-v7, arm64-v8a, x86
8. Kernel version: xxx, xxx
9. Rom type and version: miui-2.3.3, huawei-1.4.5
10. Version of the baseband: xxx, xxx.
The above contents may be registered in an operating system scheme table, and the corresponding patch contents include: the system comprises a dynamic SO library, an independent DEX file, a JAR package, a JS script and the like, wherein the contents are compressed and packaged and are installed and operated by a unified execution script.
The patch content is designed as follows:
1. the dynamic SO library is generally an SO file of a NATIVE package and is used for solving the problem that a special KERNEL version needs to be adjusted according to abnormal use of a common SO in a corresponding architecture such as ARM 64-V8A.
2. DEX files are typically used in situations where the business function code needs to be temporarily adjusted to meet some special problem.
3. The JAR package is typically used to resolve reference conflicts caused by some special ROM packages.
4. The JS script is generally used for handling the H5 page style exception, the JS interface exception and the like caused by the browser kernel version problem.
Step 2): the APP is put into use, the embedded point monitoring can collect abnormal information, the abnormal information generation system is used for generating an abnormal field with a specific format, the abnormal field is uploaded to a system background server, the background server matches solutions according to the scheme pool established in the step 1), the weight of each abnormal information is assumed to be the same, and the uploaded abnormal field is matched with the field information mapped by each scheme if the step 1) is designed to have 10 field information at present. In one embodiment, some of the field information of the scheme is a set, such as a kernel version, a system version, and the like, one of the matching types to the set is successful, and when the matching degree reaches a threshold (e.g., 80%), an abnormal field is imported to the simulator, the field environment of the APP is simulated, and the patch content of the field matching scheme is run.
Step 3): the simulator automatically runs the patch content, if the simulator passes the automatic detection, the patch content can solve the problem of the APP, the patch package matched with the solution is issued to the APP at the moment, and the APP respectively carries out hot loading on the JAR package and the NATIVE package through the execution script decompressed by the patch package. Decompressing DEX, calling and updating APP code logic through reflection, placing JS files (scripts) into a preset directory, and loading when the APP is started so as to update programs.
Step 4): if the simulator fails to automatically detect in the step 3), the fact that the content of the patch cannot solve the APP abnormality is indicated, at the moment, the abnormal site is registered in the abnormal table to be repaired and reported for monitoring, and the staff sees the monitoring information to analyze and debug.
Step 5): the worker reproduces, analyzes and debugs the abnormal site, works out a corresponding solution and registers the solution to a solution pool, and then triggers the patch content of the abnormal site to be issued and automatically repaired.
Step 6): and (5) repeating the steps 2) to 5), the manual operation process is less and less, so that the automation, the noninductivity and the high efficiency of the whole monitoring and adapting heat loading repairing problem can be realized.
Through the abnormal scene processing flow, the following problems are solved:
1. aiming at the problems of long period for collecting abnormal field information, long time for manual analysis and debugging and high labor cost
Aiming at the compatibility problem that a prepared source library cannot be loaded simply through framework hot loading, the embodiment of the invention packages a patch in advance and monitors APP to find abnormality in time, a background server matches a solution of a solution pool through reported framework and kernel version information, the patch is automatically issued after the verification of a simulator, only when the automatic verification of the background simulator is not passed, manual intervention analysis and debugging are needed, then a new scheme is added to the solution pool, the subsequent processing automation probability is improved, and the labor cost is greatly reduced.
2. Aiming at the problem that a user needs to update a client according to a prompt
According to the embodiment of the invention, the solution is selected after the abnormal information is matched, and then the simulator is used for automatically verifying and automatically issuing the patch to repair the abnormal condition, so that most problems can be normally used next time after the user triggers one abnormal condition, the user does not need to update the client, and the experience of the user is improved.
3. Aiming at the problem that the codes of an application layer or a drive layer still need to be adjusted in a targeted manner even after a matched source generation library is hot-loaded in some special machine types, and the codes are easy to cause code coupling of unrelated services
The embodiment of the invention extracts the part of the original code coupled with the service function into patch files to be stored in a solution pool by the granularity of the operating system architecture and the kernel version, thereby enhancing the readability and maintainability of the service code.
Based on similar inventive concepts, the embodiment of the present invention further provides an abnormal scenario processing apparatus, which is preferably used to implement the flow in the foregoing method embodiment.
Fig. 3 is a block diagram of the abnormal situation processing apparatus, and as shown in fig. 3, the apparatus includes: an anomaly information receiving unit 31, a matching unit 32, an analog unit 33, and a solution transmitting unit 34, wherein:
an exception information receiving unit 31 for receiving exception scenario information from an application program.
A matching unit 32, configured to match a preset solution pool according to the abnormal scenario information, and determine solution information corresponding to the abnormal scenario information, where the solution pool includes: abnormal scenario information and its corresponding solution information.
Specifically, the matching unit includes: a matching module and a solution determination module, wherein:
the matching module is used for matching preset abnormal scene information in the scheme pool according to the abnormal scene information;
and the solution determining module is used for determining the solution information corresponding to the matched preset abnormal scene information as the solution information for solving the received abnormal scene of the application program in response to the matching result that the matching result exceeds the preset threshold value.
The simulation unit 33 is configured to import the abnormal scene information into a preset simulator to perform abnormal scene simulation, so that the simulator performs repairing processing on the simulated abnormal scene according to the determined solution information.
In one embodiment, the exception scenario information includes: application environment information. The simulation unit 33 may import the application environment information into a preset simulator to perform the field environment simulation of the application.
A solution sending unit 34, configured to send the determined solution information to the application program in response to the simulated abnormal scene repair, so that the application program repairs the abnormal scene.
The solution sending unit may specifically send the determined solution information to the application program in the form of a patch package, so that the application program hot loads the patch package.
As can be seen from the above description, the matching unit 32 matches the preset solution pool according to the abnormal scene information from the application program received by the abnormal information receiving unit 31, determines the solution information corresponding to the abnormal scene information, then the simulation unit 33 imports the abnormal scene information into the preset simulator for abnormal scene simulation, the simulator repairs the simulated abnormal scene according to the determined solution information, and when the simulated abnormal scene is repaired, the solution sending unit 34 sends the determined solution information to the application program, so that the application program repairs the abnormal scene.
In one embodiment, the above apparatus further comprises: and the registration unit is used for registering the abnormal scene information in response to the fact that the simulated abnormal scene is not repaired, so that a worker can conveniently analyze and debug.
Preferably, the above apparatus further comprises: and the updating unit is used for updating the scheme pool according to the solution scheme information successfully debugged by the staff and the corresponding abnormal scene information.
For specific execution processes of the units and the modules, reference may be made to the description in the foregoing method embodiments, and details are not described here again.
In practical operation, the units and the modules may be combined or may be singly arranged, and the present invention is not limited thereto.
For further understanding of the present invention, embodiments of the present invention are described in detail below in connection with the exemplary system illustrated in FIG. 4.
As shown in fig. 4, the example system includes: the system comprises an APP client, an APP browser end, an abnormal monitoring hot loading rear end, a file server and an operation maintenance management platform. Through this example system, the flow shown in fig. 2 in the above method embodiment may be implemented.
In this example system, the provisioning library and the solution pool are located at a file server, where:
the preparation library is a series of source library files required by a front end, which are packaged in advance by the back end aiming at CPUs with different architectures, and is stored on a file server, and the front end (namely, an APP client and an APP browser end) is used for downloading a corresponding file group in the preparation library by reading CPU architecture information and carrying out hot loading during initialization, so that the application function is ensured to be available.
The solution pool is a directory on the back-end file server, and is used for storing some code blocks which need to be adjusted in advance according to special models, and encapsulating the code blocks into patch packets by taking the architecture information and the kernel version as granularity, wherein the serial number of each patch corresponds to a record on an operating system scheme table at the back end of abnormal monitoring hot loading.
Monitoring a hot-load backend at an exception, comprising: an operating system scheme table, an abnormal table to be repaired, a front-end simulator and the like, wherein:
the operating system scheme table is a database table at the back end, and records front-end environment information such as architecture information, kernel version, operating system version, attribute of the PROP (program function), drive information and the like for the customized solution patch.
The abnormal table to be repaired is a patch which is matched with the abnormal field and reaches a threshold value but fails to pass the verification of the simulator, and the patch is registered in the data table, and monitoring alarm information is reported to the operation maintenance management platform to remind a worker of manual intervention.
In general, outlier field data includes two broad categories of data: firstly, reporting error abnormal information; and the other is environment information such as operating system version, mobile phone CPU architecture, version, kernel information, PROP attribute information, driver information and the like.
The front-end simulator is deployed at the back end and used for simulating a front-end scene, restores an abnormal field by importing abnormal field information, simulates a basic function by clicking a trigger script, and verifies the reliability of a issued patch.
After the front end is abnormal and reports the system architecture and the kernel information through the embedded point monitoring, the rear-end abnormal field analysis module can be combined with the abnormal field information collected by the front-end embedded point monitoring, the abnormal field information can be automatically analyzed and matched with the existing scheme, compatibility verification is automatically carried out on a front-end simulator deployed in the background, after the verification is passed, dynamic loading is carried out on an NATIVE primary library optimized for a CPU architecture and issued to the APP through a hot patch pushing mode, or reflection calling is carried out on independent DEX for repairing the abnormity and issued to the APP to repair compatible logic problems of some application layers, and the automation for solving the monitoring reporting abnormity is realized.
The operation maintenance management platform is used for managing the abnormity to be repaired, after discovering the abnormity alarm information to be repaired on the platform, a worker intervenes to manually analyze the abnormity, customizes a corresponding patch, uploads the patch to a solution pool through a solution uploading module after passing the verification, and updates an operating system solution table.
The present embodiment also provides an electronic device, which may be a desktop computer, a tablet computer, a mobile terminal, and the like, but is not limited thereto. In this embodiment, the electronic device may be implemented with reference to the above method embodiment and the embodiment of the abnormal scene processing apparatus/system, and the contents thereof are incorporated herein, and repeated descriptions are omitted.
Fig. 5 is a schematic block diagram of a system configuration of an electronic apparatus 600 according to an embodiment of the present invention. As shown in fig. 5, the electronic device 600 may include a central processor 100 and a memory 140; the memory 140 is coupled to the central processor 100. Notably, this diagram is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the exception scenario handling function may be integrated into the central processor 100. The central processor 100 may be configured to control as follows:
receiving abnormal scene information from an application program;
matching a preset scheme pool according to the abnormal scene information, and determining solution information corresponding to the abnormal scene information, wherein the scheme pool comprises: abnormal scene information and corresponding solution information thereof;
importing the abnormal scene information into a preset simulator for abnormal scene simulation, so that the simulator can repair the simulated abnormal scene according to the determined solution information;
and responding to the simulated abnormal scene repair, and sending the determined solution information to the application program so as to facilitate the application program to repair the abnormal scene.
As can be seen from the above description, according to the electronic device provided in the embodiment of the present application, the preset solution pool is matched according to the received abnormal scene information from the application program, the solution information corresponding to the abnormal scene information is determined, and then the abnormal scene information is imported into the preset simulator to perform abnormal scene simulation, the simulator performs repairing processing on the simulated abnormal scene according to the determined solution information, and when the simulated abnormal scene is repaired, the determined solution information is sent to the application program, so that the application program repairs the abnormal scene.
In another embodiment, the abnormal situation processing apparatus/system may be configured separately from the central processor 100, for example, the abnormal situation processing apparatus/system may be configured as a chip connected to the central processor 100, and the abnormal situation processing function is realized by the control of the central processor.
As shown in fig. 5, the electronic device 600 may further include: communication module 110, input unit 120, audio processing unit 130, display 160, power supply 170. It is noted that the electronic device 600 does not necessarily include all of the components shown in fig. 5; furthermore, the electronic device 600 may also comprise components not shown in fig. 5, which may be referred to in the prior art.
As shown in fig. 5, the central processor 100, sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, the central processor 100 receiving input and controlling the operation of the various components of the electronic device 600.
The memory 140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 100 may execute the program stored in the memory 140 to realize information storage or processing, etc.
The input unit 120 provides input to the cpu 100. The input unit 120 is, for example, a key or a touch input device. The power supply 170 is used to provide power to the electronic device 600. The display 160 is used to display an object to be displayed, such as an image or a character. The display may be, for example, an LCD display, but is not limited thereto.
The memory 140 may be a solid state memory such as Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 140 may also be some other type of device. Memory 140 includes buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application/function storage section 142, and the application/function storage section 142 is used to store application programs and function programs or a flow for executing the operation of the electronic device 600 by the central processing unit 100.
The memory 140 may also include a data store 143, the data store 143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by the electronic device. The driver storage portion 144 of the memory 140 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging application, address book application, etc.).
The communication module 110 is a transmitter/receiver 110 that transmits and receives signals via an antenna 111. The communication module (transmitter/receiver) 110 is coupled to the central processor 100 to provide an input signal and receive an output signal, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide audio output via the speaker 131 and receive audio input from the microphone 132 to implement general telecommunications functions. Audio processor 130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, an audio processor 130 is also coupled to the central processor 100, so that recording on the local can be enabled through a microphone 132, and so that sound stored on the local can be played through a speaker 131.
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the above abnormal scene processing method.
In summary, the abnormal scene processing scheme provided in the embodiment of the present invention can implement automatic monitoring and automatic matching of abnormal patches, and automatically issue the automatic matching of abnormal patches, so as to reduce the cost of manual operations, and meanwhile, it is not necessary to force the user to update the client, and after similar compatible errors are monitored, the problem can be quickly solved through hot patch loading, and the problem is solved under the condition that the user is not sensitive, so that the experience of the user is improved. The embodiment of the invention can also automatically download the Source library and the SDK of the corresponding architecture, reduce the front-end application amount and improve the performance, and the embodiment of the invention extracts the processing code aiming at the special compatibility problem into a patch for storage in addition, so that the readability and maintainability of the normal service code are stronger.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings. The many features and advantages of the embodiments are apparent from the detailed specification, and thus, it is intended by the appended claims to cover all such features and advantages of the embodiments which fall within the true spirit and scope thereof. Further, since numerous modifications and changes will readily occur to those skilled in the art, it is not desired to limit the embodiments of the invention to the exact construction and operation illustrated and described, and accordingly, all suitable modifications and equivalents may be resorted to, falling within the scope thereof.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (14)

1. An abnormal scene processing method, characterized in that the method comprises:
receiving abnormal scene information from an application program;
matching a preset scheme pool according to the abnormal scene information, and determining solution information corresponding to the abnormal scene information, wherein the scheme pool comprises: abnormal scene information and corresponding solution information thereof;
importing the abnormal scene information into a preset simulator for abnormal scene simulation, so that the simulator can repair the simulated abnormal scene according to the determined solution information;
and responding to the simulated abnormal scene repair, and sending the determined solution information to the application program so as to facilitate the application program to repair the abnormal scene.
2. The method of claim 1, further comprising:
and responding to the condition that the simulated abnormal scene is not repaired, and registering the abnormal scene information so as to facilitate the analysis and debugging of a worker.
3. The method of claim 2, further comprising:
and updating the scheme pool according to the solution scheme information successfully debugged by the staff and the corresponding abnormal scene information.
4. The method according to claim 1, wherein matching a preset solution pool according to the abnormal scenario information, and determining solution information corresponding to the abnormal scenario information comprises:
matching preset abnormal scene information in the scheme pool according to the abnormal scene information;
and in response to the matching result that the preset abnormal scene information exceeds the preset threshold value, determining the solution information corresponding to the matched preset abnormal scene information as the solution information for solving the received abnormal scene of the application program.
5. The method of claim 1, wherein the exceptional scenario information comprises: the step of importing the abnormal scene information into a preset simulator to perform abnormal scene simulation by using the application program environment information comprises the following steps:
and importing the application program environment information into a preset simulator to simulate the field environment of the application program.
6. The method of claim 1, wherein sending the determined solution information to the application comprises:
sending the determined solution information to the application program in the form of a patch package so that the application program hot loads the patch package.
7. An abnormal scene processing apparatus, comprising:
an exception information receiving unit for receiving exception scenario information from an application program;
a matching unit, configured to match a preset solution pool according to the abnormal scene information, and determine solution information corresponding to the abnormal scene information, where the solution pool includes: abnormal scene information and corresponding solution information thereof;
the simulation unit is used for importing the abnormal scene information into a preset simulator to simulate the abnormal scene so as to facilitate the simulator to repair the simulated abnormal scene according to the determined solution information;
and the solution sending unit is used for responding to the simulated abnormal scene repair and sending the determined solution information to the application program so as to facilitate the application program to repair the abnormal scene.
8. The apparatus of claim 7, further comprising:
and the registration unit is used for registering the abnormal scene information in response to the fact that the simulated abnormal scene is not repaired, so that a worker can conveniently analyze and debug.
9. The apparatus of claim 8, further comprising:
and the updating unit is used for updating the scheme pool according to the solution scheme information successfully debugged by the staff and the corresponding abnormal scene information.
10. The apparatus of claim 7, wherein the matching unit comprises:
the matching module is used for matching preset abnormal scene information in the scheme pool according to the abnormal scene information;
and the solution determining module is used for determining the solution information corresponding to the matched preset abnormal scene information as the solution information for solving the received abnormal scene of the application program in response to the matching result that the matching result exceeds the preset threshold value.
11. The apparatus of claim 7, wherein the abnormal situation information comprises: the simulation unit is specifically configured to:
and importing the application program environment information into a preset simulator to simulate the field environment of the application program.
12. The apparatus according to claim 7, wherein the solution sending unit is specifically configured to:
sending the determined solution information to the application program in the form of a patch package so that the application program hot loads the patch package.
13. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 6 are implemented when the processor executes the program.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202110205257.0A 2021-02-24 2021-02-24 Abnormal scene processing method and device, electronic equipment and storage medium Pending CN112882897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110205257.0A CN112882897A (en) 2021-02-24 2021-02-24 Abnormal scene processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110205257.0A CN112882897A (en) 2021-02-24 2021-02-24 Abnormal scene processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112882897A true CN112882897A (en) 2021-06-01

Family

ID=76054285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110205257.0A Pending CN112882897A (en) 2021-02-24 2021-02-24 Abnormal scene processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112882897A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115529231A (en) * 2022-09-27 2022-12-27 青岛海信智慧生活科技股份有限公司 Method and related device for determining abnormal user equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090013208A1 (en) * 2008-03-31 2009-01-08 Dimuzio Thomas M Real time automated exception notification and reporting solution
CN105068881A (en) * 2015-08-19 2015-11-18 北京奇虎科技有限公司 Method, device and system for repairing abnormal operation of application program
CN106201757A (en) * 2016-07-12 2016-12-07 网易(杭州)网络有限公司 A kind of abnormality eliminating method and device
CN107026760A (en) * 2017-05-03 2017-08-08 联想(北京)有限公司 A kind of fault repairing method and monitor node
CN108986250A (en) * 2018-06-29 2018-12-11 深圳市轱辘汽车维修技术有限公司 A kind of vehicle maintenance simulated training method and relevant device
CN109495336A (en) * 2018-08-28 2019-03-19 优视科技(中国)有限公司 Network Abnormal test method and device, computer equipment and readable medium
CN109739680A (en) * 2019-02-02 2019-05-10 广州视源电子科技股份有限公司 Fault finding method, device, equipment and medium for application system
CN111563002A (en) * 2020-05-15 2020-08-21 中国工商银行股份有限公司 Transaction fault processing method and device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090013208A1 (en) * 2008-03-31 2009-01-08 Dimuzio Thomas M Real time automated exception notification and reporting solution
CN105068881A (en) * 2015-08-19 2015-11-18 北京奇虎科技有限公司 Method, device and system for repairing abnormal operation of application program
CN106201757A (en) * 2016-07-12 2016-12-07 网易(杭州)网络有限公司 A kind of abnormality eliminating method and device
CN107026760A (en) * 2017-05-03 2017-08-08 联想(北京)有限公司 A kind of fault repairing method and monitor node
CN108986250A (en) * 2018-06-29 2018-12-11 深圳市轱辘汽车维修技术有限公司 A kind of vehicle maintenance simulated training method and relevant device
CN109495336A (en) * 2018-08-28 2019-03-19 优视科技(中国)有限公司 Network Abnormal test method and device, computer equipment and readable medium
CN109739680A (en) * 2019-02-02 2019-05-10 广州视源电子科技股份有限公司 Fault finding method, device, equipment and medium for application system
CN111563002A (en) * 2020-05-15 2020-08-21 中国工商银行股份有限公司 Transaction fault processing method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115529231A (en) * 2022-09-27 2022-12-27 青岛海信智慧生活科技股份有限公司 Method and related device for determining abnormal user equipment

Similar Documents

Publication Publication Date Title
CN109302522B (en) Test method, test device, computer system, and computer medium
US8533531B2 (en) Multimedia hardware emulation for application testing
CN108959068B (en) Software interface testing method, device and storage medium
US9021443B1 (en) Test automation API for host devices
CN106021095B (en) A kind of Android application automated testing method based on push-mechanism
CN107896244B (en) Version file distribution method, client and server
CN107678949B (en) Automatic testing method for realizing different communication modes of embedded equipment
CN106547687A (en) Application testing method, device and system
CN108536580B (en) System and method for testing devices using lightweight device authentication protocol
CN105426298A (en) ADB (Android debug bridge)-based software test method and system
CN112148315A (en) Software deployment method, device, server and storage medium
CN108111364B (en) Service system testing method and device
CN112799940A (en) Regression testing method, device, computer system and computer readable storage medium
WO2015131643A1 (en) Software detection method and device
CN111858364A (en) Parameter configuration method, device and system of test terminal
CN114647572A (en) Method and system for software application component testing
CN112882897A (en) Abnormal scene processing method and device, electronic equipment and storage medium
CN113032224A (en) Information acquisition method and device, electronic equipment and readable storage medium
CN111026651A (en) Test method, test device, storage medium and electronic equipment
CN107247661B (en) Method and system for supporting automatic verification of installation package of application
CN110704321A (en) Program debugging method and device
CN116244186A (en) Operating system test management method and device and computing equipment
CN113535580B (en) CTS test method, CTS test device and test equipment
CN115588458A (en) Storage device testing method, system, device and readable storage medium
CN112214407B (en) Data verification control method, data verification execution method, corresponding device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination