This object is in archive! 

Locus crashes on xperia M4 Aqua

Andreas shared this problem 8 years ago
Solved

On startup it crashes.

adb log:


  1. E/SQLiteLog(26384): (1032) statement aborts at 8: [CREATE TABLE info (minzoom INTEGER,maxzoom INTEGER,center_x DOUBLE,center_y DOUBLE,zooms TEXT,provider INTEGER);]
  2. E/AndroidRuntime(26384): FATAL EXCEPTION: Thread-562
  3. E/AndroidRuntime(26384): Process: menion.android.locus, PID: 26384
  4. E/AndroidRuntime(26384): android.database.sqlite.SQLiteReadOnlyDatabaseException: attempt to write a readonly database (code 1032)
  5. E/AndroidRuntime(26384): at android.database.sqlite.SQLiteConnection.nativeExecuteForChangedRowCount(Native Method)
  6. E/AndroidRuntime(26384): at android.database.sqlite.SQLiteConnection.executeForChangedRowCount(SQLiteConnection.java:748)
  7. E/AndroidRuntime(26384): at android.database.sqlite.SQLiteSession.executeForChangedRowCount(SQLiteSession.java:754)
  8. E/AndroidRuntime(26384): at android.database.sqlite.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:64)
  9. E/AndroidRuntime(26384): at android.database.sqlite.SQLiteDatabase.executeSql(SQLiteDatabase.java:1676)
  10. E/AndroidRuntime(26384): at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1605)

D

Best Answer
photo

Hello guys!Yesterday I installed the new firmware (26.1.A.2.99). The Locus v2.20.1 runs perfectly on it. I can create and import points, save tracks. The Locus can write into the internal memory. The factory firmware also tried, but I could not save anything.


It would be nice to try out the latest version to see if it works. (sorry for my english)

Replies (13)

photo
1

Good day Andreas, sorry for a troubles.

I'm surprised that you even see Locus Free on a Google Play. Yesterday I've disabled Locus for this device for Locus Map Free and Locus Map Pro.

We already received few same reports from different users. Unfortunately, we still have absolutely no idea! what happen here and why. Locus is not ale to write to required databases even they are placed on SD card. On 100% it is an issue in Android in M4 Aqua device, so maybe an update of system that may comes in future, may solved it.

For now sorry, no existing solution as I know.

EDIT: btw, this is first device ever, I have disabled support for, since Locus existence.

photo
1

Found an interesting post on that - not sure if this could be related:

http://stackoverflow.com/questions/26937152/workaround-for-nexus-9-sqlite-file-write-operations-on-external-dirs

an ls -li on the Locus dir - at least it seems that inodes are > 32 bit.

ls -li /storage/emulated/legacy/Locus/

367106556384 drwxrwx--- root sdcard_r 2015-07-09 20:24 backup

367106558624 drwxrwx--- root sdcard_r 2015-07-09 20:24 cache

367106276224 -rw-rw---- root sdcard_r 11400 2015-07-09 20:25 config.cfg

367106554464 drwxrwx--- root sdcard_r 2015-07-09 20:24 data

367106557344 drwxrwx--- root sdcard_r 2015-07-09 20:24 export

367106557504 drwxrwx--- root sdcard_r 2015-07-09 20:24 icons

367106555904 drwxrwx--- root sdcard_r 2015-07-09 20:24 logs

367106559104 drwxrwx--- root sdcard_r 2015-07-09 20:24 mapItems

367106552544 drwxrwx--- root sdcard_r 2015-07-09 20:24 maps

367106558304 drwxrwx--- root sdcard_r 2015-07-09 20:24 mapsOnline

367106558784 drwxrwx--- root sdcard_r 2015-07-09 20:24 mapsVector


small addition: the xperia is

getprop ro.product.cpu.abi

arm64-v8a

photo
1

so it seem that providing the arm64 libs inside locus could solve the issue.

photo
1

I think that is a very good lead given by Andreas. Kudos for that! So switching to 64bits is starting to play tricks, possibly. Why not on other devices? And thinking about this, then the M4 might be the first of a new range of devices that start showing the same issues. I just read through the link Andreas provided and it seems to provide a solution. So maybe it is worthwhile to still dig into this and prevent issues from Locus-with-SQLite running on 64 Android versions that are not patched yet.

photo
1

Hello guys,

sorry, ARM 64 libraries are already included!! in Locus. This is not just about ARM64, but it is about ARM64-v8. Which should be backward compatible with already included 64 bit version, but they aren't due to issue in Locus. But most important, for work with point/track database aren't used any special library from Locus, but it used sqlite.so library that is already part of Android!!!

Btw. mentioned topic is already reported here http://help.locusmap.eu/topic/error-saving-data .

But from what we already tested on other users, exactly same issue happen even when they place Locus into internal memory or into special Locus directory in "/external/0/Android/data/menion.android.locus"/files . So sorry, these are known information for me that has no usage.

photo
1

Ok, so I have to switch to another app.

I guess it will happen on any file with 64 bit inodes

photo
1

OK Menion, clear. So would you then say that this issue needs to be fixed in Android? As the article on stackoverflow suggests. It would mean that all 64bit devices with the broken version of Android will not be capable of running Locus. If so, that would be a big red warning for me, being a profound Locus user, to be very careful with buying a new, 64bit..., phone. I would then need to check before, whether it comes with a certain minimum version of Android 5. Can you point this out?

photo
1

Most apps in Android do not use any "native" libraries. But some more complex and most of advanced games use it, like Locus. So all these apps may be affected.


Anyway from my experience, only!! (don't ask me why only) affected device so far is Nexus 9. Maybe it had some really early version of Android 5, do not know. But I never received same report from any other device. So I think there is no need to worry about this problem anymore.


With M4 Aqua, it is little bit different. It looks like it is able to open database, but only in read mode, not required "read-write". Problem here is also, that I'm mainly Java developer and all these "native" libraries and related issues are usually quite a mystery for me. So solutions from my side are mostly based on "find on Google & fix it". And unfortunately in case of M4 device, I'm still unable to find our some article with same problem, weird.


Plan is, that when there will be no working solution during next two months, I'll purchase this device for testing in then end of August. Also because it seems that it is going to be quite popular. With device in own hands, it is usually an easier to fix any problem and also, it is possible to create precise bug report directly to Sony developers.


So, I would like to help here, but ... I do not know how for now :/

photo
1

Hello guys!Yesterday I installed the new firmware (26.1.A.2.99). The Locus v2.20.1 runs perfectly on it. I can create and import points, save tracks. The Locus can write into the internal memory. The factory firmware also tried, but I could not save anything.


It would be nice to try out the latest version to see if it works. (sorry for my english)

photo
1

Hello Tihanyi,


hmm you may try latest Locus Free 3.10.3 ... link is here: https://drive.google.com/file/d/0B_Nr4CT8osmtYjM2dlphMEV6VjQ/view?usp=sharing

photo
1

Thank you! It seems that everything is working. :)

photo
1

Hmm really? So you think I may enable Locus for Aqua devices on Google Play again? Hmm good news...

photo
1

I'd appreciate it, because I missed the program, but you should wait until everyone updates the firmware, otherwise they spoil your 4.8 ratio!

photo
1

Hello Menion, can you also post a download link for the pro version? Thank you.

photo
1

i can confirm Locus Free 3.10.3 is runnig perfectely with the new firmware (26.1.A.2.99).

Please unblock the pro version in the play store or post a downlink here.

thank you very much!

photo
1

I've just now published new Beta version, so may you please test it if this version works also (I did there some modifications, that may affect this problem). I'm returning from a small vacation in Monday, so five days should be enough till big part of users update to latest firmware I hope ...


Test version: https://drive.google.com/file/d/0B_Nr4CT8osmtWndCQ3FOTVU3MXc/view?usp=sharing

photo
1

Ive deleted the free version, installed the beta, but ican't download the data. "Unknown problem. Error code: 534 Problem with the internet connection"

...but the internet is working.

photo
1

@Tihanyi

Please try to download libraries again. There was minor issue on server side.

Thanks

photo
1

Thanks, its working... :D

photo
1

Ah, thanks for the heads up! That is good news. My friends M4 is now gone for repair (broken accelerometer), but when back then updating is surely the first thing to do & try.

photo
1

i can confirm Locus Free 3.10.3 is runnig perfectely with the new firmware (26.1.A.2.99).


Please unblock the pro version in the play store or post a downlink here.


thank you very much!

photo
1

Please post a download link for the pro version of " Locus Free 3.10.3".

Thank you.

photo
1

Thanks for confirmation that version works fine. I'll publish new version of Locus on Google Play in the end of this week.


EDIT: new version will be delayed most probably to 6. - 7. of August

photo
1

I've got the same problem but I've got firmware 26.1.A.1.100

photo
1

Carollayna, I'm sorry, but I have no solution for you. Not sure if mentioned firmware is newer then firmware that suggest Tihanyi. If so, I suggest to uninstall Locus over Google Play, restart device and install it again. It may helps.

Replies have been locked on this page!