Project

General

Profile

Bug #642

View Source crashes on production builds

Added by Soren Stoutner 9 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Next Release
Start date:
11/19/2020
Due date:
% Done:

0%

Estimated time:

Description

This might fix a crash on Samsung devices. They crash consistently on opening View Source, which might be caused because of some bug in their modifications to Android that doesn't like the ViewModel being in Java and the ViewModelFactory being in Kotlin.

History

#1

Updated by Soren Stoutner 8 months ago

I have been informed that at least one old Motorola phone also has problems with this.

#2

Updated by Soren Stoutner 8 months ago

  • Subject changed from Convert the ViewWebSource ViewModel to Kotlin to View Source crashes on production builds

So, it turns out that this crashes on release builds on all devices. Most of my test devices run debug builds, which is why I wasn't able to replicate the issue.

#3

Updated by Soren Stoutner 8 months ago

  • Tracker changed from Feature to Bug
  • Status changed from New to Closed

Fixed in commit https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=606b5659cfd41c546fcbf248dcde72fd3c60d1c3.

The problem ended up being caused by ProGuard stripping out the ViewModel method during minification. This was fixed by adding a custom ProGuard rule.

Also available in: Atom PDF