google / play-unity-plugins

The Google Play Plugins for Unity provide C# APIs for accessing various Play services
Other
434 stars 111 forks source link

AssetModuleException: Session not found #229

Open fNathan123 opened 10 months ago

fNathan123 commented 10 months ago

unity : 2021.3.28f1

Hello, We have some issues with updating our application. Our application download progress often stuck at 100% at google play store then we checked our Logcat and found this error after we clicked update button.

[57617] kvk.apply(1280): Failed to retrieve session -1. com.google.android.finsky.assetmoduleserviceutils.AssetModuleException: Session not found. We suspect this error caused this since this error didn't appear if the download is succeed. may I know what caused this?

ps : we are using Play Asset Delivery Thanks!

mtemnikov commented 10 months ago

unity : 2021.3.28f1

We have the same problem. Also some times play asset delivery on demand assets download are stucked with no further progress. Only clean play store app cached might help sometimes (but not in all cases). However we are unable to deliver this information to large amount of users ;(

mtemnikov commented 10 months ago

So any news?( It is very hard problem for us.

fNathan123 commented 10 months ago

Unfortunately no bud, we are also confused as you do LMAO. We can only advice the users to clear the google playstore's cache/data if there's something wrong with the downloading stuff. But we can't just tell our user to clear the playstore's data every time. I'm pretty sure the problem is on google side and I want some verification from google if there's something we can do.

But, from our side these problem typically occurred if we remove some asset packs or changing asset packs name (we are using custom asset packs).

We haven't tried their newest version of PAD to be honest, maybe you can try updating them to the latest version and hope it works.

mtemnikov commented 10 months ago

The thing is that on this current Unity version i don't know how to find out the play core or PAD or other libs versions because they are integrating automatically.

"But, from our side these problem typically occurred if we remove some asset packs or changing asset packs name (we are using custom asset packs)."

We also changed some asset packs names in current update(

We have so many troubles with PAD system so now i am thinking about using custom CDN...

mtemnikov commented 10 months ago
2023.12.04 20:55:47.769 5399 5749 Error Finsky [397] kzz.a(843): Request execution failed with error code: -2
2023.12.04 20:55:47.769 5399 5749 Error Finsky com.google.android.finsky.assetmoduleserviceutils.AssetModuleException: Request to PGS failed because all packs are unavailable.
2023.12.04 20:55:47.769 5399 5749 Error Finsky  at jqx.aft(PG:533)
2023.12.04 20:55:47.769 5399 5749 Error Finsky  at jwj.k(PG:75)
2023.12.04 20:55:47.769 5399 5749 Error Finsky  at ixz.run(PG:230)
2023.12.04 20:55:47.769 5399 5749 Error Finsky  at android.os.Handler.handleCallback(Handler.java:873)
2023.12.04 20:55:47.769 5399 5749 Error Finsky  at android.os.Handler.dispatchMessage(Handler.java:99)
2023.12.04 20:55:47.769 5399 5749 Error Finsky  at android.os.Looper.loop(Looper.java:193)
2023.12.04 20:55:47.769 5399 5749 Error Finsky  at android.app.ActivityThread.main(ActivityThread.java:6737)
2023.12.04 20:55:47.769 5399 5749 Error Finsky  at java.lang.reflect.Method.invoke(Native Method)
2023.12.04 20:55:47.769 5399 5749 Error Finsky  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
2023.12.04 20:55:47.769 5399 5749 Error Finsky  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:860)

Some debug on bundle downloading at com.android.vending process. We are getting this error some times. Possible step to reproduce (not in 100%) is to close app and restore it immediately.

fNathan123 commented 10 months ago

Yes we got the same error as well

error_caused_missing_pack

mtemnikov commented 10 months ago

Have you reported on unity forum?

fNathan123 commented 10 months ago

not yet

yagodar commented 9 months ago

Hi, +1 to you, folks. We got the same stuck on update 100%. We have also changed the asset packs and we are using PAD with Unity

firdiar-mita commented 9 months ago

upup +1

yagodar commented 9 months ago

Hello again :) Finally we've found a workaround.

It turns out, that the key in our errors was the name of existing asset pack.

1) In old version we had name of the asset pack "CustomOnDemand" 2) In new version we've changed the name of this asset pack to "CustomRaceOneOnDemand" 3) We got stuck on Update the app inside Google Play app at 100%.

Workaround: Keep the name of existing asset packs and make it exists in newer versions After change name back from "CustomRaceOneOnDemand" to "CustomOnDemand" there is no stuck at 100% on Update :tada:

It's definitely a bug of PAD. So please, fix it for others, who didn't reach this thread.

fNathan123 commented 9 months ago

alright, this will be ugly if you use fast-follow asset packs, but I have some question.. after all those download stuck we decided to revert all the PAD changes we've made. Those packs downloaded normally at playstore but google returns internal error for all of our packs when we tried to fetch asset pack's state in our app.

Not sure what it was but I will keep in mind to be careful if we decide to change the pack structures :( anyway thanks for your insight, it's very helpful

mtemnikov commented 9 months ago

Thanks for work around. It will save our time in future. But unfortunately we are still getting stuck on download packs.

This is unity forum topic and some info

https://forum.unity.com/threads/update-play-core-lib-or-fix-critical-error.1525768/

yagodar commented 9 months ago

For the record - we leave exact same assets in our "CustomOnDemand", just updated the content inside it. So I think google`s patch system worked in this case and our app not stucked.