You are not logged in.

#1 2019-02-27 08:56:48

forty-two
Member
Registered: 2017-06-30
Posts: 21

spflashtool crashes while loading MTK scatter file

I have installed the spflashtool-bin package (version: 5.1844-1, the latest) from AUR on my vanilla ArchLinux installation.

When I start the application, it shows up correctly.
However, upon loading the MTK scatter file, it closes on its own.
Here is the contents of stderr:

After launching application:

libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
QObject::moveToThread: Cannot move objects with a parent
support_dl_cert_to_storage: 0

After loading scatter file:

Qt Concurrent has caught an exception thrown from a worker thread.
This is not supported, exceptions thrown in worker threads must be
caught before control returns to Qt Concurrent.
terminate called after throwing an instance of 'std::out_of_range'
  what():  vector::_M_range_check
/usr/bin/spflashtool: line 3:   969 Aborted                 (core dumped) /opt/spflashtool/flash_tool "${@}"

Note that the number 969 changes with subsequent runs (next was 863, probably some PID).

Closing application without loading anything:

comboTimeout index(3) saved.
/usr/bin/spflashtool: line 3:  1647 Segmentation fault      (core dumped) /opt/spflashtool/flash_tool "${@}"

Contents of the /usr/bin/spflashtool script which is referenced in the error log:

#!/bin/sh
export LD_LIBRARY_PATH="/opt/spflashtool"
/opt/spflashtool/flash_tool "${@}"

Last edited by forty-two (2019-02-27 08:58:21)

Offline

#2 2019-02-27 10:41:35

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: spflashtool crashes while loading MTK scatter file

https://aur.archlinux.org/packages/spflashtool-bin
https://aur.archlinux.org/cgit/aur.git/ … shtool-bin

Those 2 pages combined suggest upstream changed the binary without changing the version.
Try building 5.1844-2 .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2019-02-27 18:50:06

Omar007
Member
Registered: 2015-04-09
Posts: 368

Re: spflashtool crashes while loading MTK scatter file

Actually, it seemed they didn't even change the binaries. Only the ZIP file differed, the contents were the same.

I've personally just loaded up the same scatterfile for my own phone with both 5.1844-1 and 5.1844-2, which worked perfectly fine. Version 5.1844-1 had been up for about 2 months prior to the checksum change.
Is the file you're trying to load OK?
The application not handling the fault case properly is not something I can help you with though..

Last edited by Omar007 (2019-02-27 18:53:00)

Offline

Board footer

Powered by FluxBB