[Windows 10 Mobile] Attez:
WPI crashes

I got exception "." during bootloader unlock on Windows Phone 8.1. Device is Lumia 640 LTE. My phone didn't booted anymore (was stuck in flash mode), but I fixed it with WDRT. Then I upgraded to Windows 10 Mobile and tried to unlock bootloader again but now I didn't got exception "." anymore but WPI crashed immediately when tried to unlock bootloader. Phone didn't booted up again (was stuck in flash mode), but I fixed it with WDRT. On Windows 10 Mobile WPI log file just says:

Error: Bad FFU file:

But in Windows Phone 8.1 there is more content. Here is a part of WPI log file on Windows phone 8.1:

2018-01-28 17.17.35.260: Unlock Bootloader

2018-01-28 17.17.35.260: Processing resources:

2018-01-28 17.17.35.260: Profile FFU: C:\ProgramData\WPinternals\Repository\RM-1072\RM1072_02177.00000.15184.36002_RETAIL_prod_signed_1002_027096_000-33_MV.ffu

2018-01-28 17.17.35.260: EDE file: C:\ProgramData\WPInternals\Repository\RM-1072\MPRG8x26_fh.ede

2018-01-28 17.17.35.260: FFU with supported OS version: C:\ProgramData\WPinternals\Repository\RM-1085\RM1085_1078.0053.10586.13169.12547.035242_retail_prod_signed.ffu

2018-01-28 17.17.35.551: Assembling data for unlock

2018-01-28 17.17.35.551: Assembling data for unlock

2018-01-28 17.17.35.568: Supported FFU: C:\ProgramData\WPinternals\Repository\RM-1085\RM1085_1078.0053.10586.13169.12547.035242_retail_prod_signed.ffu

2018-01-28 17.17.35.587: Taking mobilestartup.efi from supported FFU

2018-01-28 17.17.35.603: Attempt patch: SecureBootHack-V2-EFIESP

2018-01-28 17.17.35.613: Pattern: 0, 0

2018-01-28 17.17.35.613: Pattern: 1, 0

2018-01-28 17.17.35.613: Pattern: 2, 0

2018-01-28 17.17.35.613: Pattern: 3, 0

2018-01-28 17.17.35.613: Pattern: 4, 0

2018-01-28 17.17.35.613: Apply: 10.0.10586.318

2018-01-28 17.17.35.617: Edit BCD

2018-01-28 17.17.36.063: Initializing flash...

2018-01-28 17.17.36.064: Rebooting phone

2018-01-28 17.17.36.139: Lumia disconnected

2018-01-28 17.17.40.679: Found device on interface: 9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc

2018-01-28 17.17.40.679: Device path: \\?\USB#VID_0421&PID_0714#5&521a615&0&1#{9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc}

2018-01-28 17.17.40.679: Connected device: Lumia

2018-01-28 17.17.40.679: Mode: Bootloader

2018-01-28 17.17.40.767: No flashing profile found

2018-01-28 17.17.40.767: Custom flash attempt: 1 of 64

2018-01-28 17.17.40.767: Scanning for flashing-profile - attempt 1 of 64

2018-01-28 17.17.41.378: Custom flash attempt failed

2018-01-28 17.17.41.386: Error: Flash failed! - 8 -1 0 0 0 0

2018-01-28 17.17.41.386: Error 0x1003: Hash mismatch

2018-01-28 17.17.41.387: Rebooting phone

2018-01-28 17.17.41.449: Lumia disconnected

2018-01-28 17.17.47.378: Found device on interface: 9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc

2018-01-28 17.17.47.378: Device path: \\?\USB#VID_0421&PID_0714#5&521a615&0&1#{9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc}

2018-01-28 17.17.47.378: Connected device: Lumia

2018-01-28 17.17.47.378: Mode: Flash

2018-01-28 17.17.47.485: Custom flash attempt: 2 of 64

2018-01-28 17.17.48.094: Custom flash attempt failed

2018-01-28 17.17.48.094: Error: Flash failed! - 8 -1 0 0 0 0

2018-01-28 17.17.48.094: Error 0x1003: Hash mismatch

2018-01-28 17.17.48.094: Rebooting phone

2018-01-28 17.17.48.162: Lumia disconnected

2018-01-28 17.17.54.089: Found device on interface: 9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc

2018-01-28 17.17.54.089: Device path: \\?\USB#VID_0421&PID_0714#5&521a615&0&1#{9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc}

2018-01-28 17.17.54.089: Connected device: Lumia

2018-01-28 17.17.54.089: Mode: Flash

2018-01-28 17.17.54.209: Custom flash attempt: 3 of 64

2018-01-28 17.17.54.934: Custom flash attempt failed

2018-01-28 17.17.54.934: Error: Flash failed! - 8 -1 0 0 0 0

2018-01-28 17.17.54.934: Error 0x1003: Hash mismatch

2018-01-28 17.17.54.934: Rebooting phone

2018-01-28 17.17.54.985: Lumia disconnected

2018-01-28 17.18.01.094: Found device on interface: 9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc

2018-01-28 17.18.01.094: Device path: \\?\USB#VID_0421&PID_0714#5&521a615&0&1#{9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc}

2018-01-28 17.18.01.094: Connected device: Lumia

2018-01-28 17.18.01.094: Mode: Flash

2018-01-28 17.18.01.198: Custom flash attempt: 4 of 64

2018-01-28 17.18.01.811: Custom flash attempt failed

2018-01-28 17.18.01.811: Error: Flash failed! - 8 -1 0 0 0 0

2018-01-28 17.18.01.811: Error 0x1003: Hash mismatch

2018-01-28 17.18.01.811: Rebooting phone

2018-01-28 17.18.01.864: Lumia disconnected

2018-01-28 17.18.07.844: Found device on interface: 9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc

2018-01-28 17.18.07.844: Device path: \\?\USB#VID_0421&PID_0714#5&521a615&0&1#{9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc}

2018-01-28 17.18.07.844: Connected device: Lumia

2018-01-28 17.18.07.844: Mode: Flash

2018-01-28 17.18.07.950: Custom flash attempt: 5 of 64

2018-01-28 17.18.08.751: Custom flash attempt failed

2018-01-28 17.18.08.751: Error: Flash failed! - 8 -1 0 0 0 0

2018-01-28 17.18.08.751: Error 0x1003: Hash mismatch

2018-01-28 17.18.08.751: Rebooting phone

2018-01-28 17.18.08.818: Lumia disconnected

2018-01-28 17.18.14.371: Found device on interface: 9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc

2018-01-28 17.18.14.371: Device path: \\?\USB#VID_0421&PID_0714#5&521a615&0&1#{9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc}

2018-01-28 17.18.14.371: Connected device: Lumia

2018-01-28 17.18.14.371: Mode: Flash

2018-01-28 17.18.14.483: Custom flash attempt: 6 of 64

2018-01-28 17.18.15.078: Error on USB port!

2018-01-28 17.18.15.101: Lumia disconnected

2018-01-28 17.18.15.118: Device: Lumia BootMgr - Microsoft

2018-01-28 17.18.15.118: Last written: 4E4F4B58465300040000000100000021

2018-01-28 17.18.15.118: Error: Failed to read from pipe.

2018-01-28 17.18.15.118: Error: Failed to read pipe on WinUSB device.

2018-01-28 17.18.15.118: Error: Jrjestelmn liitetty laite ei toimi

2018-01-28 17.18.15.118: Connection to phone is lost - 2 2 262144 0 0 0

2018-01-28 17.18.15.118: Expect phone to reboot

2018-01-28 17.18.15.118: Waiting for phone to connect...

2018-01-28 17.18.15.604: Found device on interface: 71de994d-8b7c-43db-a27e-2ae7cd579a0c

2018-01-28 17.18.15.604: Device path: \\?\USB#VID_05C6&PID_9008#5&521a615&0&1#{71de994d-8b7c-43db-a27e-2ae7cd579a0c}

2018-01-28 17.18.15.604: Connected device: Lumia

2018-01-28 17.18.15.604: Mode: Qualcomm Emergency Download 9008

2018-01-28 17.18.15.613: Sending programmer: C:\ProgramData\WPInternals\Repository\RM-1072\MPRG8x26_fh.ede

2018-01-28 17.18.15.614: Protocol: 0x00000002

2018-01-28 17.18.15.614: Supported: 0x00000001

2018-01-28 17.18.15.614: MaxLength: 0x00000400

2018-01-28 17.18.15.614: Mode: 0x00000000

2018-01-28 17.18.15.632: Programmer loaded into phone memory

2018-01-28 17.18.15.632: Starting programmer

2018-01-28 17.18.15.633: Programmer being launched on phone

2018-01-28 17.18.15.635: Wait to transfer control to programmer

2018-01-28 17.18.16.136: Send first hello to programmer

2018-01-28 17.18.16.638: Error on USB port!

2018-01-28 17.18.16.638: Device: \\?\USB#VID_05C6&PID_9008#5&521a615&0&1#{71de994d-8b7c-43db-a27e-2ae7cd579a0c}

2018-01-28 17.18.16.638: Last written: 30375057000000000000000000000000

2018-01-28 17.18.16.638: Error: Failed to write to pipe: 30375057000000000000000000000000

2018-01-28 17.18.16.638: Error: Failed to write pipe on WinUSB device.

2018-01-28 17.18.16.641: Error: Semaforin aikakatkaisun mraika on lopussa

2018-01-28 17.18.18.141: Error on USB port!

2018-01-28 17.18.18.141: Device: \\?\USB#VID_05C6&PID_9008#5&521a615&0&1#{71de994d-8b7c-43db-a27e-2ae7cd579a0c}

2018-01-28 17.18.18.141: Last written: 30375057000000000000000000000000

2018-01-28 17.18.18.141: Error: Failed to read from pipe.

2018-01-28 17.18.18.141: Error: Failed to read pipe on WinUSB device.

2018-01-28 17.18.18.141: Error: Semaforin aikakatkaisun mraika on lopussa

2018-01-28 17.18.18.145: Did not receive hello from programmer

2018-01-28 17.18.47.155: Lumia disconnected

2018-01-28 17.18.52.397: Found device on interface: 9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc

2018-01-28 17.18.52.397: Device path: \\?\USB#VID_0421&PID_0714#5&521a615&0&1#{9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc}

2018-01-28 17.18.52.397: Connected device: Lumia

2018-01-28 17.18.52.397: Mode: Flash

2018-01-28 17.18.52.498: Custom flash attempt: 7 of 64

2018-01-28 17.18.53.120: Custom flash attempt failed

2018-01-28 17.18.53.120: Error: Flash failed! - 8 -1 0 0 0 0

2018-01-28 17.18.53.120: Error 0x1003: Hash mismatch

2018-01-28 17.18.53.120: Rebooting phone

2018-01-28 17.18.53.187: Lumia disconnected

2018-01-28 17.18.58.739: Found device on interface: 9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc

2018-01-28 17.18.58.739: Device path: \\?\USB#VID_0421&PID_0714#5&521a615&0&1#{9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc}

2018-01-28 17.18.58.739: Connected device: Lumia

2018-01-28 17.18.58.739: Mode: Flash

2018-01-28 17.18.58.848: Custom flash attempt: 8 of 64

2018-01-28 17.18.59.492: Custom flash attempt failed

2018-01-28 17.18.59.493: Error: Flash failed! - 8 -1 0 0 0 0

2018-01-28 17.18.59.493: Error 0x1003: Hash mismatch

2018-01-28 17.18.59.493: Rebooting phone

2018-01-28 17.18.59.557: Lumia disconnected

2018-01-28 17.19.05.106: Found device on interface: 9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc

2018-01-28 17.19.05.106: Device path: \\?\USB#VID_0421&PID_0714#5&521a615&0&1#{9e3bd5f7-9690-4fcc-8810-3e2650cd6ecc}

2018-01-28 17.19.05.106: Connected device: Lumia

2018-01-28 17.19.05.106: Mode: Flash

2018-01-28 17.19.05.205: Custom flash attempt: 9 of 64

2018-01-28 17.19.05.765: Custom flash attempt failed

2018-01-28 17.19.05.765: Error: Flash failed! - 8 -1 0 0 0 0

2018-01-28 17.19.05.765: Error 0x1005: Data not aligned correctly

2018-01-28 17.19.05.765: Rebooting phone

2018-01-28 17.19.05.800: Lumia disconnected

2018-01-28 17.19.06.179: Found device on interface: 86e0d1e0-8089-11d0-9ce4-08003e301f73

2018-01-28 17.19.06.180: Device path: \\?\USB#VID_05C6&PID_9008#5&521a615&0&1#{86e0d1e0-8089-11d0-9ce4-08003e301f73}

2018-01-28 17.19.06.180: Connected device: Lumia

2018-01-28 17.19.06.180: Mode: Qualcomm Emergency Download 9008

2018-01-28 17.19.06.180: Sending programmer: C:\ProgramData\WPInternals\Repository\RM-1072\MPRG8x26_fh.ede

2018-01-28 17.19.06.180: Protocol: 0x00000002

2018-01-28 17.19.06.180: Supported: 0x00000001

2018-01-28 17.19.06.180: MaxLength: 0x00000400

2018-01-28 17.19.06.180: Mode: 0x00000000

2018-01-28 17.19.06.199: Programmer loaded into phone memory

2018-01-28 17.19.06.199: Starting programmer

2018-01-28 17.19.06.199: Programmer being launched on phone

2018-01-28 17.19.06.199: Wait to transfer control to programmer

2018-01-28 17.19.06.704: Send first hello to programmer

2018-01-28 17.19.07.208: First hello from PC accepted by programmer

2018-01-28 17.19.07.714: Error: Tyypin . poikkeus.

2018-01-28 17.19.07.715: Tyypin . poikkeus.