CN110457154B - Abnormal service processing method and device, storage medium and communication terminal - Google Patents
Abnormal service processing method and device, storage medium and communication terminal Download PDFInfo
- Publication number
- CN110457154B CN110457154B CN201910677840.4A CN201910677840A CN110457154B CN 110457154 B CN110457154 B CN 110457154B CN 201910677840 A CN201910677840 A CN 201910677840A CN 110457154 B CN110457154 B CN 110457154B
- Authority
- CN
- China
- Prior art keywords
- function point
- target service
- target
- exception
- service
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0793—Remedial or corrective actions
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
- Telephone Function (AREA)
Abstract
Description
技术领域Technical field
本公开涉及无线通信技术领域,具体涉及一种异常服务处理方法、一种异常服务处理装置、一种计算机可读介质以及一种通信终端。The present disclosure relates to the field of wireless communication technology, and specifically relates to an exception service processing method, an exception service processing device, a computer-readable medium and a communication terminal.
背景技术Background technique
为了提升用户对于智能终端设备的使用体验,方便用户操作,程序员可以在Android系统的原生系统源码的基础上行增加新的系统功能。但由于用户量众多以及应用环境的复杂性等原因,部分功能可能存在不稳定等问题,新增功能会在用户某种操作模式下会触发稳定性问题,严重的可能会造成系统反复crash,甚至导致系统重启。In order to improve the user experience of smart terminal devices and facilitate user operations, programmers can add new system functions based on the native system source code of the Android system. However, due to the large number of users and the complexity of the application environment, some functions may have problems such as instability. New functions may trigger stability problems under certain operating modes of the user. In severe cases, the system may crash repeatedly, or even Causes the system to reboot.
对于这样的异常问题,只能通过手机OTA(Over the Air Technology,空间下载技术)升级才能解决问题,整个周期很漫长。并且,在整个解决问题期间,相同的异常可能会被再次触发异常,影响用户对智能终端设备的使用。For such abnormal problems, the problem can only be solved through mobile phone OTA (Over the Air Technology, space download technology) upgrade, and the whole cycle is very long. Moreover, during the entire problem solving period, the same exception may be triggered again, affecting the user's use of the smart terminal device.
需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the above background section is only used to enhance understanding of the background of the present disclosure, and therefore may include information that does not constitute prior art known to those of ordinary skill in the art.
发明内容Contents of the invention
本公开的目的在于提供一种异常服务处理方法、一种异常服务处理装置、一种计算机可读介质、一种无线通信终端,从而提供一种针对系统异常功能的处理方法,减少异常对终端设备在使用过程中的影响,进而在一定程度上克服相关技术的限制和缺陷。The purpose of this disclosure is to provide an exception service processing method, an exception service processing device, a computer-readable medium, and a wireless communication terminal, thereby providing a processing method for system abnormal functions and reducing the impact of abnormalities on terminal equipment. influence during use, thereby overcoming the limitations and defects of related technologies to a certain extent.
本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Additional features and advantages of the disclosure will be apparent from the following detailed description, or, in part, may be learned by practice of the disclosure.
根据本公开的第一方面,提供一种异常服务处理方法,包括:According to a first aspect of the present disclosure, an exception service processing method is provided, including:
获取异常数据,根据所述异常数据查询调用栈;Obtain exception data and query the call stack according to the exception data;
在所述调用栈包括目标服务对应的目标方法信息时,根据所述目标方法信息获取所述目标服务对应的目标服务标识;When the call stack includes target method information corresponding to the target service, obtain the target service identifier corresponding to the target service according to the target method information;
根据所述目标服务标识获取对应的所述目标服务的功能点开关,并关闭所述目标服务的功能点开关。Obtain the corresponding function point switch of the target service according to the target service identifier, and turn off the function point switch of the target service.
根据本公开的第二方面,提供一种异常服务处理装置,包括:According to a second aspect of the present disclosure, an exception service processing device is provided, including:
异常数据识别模块,用于获取异常数据,根据所述异常数据查询调用栈;An abnormal data identification module is used to obtain abnormal data and query the call stack according to the abnormal data;
目标服务识别模块,用于在所述调用栈包括目标服务对应的目标方法信息时,根据所述目标方法信息获取所述目标服务对应的目标服务标识;A target service identification module, configured to obtain the target service identifier corresponding to the target service according to the target method information when the call stack includes target method information corresponding to the target service;
开关控制模块,用于根据所述目标服务标识获取对应的所述目标服务的功能点开关,并关闭所述目标服务的功能点开关。A switch control module is configured to obtain the corresponding function point switch of the target service according to the target service identifier, and turn off the function point switch of the target service.
根据本公开的第三方面,提供一种计算机可读介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述的异常服务处理方法。According to a third aspect of the present disclosure, a computer-readable medium is provided, a computer program is stored thereon, and when the computer program is executed by a processor, the above-mentioned exception service processing method is implemented.
根据本公开的第四方面,提供一种无线通信终端,包括:According to a fourth aspect of the present disclosure, a wireless communication terminal is provided, including:
一个或多个处理器;one or more processors;
存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现上述的异常服务处理方法。A storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned exception service processing method.
本公开的一种实施例所提供的异常服务处理方法中,通过在监听到系统异常时,查询调用栈数据,判断是否存在目标服务对应的目标方法;从而可以根据调用栈数据判断目标服务是否存在异常。若判断目标服务存在异常时,便可以查询对应的功能点开关,并关闭该开关,从而禁止发生异常的目标服务继续运行,防止异常的反复出现,避免影响系统的正产运行,提升用户体验。In the exception service processing method provided by an embodiment of the present disclosure, when a system exception is detected, the call stack data is queried to determine whether there is a target method corresponding to the target service; thus, whether the target service exists can be determined based on the call stack data. abnormal. If it is determined that the target service is abnormal, you can query the corresponding function point switch and turn off the switch, thereby prohibiting the abnormal target service from continuing to run, preventing the recurrence of abnormalities, avoiding affecting the normal operation of the system, and improving user experience.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and do not limit the present disclosure.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.
图1示意性示出本公开示例性实施例中一种异常服务处理方法流程的示意图;Figure 1 schematically shows a schematic diagram of the flow of an exception service processing method in an exemplary embodiment of the present disclosure;
图2示意性示出本公开示例性实施例中一种查询调用栈的方法流程的示意图;Figure 2 schematically shows a schematic diagram of a method flow for querying a call stack in an exemplary embodiment of the present disclosure;
图3示意性示出本公开示例性实施例中一种异常服务处理装置的组成示意图;Figure 3 schematically shows the composition of an exception service processing device in an exemplary embodiment of the present disclosure;
图4示意性示出本公开示例性实施例中一种无线通信设备的计算机系统的结构示意图。FIG. 4 schematically shows a structural diagram of a computer system of a wireless communication device in an exemplary embodiment of the present disclosure.
具体实施方式Detailed ways
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concepts of the example embodiments. To those skilled in the art. The described features, structures or characteristics may be combined in any suitable manner in one or more embodiments.
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and/or processor devices and/or microcontroller devices.
为了提升用户体验,提高用户对智能终端设备使用的便捷性,开发人员会修改Android或iOS原生系统的源代码,增加一些特有的功能。这些功能可能存在稳定的问题,但没有在前期测试中发现。而由于用户的使用环境复杂,可能会在某种操作模式下或特定的环境下触发稳定性问题,例如引起卡顿、crash或重启等系统异常。但用户却并不能直接找到导致系统异常的原因,只能够在线下通过售后,或者线上以主动提交的方式将log数据反馈给开发人员,再由开饭人员对异常信息进行过滤和处理,并针对异常问题进行编译,通过后续的OTA进行升级。但这样的处理方式周期过于漫长,在这个期间内用户可能会再次出发异常,影响正常使用。In order to improve the user experience and improve the convenience of using smart terminal devices, developers will modify the source code of the Android or iOS native system and add some unique functions. There may be stability issues with these features that were not discovered in early testing. Due to the complex usage environment of users, stability problems may be triggered in certain operating modes or specific environments, such as system abnormalities such as lags, crashes, or restarts. However, users cannot directly find the cause of system anomalies. They can only feedback log data to developers offline through after-sales service, or online through active submission, and then the staff will filter and process the abnormal information and target it. Compile if abnormal problems occur and upgrade through subsequent OTA. However, the cycle of this processing method is too long. During this period, the user may experience an exception again, affecting normal use.
针对上述的现有技术的缺点和不足,本示例实施方式中提供了一种异常服务处理方法,可以应用于手机、平板电脑以及笔记本电脑等智能终端终端设备。参考图1中所示,上述的异常服务处理方法可以包括以下步骤:In view of the above-mentioned shortcomings and shortcomings of the existing technology, this example embodiment provides an exception service processing method, which can be applied to smart terminal devices such as mobile phones, tablet computers, and notebook computers. Referring to what is shown in Figure 1, the above-mentioned exception service processing method may include the following steps:
S11,获取异常数据,根据所述异常数据查询调用栈;S11, obtain abnormal data and query the call stack according to the abnormal data;
S12,在所述调用栈包括目标服务对应的目标方法信息时,根据所述目标方法信息获取所述目标服务对应的目标服务标识;S12. When the call stack includes target method information corresponding to the target service, obtain the target service identifier corresponding to the target service according to the target method information;
S13,根据所述目标服务标识获取对应的所述目标服务的功能点开关,并关闭所述目标服务的功能点开关。S13: Obtain the corresponding function point switch of the target service according to the target service identifier, and turn off the function point switch of the target service.
本示例实施方式所提供的网络连接方法中,一方面,通过对系统异常进行实时的监听,并在监听到系统异常时,查询调用栈数据,判断是否存在目标服务对应的目标方法;从而可以根据调用栈数据判断目标服务是否存在异常。另一方面,在判断目标服务存在异常时,便可以查询对应的功能点开关,并关闭该开关,从而禁止发生异常的目标服务继续运行,防止异常的反复出现,避免影响系统的正产运行,提升用户体验。In the network connection method provided by this example embodiment, on the one hand, real-time monitoring of system exceptions is performed, and when the system exception is monitored, the call stack data is queried to determine whether there is a target method corresponding to the target service; thus, the target method corresponding to the target service can be determined based on The call stack data determines whether there is an exception in the target service. On the other hand, when it is determined that the target service is abnormal, the corresponding function point switch can be queried and the switch is turned off, thereby prohibiting the abnormal target service from continuing to run, preventing the recurrence of abnormalities, and avoiding affecting the normal operation of the system. Improve user experience.
下面,将结合附图及实施例对本示例实施方式中的异常服务处理方法的各个步骤进行更详细的说明。Below, each step of the exception service processing method in this exemplary embodiment will be described in more detail with reference to the accompanying drawings and embodiments.
步骤S10,响应于预设控制操作,为新增的目标服务配置对应的功能点开关,并建立所述目标服务与对应的功能点开关之间的映射关系。Step S10, in response to the preset control operation, configure corresponding function point switches for the newly added target service, and establish a mapping relationship between the target service and the corresponding function point switch.
本示例实施方式中,上述的目标服务可以是能够实现指定功能的功能点。用户可以通过更新系统、安装插件或者加载应用程序安装包等方式在智能终端设备增加一定的功能。举例而言,上述的目标服务可以是一种系统新增的功能点,例如:紧急求助功能,可以自动拨打报警电话;搜索功能,可以对本地内存进行全局搜索;日志收集功能,可以自动收集蓝牙、WiFi的数据包;等等。In this example implementation, the above-mentioned target service may be a function point that can implement specified functions. Users can add certain functions to smart terminal devices by updating the system, installing plug-ins, or loading application installation packages. For example, the above-mentioned target service can be a new function point in the system, such as: emergency help function, which can automatically call the police; search function, which can conduct global search of local memory; log collection function, which can automatically collect Bluetooth data , WiFi data packets; etc.
对于各功能点,可以分别为其配置对应的功能点开关,建立功能点与对应的功能点开关之间的映射关系,通过控制该功能点开关,可以关闭或者打开该功能点。并且,各新增功能点可以配置有唯一识别名称,通过该唯一识别名称可以查询到对应的功能点开关。对于新增的功能点来说,其可以有对应的可执行的目标方法,以及所述目标方法对应的调用路径之间。可以建立功能点名称与目标方法的名称和调用路径之间的映射关系,并将所述映射关系保存在预设的关系表中。在查询时,可以根据调用栈中的方法名称,利用关系表中的映射关系查询到对应的功能点名称。For each function point, the corresponding function point switch can be configured respectively, and a mapping relationship between the function point and the corresponding function point switch can be established. By controlling the function point switch, the function point can be turned off or on. Moreover, each new function point can be configured with a unique identification name, and the corresponding function point switch can be queried through the unique identification name. For the newly added function point, it can have a corresponding executable target method and a calling path corresponding to the target method. A mapping relationship between the function point name, the name of the target method and the calling path can be established, and the mapping relationship can be saved in a preset relationship table. When querying, you can use the mapping relationship in the relationship table to query the corresponding function point name based on the method name in the call stack.
此外,上述的功能点还可以包括若干个子功能点。具体来说,对于系统新增的一个feature(特性),其可以包含多个小的子功能点,各子功能点之间可以相互独立,分别实现不同的功能,并具有对应的可执行的子目标方法、调用路径和唯一的识别名称。各子功能点同样具有对应的子功能点开关。通过该子功能点开关可以关闭或打开对应的子功能点,关闭一个子功能点并不会影响其他子功能点。In addition, the above-mentioned function points may also include several sub-function points. Specifically, for a feature newly added to the system, it can contain multiple small sub-function points. Each sub-function point can be independent of each other, implement different functions respectively, and have corresponding executable sub-functions. The target method, calling path, and unique identifying name. Each sub-function point also has a corresponding sub-function point switch. The corresponding sub-function point can be closed or opened through the sub-function point switch. Closing one sub-function point will not affect other sub-function points.
另外,还可以将该功能点或子功能点在设备列表中进行展示,同时展示对应的功能点开关,使用户可以手动控制是否启用开功能。In addition, the function point or sub-function point can also be displayed in the device list, and the corresponding function point switch is displayed at the same time, so that the user can manually control whether to enable the function.
步骤S11,获取异常数据,根据所述异常数据查询调用栈。Step S11: Obtain exception data and query the call stack based on the exception data.
本示例实施方式中,对于终端设备来说,参考图2所示,可以对系统异常进行实时的监听,具体来说,上述的步骤S11可以包括:In this example implementation, for the terminal device, as shown in Figure 2, system abnormalities can be monitored in real time. Specifically, the above step S11 can include:
步骤S111,监听系统异常数据;Step S111, monitor system abnormal data;
步骤S112,在监听存在系统异常数据时,触发dump服务以打印调用栈,并对所述调用栈中的方法数据进行查询。Step S112: When monitoring the existence of system exception data, trigger the dump service to print the call stack, and query the method data in the call stack.
举例来说,可以通过系统自带的异常检测模块对系统异常进行实时监听;也可以通过日志数据判断是否存在系统异常。上述的系统异常可以是:卡顿、crash或系统重启等情况。For example, you can use the system's own anomaly detection module to monitor system anomalies in real time; you can also use log data to determine whether there are system anomalies. The above-mentioned system abnormalities can be: freeze, crash or system restart, etc.
在检测到系统存在异常时,便可以利用dump服务对调用栈进行打印,可以利用功能点对应的目标方法的名称进行查询。When an exception is detected in the system, the dump service can be used to print the call stack, and the name of the target method corresponding to the function point can be used to query.
步骤S12,在所述调用栈包括目标服务对应的目标方法信息时,根据所述目标方法信息获取所述目标服务对应的目标服务标识。Step S12: When the call stack includes target method information corresponding to the target service, obtain the target service identifier corresponding to the target service according to the target method information.
本示例实施方式中,具体来说,调用栈中可以包括在系统异常发生时,具体使用了哪些函数、执行了哪些进程。在获取调用栈的具体数据后,便可以利用方法名称查询调用栈中是否包含目标方法,例如,将目标方法名称与调用栈中的方法称进行匹配。在查询包含目标方法时,则可以根据目标方法的名称查询上述预设的关系表,从而进一步确定异常发生时涉及到的目标服务对应的功能点。In this example implementation, specifically, the call stack may include which functions are used and which processes are executed when a system exception occurs. After obtaining the specific data of the call stack, you can use the method name to query whether the call stack contains the target method. For example, match the target method name with the method name in the call stack. When the query includes a target method, the above-mentioned preset relationship table can be queried according to the name of the target method, thereby further determining the function point corresponding to the target service involved when the exception occurs.
步骤S13,根据所述目标服务标识获取对应的所述目标服务的功能点开关,并关闭所述目标服务的功能点开关。Step S13: Obtain the corresponding function point switch of the target service according to the target service identifier, and turn off the function point switch of the target service.
本示例实施方式中,在确定系统异常发生时对应的进程包含目标服务对应的功能点时。还可以对该功能点的属性进行确认,在该功能点为非核心功能点,便根据映射关系获取对应的功能点开关的路径,关闭功能点对应的功能点开关,从而将该目标服务关闭。从而实现在系统出现严重异常问题时,将非核心功能自动关闭,防止反复crash,从而提升用户体验。有效的避免终端设备的使用过程中由该功能点的运行导致再次发生异常,且关闭该功能点不会影响系统的正常运行。In this example implementation, when it is determined that the corresponding process when the system exception occurs contains the function point corresponding to the target service. You can also confirm the attributes of the function point. If the function point is a non-core function point, obtain the path of the corresponding function point switch according to the mapping relationship, and turn off the function point switch corresponding to the function point, thereby turning off the target service. In this way, when a serious abnormality occurs in the system, non-core functions will be automatically shut down to prevent repeated crashes, thus improving the user experience. It effectively avoids abnormality caused by the operation of this function point during the use of terminal equipment, and turning off this function point will not affect the normal operation of the system.
基于上述内容,本示例实施方式中,在功能点包括多个子功能点时,当出现异常时,追踪调用栈发现异常点属于默认具体的子功能点,则只将该子功能点关闭。或者,也可以根据系统异常期间的执行的具体进程或调用的函数确定关闭一个或多个子功能点,而不必关闭整个功能点。从而实现对用户体验的最小影响,实现更加精细化的管控。Based on the above content, in this example implementation, when a function point includes multiple sub-function points, when an exception occurs and the call stack is traced and it is found that the exception point belongs to the default specific sub-function point, only the sub-function point will be closed. Alternatively, one or more sub-function points can be closed based on the specific process executed or the function called during the system exception, without having to close the entire function point. In this way, the minimal impact on the user experience can be achieved and more refined management and control can be achieved.
本公开实施例所提供的方法,通过预先为功能点配置对应的功能点开关,并建立功能点与对应的方法名称及方法路径之间的映射关系,并进行存储,方便后续的查询和管理。当用户实际使用中出现严重异常问题时,通过调用栈等追踪到对应的所属异常功能点时,便可以通过功能点开关将其动态关闭,恢复成原生系统的默认状态。直到终端设备升级系统修复该异常后再打开,防止用户在同一个应用场景下出现反复crash等问题。从而提升用户体验。The method provided by the embodiment of the present disclosure pre-configures the corresponding function point switch for the function point, establishes a mapping relationship between the function point and the corresponding method name and method path, and stores it to facilitate subsequent query and management. When a serious abnormality occurs in actual use and the corresponding abnormal function point is traced through the call stack, the function point switch can be used to dynamically turn it off and restore it to the default state of the native system. Wait until the terminal device upgrades the system to fix the exception before opening it to prevent users from having problems such as repeated crashes in the same application scenario. Thereby improving user experience.
需要注意的是,上述附图仅是根据本发明示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。It should be noted that the above-mentioned drawings are only schematic illustrations of processes included in methods according to exemplary embodiments of the present invention, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal sequence of these processes. In addition, it is also easy to understand that these processes may be executed synchronously or asynchronously in multiple modules, for example.
进一步的,参考图3所示,本示例的实施方式中还提供一种异常服务处理装置30,包括:异常数据识别模块301、目标服务识别模块302和开关控制模块303。其中:Further, as shown in FIG. 3 , the embodiment of this example also provides an abnormal service processing device 30 , including: an abnormal data identification module 301 , a target service identification module 302 and a switch control module 303 . in:
所述异常数据识别模块301可以用于获取异常数据,根据所述异常数据查询调用栈。The abnormal data identification module 301 can be used to obtain abnormal data and query the call stack according to the abnormal data.
所述目标服务识别模块302可以用于在所述调用栈包括目标服务对应的目标方法信息时,根据所述目标方法信息获取所述目标服务对应的目标服务标识。The target service identification module 302 may be configured to obtain the target service identifier corresponding to the target service according to the target method information when the call stack includes target method information corresponding to the target service.
所述开关控制模块303可以用于根据所述目标服务标识获取对应的所述目标服务的功能点开关,并关闭所述目标服务的功能点开关。The switch control module 303 may be configured to obtain the corresponding function point switch of the target service according to the target service identifier, and turn off the function point switch of the target service.
在本公开的一种示例中,所述异常数据识别模块301可以包括:异常监听模块和调用栈查询模块(图中未示出)。其中,In an example of the present disclosure, the abnormal data identification module 301 may include: an exception listening module and a call stack query module (not shown in the figure). in,
所述异常监听模块可以用于监听系统异常数据。The exception monitoring module can be used to monitor system abnormal data.
所述调用栈查询模块可以用于在监听存在系统异常数据时,触发dump服务以打印调用栈,并对所述调用栈中的方法数据进行查询。The call stack query module can be used to trigger the dump service to print the call stack when monitoring system exception data, and query the method data in the call stack.
在本公开的一种示例中,所述目标服务为非核心服务。In an example of the present disclosure, the target service is a non-core service.
在本公开的一种示例中,所述装置还可以包括:映射关系建立模块(图中未示出)。In an example of the present disclosure, the device may further include: a mapping relationship establishment module (not shown in the figure).
所述映射关系建立模块可以用于响应于预设控制操作,为新增的目标服务配置对应的功能点开关,并建立所述目标服务与对应的功能点开关之间的映射关系。The mapping relationship establishment module may be configured to configure corresponding function point switches for the newly added target service in response to a preset control operation, and establish a mapping relationship between the target service and the corresponding function point switch.
在本公开的一种示例中,所述映射关系建立模块还可以包括:映射关系存储模块(图中未示出)。In an example of the present disclosure, the mapping relationship establishment module may further include: a mapping relationship storage module (not shown in the figure).
所述映射关系存储模块可以用于建立所述目标服务与对应的目标方法,以及所述目标方法对应的调用路径之间的映射关系,并将所述映射关系保存在预设的关系表中。The mapping relationship storage module may be used to establish a mapping relationship between the target service, the corresponding target method, and the calling path corresponding to the target method, and save the mapping relationship in a preset relationship table.
在本公开的一种示例中,所述目标服务包括若干目标子服务;所述目标子服务配置有对应的子功能点开关。In an example of the present disclosure, the target service includes several target sub-services; the target sub-services are configured with corresponding sub-function point switches.
在本公开的一种示例中,各所述目标子服务之间相互独立。In an example of the present disclosure, each of the target sub-services is independent of each other.
上述的异常服务处理装置中各模块的具体细节已经在对应的异常服务处理方法中进行了详细的描述,因此此处不再赘述。The specific details of each module in the above-mentioned exception service processing device have been described in detail in the corresponding exception service processing method, so they will not be described again here.
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into being embodied by multiple modules or units.
图4示出了适于用来实现本发明实施例的无线通信设备的计算机系统的结构示意图。FIG. 4 shows a schematic structural diagram of a computer system suitable for implementing a wireless communication device according to an embodiment of the present invention.
需要说明的是,图4示出的电子设备的计算机系统400仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。It should be noted that the computer system 400 of the electronic device shown in FIG. 4 is only an example, and should not impose any restrictions on the functions and scope of use of the embodiments of the present invention.
如图4所示,计算机系统400包括中央处理单元(Central Processing Unit,CPU)401,其可以根据存储在只读存储器(Read-Only Memory,ROM)402中的程序或者从存储部分408加载到随机访问存储器(Random Access Memory,RAM)403中的程序而执行各种适当的动作和处理。在RAM 403中,还存储有系统操作所需的各种程序和数据。CPU 401、ROM402以及RAM 403通过总线404彼此相连。输入/输出(Input/Output,I/O)接口405也连接至总线404。As shown in Figure 4, the computer system 400 includes a central processing unit (Central Processing Unit, CPU) 401, which can be loaded into a random computer according to a program stored in a read-only memory (Read-Only Memory, ROM) 402 or from a storage part 408. The program in the memory (Random Access Memory, RAM) 403 is accessed to perform various appropriate actions and processes. In RAM 403, various programs and data required for system operation are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other through a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
以下部件连接至I/O接口405:包括键盘、鼠标等的输入部分406;包括诸如阴极射线管(Cathode Ray Tube,CRT)、液晶显示器(Liquid Crystal Display,LCD)等以及扬声器等的输出部分407;包括硬盘等的存储部分408;以及包括诸如LAN(Local Area Network,局域网)卡、调制解调器等的网络接口卡的通信部分409。通信部分409经由诸如因特网的网络执行通信处理。驱动器410也根据需要连接至I/O接口405。可拆卸介质411,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器410上,以便于从其上读出的计算机程序根据需要被安装入存储部分408。The following components are connected to the I/O interface 405: an input part 406 including a keyboard, a mouse, etc.; an output part 407 including a cathode ray tube (Cathode Ray Tube, CRT), a liquid crystal display (LCD), etc., and a speaker, etc. ; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. Driver 410 is also connected to I/O interface 405 as needed. Removable media 411, such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, etc., are installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage portion 408 as needed.
特别地,根据本发明的实施例,下文参考流程图描述的过程可以被实现为计算机软件程序。例如,本发明的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分409从网络上被下载和安装,和/或从可拆卸介质411被安装。在该计算机程序被中央处理单元(CPU)401执行时,执行本申请的系统中限定的各种功能。In particular, according to embodiments of the present invention, the processes described below with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present invention include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such embodiments, the computer program may be downloaded and installed from the network via communication portion 409 and/or installed from removable media 411 . When the computer program is executed by the central processing unit (CPU) 401, various functions defined in the system of the present application are executed.
需要说明的是,本发明实施例所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、闪存、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本发明中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本发明中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the embodiment of the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Erasable Programmable Read Only Memory (EPROM), flash memory, optical fiber, portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage device, magnetic storage device, or any of the above suitable The combination. In the present invention, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, in which computer-readable program code is carried. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device . Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved. It will also be noted that each block in the block diagram or flowchart illustration, and combinations of blocks in the block diagram or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or may be implemented by special purpose hardware-based systems that perform the specified functions or operations. Achieved by a combination of specialized hardware and computer instructions.
描述于本发明实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments of the present invention can be implemented in software or hardware, and the described units can also be provided in the processor. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances.
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该电子设备执行时,使得该电子设备实现如下述实施例中所述的方法。例如,所述的电子设备可以实现如图1所示的各个步骤。As another aspect, this application also provides a computer-readable medium. The computer-readable medium may be included in the electronic device described in the above embodiments; it may also exist independently without being assembled into the electronic device. middle. The computer-readable medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiments. For example, the electronic device can implement various steps as shown in Figure 1.
此外,上述附图仅是根据本发明示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。Furthermore, the above-mentioned drawings are only schematic illustrations of processes included in methods according to exemplary embodiments of the present invention, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal sequence of these processes. In addition, it is also easy to understand that these processes may be executed synchronously or asynchronously in multiple modules, for example.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其他实施例。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure that follow the general principles of the disclosure and include common knowledge or customary technical means in the technical field that are not disclosed in the disclosure. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910677840.4A CN110457154B (en) | 2019-07-25 | 2019-07-25 | Abnormal service processing method and device, storage medium and communication terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910677840.4A CN110457154B (en) | 2019-07-25 | 2019-07-25 | Abnormal service processing method and device, storage medium and communication terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110457154A CN110457154A (en) | 2019-11-15 |
| CN110457154B true CN110457154B (en) | 2023-12-22 |
Family
ID=68483447
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910677840.4A Active CN110457154B (en) | 2019-07-25 | 2019-07-25 | Abnormal service processing method and device, storage medium and communication terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110457154B (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110866514A (en) * | 2019-11-22 | 2020-03-06 | 安徽小眯当家信息技术有限公司 | Abnormal state identification method, device, client, server and computer readable medium |
| CN111078342A (en) * | 2019-12-06 | 2020-04-28 | 拉扎斯网络科技(上海)有限公司 | Information display method and device, electronic equipment and computer readable storage medium |
| CN111178888A (en) * | 2019-12-30 | 2020-05-19 | 中国银行股份有限公司 | A payment service management method and system |
| CN113568773B (en) * | 2021-07-26 | 2024-04-19 | 北京达佳互联信息技术有限公司 | Abnormal service classification method, device, equipment and storage medium |
| CN116016649A (en) * | 2022-12-28 | 2023-04-25 | 桂林移远通信技术有限公司 | Data processing method, device, electronic equipment and storage medium |
| CN117112292B (en) * | 2023-01-20 | 2024-05-14 | 荣耀终端有限公司 | Abnormal restart processing method and device |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004287618A (en) * | 2003-03-19 | 2004-10-14 | Ntt Data Corp | Starting control method of operating system, program making computer execute its method, and starting control device of operating system |
| EP2189906A1 (en) * | 2008-11-20 | 2010-05-26 | Huawei Device Co., Ltd. | Method and apparatus for abnormality recovering of data card, and data card |
| CN102866930A (en) * | 2012-08-22 | 2013-01-09 | 北京奇虎科技有限公司 | Blue screen repairing method, device and system |
| CN106095621A (en) * | 2016-06-12 | 2016-11-09 | Tcl集团股份有限公司 | The restoration methods of Launcher operation exception and system in a kind of Android system |
| WO2018107891A1 (en) * | 2016-12-13 | 2018-06-21 | 广东欧珀移动通信有限公司 | Network-communication function exception processing method, application processor, and computer storage medium |
| US10042695B1 (en) * | 2015-09-28 | 2018-08-07 | Amazon Technologies, Inc. | Program exception recovery |
| WO2018227822A1 (en) * | 2017-06-12 | 2018-12-20 | 平安科技(深圳)有限公司 | Acquisition method and apparatus for abnormal stack information, and computer readable storage medium |
| CN109710324A (en) * | 2018-12-29 | 2019-05-03 | 360企业安全技术(珠海)有限公司 | Processing method and processing device that blue screen is shown, storage medium, terminal |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050015579A1 (en) * | 2003-07-15 | 2005-01-20 | Rajeev Grover | Handling exceptions |
| CN100492301C (en) * | 2005-12-23 | 2009-05-27 | 国际商业机器公司 | Method and system for avoiding software conflicts |
| US20090013208A1 (en) * | 2008-03-31 | 2009-01-08 | Dimuzio Thomas M | Real time automated exception notification and reporting solution |
-
2019
- 2019-07-25 CN CN201910677840.4A patent/CN110457154B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004287618A (en) * | 2003-03-19 | 2004-10-14 | Ntt Data Corp | Starting control method of operating system, program making computer execute its method, and starting control device of operating system |
| EP2189906A1 (en) * | 2008-11-20 | 2010-05-26 | Huawei Device Co., Ltd. | Method and apparatus for abnormality recovering of data card, and data card |
| CN102866930A (en) * | 2012-08-22 | 2013-01-09 | 北京奇虎科技有限公司 | Blue screen repairing method, device and system |
| US10042695B1 (en) * | 2015-09-28 | 2018-08-07 | Amazon Technologies, Inc. | Program exception recovery |
| CN106095621A (en) * | 2016-06-12 | 2016-11-09 | Tcl集团股份有限公司 | The restoration methods of Launcher operation exception and system in a kind of Android system |
| WO2018107891A1 (en) * | 2016-12-13 | 2018-06-21 | 广东欧珀移动通信有限公司 | Network-communication function exception processing method, application processor, and computer storage medium |
| WO2018227822A1 (en) * | 2017-06-12 | 2018-12-20 | 平安科技(深圳)有限公司 | Acquisition method and apparatus for abnormal stack information, and computer readable storage medium |
| CN109710324A (en) * | 2018-12-29 | 2019-05-03 | 360企业安全技术(珠海)有限公司 | Processing method and processing device that blue screen is shown, storage medium, terminal |
Non-Patent Citations (2)
| Title |
|---|
| Android系统服务漏洞挖掘技术研究;邹圳;周安民;;现代计算机(第13期);全文 * |
| Pre-stack basis pursuit seismic inversion for brittleness of shale;Xing-Yao Yin;Xiao-Jing Liu;Zhao-Yun Zong;;Petroleum Science(第04期);全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110457154A (en) | 2019-11-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110457154B (en) | Abnormal service processing method and device, storage medium and communication terminal | |
| US8788634B2 (en) | Portable device upgrade via a content transfer protocol | |
| CN110262810B (en) | Method and device for installing application | |
| CN109791497B (en) | Method, device and terminal for executing hot patch | |
| CN109308241A (en) | Method, device, terminal device and storage medium for monitoring application startup process | |
| CN112612493B (en) | Software upgrade method, device, equipment and storage medium for software set | |
| CN112579369B (en) | Multi-thread flashing system, method, device, equipment and storage medium | |
| CN107861738A (en) | Application exception handling method, device, storage medium and terminal equipment | |
| CN106713608B (en) | Application function state modification method and device and terminal | |
| US20250274384A1 (en) | Method for quality of service processing of network data packet, and electronic device and non-transitory computer-readable medium | |
| CN104346195A (en) | Software installing method and system | |
| WO2024088053A1 (en) | Code debugging method, electronic device, and computer readable storage medium | |
| WO2025066588A1 (en) | Hot upgrade method for kernel subsystem, and device and storage medium | |
| CN109388435A (en) | Realize app while the repeatedly method and apparatus of opening operation | |
| CN108365982A (en) | Unit exception adjustment method, device, equipment and storage medium | |
| CN115277398A (en) | Cluster network configuration method and device | |
| CN109145598B (en) | Virus detection method and device for script file, terminal and storage medium | |
| CN111382057B (en) | Test case generation method, test method and device, server and storage medium | |
| CN116225576B (en) | Application program data environment switching method and device, electronic equipment and medium | |
| WO2017096889A1 (en) | Method and device for upgrading and downgrading system | |
| CN109032752B (en) | Operation revocation based on cloud platform | |
| JP4438884B2 (en) | Virtual computer device, virtual computer system, virtual computer program, and control method | |
| CN110263004A (en) | Logging method, apparatus, electronic device and storage medium | |
| US8671215B2 (en) | Portable communications framework | |
| CN111382056B (en) | Service testing method and device, server and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |