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

Investigate Memory Limits on iOS #293

Open
quoid opened this issue Jul 26, 2022 · 7 comments
Open

Investigate Memory Limits on iOS #293

quoid opened this issue Jul 26, 2022 · 7 comments
Labels
upstream This is an upstream issue

Comments

@quoid
Copy link
Owner

quoid commented Jul 26, 2022

related #279

@Emasoft
Copy link

Emasoft commented Jul 27, 2022

Ok. As we said in issue 279, the crashes can be caused by a memory limit.
So first you need to test the extension with various amounts of scripts, to see if at a certain point it crashes and reproduces the exact error message.
Eventually, a method to limit the number or size of the js files loaded by the extension should be devised.
If instead the error does not relate to the memory limit, further investigation is needed. I can provide you my scripts to test them.

@quoid
Copy link
Owner Author

quoid commented Jul 27, 2022

@Emasoft

if you want to send me your scripts, my email is on my profile page, I hope to be able to investigate this on the weekend

@quoid
Copy link
Owner Author

quoid commented Jul 30, 2022

I did some profiling this weekend and found some areas that could benefit from optimization, i think a lot of it revolves around #278, but also code level improvements that should be investigated around the parse function being used

I was using ~64 userscripts some quite small in footprint and others quite large

I have nothing specific to share right now outside of that, but will update this thread as more discoveries are made

@Emasoft
Copy link

Emasoft commented Oct 28, 2022

Any progress on this?
Even after the last update on iOS, the issue is still present.
The error is the same, and retry doesn't do anything 95% of the times.
IMG_9364

I've sent you my Userscripts folder in a zip file to your email. Please test it.

@quoid
Copy link
Owner Author

quoid commented Oct 28, 2022

@Emasoft I got your files, thanks for sending. Are you seeing this on iOS or macOS? I noticed the folder name mentions iOS but the image you pasted shows macOS. I have not yet been able to reproduce this on macOS, but I will keep trying.

Edit: For a moment I thought the screenshot was macOS, I see that is not the case now.

Can you give me you device details?

@Emasoft
Copy link

Emasoft commented Oct 28, 2022

@quoid

Can you give me you device details?

§ Device
Device name: iPad Pro (12.9 inch - 4th generation)
Model: iPad8,11
Brand: Apple Inc.
Realeased date: March 25, 2020
Weight: 643 g

§ System
Operating System: iPadOS
Operating System Type: Darwin 
Operating System State: Stable 
Version: 16.1
Build Number: 20B82 
Multitasking: Yes
Initial OS Version: 13.4
Max Supported OS Version: 14+
Kernel Info: Darwin Kernel Version 22.1.0: Thu Oct 6 19:33:53 PDT 2022; root:xnu-8792.42.7~1/RELEASE_ARM64_T8020
Boot Time: 25/Oct/2022
Up Time: 4 days, 17h:58m

§ CPU
Chipset name: A12Z
Launched: March 18, 2020 
Designed by: Apple Inc. 
Common manufacturer(s): TSMC 
Product code: APL1083
Max. CPU clock rate: 2.49 GHz
Cores: 8
Technology node: 7 nm
Instruction set: Aarch64; ARMv8.3-A 

§ GPU
GPU(s): Apple designed 8-Core GPU(s) 
Cores: 8

§ Display
Screen size: 12.9 inch
Resolution: 2732 × 2048 pixel 
Density: 264 ppi
Screen: IPS LCD
Screen technology: Liquid Retina

§ RAM
Memory: 6 GB LPDDR4X
Total: 5632 MB 
Available: 1700 MB 
Percent: 69 %

§ Storage
Total: 1024.0 GB
Internal Storage: 953.63 GB 
Available: 619.80 GB 
Percent: 35 %

@quoid
Copy link
Owner Author

quoid commented Oct 28, 2022

Thanks, I am testing on an iPhone 8, running 15.6.1, but have not hit the issue yet :/

@ACTCD ACTCD added the upstream This is an upstream issue label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream This is an upstream issue
Projects
None yet
Development

No branches or pull requests

3 participants