Coder Social home page Coder Social logo

Comments (10)

ImranR98 avatar ImranR98 commented on May 29, 2024

Is this in the foreground or background? When specifically does the error show up - during update checking, during/after download, other? Also is this just for obtainium specifically?

from obtainium.

ImranR98 avatar ImranR98 commented on May 29, 2024

I think the issue may be fixed in the latest version (assuming the problem is what I suspect): https://github.com/ImranR98/Obtainium/releases/tag/v0.9.11-beta

Let me know and I'll reopen this issue if the problem persists (also provide more detail).

from obtainium.

ElonSatoshi avatar ElonSatoshi commented on May 29, 2024

I am getting an error similar to this, and not just while trying to update Obtainium itself, but also while trying to update other apps. Specifically, apps with multiple options/architectures for APKs.

I've had this issue for a while, and updated Obtainium several times, and the issue has not been fixed.

How to reproduce, for example, with Shattered Pixel Dungeon

  1. Have Shattered PD v2.0.1 installed, and have the github repo added into Obtainium. As of April 19 2023, Obtainium should say:
    • Latest version: v2.0.2
    • Installed version: v2.0.1
  2. Hit the "Update" button. Obtainium will now give you the option to select between "ShatteredPD-v2.0.2-Android.apk" and "ShatteredPD-v2.0.2-GPlay.apk".
  3. Select "ShatteredPD-v2.0.2-Android.apk" and push "Continue".

Expected result:

  • Obtainium downloads the specified apk for Shattered PD v2.0.2 and updates the app for you.

Actual result:

  • Some Errors Occured

  • RangeError (index): Invalid value: Not in inclusive range 0..1: -1 [com.shatteredpixel.shatteredpixeldungeon]

Obtainium version v0.11.32-beta, why is there no About or Version page in the settings?

from obtainium.

ImranR98 avatar ImranR98 commented on May 29, 2024

@ElonSatoshi I just tried that app and had no issues updating from 1.4.3 to 2.0.2. Could you mention the other apps this happens with? Would also be helpful to attach an export if you don't mind.

from obtainium.

ElonSatoshi avatar ElonSatoshi commented on May 29, 2024

Right now, the only other app this is happening on is Cataclysm Bright Nights (Installed version: cbn-experimental-2023-04-15-1839, latest version: cbn-experimental-2023-04-19-1517), when I attempt to update with the x64 labeled version.

Lemme see how exactly I add an attachment, otherwise I'll just paste the export into a message.


7z a obtainium-export-1681955821174.json.zip obtainium-export-1681955821174.json

obtainium-export-1681955821174.json.zip


I tried uploading the .json file, but apparently I have to zip it first or something. Wondering if I should put it in a pastebin?

image


I decided to go ahead and zip it, to make myself less spammy.

from obtainium.

ElonSatoshi avatar ElonSatoshi commented on May 29, 2024

@ImranR98 have you taken a look at this yet?

from obtainium.

ImranR98 avatar ImranR98 commented on May 29, 2024

Haven't been able to reproduce the issue but I see the problem in your export and I think I know what bit of code might have caused it. Will fix in the next release so it shouldn't happen again.

from obtainium.

ElonSatoshi avatar ElonSatoshi commented on May 29, 2024

Can you tell me what the problem in my export is, and recommend a workaround/temporary fix?

from obtainium.

ImranR98 avatar ImranR98 commented on May 29, 2024

The preferredApkIndex property is -1 while it should be the number of whichever apk you want (from the apkUrls list), starting at 0 (so the first URL is preferredApkIndex = 0).

I'm surprised I wasn't able to reproduce the issue myself though, looking at the code I woukd expect everyone to have this problem. Probably missing something. Anyways let me know if manually changing it works.

from obtainium.

ImranR98 avatar ImranR98 commented on May 29, 2024

Should hopefully be fixed now: https://github.com/ImranR98/Obtainium/releases/tag/v0.11.33-beta

You might still need to delete and re-add the apps that weren't working, but the problem shouldn't happen again going forward.

from obtainium.

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.