CN102681874B - A kind ofly guarantee the method that software normally runs and device - Google Patents

A kind ofly guarantee the method that software normally runs and device Download PDF

Info

Publication number
CN102681874B
CN102681874B CN201210148916.2A CN201210148916A CN102681874B CN 102681874 B CN102681874 B CN 102681874B CN 201210148916 A CN201210148916 A CN 201210148916A CN 102681874 B CN102681874 B CN 102681874B
Authority
CN
China
Prior art keywords
client software
muscle
sudden strain
described client
status information
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.)
Active
Application number
CN201210148916.2A
Other languages
Chinese (zh)
Other versions
CN102681874A (en
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.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210148916.2A priority Critical patent/CN102681874B/en
Publication of CN102681874A publication Critical patent/CN102681874A/en
Application granted granted Critical
Publication of CN102681874B publication Critical patent/CN102681874B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses and a kind ofly guarantee the method that software normally runs and device, belong to field of computer technology.Described method comprises: when needs startup optimization client software, move back status information judge the sudden strain of a muscle of described client software; If it is that state is moved back in sudden strain of a muscle that status information is moved back in described sudden strain of a muscle, then number of times is moved back in the sudden strain of a muscle increasing described client software, moves back number of times determine whether described client software can be used according to described sudden strain of a muscle; If unavailable, then repair described client software and start described client software after repair.Described device comprises: judge module, determination module and reparation module.The present invention can guarantee that software normally runs.

Description

A kind ofly guarantee the method that software normally runs and device
Technical field
The present invention relates to field of computer technology, particularly a kind ofly guarantee the method that software normally runs and device.
Background technology
Along with the development of computer technology, the client software that can realize various function emerges in an endless stream, the chat client software etc. of chatting as carried out.Client software generation sudden strain of a muscle can be made to move back (Crash) problem due to a variety of causes in client software operational process.
Wherein, dodging the problem of moving back is the inevitable problem of client software, and a lot of client software sudden strain of a muscle all can occur and moves back problem, and user can restart client software after problem is moved back in generation sudden strain of a muscle; Sometimes there is more serious problem in client software, and the user data of such as client software damages, and when may cause user's every startup optimization client software, client software sudden strain of a muscle all can occur moves back problem, so that client software cannot normally run.
Summary of the invention
Normally run in order to ensure client software, the invention provides and a kind ofly guarantee the method that software normally runs and device.Described technical scheme is as follows:
Guarantee the method that software normally runs, described method comprises:
When needs startup optimization client software, status information is moved back to the sudden strain of a muscle of described client software and judges, wherein said sudden strain of a muscle move back status information for record client software on recently once startup optimization time whether there occurs sudden strain of a muscle and move back problem;
If it is that state is moved back in sudden strain of a muscle that status information is moved back in described sudden strain of a muscle, then number of times is moved back in the sudden strain of a muscle increasing described client software, moves back number of times determine whether described client software can be used according to described sudden strain of a muscle;
If unavailable, then repair described client software and start described client software after repair.
Describedly move back number of times according to described sudden strain of a muscle and determine whether described client software can be used, and comprising:
Move back number of times to described sudden strain of a muscle to judge, if number of times is moved back in described sudden strain of a muscle do not exceed preset times, then determine that described client software can be used, if number of times is moved back in described sudden strain of a muscle exceed preset times, then determine that described client software is unavailable.
The described client software of described reparation and start described client software after repair, comprising:
Download the client software of latest edition, the client software of described latest edition is installed, to realize repairing client software, and start the client software of described latest edition after mounting; Or,
Obtain the data directory that described client software is corresponding, described data directory comprises user data corresponding to described client software, delete described data directory, start described client software, data directory is created after described client software is started, and described client software is obtained and loads user data in the data directory of described establishment, to realize repairing user data corresponding to described client software.
If it is that state is moved back in non-sudden strain of a muscle or described client software can be used that status information is moved back in described sudden strain of a muscle, described method also comprises:
It is that state is moved back in sudden strain of a muscle that status information is moved back in the sudden strain of a muscle arranging described client software, starts described client software and monitors described client software.
Described method also comprises:
If described client software, before having loaded the main interface of himself, sudden strain of a muscle does not occur move back problem, then when monitoring out described client software and having loaded the main interface of himself, start timing.
Described method also comprises:
If described client software sudden strain of a muscle does not occur moves back problem before the time of timing reaches Preset Time, then when the time of timing reaches Preset Time, the sudden strain of a muscle of described client software is moved back status information and be set to non-sudden strain of a muscle and move back state.
Described described client software is monitored after, also comprise:
If monitor out described client software when operating, the operational status information of described operation is set to abnomal condition, if there is not sudden strain of a muscle in described client software move back problem before having loaded the main interface of himself, then when monitoring out described client software and having loaded the main interface of himself, the operational status information of described operation is set to normal condition.
Described method also comprises:
When monitoring out described client software and having loaded the main interface of himself, the running state information of described client software is set to abnomal condition, if if there is not sudden strain of a muscle and move back problem in described client software before the time of timing reaches Preset Time, then when the time of timing reaches Preset Time, the running state information of described client's carbonyl software is set to normal condition.
If it is that state is moved back in non-sudden strain of a muscle that status information is moved back in described sudden strain of a muscle, then status information is moved back in the described sudden strain of a muscle arranging described client software is, before state is moved back in sudden strain of a muscle, also comprise:
The sudden strain of a muscle of described client software is moved back number of times to reset.
Guarantee the device that software normally runs, described device comprises:
Judge module, for when needs startup optimization client software, moves back status information to the sudden strain of a muscle of described client software and judges, wherein said sudden strain of a muscle move back status information for record client software on recently once startup optimization time whether there occurs sudden strain of a muscle and move back problem;
Determination module, if moving back status information for described sudden strain of a muscle is that state is moved back in sudden strain of a muscle, then number of times is moved back in the sudden strain of a muscle increasing described client software, moves back number of times determine whether described client software can be used according to described sudden strain of a muscle;
Repair module, if determine unavailable for described determination module, then repair described client software and start described client software after repair.
Described determination module, judges specifically for moving back number of times to described sudden strain of a muscle, if number of times is moved back in described sudden strain of a muscle do not exceed preset times, then determines that described client software can be used, if number of times is moved back in described sudden strain of a muscle exceed preset times, then determines that described client software is unavailable.
Described reparation module comprises:
Download unit, for downloading the client software of latest edition, installs the client software of described latest edition, to realize repairing client software, and starts the client software of described latest edition after mounting; Or,
Delete cells, for obtaining data directory corresponding to described client software, described data directory comprises user data corresponding to described client software, delete described data directory, start described client software, create data directory after described client software is started, and described client software is obtained and loads user data in the data directory of described establishment, to realize repairing user data corresponding to described client software.
If it is that state is moved back in non-sudden strain of a muscle or described client software can be used that status information is moved back in described sudden strain of a muscle, described device also comprises:
First arranges module, and it is that state is moved back in sudden strain of a muscle that status information is moved back in the sudden strain of a muscle for arranging described client software, starts described client software and monitors described client software.
Described device also comprises:
Timing module, if there is not sudden strain of a muscle for described client software before having loaded the main interface of himself to move back problem, then when monitoring out described client software and having loaded the main interface of himself, starts timing.
Described device also comprises:
Second arranges module, if there is not sudden strain of a muscle for described client software before reaching Preset Time in the time of timing to move back problem, then when the time of timing reaches Preset Time, the sudden strain of a muscle of described client software is moved back status information and is set to non-sudden strain of a muscle and moves back state.
Described device also comprises:
3rd arranges module, if for monitor out described client software operate time, the operational status information of described operation is set to abnomal condition, if there is not sudden strain of a muscle in described client software move back problem before having loaded the main interface of himself, then when monitoring out described client software and having loaded the main interface of himself, the operational status information of described operation is set to normal condition.
Described device also comprises:
3rd arranges module, for when monitoring out described client software and having loaded the main interface of himself, the running state information of described client software is set to abnomal condition, if if there is not sudden strain of a muscle and move back problem in described client software before the time of timing reaches Preset Time, then when the time of timing reaches Preset Time, the running state information of described client's carbonyl software is set to normal condition.
If it is that state is moved back in non-sudden strain of a muscle that status information is moved back in described sudden strain of a muscle, then described device also comprises:
Dump block, resets for the sudden strain of a muscle of described client software being moved back number of times.
In embodiments of the present invention, when needs startup optimization client software, move back status information to the sudden strain of a muscle of client software to judge, if it is that state is moved back in sudden strain of a muscle that status information is moved back in described sudden strain of a muscle, number of times is moved back in the sudden strain of a muscle then increasing client software, move back number of times determination client software according to this sudden strain of a muscle whether can use, if unavailable, then repair client software and start client software after repair.So can determine whether client software can be used, and when determining that client software is unavailable, client software be repaired, to guarantee that client software normally runs.
Accompanying drawing explanation
Fig. 1 is that a kind of that the embodiment of the present invention 1 provides guarantees the method flow diagram that software normally runs;
Fig. 2 is that a kind of that the embodiment of the present invention 2 provides guarantees the method flow diagram that software normally runs;
Fig. 3 is that a kind of that the embodiment of the present invention 3 provides guarantees the apparatus structure schematic diagram that software normally runs.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment 1
As shown in Figure 1, embodiments provide a kind of method that software normally runs of guaranteeing, comprising:
Step 101: when needs startup optimization client software, status information is moved back to the sudden strain of a muscle of client software and judges;
Step 102: whether if it is that state is moved back in sudden strain of a muscle that status information is moved back in this sudden strain of a muscle, then number of times is moved back in the sudden strain of a muscle increasing client software, move back number of times determination client software can use according to this sudden strain of a muscle;
Step 103: if unavailable, then repair client software and start client software after repair.
In embodiments of the present invention, when needs startup optimization client software, move back status information to the sudden strain of a muscle of client software to judge, if it is that state is moved back in sudden strain of a muscle that status information is moved back in described sudden strain of a muscle, number of times is moved back in the sudden strain of a muscle then increasing client software, move back number of times determination client software according to this sudden strain of a muscle whether can use, if unavailable, then repair client software and start client software after repair.So can determine whether client software can be used, and when determining that client software is unavailable, client software be repaired, to guarantee that client software normally runs.
Embodiment 2
As shown in Figure 2, embodiments provide a kind of method that software normally runs of guaranteeing, comprising:
Step 201: when needs startup optimization client software, move back status information judge the sudden strain of a muscle of client software, if it is that state is moved back in non-sudden strain of a muscle that status information is moved back in this sudden strain of a muscle, then performs step 202, if this sudden strain of a muscle state of moving back is sudden strain of a muscle move back state, then performs step 203;
Wherein, the sudden strain of a muscle of client software is moved back status information and whether be there occurs sudden strain of a muscle when nearest upper once startup optimization move back problem for recording client software, if client software there occurs sudden strain of a muscle when nearest upper once startup optimization and moves back problem, then status information is moved back in the sudden strain of a muscle of client software is that state is moved back in sudden strain of a muscle, if client software, when nearest upper once startup optimization, sudden strain of a muscle does not occur move back problem, then status information is moved back in the sudden strain of a muscle of client software is that state is moved back in non-sudden strain of a muscle.
Wherein, the sudden strain of a muscle problem of moving back is the inevitable problem of many client softwares, client software is usually in following first stage, subordinate phase or sudden strain of a muscle occurred in the phase III move back problem: the first stage is the time period that client software starts before the main interface loading client software, and what within the time of first stage, client software carried out is operating as software initialization operation; Subordinate phase is the process that client software loads the main interface of himself, and what within the time of subordinate phase, client software carried out allows as account number initialization operation; Phase III is in the Preset Time after client software main load interface, brings into operation after client software main load interface.
Step 202: sudden strain of a muscle corresponding for client software is moved back number of times and reset, then perform step 204;
Wherein, there is the number of times dodging problem of moving back when moving back number of times for recording the continuous startup optimization of client software in the sudden strain of a muscle that client software is corresponding.
Step 203: increase the sudden strain of a muscle of client software and move back number of times, and move back number of times determination client software according to the sudden strain of a muscle after increasing and whether can use, if available, then perform step 204, if unavailable, then perform step 207;
Particularly, number of times is moved back in the sudden strain of a muscle increasing client software, judges that the size of number of times is moved back in the sudden strain of a muscle after increasing, if the sudden strain of a muscle after increasing is moved back number of times and is not exceeded preset times, then determine that client software can be used, if number of times is moved back in the sudden strain of a muscle after increasing exceed preset times, then determine that client software is unavailable.
Step 204: the sudden strain of a muscle of client software is moved back status information and be set to sudden strain of a muscle and move back state, starts client software and also monitors client software;
Wherein, client software software is usually in above-mentioned first stage, subordinate phase or send out a sudden strain of a muscle in the phase III and move back problem, so monitor in above-mentioned first stage, subordinate phase and each operation that in the phase III, corresponding client software carries out.
Wherein, within the above-mentioned first stage, client software carries out software initialization operation; Further, within the above-mentioned first stage, when monitoring out client software and carrying out software initialization operation, the operational status information of the software initialization operation carried out by client software is set to abnomal condition, if there is not sudden strain of a muscle and move back problem in client software before client software has carried out software initialization operation, then after monitoring out client software and having carried out software initial operation, the operational status information that software initialization operates is set to normal condition.
Wherein, if client software there occurs sudden strain of a muscle and moves back problem before client software has carried out software initialization operation, then terminate all operations, correspondingly, it is that state is moved back in sudden strain of a muscle that status information is moved back in the sudden strain of a muscle of client software, namely have recorded client software to there occurs sudden strain of a muscle when this startup optimization and move back problem, and the operational status information of software initialization operation is abnomal condition, technician so can be made to determine accordingly, and this client software there occurs sudden strain of a muscle when carrying out software initialization operation and moves back problem.
Wherein, the software initialization operation of client software generally includes store initialization operation and registration operation, or comprises store initialization operation and register; Further, when monitoring out client software and starting to carry out store initialization operation, the operational status information of the store initialization operation carried out by client software is set to abnomal condition, if there is not sudden strain of a muscle and move back problem in client software before client software has carried out store initialization operation, then after monitoring out client software and having carried out storing initial operation, the operational status information that store initialization operates is set to normal condition.
Wherein, if client software there occurs sudden strain of a muscle and moves back before client software has carried out store initialization operation, then terminate all operations, correspondingly, it is that state is moved back in sudden strain of a muscle that status information is moved back in the sudden strain of a muscle of client software, namely have recorded client software sudden strain of a muscle occurs when this startup optimization to move back problem, and the operational status information of store initialization operation is abnomal condition, technician so can be made to determine accordingly, and this client software there occurs sudden strain of a muscle when carrying out store initialization operation and moves back problem.
Wherein, after client software has carried out store initialization operation, client software has carried out registration operation or register.
Further, start to carry out registration operation if monitored out after client software has carried out store initialization operation, then the operational status information that registration operates is arranged abnomal condition, if there is not sudden strain of a muscle and move back problem in client software before client software has carried out registration operation, then after monitoring out client software and having carried out registration operation, the operational status information that registration operates is set to normal condition.
Wherein, if client software there occurs sudden strain of a muscle and moves back problem before client software has carried out registration operation, then terminate all operations, correspondingly, it is that state is moved back in sudden strain of a muscle that status information is moved back in the sudden strain of a muscle of client software, namely have recorded client software to there occurs sudden strain of a muscle when this startup optimization and move back problem, and register the operational status information of operation as abnomal condition, technician so can be made to determine accordingly, and this client software there occurs sudden strain of a muscle when carrying out registration operation and moves back problem.
Further, start to carry out register if monitored out after client software has carried out store initialization operation, then the operational status information of register is arranged abnomal condition, if there is not sudden strain of a muscle and move back problem in client software before client software has carried out register, then after monitoring out client software and having carried out register, the operational status information of register is set to normal condition.
Wherein, if client software there occurs sudden strain of a muscle and moves back problem before client software has carried out register, then terminate all operations, correspondingly, it is that state is moved back in sudden strain of a muscle that status information is moved back in the sudden strain of a muscle of client software, namely have recorded client software to there occurs sudden strain of a muscle when this startup optimization and move back problem, and the operational status information storing register is abnomal condition, technician so can be made to determine accordingly, and this client software there occurs sudden strain of a muscle when carrying out register and moves back problem.
Wherein, client software executes software initialization operation and enters above-mentioned subordinate phase, and client software carries out account number initialization operation in above-mentioned subordinate phase; Further, when monitoring out client software and starting to carry out account number initialization operation, the operational status information of the account number initialization operation carried out by client software is set to abnomal condition, if there is not sudden strain of a muscle and move back problem in client software before client software has carried out account number initialization operation, then after monitoring out client software and having carried out account number initialization operation, the operational status information of account initialization operation is set to normal condition.
Wherein, if client software there occurs sudden strain of a muscle and moves back problem before client software has carried out account number initialization operation, then terminate all operations, correspondingly, it is that state is moved back in sudden strain of a muscle that status information is moved back in the sudden strain of a muscle of client software, namely have recorded client software to there occurs sudden strain of a muscle when this startup optimization and move back problem, and the operational status information of account number initialization operation is abnomal condition, technician so can be made to determine accordingly, and this client software there occurs sudden strain of a muscle when carrying out account number initialization operation and moves back problem.
Wherein, the account number initialization operation of client software generally includes loading messages list operation and loads contacts list operation.
Further, when monitoring out client software and starting to carry out loading messages list operation, the operational status information of the loading messages list operation carried out by client software is set to abnomal condition, if there is not sudden strain of a muscle and move back problem in client software before client software has carried out loading messages list operation, then after monitoring out client software and having carried out loading messages list operation, the operational status information of loading messages list operation is set to normal condition.
Wherein, if client software there occurs sudden strain of a muscle and moves back problem before client software has carried out loading messages list operation, then terminate all operations, correspondingly, it is that state is moved back in sudden strain of a muscle that status information is moved back in the sudden strain of a muscle of client software, namely have recorded client software to there occurs sudden strain of a muscle when this startup optimization and move back problem, and the operational status information of loading messages list operation is abnomal condition, technician so can be made to determine accordingly, and this client software there occurs sudden strain of a muscle when carrying out loading messages list operation and moves back problem.
Further, when monitoring out client software and starting to carry out the operation of loading contacts list, the operational status information of the loading contacts list operation carried out by client software is set to abnomal condition, if there is not sudden strain of a muscle and move back problem in client software before client software has carried out the operation of loading contacts list, then after monitoring out client software and having carried out the operation of loading contacts list, the operational status information loading contacts list operation is set to normal condition.
Wherein, if client software there occurs sudden strain of a muscle and moves back problem before client software has carried out the operation of loading contacts list, then terminate all operations, correspondingly, it is that state is moved back in sudden strain of a muscle that status information is moved back in the sudden strain of a muscle of client software, namely have recorded client software to there occurs sudden strain of a muscle when this startup optimization and move back problem, and the operational status information loading contacts list operation is abnomal condition, technician so can be made to determine accordingly, and this client software there occurs sudden strain of a muscle when carrying out the operation of loading contacts list and moves back problem.
Wherein, client software has carried out account number initialization operation to realize main load interface, so just complete main load interface when client software has carried out account number initialization operation.
Step 205: if client software, before having loaded the main interface of himself, sudden strain of a muscle does not occur move back problem, then, when monitoring out the complete main interface of client Bootload, start timing;
Wherein, client software has loaded himself main interface, and namely client software completes above-mentioned first stage and subordinate phase, and client software enters the phase III after having loaded the main interface of himself, and within the phase III, client software brings into operation.
Further, when monitoring out complete himself the main interface of client Bootload, the running state information of client software being set to abnomal condition, a timer being set and starting timing.
Step 206: if client software sudden strain of a muscle does not occur moves back problem before the time of timing reaches Preset Time, then when the time of timing reaches Preset Time, moves back status information and is set to non-sudden strain of a muscle and moves back state, end operation by the sudden strain of a muscle of client software;
Further, if client software sudden strain of a muscle does not occur moves back problem before the time of timing reaches Preset Time, then, when the time of timing reaches Preset Time, also the running state information of client software is set to normal condition.
Wherein, if client software there occurs sudden strain of a muscle and moves back problem before the time of timing exceedes Preset Time, then terminate all operations, correspondingly, it is that state is moved back in sudden strain of a muscle that status information is moved back in the sudden strain of a muscle of client software, namely have recorded client software to there occurs sudden strain of a muscle when this startup optimization and move back problem, and running state information is abnomal condition, technician so can be made to determine accordingly, and this client software there occurs sudden strain of a muscle and moves back problem in the Preset Time brought into operation.
Step 207: client software is repaired, and start client software after repair, as this ensure that, client software normally runs, end operation.
Particularly, can be repaired client software by the following two kinds method, comprise:
The first, download the client software of latest edition, the client software of latest edition is installed, so realize repairing client software, and start the client software of latest edition after the client software installing latest edition.
Wherein, the download address of client software can be stored in advance, particularly, obtain the download address of client software, the client software of latest edition is downloaded according to the download address of client software, download the client software of rear installation latest edition, and started the client software of latest edition after the client software installing latest edition.
Wherein, there is sudden strain of a muscle during the continuous startup optimization of client software and move back problem, and this sudden strain of a muscle problem of moving back may in the client software of latest edition solve by technician, so download the client software of latest edition and the client software of installation latest edition, client software is repaired in realization like this, thus can guarantee the normal startup optimization of client software.
The second, data directory corresponding to client software is obtained in terminal local, this data directory comprises user data corresponding to this client software, delete the data directory obtained, start client software, data directory is created after starting to make client software, and client software is obtained and loads user data in the data directory created, so realize the user data repairing client software, thus guarantee that client software normally starts and runs.
Wherein, delete client software data directory and after starting client software, client software finds the local data directory that there is not its correspondence, then automatically can create data directory, the user data that this client software is corresponding is obtained from network, then the user data loading acquisition, in the data directory created, so can be repaired user data corresponding to this client software, guarantee that client software normally starts and runs.
Wherein, the reason of moving back problem occurs to dodge client software may be that user data corresponding to client is damaged, so delete the user data that terminal local stores this client software, then the user data reloading client software can realize repairing the user data damaged, to guarantee that client software normally runs.
Further, when client software is repaired, the sudden strain of a muscle of client software is moved back number of times and reset.
Wherein, when reparation client software after starting client software, the sudden strain of a muscle of client software is moved back status information and be set to sudden strain of a muscle and move back state, and perform from step 204.
Further, can also send reporting information to keeper after having repaired client software, status information is moved back in the sudden strain of a muscle that this reporting information comprises client software, the operational status information of each operation that client software comprises and the running state information of client software.
Further, this reporting information can also comprise the information such as the time of user name and startup of nearest last time client software.
In embodiments of the present invention, when needs startup optimization client software, move back status information to the sudden strain of a muscle of client software to judge, if it is that state is moved back in sudden strain of a muscle that status information is moved back in described sudden strain of a muscle, number of times is moved back in the sudden strain of a muscle then increasing client software, move back number of times determination client software according to this sudden strain of a muscle whether can use, if unavailable, then repair client software and start client software after repair.So when client software continuous several times startup optimization occurs that problem is moved back in sudden strain of a muscle, then determine that client software is unavailable, then repairs client software, to guarantee that client software normally runs.
Embodiment 3
As shown in Figure 3, embodiments provide a kind of device that software normally runs of guaranteeing, comprising:
Judge module 301, for when needs startup optimization client software, moves back status information to the sudden strain of a muscle of client software and judges;
Determination module 302, whether if moving back status information for this sudden strain of a muscle is that state is moved back in sudden strain of a muscle, then number of times is moved back in the sudden strain of a muscle increasing client software, move back number of times determination client software can use according to this sudden strain of a muscle;
Repair module 303, if determine unavailable for determination module 302, then repair client software and start client software after repair.
Wherein, determination module 302, judges specifically for moving back number of times to this sudden strain of a muscle, if number of times is moved back in this sudden strain of a muscle do not exceed preset times, then determines that client software can be used, if number of times is moved back in this sudden strain of a muscle exceed preset times, then determines that client software is unavailable.
Wherein, repair module 303 to comprise:
Download unit, for downloading the client software of latest edition, installs the client software of latest edition, to realize repairing client software, and starts the client software of latest edition after mounting; Or,
Delete cells, for obtaining data directory corresponding to client software, this data directory comprises user data corresponding to client software, delete this data directory, start client software, create data directory after client software is started, and client software is obtained and loads user data in the data directory created, to realize repairing user data corresponding to client software.
Further, if it is that state is moved back in non-sudden strain of a muscle or client software can be used that status information is moved back in this sudden strain of a muscle, this device also comprises:
First arranges module, and it is that state is moved back in sudden strain of a muscle that status information is moved back in the sudden strain of a muscle for arranging client software, starts client software and monitors client software.
Further, this device also comprises:
Timing module, if there is not sudden strain of a muscle for client software before having loaded the main interface of himself to move back problem, then, when monitoring out complete himself the main interface of client Bootload, starts timing.
Further, this device also comprises:
Second arranges module, if there is not sudden strain of a muscle for client software before reaching Preset Time in the time of timing to move back problem, then when the time of timing reaches Preset Time, the sudden strain of a muscle of client software is moved back status information and is set to non-sudden strain of a muscle and moves back state.
Further, this device also comprises:
3rd arranges module, if for monitor out client software operate time, the operational status information of this operation is set to abnomal condition, if there is not sudden strain of a muscle in client software move back problem before having loaded the main interface of himself, then when monitoring out complete himself the main interface of client Bootload, the operational status information of this operation is set to normal condition.
Further, this device also comprises:
3rd arranges module, for when monitoring out complete himself the main interface of client Bootload, the running state information of client software is set to abnomal condition, if if there is not sudden strain of a muscle and move back problem in client software before the time of timing reaches Preset Time, then when the time of timing reaches Preset Time, the running state information of client's carbonyl software is set to normal condition.
Further, if it is that state is moved back in non-sudden strain of a muscle that status information is moved back in this sudden strain of a muscle, then this device also comprises:
Dump block, resets for the sudden strain of a muscle of client software being moved back number of times.
In embodiments of the present invention, when needs startup optimization client software, move back status information to the sudden strain of a muscle of client software to judge, if it is that state is moved back in sudden strain of a muscle that status information is moved back in described sudden strain of a muscle, number of times is moved back in the sudden strain of a muscle then increasing client software, move back number of times determination client software according to this sudden strain of a muscle whether can use, if unavailable, then repair client software and start client software after repair.When so all occurring that problem is moved back in sudden strain of a muscle when client software continuous several times startup optimization, then determine that client software is unavailable, then repairs client software, to guarantee that client software normally runs.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (16)

1. guarantee to it is characterized in that the method that software normally runs, described method comprises:
When needs startup optimization client software, status information is moved back to the sudden strain of a muscle of described client software and judges, wherein said sudden strain of a muscle move back status information for record client software on recently once startup optimization time whether there occurs sudden strain of a muscle and move back problem;
If it is that state is moved back in sudden strain of a muscle that status information is moved back in described sudden strain of a muscle, then number of times is moved back in the sudden strain of a muscle increasing described client software, moves back number of times determine whether described client software can be used according to described sudden strain of a muscle;
If unavailable, then repair described client software and start described client software after repair;
If it is that state is moved back in non-sudden strain of a muscle or described client software can be used that status information is moved back in described sudden strain of a muscle, it is that state is moved back in sudden strain of a muscle that status information is moved back in the sudden strain of a muscle then arranging described client software, start described client software and described client software is monitored, when monitoring out described client software and carrying out software initialization operation, the operational status information that described software initialization operates is set to abnomal condition, monitor out carried out described software initialization operation after, the operational status information that described software initialization operates is set to normal condition; When monitoring out described client software and carrying out account initialization operation, the operational status information of described account initialization operation is set to abnomal condition, after monitoring out and having carried out described account initialization operation, the operational status information of described account initialization operation is set to normal condition.
2. the method for claim 1, is characterized in that, describedly moves back number of times according to described sudden strain of a muscle and determines whether described client software can be used, and comprising:
Move back number of times to described sudden strain of a muscle to judge, if number of times is moved back in described sudden strain of a muscle do not exceed preset times, then determine that described client software can be used, if number of times is moved back in described sudden strain of a muscle exceed preset times, then determine that described client software is unavailable.
3. the method for claim 1, is characterized in that, the described client software of described reparation and start described client software after repair, comprising:
Download the client software of latest edition, the client software of described latest edition is installed, to realize repairing client software, and start the client software of described latest edition after mounting; Or,
Obtain the data directory that described client software is corresponding, described data directory comprises user data corresponding to described client software, delete described data directory, start described client software, data directory is created after described client software is started, and described client software is obtained and loads user data in the data directory of described establishment, to realize repairing user data corresponding to described client software.
4. the method for claim 1, is characterized in that, described method also comprises:
If described client software, before having loaded the main interface of himself, sudden strain of a muscle does not occur move back problem, then when monitoring out described client software and having loaded the main interface of himself, start timing.
5. method as claimed in claim 4, it is characterized in that, described method also comprises:
If described client software sudden strain of a muscle does not occur moves back problem before the time of timing reaches Preset Time, then when the time of timing reaches Preset Time, the sudden strain of a muscle of described client software is moved back status information and be set to non-sudden strain of a muscle and move back state.
6. the method for claim 1, is characterized in that, described described client software is monitored after, also comprise:
If monitor out described client software when operating, the operational status information of described operation is set to abnomal condition, if there is not sudden strain of a muscle in described client software move back problem before having loaded the main interface of himself, then when monitoring out described client software and having loaded the main interface of himself, the operational status information of described operation is set to normal condition.
7. method as claimed in claim 4, it is characterized in that, described method also comprises:
When monitoring out described client software and having loaded the main interface of himself, the running state information of described client software is set to abnomal condition, if if there is not sudden strain of a muscle and move back problem in described client software before the time of timing reaches Preset Time, then when the time of timing reaches Preset Time, the running state information of described client's carbonyl software is set to normal condition.
8. the method for claim 1, is characterized in that, if it is that state is moved back in non-sudden strain of a muscle that status information is moved back in described sudden strain of a muscle, then status information is moved back in the described sudden strain of a muscle arranging described client software is, before state is moved back in sudden strain of a muscle, also comprise:
The sudden strain of a muscle of described client software is moved back number of times to reset.
9. guarantee to it is characterized in that the device that software normally runs, described device comprises:
Judge module, for when needs startup optimization client software, moves back status information to the sudden strain of a muscle of described client software and judges, wherein said sudden strain of a muscle move back status information for record client software on recently once startup optimization time whether there occurs sudden strain of a muscle and move back problem;
Determination module, if moving back status information for described sudden strain of a muscle is that state is moved back in sudden strain of a muscle, then number of times is moved back in the sudden strain of a muscle increasing described client software, moves back number of times determine whether described client software can be used according to described sudden strain of a muscle;
Repair module, if determine unavailable for described determination module, then repair described client software and start described client software after repair;
Wherein, if it is that state is moved back in non-sudden strain of a muscle or described client software can be used that status information is moved back in described sudden strain of a muscle, then status information is moved back in the sudden strain of a muscle of described device also for arranging described client software is that state is moved back in sudden strain of a muscle, start described client software and described client software is monitored, when monitoring out described client software and carrying out software initialization operation, the operational status information that described software initialization operates is set to abnomal condition, monitor out carried out described software initialization operation after, the operational status information that described software initialization operates is set to normal condition, when monitoring out described client software and carrying out account initialization operation, the operational status information of described account initialization operation is set to abnomal condition, after monitoring out and having carried out described account initialization operation, the operational status information of described account initialization operation is set to normal condition.
10. device as claimed in claim 9, is characterized in that,
Described determination module, judges specifically for moving back number of times to described sudden strain of a muscle, if number of times is moved back in described sudden strain of a muscle do not exceed preset times, then determines that described client software can be used, if number of times is moved back in described sudden strain of a muscle exceed preset times, then determines that described client software is unavailable.
11. devices as claimed in claim 9, it is characterized in that, described reparation module comprises:
Download unit, for downloading the client software of latest edition, installs the client software of described latest edition, to realize repairing client software, and starts the client software of described latest edition after mounting; Or,
Delete cells, for obtaining data directory corresponding to described client software, described data directory comprises user data corresponding to described client software, delete described data directory, start described client software, create data directory after described client software is started, and described client software is obtained and loads user data in the data directory of described establishment, to realize repairing user data corresponding to described client software.
12. devices as claimed in claim 9, it is characterized in that, described device also comprises:
Timing module, if there is not sudden strain of a muscle for described client software before having loaded the main interface of himself to move back problem, then when monitoring out described client software and having loaded the main interface of himself, starts timing.
13. devices as claimed in claim 12, it is characterized in that, described device also comprises:
Second arranges module, if there is not sudden strain of a muscle for described client software before reaching Preset Time in the time of timing to move back problem, then when the time of timing reaches Preset Time, the sudden strain of a muscle of described client software is moved back status information and is set to non-sudden strain of a muscle and moves back state.
14. devices as claimed in claim 9, it is characterized in that, described device also comprises:
3rd arranges module, if for monitor out described client software operate time, the operational status information of described operation is set to abnomal condition, if there is not sudden strain of a muscle in described client software move back problem before having loaded the main interface of himself, then when monitoring out described client software and having loaded the main interface of himself, the operational status information of described operation is set to normal condition.
15. devices as claimed in claim 12, it is characterized in that, described device also comprises:
3rd arranges module, for when monitoring out described client software and having loaded the main interface of himself, the running state information of described client software is set to abnomal condition, if if there is not sudden strain of a muscle and move back problem in described client software before the time of timing reaches Preset Time, then when the time of timing reaches Preset Time, the running state information of described client's carbonyl software is set to normal condition.
16. devices as claimed in claim 9, is characterized in that, if it is that state is moved back in non-sudden strain of a muscle that status information is moved back in described sudden strain of a muscle, then described device also comprises:
Dump block, resets for the sudden strain of a muscle of described client software being moved back number of times.
CN201210148916.2A 2012-05-14 2012-05-14 A kind ofly guarantee the method that software normally runs and device Active CN102681874B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210148916.2A CN102681874B (en) 2012-05-14 2012-05-14 A kind ofly guarantee the method that software normally runs and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210148916.2A CN102681874B (en) 2012-05-14 2012-05-14 A kind ofly guarantee the method that software normally runs and device

Publications (2)

Publication Number Publication Date
CN102681874A CN102681874A (en) 2012-09-19
CN102681874B true CN102681874B (en) 2015-10-21

Family

ID=46813847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210148916.2A Active CN102681874B (en) 2012-05-14 2012-05-14 A kind ofly guarantee the method that software normally runs and device

Country Status (1)

Country Link
CN (1) CN102681874B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902399B (en) * 2012-12-28 2017-05-10 华为技术有限公司 Software system repair processing method and software system repair processing device
CN104123210B (en) * 2013-04-26 2018-01-09 腾讯科技(深圳)有限公司 Test the method, apparatus and system of browser performance
CN104182331B (en) * 2013-05-20 2018-04-27 腾讯科技(深圳)有限公司 Browser performance test method, system and terminal
CN104426947A (en) * 2013-08-27 2015-03-18 中兴通讯股份有限公司 Terminal intelligent updating method and system, terminal and data updating server
CN106020866A (en) * 2016-05-10 2016-10-12 北京金山安全软件有限公司 Blue screen processing method and device and terminal
CN107798464A (en) * 2017-09-19 2018-03-13 上海壹账通金融科技有限公司 Service administering method, electronic equipment and the computer-readable recording medium of client
CN107861830A (en) * 2017-12-01 2018-03-30 深圳乐信软件技术有限公司 Detection method, device, storage medium and the mobile terminal of application crash
CN109271269A (en) * 2018-09-20 2019-01-25 阿里巴巴集团控股有限公司 A kind of processing method, device and equipment that application sudden strain of a muscle is moved back
CN111522676B (en) * 2020-04-01 2021-10-01 五八有限公司 Application program repairing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755644A (en) * 2004-09-30 2006-04-05 微软公司 Method, system, and apparatus for providing customer product support for a software program based upon states of program execution instability
CN101201770A (en) * 2006-12-15 2008-06-18 大唐移动通信设备有限公司 Method and system for storing important information before system collapse

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8020149B2 (en) * 2006-08-04 2011-09-13 Apple Inc. System and method for mitigating repeated crashes of an application resulting from supplemental code

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755644A (en) * 2004-09-30 2006-04-05 微软公司 Method, system, and apparatus for providing customer product support for a software program based upon states of program execution instability
CN101201770A (en) * 2006-12-15 2008-06-18 大唐移动通信设备有限公司 Method and system for storing important information before system collapse

Also Published As

Publication number Publication date
CN102681874A (en) 2012-09-19

Similar Documents

Publication Publication Date Title
CN102681874B (en) A kind ofly guarantee the method that software normally runs and device
US8250566B2 (en) Automated software upgrade and distribution
CN101317381A (en) Ability management object maintenance, ability management method, system and terminal
CN101631324A (en) Mobile terminal fault diagnosis and repair method and mobile terminal thereof
CN108363653B (en) Deployment method and device of monitoring system, computer equipment and storage medium
CN103034803B (en) Dress software prompt system by mistake
CN103902399A (en) Software system repair processing method and software system repair processing device
CN111881014B (en) System test method, device, storage medium and electronic equipment
CN109324918A (en) Processing method and processing device, terminal and the storage medium of application exception
CN104915226A (en) Network device software starting method, device and network device
CN104360952A (en) Software test system and software test method
CN116643775A (en) Vehicle OTA upgrading control method and related equipment
CN111767172A (en) Self-repairing method for set top box based on watchdog and bootloader
CN113434180B (en) Data processing method and device for application, server and storage medium
CN110620798A (en) Control method, system, equipment and storage medium for FTP connection
CN105843642A (en) Upgrading method of terminal, terminal upgrading control method, terminal and server
CN112905230A (en) Application program management method and device, terminal equipment and storage medium
CN113032183A (en) System management method, device, computer equipment and storage medium
WO2012051841A1 (en) Method and system for maintaining base transceiver station
CN112596750B (en) Application testing method and device, electronic equipment and computer readable storage medium
CN114327781A (en) Virtual terminal control method, device, system, electronic equipment and storage medium
CN104158906A (en) Server agent manipulation system and manipulation method
CN107741854A (en) The installation method and device of the trawl performance of a kind of electronic equipment
CN107526670A (en) Service automatic monitoring method, electronic equipment, computer-readable storage medium
CN100568820C (en) Software version self management method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200825

Address after: Shenzhen Futian District City, Guangdong province 518000 Zhenxing Road, SEG Science Park 2 East Room 403

Co-patentee after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd.

Patentee after: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Futian District SEG Science Park 2 East Room 403

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right