Comments (8)
Ah, so it only crashes once you enter the analysis screen, got it! Then I can reproduce as well
from mobile.
Tried reproducing on my Android phone, but even adding a pawn to every single square did not crash. Is this 100% reproducible for you?
from mobile.
Tried reproducing on my Android phone, but even adding a pawn to every single square did not crash. Is this 100% reproducible for you?
Yes let me record this
from mobile.
Tried reproducing on my Android phone, but even adding a pawn to every single square did not crash. Is this 100% reproducible for you?
from mobile.
Most minimal reproduction steps:
- Open Board Editor
- Add an additional white pawn to e4 (or any other square apparently)
- Open Analysis board
It looks like stockfish crashes (see stacktrace below). Interestingly, the same reproduction steps also crash the old lichess app. Not sure if this is actually a stockfish issue, or if we're giving stockfish wrong/unexpected inputs. @veloce any ideas?
I/flutter ( 3443): Engine state: EngineState.loading
I/flutter ( 3443): Engine state: EngineState.computing
F/libc ( 3443): Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x748d40340c00 in tid 3813 (DartWorker), pid 3443 (.mobileV2.debug)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone64_x86_64/emu64xa:15/AP31.240617.003/12088229:user/release-keys'
Revision: '0'
ABI: 'x86_64'
Timestamp: 2024-09-10 08:32:58.701874929+0200
Process uptime: 17s
Cmdline: org.lichess.mobileV2.debug
pid: 3443, tid: 3813, name: DartWorker >>> org.lichess.mobileV2.debug <<<
uid: 10201
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x0000748d40340c00
rax 0000748d15200000 rbx 0000748d148308c0 rcx 00000000158a0000 rdx 0000000000006fcc
r8 0000748d1483a300 r9 0000748d15200c00 r10 00000000ffffffb3 r11 0000748fe72485f8
r12 0000748d213eb0c8 r13 0000748d148308c0 r14 0000748d148308c0 r15 0000748d148308c0
rdi 0000748d14828350 rsi 00000000ffffffff
rbp 0000748d148283f0 rsp 0000748d14828310 rip 0000748d1edcede9
11 total frames
backtrace:
#00 pc 0000000002751de9 /data/app/~~LucKNvJJBZyjEEeoNv9fFA==/org.lichess.mobileV2.debug-5P87t8riTcwJ2OsXXwl_Wg==/base.apk!libstockfish.so (offset 0x7d66000) (void Stockfish::Eval::NNUE::FeatureTransformer::update_accumulator_refresh<(Stockfish::Color)0>(Stockfish::Position const&) const+329) (BuildId: ef8ea4ea7db75e97494535e846c46975098d6654)
#01 pc 0000000002752a09 /data/app/~~LucKNvJJBZyjEEeoNv9fFA==/org.lichess.mobileV2.debug-5P87t8riTcwJ2OsXXwl_Wg==/base.apk!libstockfish.so (offset 0x7d66000) (void Stockfish::Eval::NNUE::FeatureTransformer::update_accumulator<(Stockfish::Color)0>(Stockfish::Position const&) const+249) (BuildId: ef8ea4ea7db75e97494535e846c46975098d6654)
#02 pc 0000000002750c17 /data/app/~~LucKNvJJBZyjEEeoNv9fFA==/org.lichess.mobileV2.debug-5P87t8riTcwJ2OsXXwl_Wg==/base.apk!libstockfish.so (offset 0x7d66000) (Stockfish::Eval::NNUE::FeatureTransformer::transform(Stockfish::Position const&, unsigned char*, int) const+39) (BuildId: ef8ea4ea7db75e97494535e846c46975098d6654)
#03 pc 000000000274f189 /data/app/~~LucKNvJJBZyjEEeoNv9fFA==/org.lichess.mobileV2.debug-5P87t8riTcwJ2OsXXwl_Wg==/base.apk!libstockfish.so (offset 0x7d66000) (Stockfish::Eval::NNUE::evaluate(Stockfish::Position const&, bool, int*)+185) (BuildId: ef8ea4ea7db75e97494535e846c46975098d6654)
#04 pc 0000000002732a73 /data/app/~~LucKNvJJBZyjEEeoNv9fFA==/org.lichess.mobileV2.debug-5P87t8riTcwJ2OsXXwl_Wg==/base.apk!libstockfish.so (offset 0x7d66000) (Stockfish::Eval::evaluate(Stockfish::Position const&)+275) (BuildId: ef8ea4ea7db75e97494535e846c46975098d6654)
#05 pc 0000000002763614 /data/app/~~LucKNvJJBZyjEEeoNv9fFA==/org.lichess.mobileV2.debug-5P87t8riTcwJ2OsXXwl_Wg==/base.apk!libstockfish.so (offset 0x7d66000) (BuildId: ef8ea4ea7db75e97494535e846c46975098d6654)
#06 pc 0000000002761433 /data/app/~~LucKNvJJBZyjEEeoNv9fFA==/org.lichess.mobileV2.debug-5P87t8riTcwJ2OsXXwl_Wg==/base.apk!libstockfish.so (offset 0x7d66000) (Stockfish::Thread::search()+2819) (BuildId: ef8ea4ea7db75e97494535e846c46975098d6654)
#07 pc 00000000027918a6 /data/app/~~LucKNvJJBZyjEEeoNv9fFA==/org.lichess.mobileV2.debug-5P87t8riTcwJ2OsXXwl_Wg==/base.apk!libstockfish.so (offset 0x7d66000) (Stockfish::Thread::idle_loop()+310) (BuildId: ef8ea4ea7db75e97494535e846c46975098d6654)
#08 pc 0000000002796519 /data/app/~~LucKNvJJBZyjEEeoNv9fFA==/org.lichess.mobileV2.debug-5P87t8riTcwJ2OsXXwl_Wg==/base.apk!libstockfish.so (offset 0x7d66000) (void* Stockfish::start_routine<Stockfish::Thread, std::__ndk1::pair<Stockfish::Thread*, void (Stockfish::Thread::*)()>>(void*)+105) (BuildId: ef8ea4ea7db75e97494535e846c46975098d6654)
#09 pc 000000000006d62a /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+58) (BuildId: eb58b4d427279994f00c0e1818477e4f)
#10 pc 0000000000060348 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+56) (BuildId: eb58b4d427279994f00c0e1818477e4f)
from mobile.
It is possible that stockfish would fail with weird positions. We could add more safeguards. It is also possible that these exists on the website, so we could reuse the logic.
from mobile.
It is possible that stockfish would fail with weird positions. We could add more safeguards. It is also possible that these exists on the website, so we could reuse the logic.
from mobile.
@olivertzeng I think that is actually a unrelated issue caused by the recent stockfish 17 integration, I same a similar issue o. For me https://lichess.org/analysis/rnbqkbnr/pppppppp/8/8/8/4P3/PPPPPPPP/RNBQKBNR_w_KQkq_-_0_1?color=white works on web (both stockfish 16 and 17 actually)
So to me it looks like stockfish should handle this position just fine
from mobile.
Related Issues (20)
- Can't long (queenside) castle in Chess960
- Some games do not open via opening explorer
- Quality enhancement down road: replace sliders with a time picker
- Load position buttons are hard to read HOT 4
- Should any of the following tools eventually allow cloud analysis (game review)?
- Board editor and analysis board to ultimately allow a "continue from here" option similar to web
- [Feature] Add a "Load position" button to board editor menu HOT 1
- [Feature] Enter board editor from analysis
- Opening explorer previous & next buttons unexpected behaviour HOT 2
- Potential tiny visual enhancement: add profile icon next to username on homefeed as a helper to show it's a shortcut to profile screen?
- Options for Visibility and Customization HOT 1
- [bug] request computer analysis stuck when analyzing other variants HOT 1
- Stockfish 17
- Game not found
- Can't see filter button for bottom player with click offset HOT 1
- The board editor is missing the "Start position" and "clear board" buttons
- When clock tool is paused, shouldn't filter be shown again to be able to edit times?
- Analysis Engine Breaks when opening a new game from the Explorer HOT 1
- [Feature request] Hikaru and Gothamchess tells you to move
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobile.