Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash while panning the map #489

Closed
mathgil opened this issue Feb 24, 2019 · 16 comments
Closed

Crash while panning the map #489

mathgil opened this issue Feb 24, 2019 · 16 comments

Comments

@mathgil
Copy link

mathgil commented Feb 24, 2019

I just changed my device from a huawei p9 lite to a samsung a8, android 8.0.0.

On the first, my projects used to work fine, on the second, Qfield crashes when I pan the map.

Reproduction Steps:

  1. Open project
  2. Pan the map many times
  3. Crash.

Screenshots and GIFs

https://www.noelshack.com/2019-08-7-1550991006-20190224-074627.gif

Qfield version 1.0.0rc3

Additional information:

  • Problem started happening recently, didn't happen in an older version of QField: yes
  • Problem can be reliably reproduced, doesn't happen randomly: yes
  • Problem happens with all files and projects, not only some files or projects: yes

Files on demand in private message.

@m-kuhn
Copy link
Member

m-kuhn commented Feb 26, 2019

Hi @mathgil

Do you have the possibility to connect your device with a cable to a computer and run logcat (you will need to install android studio) and attach the output during a crash here?

@mathgil
Copy link
Author

mathgil commented Feb 26, 2019 via email

@m-kuhn
Copy link
Member

m-kuhn commented Feb 26, 2019

That's very good.
Can you send the same, but not filtered with QField?

Regarding the version, QGIS 2.18 is end of life. While we don't actively prevent using projects produced with QGIS 2.18 we also won't invest on that unless a customer project requires it.

Supporting .qgz project is on the todo list, but it shouldn't change anything. To control, you can unzip the qgz file and compare the .qgs file contained inside.

@mathgil
Copy link
Author

mathgil commented Feb 26, 2019 via email

@mathgil
Copy link
Author

mathgil commented Feb 26, 2019 via email

@m-kuhn
Copy link
Member

m-kuhn commented Feb 26, 2019

Hmmm, I see QField loading and starting up, but I can't find the information related to the crash in there.
Did it crash while you were recording?

@mathgil
Copy link
Author

mathgil commented Feb 26, 2019 via email

@m-kuhn
Copy link
Member

m-kuhn commented Feb 26, 2019

Hmm... I can't find beginning of crash in your message

Maybe it's too long for github comments to manage. Can you paste it on https://gist.github.com and paste a link here?

@mathgil
Copy link
Author

mathgil commented Feb 26, 2019 via email

@m-kuhn
Copy link
Member

m-kuhn commented Feb 26, 2019

Thanks, the interesting part is here:

2019-02-26 14:15:13.074 9224-9224/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-02-26 14:15:13.074 9224-9224/? A/DEBUG: Build fingerprint: 'samsung/jackpotltexx/jackpotlte:8.0.0/R16NW/A530FXXU3BRK3:user/release-keys'
2019-02-26 14:15:13.074 9224-9224/? A/DEBUG: Revision: '7'
2019-02-26 14:15:13.074 9224-9224/? A/DEBUG: ABI: 'arm'
2019-02-26 14:15:13.074 9224-9224/? A/DEBUG: pid: 9158, tid: 9209, name: QtThread  >>> ch.opengis.qfield <<<
2019-02-26 14:15:13.074 9224-9224/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
2019-02-26 14:15:13.074 9224-9224/? A/DEBUG: Cause: null pointer dereference
2019-02-26 14:15:13.074 9224-9224/? A/DEBUG:     r0 00000000  r1 8dc54908  r2 00002ae8  r3 00000000
2019-02-26 14:15:13.074 9224-9224/? A/DEBUG:     r4 00002b68  r5 000118c8  r6 8f37ada8  r7 00002b68
2019-02-26 14:15:13.074 9224-9224/? A/DEBUG:     r8 c85efd09  r9 47535542  sl 00000001  fp 88a3c6c0
2019-02-26 14:15:13.074 9224-9224/? A/DEBUG:     ip c8666338  sp bfcfc068  lr c85f687d  pc eb4fcf6c  cpsr 20070010
2019-02-26 14:15:13.075 9224-9224/? A/DEBUG: backtrace:
2019-02-26 14:15:13.075 9224-9224/? A/DEBUG:     #00 pc 00018f6c  /system/lib/libc.so (memcpy+108)
2019-02-26 14:15:13.075 9224-9224/? A/DEBUG: #01 pc 00032879 /data/data/ch.opengis.qfield/qt-reserved-files/plugins/platforms/android/libqtforandroid.so

but unfortunately it's not immediately visible what's the problem.

Can you try the latest builds (download apk here)

@mathgil
Copy link
Author

mathgil commented Feb 26, 2019 via email

@m-kuhn
Copy link
Member

m-kuhn commented Feb 26, 2019

Strange. Can you send us the project?

@mathgil
Copy link
Author

mathgil commented Feb 26, 2019

Done by mail.

I tried with another device (Honor 10), android 9. I cannot crash it but map turns black. GUI is still active and visible.

@mathgil
Copy link
Author

mathgil commented Mar 11, 2019

After some tests, I've done a simple project with light data et it is working well without any crash. Think my working data is involved is the problem. Where would I start looking for ? Could you have a look at the data ?

@signedav
Copy link
Member

signedav commented Nov 6, 2019

Hi there
What is the status here?

@mathgil
Copy link
Author

mathgil commented Nov 6, 2019

Problem solved. One of my layers was corrupted or something like that.
Once the database rebuilt, no more crash...

@mathgil mathgil closed this as completed Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants