Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown bug #398

Closed
Arashvscode opened this issue May 15, 2022 · 17 comments
Closed

Unknown bug #398

Arashvscode opened this issue May 15, 2022 · 17 comments
Labels
bug Something isn't working built-in libraries An issue or question related to built-in libraries in Sketchware Pro fixed A bug is fixed

Comments

@Arashvscode
Copy link

Screenshot_۲۰۲۲۰۵۱۵-۲۲۴۰۰۰_Sketchware Pro
I downloaded the latest action, and when I run the program, it always shows me a message to create a res folder in the local libraries, while in previous versions this message was never displayed to me.

@khaled-0
Copy link
Contributor

And how is this a bug?
It's literally on the message that what's going on

@JavkhlanK
Copy link
Member

@khaled-0, look at the path, it's about built-in libraries. That's not supposed to happen, though one could achieve that by using a Developer Tools option.

Can you try clearing the app cache, and if that doesn't work, the app data?

@Arashvscode

This comment was marked as spam.

@JavkhlanK JavkhlanK added the pending question(s) Further information is requested label May 15, 2022
@khaled-0
Copy link
Contributor

So for some reason it expects built in libraries in data/data/...cache/libs/libs/
Manually copying all built in libs there fixes the issue.
But it shouldn't do that in the first place

@JavkhlanK
Copy link
Member

Some? That's intended, see commit ebbc8f4. I'm sure it's also extracting built-in libraries to that location, since it worked on my device. I'm guessing this is another bug similar to the older …/res not found bug, where the ZIP file wasn't fully readable by some devices.

@khaled-0
Copy link
Contributor

Some? That's intended, see commit ebbc8f4. I'm sure it's also extracting built-in libraries to that location, since it worked on my device. I'm guessing this is another bug similar to the older …/res not found bug, where the ZIP file wasn't fully readable by some devices.

What's the point if you have all the libs extracted in
data/data/sk.../files/libs/libs
Why copy it over to cache?

@khaled-0
Copy link
Contributor

Wait no, so for some reason it doesn't try to extract the libs after first time

@JavkhlanK
Copy link
Member

They aren't getting copied over to the cache directory, but instead, getting extracted there.

Since deleting those files isn't fatal and Sketchware Pro can extract them again on its own, using the cache directory is better, for example for users who want to quickly make some storage space free.

@khaled-0
Copy link
Contributor

They aren't getting copied over to the cache directory, but instead, getting extracted there.

Since deleting those files isn't fatal and Sketchware Pro can extract them again on its own, using the cache directory is better, for example for users who want to quickly make some storage space free.

That's the thing
After clearing cache
Or whatever
It extracts
aapt2 and creates a compiledLibs dir
But it doesn't extract the libs again

@khaled-0
Copy link
Contributor

Screenshot_20220516-221735403
Resulting in this.
But it doesn't show the following dialog anymore for me.

@JavkhlanK
Copy link
Member

wait bruh lol

@JavkhlanK
Copy link
Member

Must be because dexs.zip and libs.zip still get extracted to filesDir, not cacheDir.

@JavkhlanK JavkhlanK added bug Something isn't working built-in libraries An issue or question related to built-in libraries in Sketchware Pro and removed pending question(s) Further information is requested labels May 16, 2022
@khaled-0
Copy link
Contributor

khaled-0 commented May 16, 2022

Must be because dexs.zip and libs.zip still get extracted to filesDir, not cacheDir.

No
They just don't get extracted at all.
Not even in the files dir

And it just instantly completes the Extracting part when building

@JavkhlanK
Copy link
Member

Weird, they did for me after I deleted the entire libs folder in the files directory.

@JavkhlanK
Copy link
Member

Should have been fixed with 6bc31f7.

@JavkhlanK JavkhlanK added the fixed A bug is fixed label May 16, 2022
@khaled-0
Copy link
Contributor

Even tho it's marked as fixed and it works
I still couldn't replicate the same dialog anymore
It only showed once randomly in my testings.
Meh I hope it's the same issue and got fixed

@Arashvscode

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working built-in libraries An issue or question related to built-in libraries in Sketchware Pro fixed A bug is fixed
Projects
None yet
Development

No branches or pull requests

3 participants