question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Caused by: java.lang.IllegalArgumentException: Invalid column latitude

See original GitHub issue

Hi, massive thanks for this library, I have an issue, when I select a video file from (Google Photos App), I get the following exception :

java.lang.RuntimeException: An error occurred while executing doInBackground()
        at android.os.AsyncTask$4.done(AsyncTask.java:399)
        at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
        at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
        at java.util.concurrent.FutureTask.run(FutureTask.java:271)
        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:919)
     Caused by: java.lang.IllegalArgumentException: Invalid column latitude
        at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:170)
        at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:140)
        at android.content.ContentProviderProxy.query(ContentProviderNative.java:423)
        at android.content.ContentResolver.query(ContentResolver.java:944)
        at android.content.ContentResolver.query(ContentResolver.java:880)
        at android.content.ContentResolver.query(ContentResolver.java:836)
        at com.hbisoft.pickit.DownloadAsyncTask.doInBackground(DownloadAsyncTask.java:57)
        at com.hbisoft.pickit.DownloadAsyncTask.doInBackground(DownloadAsyncTask.java:19)
        at android.os.AsyncTask$3.call(AsyncTask.java:378)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

The issue happens only on Android 10.0 (API 29) | Emulator, and works perfectly on other versions

Full scenario :

Start choosing a video file by clicking on the pick button > From the menu, choosing the Google Photos App> App crash immediately

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
HBiSoftcommented, May 4, 2020

@Mouadabdelghafouraitali I’ve done some tests and I’ve also asked a question on StackOverflow.

What I have noticed from my tests is that I do not get the crash when specifying intent.setType("image/*"); instead of intent.setType("video/*");. I guess that Google Photos automatically queries the latitude column when selecting a video file, which is not allowed in Android 10. Google Photos is intended for selecting photos (thus the name “Photos”), but it should still not give this error.

The issue is not with the library, but instead with Google Photos. I will open an issue and try to get feedback from Google.

I will be closing this issue since there is nothing I can do from my end. I will update you when/if I get a response from Google.


EDIT:

I have opened an issue on issuetracker, I will update the issue when I get feedback.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - IllegalArgumentException: Invalid column latitude
main(ZygoteInit.java:930) Caused by: java.lang.IllegalArgumentException: Invalid column latitude at android.database.DatabaseUtils.
Read more >
Google Photos is querying latitude column [155579897]
This causes IllegalArgumentException: Invalid column latitude to be thrown (since Android 10 doesn't allow this). This only happens when I set the Intent ......
Read more >
Why video URI is giving Invalid column? - CommonsWare
Its throwing below exception: java.lang.IllegalArgumentException: Invalid column vnd.android.cursor.dir/video ...
Read more >
How to fix java.sql.SQLException: Invalid column index ...
The most common cause of "java.sql.SQLException: Invalid column index" is a misconception that column index started with "0" like array or String index...
Read more >
src/com/android/providers/media/MediaProvider.java
import android.provider.BaseColumns;. import android.provider.Column; ... + "latitude DOUBLE,longitude DOUBLE,datetaken INTEGER,mini_thumb_magic INTEGER,".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found