revanced-manager icon indicating copy to clipboard operation
revanced-manager copied to clipboard

Stuck at "creating working directory"

Open Bluscream opened this issue 2 years ago • 37 comments

Type

Error while running the manager

Bug description

Screenshot_2022-11-05-13-09-34-800

Steps to reproduce

Open vanced manager Select youtube and any patch Wait

Android version

Idk?

Manager version

Version 0.0.39 (39)

Target package name

youtube stock

Target package version.

17.43.36

Installation type

Root

Patches selected.

First one

Device logs (exported using Manager settings).

No idea

Installer logs (exported using Installer menu option) [unneeded if issue is not during patching].

No response

Screenshots or videos

No response

Solution

No response

Additional context

No response

Acknowledgements

  • [X] I have searched the existing issues and this is a new and no duplicate or related to another open issue.
  • [x] I have written a short but informative title.
  • [x] I filled out all of the requested information in this issue properly.
  • [X] The issue is related solely to the ReVanced Manager

Bluscream avatar Nov 05 '22 12:11 Bluscream

I have the same issue

Samsung One UI 4.1 (Android 12) Revanced manager 0.0.40

target package: youtube stock 17.43.36

vibbow avatar Nov 13 '22 13:11 vibbow

Same issue, Android 13 One UI 5.

AtallahKris avatar Dec 09 '22 20:12 AtallahKris

Clearing app data fixed it for me.

Mygod avatar Jan 25 '23 00:01 Mygod

Clearing app data fixed it for me.

But it clears the Cert key too, that sucks. A possible workaround: https://github.com/revanced/revanced-manager/issues/563#issuecomment-1374569898 Though I can't test it now because I'm being hit by another bug: https://github.com/revanced/revanced-patches/issues/1552

trmdi avatar Jan 28 '23 09:01 trmdi

Did you exit the app while it was patching?

oSumAtrIX avatar Jan 28 '23 23:01 oSumAtrIX

Did you exit the app while it was patching?

Can't reproduce in this way.

trmdi avatar Jan 29 '23 00:01 trmdi

Not sure what you are saying. Please explain.

oSumAtrIX avatar Jan 29 '23 00:01 oSumAtrIX

Not sure what you are saying. Please explain.

I mean I tried to exit the app while patching as you said to reproduce this bug but I can't.

trmdi avatar Jan 29 '23 00:01 trmdi

I asked wether you exited the app; I didn't say you should.

oSumAtrIX avatar Jan 29 '23 00:01 oSumAtrIX

I asked wether you exited the app

No, I didn't.

trmdi avatar Jan 29 '23 00:01 trmdi

Please attach a complete recording of the following steps to understand your issue better:

  1. Open and close ReVanced Manager
  2. Review the settings of ReVanced Manager
  3. Patch the app

oSumAtrIX avatar Jan 29 '23 00:01 oSumAtrIX

I had the exact same issue. Out of desperation, I turned off Adguard and tried again, and it works!

So when stuck at creating work directory, it could be network issues. Try looking into that direction if you have the same problem.

christaikobo avatar Feb 12 '23 10:02 christaikobo

The manager version mentioned in this issue is very old. But the bug is still existing till date? Are any of the solutions mentioned above are of help?

The manager version mentioned in this issue is very old. But the bug is still existing till date? Are any of the solutions mentioned above are of help?

Yes it still exists in the latest version, and I was able to fix it by turning off my VPN based adblocker(adguard).

christaikobo avatar Feb 13 '23 15:02 christaikobo

The manager version mentioned in this issue is very old. But the bug is still existing till date? Are any of the solutions mentioned above are of help?

One workaround is reinstalling the app

CnC-Robert avatar Feb 13 '23 15:02 CnC-Robert

Yes it still exists in the latest version, and I was able to fix it by turning off my VPN based adblocker(adguard).

Wouldn't that make it an issue of adguard and not the manager?

One workaround is reinstalling the app

Every time you're patching an app?

Every time you're patching an app?

Every time this issue occurs

CnC-Robert avatar Feb 13 '23 17:02 CnC-Robert

Every time this issue occurs

And how often does that happen?

And how often does that happen?

i dont know

CnC-Robert avatar Feb 13 '23 19:02 CnC-Robert

I can't reproduce it in recent releases.

trmdi avatar Feb 14 '23 00:02 trmdi

Yes it still exists in the latest version, and I was able to fix it by turning off my VPN based adblocker(adguard).

Wouldn't that make it an issue of adguard and not the manager?

Yes and No. The issue with manager is that:

  1. It is not correctly communicating with the user. When it is stuck at "creating working directory", most normal user would not know what is happening, some advanced user would think it might be a permission issue, but as someone in the XDA forum post pointed out, the manager uses Android/data/*** directory which should not cause any permission issue. Then we as user are out of wit. But in reality the manager is downloading or connecting to the internet, when it shows "creating working directory". If it shows "downloading" or "connecting", then users would go and see if there is any problem with their connection.
  2. Since the manager is meant to be a user friendly GUI, I think it does not make any sense to have the progress hang forever unless the app itself crushed. In this case, the app is working, it is just unable to get the resources it needs to progress to the next step, and it is stuck there forever. A sensible thing to do is at least set a timeout, and maybe run a simple diagnostic and tell the user what to do.

There are multiple possibilities that could cause this problem, mine is just one of them. It happens in the latest version, and clearing data/cache or reinstalling app did not fix it for me.

christaikobo avatar Feb 14 '23 01:02 christaikobo

There are multiple possibilities that could cause this problem, mine is just one of them. It happens in the latest version, and clearing data/cache or reinstalling app did not fix it for me.

Now that you know what caused issue on your side implies that this issue is clearly solved. Not everyone is having the same issue and if you've tried opening the app without internet at some point you'll know that the app requires internet to function, atleast that's how things are for now. If you want to apply what you said in the first two points that's a different case and would be a feature request and not a bug.

@oSumAtrIX or @Ushie, this bug report is no longer related to manager and can be closed right?

Are you sure this issue is solved?

oSumAtrIX avatar Feb 14 '23 04:02 oSumAtrIX

Maybe the manager should stop when the connection is lost?

trmdi avatar Feb 14 '23 04:02 trmdi

The app should not require any connection to begin with.

oSumAtrIX avatar Feb 14 '23 04:02 oSumAtrIX

The app should not require any connection to begin with.

Is it correct? It definitely requires internet to download patches.

trmdi avatar Feb 14 '23 04:02 trmdi

That shouldn't be a requirement. Choosing sources locally should be always available.

oSumAtrIX avatar Feb 14 '23 04:02 oSumAtrIX

Ah yes, just checked again. Once the patch has been downloaded completely it could work without internet. So there still should be a check when patch is not available, I guess.

trmdi avatar Feb 14 '23 04:02 trmdi