ArjanAswal / Stockfish

The Stockfish Chess Engine for Flutter.
GNU General Public License v3.0
41 stars 16 forks source link

SIGSEGV crash #32

Closed totol123 closed 1 year ago

totol123 commented 1 year ago

Hi, thanks for you awesome work.

I'm currently using your lib on a flutter app and it used to work perfectly.

I did a Flutter upgrade, Suddenly, it started to crash when I'm calling stockfish.stdin("go movetime 1000");

This code used to work, I tried to go to previous stable version, to switch devices, to clean, upgrade the package to 1.4.0 etc, nothing to do.

The error is this one : D/HostConnection(17158): createUnique: call D/HostConnection(17158): HostConnection::get() New Host Connection established 0xb400007178a660d0, tid 17424 D/HostConnection(17158): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_vulkan_async_qsri ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0 F/libc (17158): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x30 in tid 17186 (1.ui), pid 17158 (lblindfoldchess)

I don't know from where it comes.

Thank you again. regards, Anatole

totol123 commented 1 year ago

Man, after hours of digging, i finally cleaned my gradle cache and it worked again. Sorry for the issue. Much love again for your work, wish you the best.

Anatole