CN107894949A - The method, apparatus and equipment of abnormality processing - Google Patents
The method, apparatus and equipment of abnormality processing Download PDFInfo
- Publication number
- CN107894949A CN107894949A CN201710943249.XA CN201710943249A CN107894949A CN 107894949 A CN107894949 A CN 107894949A CN 201710943249 A CN201710943249 A CN 201710943249A CN 107894949 A CN107894949 A CN 107894949A
- Authority
- CN
- China
- Prior art keywords
- application program
- count value
- abnormal signal
- threshold value
- predetermined threshold
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention provides a kind of method, apparatus and equipment of abnormality processing.This method includes:In the range of application program launching preset duration, judge whether to listen to abnormal signal, the abnormal signal is used to represent that run-time error occurs in the application program;When listening to the abnormal signal, the count value of counter is added up, and when the count value is more than or equal to the first predetermined threshold value, the application program repaired;When not hearing the abnormal signal, the count value is zeroed out.The present invention improves the accurate fixed of judged result.
Description
Technical field
The present invention relates to the method, apparatus and equipment of field of terminal technology, more particularly to a kind of abnormality processing.
Background technology
Upon actuation, due to database damage, cache file is damaged, from clothes application program (App, Application)
There are the run-time errors such as mistake and is likely to occur the situation dodged and moved back in the data parsing that business device is asked.
In the prior art, generally use following manner judges whether application program continuous dodge occurs and move back:Enter in application program
Counter is added 1 at mouthful and starts timer;When the timer expires, counter is zeroed out;When the count value of counter
During more than or equal to predetermined threshold value, it is determined that there is continuous collapse.
But the problem of judged result is not accurate enough in the prior art be present.
The content of the invention
The present invention provides a kind of method, apparatus and equipment of abnormality processing, and to solve in the prior art, judged result is not
The problem of enough accurate.
In a first aspect, the present invention provides a kind of method of abnormality processing, including:
In the range of application program launching preset duration, judge whether to listen to abnormal signal, the abnormal signal is used for
Represent that run-time error occurs in the application program;
When listening to the abnormal signal, the count value of counter is added up, and be more than in the count value or
During equal to the first predetermined threshold value, the application program is repaired;
When not hearing the abnormal signal, the count value is zeroed out.
In a kind of design in the cards, methods described also includes:
When listening to the abnormal signal, corresponding abnormal information is recorded.
It is described that the application program is repaired, including:
According to the abnormal information of record, part reparation is carried out to the application program.
It is described when the count value is more than or equal to the first predetermined threshold value in a kind of design in the cards, to institute
State before application program repaired, in addition to:
Judge whether the count value is more than or equal to second predetermined threshold value;
When the count value is more than or equal to second predetermined threshold value, the application program is repaired comprehensively;
When the count value is less than second predetermined threshold value, it is pre- to judge whether the count value is more than or equal to first
If threshold value;
Wherein, second predetermined threshold value is more than first predetermined threshold value.
In a kind of design in the cards, the abnormal signal includes:The abnormal signal that operating system is sent, and/or
The abnormal signal that the application program is sent.
Second aspect, the present invention provide a kind of device of abnormality processing, including:
Judge module, it is described in the range of application program launching preset duration, judging whether to listen to abnormal signal
Abnormal signal is used to represent that run-time error occurs in the application program;
First processing module, for when listening to the abnormal signal, being added up to the count value of counter, and
When the count value is more than or equal to the first predetermined threshold value, the application program is repaired;
Second processing module, for when not hearing the abnormal signal, being zeroed out to the count value.
In a kind of design in the cards, the first processing module, it is additionally operable to when listening to the abnormal signal,
Record corresponding abnormal information;
The first processing module, the application program is repaired, specifically included:
According to the abnormal information of record, part reparation is carried out to the application program.
In a kind of design in the cards, the first processing module, it is additionally operable to:
Judge whether the count value is more than or equal to second predetermined threshold value;
When the count value is more than or equal to second predetermined threshold value, the application program is repaired comprehensively;
When the count value is less than second predetermined threshold value, it is pre- to judge whether the count value is more than or equal to first
If threshold value;
Wherein, second predetermined threshold value is more than first predetermined threshold value.
In a kind of design in the cards, the abnormal signal includes:The abnormal signal that operating system is sent, and/or
The abnormal signal that the application program is sent.
The third aspect, the present invention provide a kind of terminal, including:
Processor and the memory for storing computer instruction;The processor runs the computer instruction and performed
Method described in above-mentioned any one of first aspect.
Fourth aspect, the present invention provide a kind of computer-readable recording medium, are stored thereon with computer instruction, the meter
The method described in above-mentioned any one of first aspect is realized in the instruction of calculation machine when being executed by processor.
The method, apparatus and equipment of abnormality processing provided by the invention, by application program launching preset duration scope
It is interior, judge whether to listen to for representing that the signal of run-time error occurs in application program, if so, then entering the count value of counter
Row is cumulative, and the application program is repaired when the count value is more than or equal to the first predetermined threshold value, if it is not, then right
The count value is zeroed out, and is realized according to for representing that the abnormal signal that run-time error occurs in application program judges to apply journey
Whether sequence, which continuous dodge occurs, is moved back, and improves the accurate fixed of judged result.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs
Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the embodiment of the method one of abnormality processing of the present invention;
Fig. 2 is the flow chart of the embodiment of the method two of abnormality processing of the present invention;
Fig. 3 is the flow chart of the embodiment of the method three of abnormality processing of the present invention;
Fig. 4 is the structural representation of the device embodiment of abnormality processing of the present invention;
Fig. 5 is the structural representation of terminal embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is the flow chart of the embodiment of the method one of abnormality processing of the present invention, and the executive agent of the method for the present embodiment can
Think terminal, the terminal is such as can be mobile phone, tablet personal computer, notebook computer.As shown in figure 1, the method for the present embodiment
It can include:
Step 101, in the range of application program launching preset duration, judge whether to listen to abnormal signal, the exception
Signal is used to represent that run-time error occurs in the application program.
In this step, the preset duration can be used for limitation and dodge the time range moved back, if such as will apply journey within 5 seconds
The situation that sequence run-time error occurs and exited is considered that sudden strain of a muscle is moved back, then preset duration can be 5 seconds.Specifically, can be using journey
The porch of sequence can start a timer, and the timing length of the timer is preset duration.During timer, sentence
It is disconnected whether to listen to for representing that the abnormal signal of run-time error occurs in the application program.Generally, when application program is transported
When row is wrong, to abnormal signal corresponding to presence.Optionally, the abnormal signal includes:The abnormal signal that operating system is sent,
And/or the abnormal signal that the application program is sent.Specifically, operating system detect process corresponding to application program (be designated as,
App processes) when there is run-time error, abnormal signal (signal) corresponding to the mistake can be sent to App processes.For example, App
Process have accessed be not belonging to the memory address exception of this process after, operating system can send BSD signal, then pass to App and enter
Journey.When internal abnormality occurs in application program, NS exceptions (Exception) can be sent to App processes by producing abnormal thread.Example
Such as, NS arrays (NSArray) out-of-bounds access.
Step 102, when listen to be used for the abnormal signal when, the count value of counter is added up, and described
When count value is more than or equal to the first predetermined threshold value, the application program is repaired.
In this step, it can be exited when there is run-time error due to application program, the count value of counter is in application program
Start and listened in the range of preset duration for representing that application program can add up when there is the abnormal signal of run-time error, and answering
Understand when being started and do not heard in the range of preset duration for representing that the abnormal signal of run-time error occurs in application program with program clear
Zero.Therefore, the count value of counter can be used to indicate that application program continuously dodges the number moved back.Specifically, when to counter
It is specially when adding 1 to the count value of counter that count value, which is carried out cumulative, and the count value of counter may be considered application program company
It is continuous to dodge the number moved back.Optionally, it is described that the application program is repaired, it is specifically as follows to application program correlation
Data are repaired, such as the data related to the application program are deleted or recovered.Wherein, in the number to application program
After being deleted, terminal can reacquire corresponding data from server corresponding to the application program, so as to realize to application
The reparation of program related data.Wherein, the related data of the application program are such as can be the data in database.Need
Illustrate, the count value of the counter will not be reset because of exiting for application program.
Step 103, when not hearing the abnormal signal, the count value is zeroed out.
In this step, when not hearing abnormal signal in the range of application program launching preset duration, destroy using journey
The continuous sudden strain of a muscle of sequence is moved back, it is therefore desirable to which the count value that the continuous sudden strain of a muscle for representing application program is moved back to number is zeroed out.
In the present embodiment, by the range of application program launching preset duration, judging whether to listen to for representing to answer
There is the signal of run-time error with program, if so, then added up to the count value of counter, and be more than in the count value or
The application program is repaired during equal to the first predetermined threshold value, if it is not, being then zeroed out to the count value, realizes root
According to for representing that the abnormal signal that run-time error occurs in application program judges whether application program continuous dodge occurs and move back, improve and sentence
The accuracy of disconnected result.
Fig. 2 is the flow chart of the embodiment of the method two of abnormality processing of the present invention.Base of the present embodiment in embodiment illustrated in fig. 1
A kind of optional processing mode when listening to for representing that run-time error occurs in application program is essentially described on plinth.Such as figure
Shown in 2, the method for the present embodiment can include:
Step 201, in the range of application program launching preset duration, judge whether to listen to abnormal signal, the exception
Signal is used to represent that run-time error occurs in application program.
In this step, when listening to the abnormal signal, step 202 is performed.When not hearing the abnormal signal,
Perform step 207.It should be noted that step 201 is similar with step 101, will not be repeated here.
Step 202, the count value to counter add up, and record corresponding abnormal information.
In this step, the abnormal information can specifically include at least one of following:For representing application program pair
In the multiple threads answered each thread go to respectively which function which step the how individual threads of APP which goes to respectively
First abnormal information of which step of function;The second abnormal information for representative function stack;For representing the abnormal signal
The 3rd abnormal information.
Step 203, judge whether the count value is more than or equal to the second predetermined threshold value.
In this step, second predetermined threshold value is more than the first predetermined threshold value.Optionally, second predetermined threshold value is equal to
First predetermined threshold value adds 1.When the count value is more than or equal to second predetermined threshold value, step 204 is performed.Work as institute
When stating count value and being less than second predetermined threshold value, step 205 is performed.
Step 204, the application program is repaired comprehensively.
In this step, optionally, the application program is repaired comprehensively, is specifically as follows for the application program
Related all data are repaired.Optionally, all data related to the application program are recovered;Or to institute
The related all data of application program are stated to be deleted;Or the part number in all data related to the application program
According to being deleted, other data in all data related to application program in addition to the partial data are recovered.Its
In, the related data of the application program are specifically as follows:The data stored in database, document (Documents), storehouse
(Library), data under cache (Caches) catalogue etc..Because the second predetermined threshold value is more than the first predetermined threshold value, when
When the count value is more than or equal to the second predetermined threshold value, illustrate the portion done when the count value is more than the first predetermined threshold value
Divide reparation not effective, at this time need to repair application program comprehensively.
Optionally, the abnormal information of record can also be reported to server in step 204, for software developer
Abnormal information is obtained from server, determines that application program whether there is code error according to abnormal information.If application program is present
Code error, software developer can also upload onto the server corresponding hot repair multiplexed code, so that terminal obtains from server
Hot repair multiplexed code corresponding to taking is repaired to application program.
Step 205, judge whether the count value is more than or equal to the first predetermined threshold value.
In this step, when the count value is more than or equal to first predetermined threshold value, step 206 is performed.When described
When count value is less than first predetermined threshold value, terminate.
Step 206, the abnormal information according to record, part reparation is carried out to the application program.
In this step, the part is repaired relative with comprehensive reparation in step 204.Part is carried out to the application program
Repair, be specifically as follows data related to the abnormal information in all data related to the application program and repair
It is multiple.Optionally, data related to the abnormal information in all data related to the application program are recovered;Or
Person, data related to the abnormal information in all data of application program correlation are deleted;Or to described
Partial data is recovered in the data related to the abnormal information in the related all data of application program, to the application
Other data in the related all data of program in the data related to the abnormal information in addition to the partial data are carried out
Delete.
Optionally, an analysis module can be designed, it is abnormal information that it, which is inputted, and output is that the data for needing to repair correspond to
Storage location.Wherein, storage location can be divided into following a few classes:Database, Documents catalogues, Library catalogues and
Caches catalogues.Specifically, storage location can be corresponding with preset keyword.When abnormal information includes a certain preset keyword
When, it can represent that the data in storage location corresponding to the preset keyword make a mistake, it is necessary to corresponding to the preset keyword
Storage location in data repaired.Analysis module can be scanned to abnormal information, it is determined whether can be matched pre-
If keyword;, can be further to storage location corresponding to the preset keyword that is matched if matching preset keyword
In data repaired.Wherein, preset keyword corresponding to database is such as can include sqllite.Documents mesh
Record, Library catalogues and preset keyword corresponding to Caches catalogues can be including fileManager, archive etc..Wherein,
Sqllite is a light-duty database, and fileManager represents file manager, and archive represents document.
Optionally, it is similar with step 204, the abnormal information of record can also be reported to server in step 206, its mesh
May refer to step 204, will not be repeated here.
Step 207, the count value is zeroed out.
It is right by when listening to for representing that the abnormal information of run-time error occurs in application program in the present embodiment
The count value of counter carries out cumulative and records corresponding abnormal information, when count value is more than or equal to the first predetermined threshold value,
Part reparation is carried out to application program according to the abnormal information of record, realizes the reparation of the application program for abnormal information,
The invalid reparation to not needing application program is avoided, improves the speed of reparation.In addition, by being more than or equal in count value
During the second predetermined threshold value, application program is repaired comprehensively, wherein, the second predetermined threshold value is more than the first predetermined threshold value, realizes
When can not cause application program normal operation according to reparation of the abnormal information to application program, i.e., part is repaired not thorough
When, further application program can comprehensively be repaired, improve the success rate of reparation.
Fig. 3 is the flow chart of the embodiment of the method three of abnormality processing of the present invention.Base of the present embodiment in embodiment illustrated in fig. 2
A kind of concrete implementation mode based on iOS system is essentially described on plinth.As shown in figure 3, the method for the present embodiment can wrap
Include:
Step 301, start App.
In this step, specifically, can be understood as process corresponding to operating system activation App with from App entrance function
Start to perform.
The monitoring and processing of step 302, registration abnormity signal.
In this step, specifically, void (* signal (int, the void (*) in function sys/signal bags can be passed through
(int) abnormal signal and the readjustment processing that)) the various operating systems of (int) function registration bottom are sent.For example, it can pass through
Signal (SIGSEGV, MySignalHandler), registration inoperative memory abort signal SIGSEGV monitoring.It is furthermore it is possible to logical
Cross function void NSSetUncaughtExceptionHandler (NSUncaughtExceptionHandler*_
Nullable) the monitoring and processing for the abnormal signal NSException that registrer application is sent.Wherein, to the abnormal letter
Number processing for example may include steps of 304- steps 309.
Step 303, timer is set.
In this step, it is fixed to be set in application didFinishLaunchingWithOptions methods
When device.Specifically, the timing length of the timer can be arranged to 5 seconds, and the processing when timer expiry is set.Its
In, processing during timer expiry may include steps of 309.
Step 304, when listening to abnormal signal, it is different to count plus 1, and corresponding to recording and when timer is currently running
Normal information.
In this step, to count plus 1, it is believed that be that the above-mentioned count value to counter adds up.
Step 305, judge whether count is more than or equal to N+1.
In this step, N+1 may be considered above-mentioned second predetermined threshold value.
Step 306, App repair comprehensively and the abnormal information of record is reported into server.
Step 307, judge whether count is more than or equal to N.
In this step, N may be considered above-mentioned first predetermined threshold value.Step 308 is performed when count is more than or equal to N.
When count is less than N, terminate.
Step 308, part reparation carried out to App according to the abnormal information of record, and the abnormal information is reported into clothes
Business device.
It should be noted that after execution of step 306 and step 308, App can be exited.
Step 309, count is zeroed out, and when it is determined that needing to repair code, downloads and load hot repair multiplexed code.
In this step, heat-carrying can be descended in application didFinishLaunchingWithOptions methods
Repair code, such as JavaScript patches (JSPatch) or WaxPatch.Also, ensure that the generation completed to App
The reparation of code, ensure to download and load the time of hot repair multiplexed code, prompting frame can be ejected, such as prompt user to repair App.
Wherein, JavaScript is a kind of literal translation formula script, and Wax is a kind of to write local iPhone App using lua language
Framework.
Fig. 4 is the structural representation of the device embodiment of abnormality processing of the present invention, and the device that the present embodiment provides can lead to
Cross software, hardware or both be implemented in combination with it is some or all of as terminal.As shown in figure 4, the device of the present embodiment
It can include:Judge module 401, in the range of application program launching preset duration, judging whether to listen to abnormal signal,
The abnormal signal is used to represent that run-time error occurs in the application program;First processing module 402, for described when listening to
During abnormal signal, the count value of counter is added up, and when the count value is more than or equal to the first predetermined threshold value, it is right
The application program is repaired;Second processing module 403, for when not hearing the abnormal signal, to the counting
Value is zeroed out.
Optionally, first processing module 402, it is additionally operable to when listening to the abnormal signal, records corresponding abnormal letter
Breath;
First processing module 402, the application program is repaired, specifically included:
According to the abnormal information of record, part reparation is carried out to the application program.
Optionally, first processing module 402, it is additionally operable to:
Judge whether the count value is more than or equal to second predetermined threshold value;
When the count value is more than or equal to second predetermined threshold value, the application program is repaired comprehensively;
When the count value is less than second predetermined threshold value, it is pre- to judge whether the count value is more than or equal to first
If threshold value;
Wherein, second predetermined threshold value is more than first predetermined threshold value.
Optionally, the abnormal signal includes:The abnormal signal that operating system is sent, and/or the application program are sent
Abnormal signal.
The device of the present embodiment, it can be used for the technical scheme for performing Fig. 1-embodiment illustrated in fig. 3, its realization principle and skill
Art effect is similar, and here is omitted.
Fig. 5 is the structural representation of terminal embodiment of the present invention, as shown in figure 5, the terminal can include:Processor 501
And for storing the memory 502 of computer instruction.
Wherein, processor 501 runs the computer instruction and performs following methods:
In the range of application program launching preset duration, judge whether to listen to abnormal signal, the abnormal signal is used for
Represent that run-time error occurs in the application program;
When listening to the abnormal signal, the count value of counter is added up, and be more than in the count value or
During equal to the first predetermined threshold value, the application program is repaired;
When not hearing the abnormal signal, the count value is zeroed out.
Optionally, methods described also includes:
When listening to the abnormal signal, corresponding abnormal information is recorded.
It is described that the application program is repaired, including:
According to the abnormal information of record, part reparation is carried out to the application program.
Optionally, it is described when the count value is more than or equal to the first predetermined threshold value, the application program is repaiied
Before multiple, in addition to:
Judge whether the count value is more than or equal to second predetermined threshold value;
When the count value is more than or equal to second predetermined threshold value, the application program is repaired comprehensively;
When the count value is less than second predetermined threshold value, it is pre- to judge whether the count value is more than or equal to first
If threshold value;
Wherein, second predetermined threshold value is more than first predetermined threshold value.
Optionally, the abnormal signal includes:The abnormal signal that operating system is sent, and/or the application program are sent
Abnormal signal.
Also a kind of non-transitorycomputer readable storage medium of the present invention, when the instruction in the storage medium is by terminal
When managing device execution so that terminal is able to carry out a kind of method of abnormality processing, and this method includes:
In the range of application program launching preset duration, judge whether to listen to abnormal signal, the abnormal signal is used for
Represent that run-time error occurs in the application program;
When listening to the abnormal signal, the count value of counter is added up, and be more than in the count value or
During equal to the first predetermined threshold value, the application program is repaired;
When not hearing the abnormal signal, the count value is zeroed out.
Optionally, methods described also includes:
When listening to the abnormal signal, corresponding abnormal information is recorded.
It is described that the application program is repaired, including:
According to the abnormal information of record, part reparation is carried out to the application program.
Optionally, it is described when the count value is more than or equal to the first predetermined threshold value, the application program is repaiied
Before multiple, in addition to:
Judge whether the count value is more than or equal to second predetermined threshold value;
When the count value is more than or equal to second predetermined threshold value, the application program is repaired comprehensively;
When the count value is less than second predetermined threshold value, it is pre- to judge whether the count value is more than or equal to first
If threshold value;
Wherein, second predetermined threshold value is more than first predetermined threshold value.
Optionally, the abnormal signal includes:The abnormal signal that operating system is sent, and/or the application program are sent
Abnormal signal.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme.
Claims (10)
- A kind of 1. method of abnormality processing, it is characterised in that including:In the range of application program launching preset duration, judge whether to listen to abnormal signal, the abnormal signal is used to represent There is run-time error in the application program;When listening to the abnormal signal, the count value of counter is added up, and is more than or equal in the count value During the first predetermined threshold value, the application program is repaired;When not hearing the abnormal signal, the count value is zeroed out.
- 2. according to the method for claim 1, it is characterised in that methods described also includes:When listening to the abnormal signal, corresponding abnormal information is recorded.It is described that the application program is repaired, including:According to the abnormal information of record, part reparation is carried out to the application program.
- 3. according to the method for claim 2, it is characterised in that described to be more than or equal to the first default threshold in the count value During value, before being repaired to the application program, in addition to:Judge whether the count value is more than or equal to second predetermined threshold value;When the count value is more than or equal to second predetermined threshold value, the application program is repaired comprehensively;When the count value is less than second predetermined threshold value, judge whether the count value is more than or equal to the first default threshold Value;Wherein, second predetermined threshold value is more than first predetermined threshold value.
- 4. according to the method described in claim any one of 1-3, it is characterised in that the abnormal signal includes:Operating system is sent out The abnormal signal gone out, and/or the abnormal signal that the application program is sent.
- A kind of 5. device of abnormality processing, it is characterised in that including:Judge module, in the range of application program launching preset duration, judging whether to listen to abnormal signal, the exception Signal is used to represent that run-time error occurs in the application program;First processing module, for when listening to the abnormal signal, being added up to the count value of counter, and described When count value is more than or equal to the first predetermined threshold value, the application program is repaired;Second processing module, for when not hearing the abnormal signal, being zeroed out to the count value.
- 6. device according to claim 5, it is characterised in that the first processing module, be additionally operable to described when listening to During abnormal signal, corresponding abnormal information is recorded;The first processing module, the application program is repaired, specifically included:According to the abnormal information of record, part reparation is carried out to the application program.
- 7. device according to claim 6, it is characterised in that the first processing module, be additionally operable to:Judge whether the count value is more than or equal to second predetermined threshold value;When the count value is more than or equal to second predetermined threshold value, the application program is repaired comprehensively;When the count value is less than second predetermined threshold value, judge whether the count value is more than or equal to the first default threshold Value;Wherein, second predetermined threshold value is more than first predetermined threshold value.
- 8. according to the device described in claim any one of 5-7, it is characterised in that the abnormal signal includes:Operating system is sent out The abnormal signal gone out, and/or the abnormal signal that the application program is sent.
- A kind of 9. terminal, it is characterised in that including:Processor and the memory for storing computer instruction;The processor runs the computer instruction perform claim It is required that the method described in any one of 1-4.
- 10. a kind of computer-readable recording medium, is stored thereon with computer instruction, it is characterised in that the computer instruction The method described in claim any one of 1-4 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710943249.XA CN107894949A (en) | 2017-10-11 | 2017-10-11 | The method, apparatus and equipment of abnormality processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710943249.XA CN107894949A (en) | 2017-10-11 | 2017-10-11 | The method, apparatus and equipment of abnormality processing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107894949A true CN107894949A (en) | 2018-04-10 |
Family
ID=61803532
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710943249.XA Pending CN107894949A (en) | 2017-10-11 | 2017-10-11 | The method, apparatus and equipment of abnormality processing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107894949A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109542724A (en) * | 2018-11-14 | 2019-03-29 | 北京达佳互联信息技术有限公司 | Application exception processing method, device, electronic equipment and storage medium |
CN110109819A (en) * | 2019-03-16 | 2019-08-09 | 平安城市建设科技(深圳)有限公司 | Using processing method, device, equipment and the readable storage medium storing program for executing debugged extremely |
CN111367698A (en) * | 2018-12-26 | 2020-07-03 | 北京微播视界科技有限公司 | Application program flash back detection and processing method and device and electronic equipment |
CN111813427A (en) * | 2019-04-12 | 2020-10-23 | 杭州海康威视数字技术股份有限公司 | Equipment repairing method and device, electronic equipment and storage medium |
CN112667423A (en) * | 2020-12-22 | 2021-04-16 | 深圳市禾望电气股份有限公司 | Method, device and system for diagnosing program running time abnormity |
CN113692008A (en) * | 2021-08-27 | 2021-11-23 | 京东方科技集团股份有限公司 | Method, device, equipment and storage medium for processing transceiving exception |
WO2022037014A1 (en) * | 2020-08-21 | 2022-02-24 | 苏州浪潮智能科技有限公司 | Boot restoration method for arm server, and related apparatus |
CN114431844A (en) * | 2022-01-25 | 2022-05-06 | 华中科技大学 | Health index monitoring facilities |
WO2023207701A1 (en) * | 2022-04-24 | 2023-11-02 | 中兴通讯股份有限公司 | Autonomous driving method and system, and controllers, electronic device and computer storage medium |
CN117493127A (en) * | 2023-12-29 | 2024-02-02 | 太平金融科技服务(上海)有限公司 | Application program detection method, device, equipment and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20100010390A (en) * | 2008-07-22 | 2010-02-01 | 엘지전자 주식회사 | Microcomputer and method for controlling thereof |
CN105590063A (en) * | 2015-12-25 | 2016-05-18 | 北京金山安全软件有限公司 | Vulnerability mining method and device and electronic equipment |
CN107038085A (en) * | 2016-02-03 | 2017-08-11 | 阿里巴巴集团控股有限公司 | A kind of restorative procedure of client application, apparatus and system |
-
2017
- 2017-10-11 CN CN201710943249.XA patent/CN107894949A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20100010390A (en) * | 2008-07-22 | 2010-02-01 | 엘지전자 주식회사 | Microcomputer and method for controlling thereof |
CN105590063A (en) * | 2015-12-25 | 2016-05-18 | 北京金山安全软件有限公司 | Vulnerability mining method and device and electronic equipment |
CN107038085A (en) * | 2016-02-03 | 2017-08-11 | 阿里巴巴集团控股有限公司 | A kind of restorative procedure of client application, apparatus and system |
Non-Patent Citations (1)
Title |
---|
惊仙: "解决APP连续闪退的方案", 《简书博客 HTTPS://WWW.JIANSHU.COM/P/5DCE9A467270》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109542724A (en) * | 2018-11-14 | 2019-03-29 | 北京达佳互联信息技术有限公司 | Application exception processing method, device, electronic equipment and storage medium |
CN111367698A (en) * | 2018-12-26 | 2020-07-03 | 北京微播视界科技有限公司 | Application program flash back detection and processing method and device and electronic equipment |
CN110109819A (en) * | 2019-03-16 | 2019-08-09 | 平安城市建设科技(深圳)有限公司 | Using processing method, device, equipment and the readable storage medium storing program for executing debugged extremely |
CN111813427A (en) * | 2019-04-12 | 2020-10-23 | 杭州海康威视数字技术股份有限公司 | Equipment repairing method and device, electronic equipment and storage medium |
WO2022037014A1 (en) * | 2020-08-21 | 2022-02-24 | 苏州浪潮智能科技有限公司 | Boot restoration method for arm server, and related apparatus |
CN112667423A (en) * | 2020-12-22 | 2021-04-16 | 深圳市禾望电气股份有限公司 | Method, device and system for diagnosing program running time abnormity |
CN113692008A (en) * | 2021-08-27 | 2021-11-23 | 京东方科技集团股份有限公司 | Method, device, equipment and storage medium for processing transceiving exception |
CN113692008B (en) * | 2021-08-27 | 2024-04-05 | 京东方科技集团股份有限公司 | Method, device, equipment and storage medium for processing abnormal receiving and dispatching |
CN114431844A (en) * | 2022-01-25 | 2022-05-06 | 华中科技大学 | Health index monitoring facilities |
WO2023207701A1 (en) * | 2022-04-24 | 2023-11-02 | 中兴通讯股份有限公司 | Autonomous driving method and system, and controllers, electronic device and computer storage medium |
CN117493127A (en) * | 2023-12-29 | 2024-02-02 | 太平金融科技服务(上海)有限公司 | Application program detection method, device, equipment and medium |
CN117493127B (en) * | 2023-12-29 | 2024-04-05 | 太平金融科技服务(上海)有限公司 | Application program detection method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107894949A (en) | The method, apparatus and equipment of abnormality processing | |
CN107577594A (en) | The abnormal method of record test, intelligent terminal and the device with store function | |
US8881107B2 (en) | Automatic memory leak detection | |
CN109726372B (en) | Method and device for generating work order based on call records and computer readable medium | |
CN110377462B (en) | Interface testing method and device and terminal equipment | |
CN108363634B (en) | Method, device and equipment for identifying service processing failure reason | |
CN109445837B (en) | Application program publishing method and device | |
CN107085549B (en) | Method and device for generating fault information | |
CN110875858B (en) | Application test data grabbing method, system, equipment and storage medium | |
CN110471838A (en) | Method of calibration, device, computer equipment and the storage medium of test case | |
CN108170550A (en) | The method, apparatus and equipment of abnormality processing | |
CN110716843B (en) | System fault analysis processing method and device, storage medium and electronic equipment | |
CN107066536B (en) | Comment determining method and device | |
CN115629992A (en) | Method for debugging application system constructed by using Spring technology stack | |
CN106790181A (en) | The verification method of electronic health record file, server and terminal device | |
WO2016165461A1 (en) | Automated testing method and apparatus for network management system software of telecommunications network | |
CN112259182B (en) | Method and device for generating electronic medical record | |
CN111325078A (en) | Face recognition method, face recognition device and storage medium | |
US9886374B1 (en) | Virtual device farm for software testing | |
CN110688173B (en) | Positioning method and device of components in cross-platform interface framework and electronic equipment | |
CN117234916A (en) | Workflow application testing method and device, electronic equipment and storage medium | |
CN107273242A (en) | A kind of non-invasive data reconstruction method for apple equipment | |
CN110674045A (en) | Information tracking detection method and device, electronic equipment and storage medium | |
CN110517010B (en) | Data processing method, system and storage medium | |
CN116107781A (en) | Log tracking method, device, electronic equipment and computer program product |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180410 |
|
RJ01 | Rejection of invention patent application after publication |