Thank you for your attention. I have no one but you to help me.
First I put HOST_RESCUE to 0 — same result. The extruder rushes into the cube till Z-axis endstop and the printer continues printing.
Then I updated the firmware to V1.0.5 with the very configs — same result.
I changed ui.cpp as you told and installed Repetier-Host v0.85b from Debian repo and started printing XYZcube from SD card. Same result.
Here is the part of the log that may be interesting:
21:15:37.703 : Echo:N524 M27
21:15:37.784 : Echo:G1 X95.93 Y80.40 E396.9273
21:15:37.888 : Echo:G1 X96.33 Y80.40 E396.9540
21:15:37.926 : Echo:G1 X96.33 Y80.80 E396.9712
21:15:37.950 : Echo:G1 X96.33 Y81.89 E397.0439
21:15:37.973 : Echo:G1 X96.33 Y82.29 E397.0611
21:15:37.988 : important:Extruder jam detected //Here I triggered the filament sensor
21:15:37.999 : Info:Marked all extruders as unjammed.
21:15:38.001 : Jam control disabled:1
21:15:39.980 : busy:processing
21:15:41.102 : Echo:G0 X96.53 Y82.29 F3600.00
21:15:41.980 : busy:paused for user interaction
<...>
21:15:51.980 : busy:paused for user interaction
21:15:53.979 : busy:heating
<...>
21:16:09.977 : busy:heating
21:16:11.979 : busy:paused for user interaction
<...>
21:16:17.978 : busy:paused for user interaction
21:16:18.415 : ActZ:5.100
21:16:18.416 : MemZ:5.100
21:16:18.419 : ActZ:5.100
21:16:18.421 : MemZ:5.100
21:16:19.979 : busy:processing
21:16:21.978 : busy:processing
21:16:23.977 : busy:processing
21:16:24.807 : Jam control disabled:0
21:16:24.830 : Echo:G0 X96.53 Y83.09
21:16:24.839 : Echo:N526 M27
21:16:24.839 : Echo:G0 X96.53 Y83.09 Z5.30 F600.00
21:16:24.843 : Echo:G0 X90.35 Y82.32 F3600.00
21:16:24.851 : Echo:G0 X85.72 Y80.72
21:16:24.873 : Echo:M117 Layer 26 of 99 xyzCalibration_cube
21:16:24.881 : Echo:G1 X104.28 Y99.28 E398.8071
21:16:24.889 : Echo:N528 M27
21:16:24.889 : Echo:G1 X104.42 Y99.42
21:16:24.892 : Echo:G0 X104.28 Y92.03
21:16:24.898 : Echo:G1 X97.03 Y99.28 E399.4888
21:16:24.918 : Echo:G1 X96.89 Y99.42
21:16:24.922 : Echo:G0 X92.96 Y99.28
21:16:24.929 : Echo:G1 X85.72 Y92.03 E400.1705
21:16:24.933 : Echo:G1 X85.58 Y91.89
21:16:24.940 : Echo:G0 X85.72 Y87.96
21:16:24.947 : Echo:G1 X91.07 Y82.61 E400.6741
21:16:24.951 : Echo:G1 X91.21 Y82.47
21:16:24.956 : Echo:G0 X98.93 Y82.61
21:16:24.983 : Echo:G1 X104.28 Y87.97 E401.1777
21:16:25.101 : Echo:G1 X104.42 Y88.11
21:16:25.196 : Echo:G0 X104.28 Y80.72
21:16:25.697 : Echo:G1 X85.72 Y99.28 E402.9237
21:16:25.708 : Echo:G1 X85.58 Y99.42
21:16:25.718 : Echo:N529 M27
21:16:25.864 : Echo:G0 X96.14 Y82.36
21:16:27.207 : start //Here I restarted the printer to prevent it's damage
21:16:27.213 : Detected EEPROM version:20
21:16:28.477 : Free RAM:3513
21:16:28.589 : Card successfully initialized.
21:16:28.598 : SelectExtruder:0
The full log I put here: https://pastebin.com/89Qr3LAm<br/><br/>Then I loaded gcode via Repetier-Host software. The result is same as well.Here is the part of the log that may be interesting:
22:02:58.733 : ok 2436
22:02:58.748 : ok 2437
22:02:58.748 : important:Extruder jam detected //Here I triggered the filament sensor
22:02:58.751 : Info:Marked all extruders as unjammed.
22:02:58.752 : Jam control disabled:1
22:03:00.740 : busy:processing
22:03:02.741 : busy:paused for user interaction
<...>
22:03:08.740 : busy:paused for user interaction
22:03:10.740 : busy:heating
<...>
22:03:28.738 : busy:heating
22:03:30.739 : busy:paused for user interaction
<...>
22:03:36.739 : busy:paused for user interaction
22:03:38.206 : ActZ:5.300
22:03:38.206 : MemZ:5.300
22:03:38.210 : ActZ:5.300
22:03:38.214 : MemZ:5.300
22:03:38.737 : busy:processing
22:03:40.736 : busy:processing
22:03:42.738 : busy:processing
22:03:44.497 : Jam control disabled:0
22:03:44.519 : ok 2438
22:03:44.527 : ok 2439
22:03:44.540 : ok 2440
22:03:44.547 : ok 2441
22:03:44.554 : ok 2442
22:03:44.561 : ok 2443
22:03:44.568 : ok 2444
22:03:44.576 : ok 2445
22:03:44.582 : ok 2446
22:03:44.597 : ok 2447
22:03:44.604 : ok 2448
22:03:44.611 : ok 2449
22:03:44.620 : ok 2449
22:03:44.633 : ok 2450
22:03:44.639 : ok 2451
22:03:44.646 : ok 2452
22:03:44.653 : ok 2453
22:03:44.660 : ok 2454
22:03:44.666 : ok 2455
22:03:44.727 : ok 2456
22:03:44.755 : ok 2457
22:03:44.778 : ok 2458
22:03:44.819 : ok 2459
22:03:44.840 : ok 2460
22:03:44.853 : ok 2461
22:03:44.887 : ok 2462
22:03:45.002 : ok 2463
22:03:45.118 : ok 2464
22:03:45.214 : ok 2465
22:03:46.653 : start //Here I restarted the printer to prevent it's damage
22:03:46.658 : Detected EEPROM version:20
22:03:47.917 : Free RAM:3513
22:03:47.917 : SD init fail
22:03:47.922 : SelectExtruder:0
22:03:47.931 : FlowMultiply:100
22:03:47.938 : ok 1
22:03:47.948 : ok 2
22:03:47.965 : ok 3
The full log I put here: https://pastebin.com/45pDBd12<br/><br/>Any, any ideas are welcome.