When first open the app and switch to landscape mode, and switch back in portrait mode. The app will crash

in #utopian-io7 years ago

Project Information



Expected behavior

Supposedly, when the user first opens the app and switches to landscape mode during the process of loading the data and then switching back in portrait mode, the app does not crash.

Actual behavior

When the user first opens the app and switches to landscape mode during the process of loading the data and then switches back in portrait mode, the app suddenly crashes and exits without a command.

How to reproduce

  • Install and open the app
  • Next, run aplkkasi and switch to landscape mode during the data loading process
  • Then switch back in portrait mode then the app will crash.


  • Device: Xiaomi Redmi 4X
  • Operating system: Marshmallow, 6.0.1 mmb29m (CPU: Octa-core Max 1.9 GHz, RAM: 2 GB)
  • Application Version: 1.4.4

Recording Of The Bug

Proof of Work Done

https://github.com/apadet90

Logcat

06-01 03:42:58.001 23312 23312 E AndroidRuntime: Process: com.fekracomputers.islamiclibrary, PID: 23312
06-01 03:42:58.001 23312 23312 E AndroidRuntime: com.fekracomputers.islamiclibrary.download.reciver.FileDownloadException: msg:upgrading database failed, bookId:-10,filePath:/storage/emulated/0/IslamicLibrary/shamela_books/BooksInformationDB.sqlite,downloadManagerStatus:0
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at com.fekracomputers.islamiclibrary.databases.BooksInformationDbHelper.onUpgrade(BooksInformationDbHelper.java:1241)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at com.fekracomputers.islamiclibrary.databases.BooksInformationDbHelper.onCreate(BooksInformationDbHelper.java:1220)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:251)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:187)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at com.fekracomputers.islamiclibrary.databases.BooksInformationDbHelper.getCategoriesFiltered(BooksInformationDbHelper.java:621)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at com.fekracomputers.islamiclibrary.browsing.fragment.BookCategoryFragment.onCreate(BookCategoryFragment.java:93)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.v4.app.Fragment.performCreate(Fragment.java:2328)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1379)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.v4.app.FragmentTransition.addToFirstInLastOut(FragmentTransition.java:1188)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.v4.app.FragmentTransition.calculateFragments(FragmentTransition.java:1071)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.v4.app.FragmentTransition.startTransitions(FragmentTransition.java:115)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2379)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2337)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.v4.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:2214)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:649)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:145)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.v4.view.ViewPager.populate(ViewPager.java:1238)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.v4.view.ViewPager.populate(ViewPager.java:1086)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1616)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.view.View.measure(View.java:18811)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5952)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1465)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.widget.LinearLayout.measureVertical(LinearLayout.java:748)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.widget.LinearLayout.onMeasure(LinearLayout.java:630)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.view.View.measure(View.java:18811)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5952)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.view.View.measure(View.java:18811)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5952)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.design.widget.CoordinatorLayout.onMeasureChild(CoordinatorLayout.java:739)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.design.widget.HeaderScrollingViewBehavior.onMeasureChild(HeaderScrollingViewBehavior.java:91)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onMeasureChild(AppBarLayout.java:1361)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.design.widget.CoordinatorLayout.onMeasure(CoordinatorLayout.java:809)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.view.View.measure(View.java:18811)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:716)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:462)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.view.View.measure(View.java:18811)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:1059)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.view.View.measure(View.java:18811)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5952)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:141)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.view.View.measure(View.java:18811)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5952)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1465)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.widget.LinearLayout.measureVertical(LinearLayout.java:748)
06-01 03:42:58.001 23312 23312 E AndroidRuntime:    at android.widget.LinearLayout.onMeasure(LinearLayout.java:
06-01 03:42:58.009 23312 23312 E MQSEventManagerDelegate: failed to get MQSService.```
Sort:  

Hi @apedet90, thanks for making this submission.

Unfortunately, this report is similar to previously reported issues, that can be found here and also here. All focusing on the rotation aspects of the application. It is safe to say that rotating the device screen during any process leads to a crash. One contribution should be enough to notify the PO of this landscape bug.

I apologise for any inconvenience as a result.

I look forward to your future submissions.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Coin Marketplace

STEEM 0.27
TRX 0.21
JST 0.038
BTC 97223.78
ETH 3676.06
SBD 3.81