Giter Club home page Giter Club logo

Comments (19)

CappielloAntonio avatar CappielloAntonio commented on May 28, 2024 1

Actually the fact that the signed app didn't work, while the unsigned app worked was a big hint.

I admit that I don't often try both versions because it is in continuous development, so the app I use is the debug one built by Android Studio.

Another issue that threw me off track is the fact that for you the app first worked and then didn't (without having changed anything about the networking part). And this is still a mystery to be figured out.

In short, I solved it by excluding Retrofit (the library that manages the network part) from the obfuscation of ProGuard. At this moment the exclusion is total, it could be further refined.

-keep class retrofit2.** { *; }

What I'm saying with this rule is "keep everything as it is, don't obfuscate anything" pretty much.

from tempo.

CappielloAntonio avatar CappielloAntonio commented on May 28, 2024

Hi @gravelld, thanks for reporting.

Apparently Retrofit, the library to manage the network, applied a manual encode before making each request, hence the correct operation of the navigation. On the contrary, Glide (image loader) and Media3 (trivially the media player), use the original uri. Good to know!

I'm about to post a pre-release build. From my local tests everything still works, but it's always better to test in more users.

from tempo.

CappielloAntonio avatar CappielloAntonio commented on May 28, 2024

New version released, waiting for your test results.
If the problem is solved you can close this issue.

from tempo.

gravelld avatar gravelld commented on May 28, 2024

I tried the new build, but when I add a new server and press it to view the library the app seems to crash. Restarting Tempo seems to crash too.

from tempo.

CappielloAntonio avatar CappielloAntonio commented on May 28, 2024

Well, that's very strange. Can you pass me the crash log or give me a chance to try it myself?

from tempo.

gravelld avatar gravelld commented on May 28, 2024

I'm not sure how else to get you that other than logcat, let me know if there's a better way.

Here's what I found that reference the Tempo pid.

fwiw the user that originally reported this issue experiences a crash on startup too.

from tempo.

CappielloAntonio avatar CappielloAntonio commented on May 28, 2024

Does Astiga have a demo instance to replicate the problem with?

from tempo.

gravelld avatar gravelld commented on May 28, 2024

It does; can you get in touch via email?

I don't think it's even getting that far though...

from tempo.

CappielloAntonio avatar CappielloAntonio commented on May 28, 2024

This is my junk mail: email

Not being able to reproduce the crash with navidrome, gonic and now airsonic-advanced, I'd like to try with Astiga.

from tempo.

gravelld avatar gravelld commented on May 28, 2024

Oh, I assumed the app was just crashing on startup and not even making a HTTP call. I've sent the email.

from tempo.

CappielloAntonio avatar CappielloAntonio commented on May 28, 2024

Hi @gravelld, even with the demo user on the Astiga instance I can't reproduce the error. Unfortunately, the logcat you sent me is unreadable as the app is signed with the release keys.

Could you try this apk and take another logcat? This is the version published on F-Droid (but not signed), it is the same but without Google services. This way I don't overwrite the already installed version of the app.

app-notquitemy-debug.zip

In the last step, I would like you to clear the data of the current app and start from scratch.

from tempo.

gravelld avatar gravelld commented on May 28, 2024

Well I'm sure this will surprise you (or maybe not) but the above APK works fine for me. Also, the original bug is fixed.

Not sure what was up with the APK previous. I was installing it by downloading it from Github with my device and then installing it on the same device by launching the APK.

from tempo.

CappielloAntonio avatar CappielloAntonio commented on May 28, 2024

Well, yes... The code of the two versions hasn't changed much.
Could you try, if it's not a problem, to download the latest version (v3.5.2) which I will upload shortly, delete the old data and try to access again?

from tempo.

gravelld avatar gravelld commented on May 28, 2024

I'm afraid the same thing happens - it crashes as soon as I press the Subsonic server I configured. I tried installing both on the phone and via adb.

from tempo.

CappielloAntonio avatar CappielloAntonio commented on May 28, 2024

Okay, I guess I just don't know what to think anymore.
The last alternative is to proceed with the unsigned app installation and grab another logcat at the time of the crash.

app-tempo-debug.zip

from tempo.

gravelld avatar gravelld commented on May 28, 2024

That one starts fine... I've attached the log anyway.

tempo-startup.log

Looks like you can see some decipherable stack traces which might map to the original ones in the version that crashed.

Could it be an Android version issue?

from tempo.

CappielloAntonio avatar CappielloAntonio commented on May 28, 2024

Okay, maybe you gave me an idea

from tempo.

CappielloAntonio avatar CappielloAntonio commented on May 28, 2024

I'm so sure (almost) and hopeful that I've fixed the problem, that I'm releasing a new release without waiting for the test results (please test it and give me good news).

from tempo.

gravelld avatar gravelld commented on May 28, 2024

Yes, that works! And the original bug is solved too! I'll mark this closed, but as a novice Android developer myself (trying to maintain the Astiga Android app) I'd like to know what the issue was for my own learning...

from tempo.

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.