lichess-org / lichobile

lichess.org mobile application
https://lichess.org/mobile
GNU General Public License v3.0
2.03k stars 318 forks source link

App crashes on show threat when in check #2210

Open s1ryx opened 2 years ago

s1ryx commented 2 years ago

The App is crashing when trying to show threat on analysis of an offline game

To Reproduce Steps to reproduce the behavior:

Open sidebar Click on 'Computer' in the play offline section. Click on 'analysis' Replicate position 2kr1b1r/pp2qppp/2n5/2P2B2/2P5/BQ3P2/P2P1n1P/RNK3R1 b - - 2 15 In Analysis with local evaluation turned on, tap the leftmost menu and select show threat, then it crashes.

Expected behavior Show the threat correctly instead of crashing

Screenshots Screenshot_20221005-215828

Smartphone (please complete the following information):

Device: Google Pixel 6 OS: GrapheneOS TP1A.220905.004.A1.2022092800 App from Playstore Version: latest Additional context

On Android 13

I just castled and the lv 1 Stockfish went Bf5+, when I go into Analysis and press the show threat button it crashes.

Keeps happening after the app is restarted too

s1ryx commented 2 years ago

This doesnt seem to be related to the specific position, but rather happens when a check is delivered and "show threat" is used to analyze this check (or supposedly showing the check that just happened). It does not happen on checkmate; but for example a position like 1.f3 e6 2. e3 Qh4+ will have the same effect ( rnb1kbnr/pppp1ppp/4p3/8/7q/4PP2/PPPP2PP/RNBQKBNR w KQkq - 1 3). I just checked if the problem is still there, GrapheneOS updated to TP1A.221005.002.2022101500; latest version from playstore (updated 11th of August)