An interesting Android software exception statistics

Source: Internet
Author: User
Tags parse error

Statistics Background:

To improve the quality of the code, the software development process of the bug presented on the personal site, the end of the year, to do a statistic.

Statistical projects: one on-line project, 3 projects in development, 1 private projects

Project Developer: Author, 5 people

Project topic: E-commerce, System application

Information collection Date: 2014-08-13 20:37:54 (catch first exception) to 2015-01-10 00:19:36 (last exception commit time at statistics)

Number of exception messages: 3,192


Exception information collected by the database:


Exception Information Statistics sql:

Select (select count (Id) from T_apperror WHERE the Context like '%exception: Cannotperformthisactionafteronsaveinstancestate% ')/(SELECT count (ID) from T_apperror) as ' framage hidden failure '/** 0.0047 **/ Select (select count (id) from T_apperror WHERE Context like '%exception:syntaxerror% ')/(select COUNT (id) from T_apperror) As ' SyntaxError '/** 0.0119 **/select (SELECT count (Id) from T_apperror WHERE Context like '%stringcannotbecastto% ')/(Sele CT count (id) from T_apperror) as ' String transformation error (most steering JSON) '/** 0.0103 **/select (SELECT count (id) from T_apperror WHERE Conte XT like ' exception:invalidint% ')/(select COUNT (id) from t_apperror) as ' JSON parse error '/** 0.0229 **/select (select count (ID) Fr Om t_apperror WHERE Context like '%exception:null_% ')/(select COUNT (id) from T_apperror) + (select COUNT (id) from T_apper Ror WHERE Context like '%exception:java.lang.nullpointer% ')/(select COUNT (ID) from t_apperror) as "null pointer"/** 0.3932 **/sele CT (SELECT count (ID) from T_apperror WHERE Context like ' Exception:fragmentalreadyadded% ')/(select COUNT (id) from t_apperror) as ' exception:fragmentalreadyadded '/** 0.0063 **/select (select count (ID) Fro M t_apperror WHERE Context like ' exception:unabletoaddwindow% ')/(SELECT count (ID) from T_apperror) as ' Exception: Unabletoaddwindow '/** 0.1263 **/select (SELECT count (ID) from T_apperror WHERE Context like ' Exception: unabletodestroyactivity% ')/(select COUNT (ID) from T_apperror) as ' unabletodestroyactivity '/** 0.0276 **/select (select Count (id) from T_apperror WHERE Context is ' exception:binaryxmlfile% ')/(SELECT count (id) from t_apperror) as ' XML layout error '/  * * 0.0053 **/select (SELECT count (id) from T_apperror WHERE Context like ' exception:invalidindex% ')/(select COUNT (ID) from T_apperror) as "out of index"/** 0.0103 **/

Statistical results:


Statistical conclusions:

1. Null pointer errors are the most common.

2. The compiler will be silly, binaryxml and syntaxerror errors will appear.

3. The fragment error on the coding is more, it may be that the coder does not understand the fragment composition.





The above statistics are not very comprehensive, for reference only.


An interesting Android software exception statistics

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.