I have LineageOS 14.1 (Android 7.1.2) on Samsung Galaxy S5 Docomo (kltedcm) (from December 2017). To my knowledge, this is the newest and only available version for this device; it is an unofficial version. kernel is 4.4.113-lineageos-g18fa242.
dialer2 is version 2.90, from March 2012.
OpenGapps is version 7.1 pico (from July 2018?).
I cannot seem to use any phone apps for more than a few days, then they stop working. I tried to use:
In case of "Phone" clearing data (via Settings -> Apps -> Storage) resolves the problem temporarily, in case of dialer2 it does not.
I am afraid the error message is not very descriptive:
Dialer2 keeps stopping
Phone keeps stopping
In case of dialer2 the error message is visible long enough to comfortably read it, in case of "Phone", the window vanishes immediately (also in the spirit of Android's general philosophy of making everything intransparent).
Both give the option to either close the app (open app again when the error message appears the first time) or to mute until the device restarts.
Attempts to solve either temporarily or permanently
Successful temporary solutions
Unsuccessful temporary solutions
Since I have no idea what is wrong in the first place, there is no way I can even attempt to find a permanent solution. All I got is these temporary solutions.
The problem seems to be specific to my non-standard setup. I could not find a lot around the internet about similar problems (suggested solution with standard Android is 1. update (which I cannot do) and 2. start in safe mode (which does not solve the problem for me. Also I do not understand how this should even affect the problem)). No one described anything like what I am observing (phone apps failing one by one after a few days each).
Possible connection to contacts
I have a hunch that this may be connected to contacts. This is suggested in [this answer to a similar question] (specifically the answer states that dialer apps may crash if permissions for contacts databases are wrong or if the databases are inconsistent. Not that it is logical that the apps might crash without descriptive error message if they do not like the permissions, but I guess this also follows the spirit in which Android works.
I am using MyLocalAccount to store contacts locally and not syncing them online. (I am not happy with Google knowing who I talk to and selling this to every shit who is willing to pay 25 cents. I realize that Google will still be able to gather most of this information in other ways.) It is possible that this interferes with the dialers; I am uncertain why other users of MyLocalAccount would not have experienced the same problems.
What could be the cause of this?
How do I resolve this permanently? Clearing data every few days kind of works but feels like a strange workaround and there is no telling how long this will work for "Phone" (note that it does not work for dialer2).