Giter Club home page Giter Club logo

Comments (17)

dnldsht avatar dnldsht commented on May 12, 2024

does it crash with all applications or with a specific one?
can you provide the log?

from leafpic.

rugk avatar rugk commented on May 12, 2024

Actually it does not crash at all. (If it would I could provide some kind of log...) The crash was already fixed.

So to provide real STR here more information:
I used a non-public beta version of Threema, which uses Content Providers. But probably you can also use the other app @craftyguy mentioned.

So in this app I can pass pictures to a gallery app and when I do so LeafPic only shows me the black screen as described.

from leafpic.

rugk avatar rugk commented on May 12, 2024

@dnldsht Why do you close this issue? Is it fixed?

BTW: I could reproduce it with other apps as well.

from leafpic.

firecat53 avatar firecat53 commented on May 12, 2024

I also have this issue trying to view pictures from QKSms using Leafpic. Just a blank white panel with a blue bar at the top.

from leafpic.

chesio avatar chesio commented on May 12, 2024

Hi, I think I have the same issue: trying to open image attachment from K-9 Mail app opens LeafPic, but no image is displayed (only blank white panel and blue bar at the top). On the other hand, any image from folder on SD card that is "known" to LeafPic opens fine from other apps (in my case Total Commander).

I have LeafPic 0.3.5 from F-Droid.

from leafpic.

rugk avatar rugk commented on May 12, 2024

So, yeah. This might not have something to do with Content Providers. Or does someone know whether K9 mail and QKSms use it (I doubt so).

So this issue is much more common than I thought.

from leafpic.

PF4Public avatar PF4Public commented on May 12, 2024

I have the same issue with LeafPic opening attachments from K-9 Mail.
If I open html attachment with Chrome, it shows url as content://com.fsck.k9.attachmentprovider/........../VIEW. Thus I suppose the same happens to images, which might be unexpected for LeafPic resulting in empty view.

from leafpic.

dnldsht avatar dnldsht commented on May 12, 2024

Hi guys, new release can you check if there are problems opening media from other apps, I think it is solved (K-9 Mail works). I didn't test MMS because here no one use them and they are quite expensive.
So can someone report apps that have troubles?

from leafpic.

PF4Public avatar PF4Public commented on May 12, 2024

Shouldn't it appear in F-droid repository after you release a new version?

from leafpic.

dnldsht avatar dnldsht commented on May 12, 2024

@PF4Public they update once a day during the night, but I don't when it will be available

from leafpic.

PF4Public avatar PF4Public commented on May 12, 2024

I can confirm, that K-9 mail successfully sends attached images to LeafPic without first downloading them, seems fixed to me.

PS: I don't know if that's a bug or not, but homescreen icon didn't change after update.

from leafpic.

firecat53 avatar firecat53 commented on May 12, 2024

On June 17, 2016 12:38:18 PM PDT, PF4Public [email protected] wrote:

I can confirm, that K-9 mail successfully sends attached images to
LeafPic without first downloading them, seems fixed to me.

PS: I don't know if that's a bug or not, but homescreen icon didn't
change after update.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#168 (comment)

Also works now for me with K9 and QKSms.

Thanks,
Scott

from leafpic.

dnldsht avatar dnldsht commented on May 12, 2024

@PF4Public try to refresh your launcher.

from leafpic.

nickcorona avatar nickcorona commented on May 12, 2024

Why do you keep closing this issue? It's not fixed.

from leafpic.

rugk avatar rugk commented on May 12, 2024

Indeed I can also reproduce this with multiple apps.

However as I see it mostly only happens with big pictures (e.g. taken with the camera apps). Small pictures downloaded from website work however.

from leafpic.

MarcSaric avatar MarcSaric commented on May 12, 2024

Same here, K9 attachments created with an (iPhone 6 camera) can't be opened. Hardware is a Sony Xperia Z5 Compact, patched to the latest Android (7.0) and K9 Mail version (as of today). Installed LeafPic as a replacement for the anoying Sony-provided Album-App from Google AppStore. Behaviour of LeafPic is otherwise OK (opens images on local and SD-Card storage).

Please reopen this bug. See also #188 .

from leafpic.

emdete avatar emdete commented on May 12, 2024

the bug still exists. here is a exception stack trace:

03-24 08:13:37.399 27516 27516 W System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.ArrayList.add(int, java.lang.Object)' on a null object reference
03-24 08:13:37.399 27516 27516 W System.err: 	at org.horaapps.leafpic.data.Album.<init>(Album.java:75)
03-24 08:13:37.399 27516 27516 W System.err: 	at org.horaapps.leafpic.activities.SingleMediaActivity.onCreate(SingleMediaActivity.java:104)
03-24 08:13:37.399 27516 27516 W System.err: 	at android.app.Activity.performCreate(Activity.java:6679)

looking into the source shows the error:there is a private constructor which has to run to fill class members. this is done by this() in one constructor, the others contain super() instead which circumvents this initialisation. replacing super with this (twice, line 58 and 74) solves the issue.

the second problem is the equal() function further down (line 447) where the path may be null for such cases. i just added && getPath() != null to the condition to prevent another NPE.

now LeafPic can show pictures from apps for me. thank you for providing LeavPic!

from leafpic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.