Giter Club home page Giter Club logo

Comments (5)

vladmandic avatar vladmandic commented on June 9, 2024

to show if there is memory leak or not, you need to enable debug in configuration and collect browser logs, without that its just a speculation which is not actionable.

and yes, webworkers require offscreencanvas - there is no way around it.

from human.

Bobo100 avatar Bobo100 commented on June 9, 2024

Thank you for your response.

I have enabled debug mode and added some console.log statements for debugging.

Regarding the console results, there haven't been any error messages.
In the screenshot I provided (obtained through Mac's Web Inspector), the last console.log message before a forced page refresh is always "human.detect."
This has led me to suspect that it might be an out-of-memory (OOM) issue.
console

Sometimes, when performance is worse, it will display a message saying "A Problem Repeatedly Occurred on…" before a forced refresh.

I'm not entirely sure if the screenshots I have are what you were referring to. However, I have genuinely conducted numerous tests.

At times, the issue arises with just 5 images, while on other occasions, it can handle up to 18 images without any problems.
My biggest challenge is the lack of additional console information, which led me to this speculation.

However, as I mentioned earlier, when I disable the use of worker mode, the issue doesn't occur on an iPhone SE 2 (iOS 17.2.1).

I have also conducted similar tests on other phones without using worker mode:
iPhone 15 Plus, iOS 17.1 => OK
iPhone SE 3, iOS 16.6 => NG (This might be expected as it doesn't support OffscreenCanvas)
iPhone 11, iOS 17.2.1 => NG
I haven't yet tested it in worker mode, but I will do so.

In any case, thank you for your response.

from human.

Bobo100 avatar Bobo100 commented on June 9, 2024

Additional supplement

iPhone SE 2 (17.2.1) still automatically refreshes in non-worker mode. Previously, I only uploaded around 20 images, and there were no issues. However, today, when I uploaded more than 20, around 23 or 24, the problem started to occur.”

Thanks.

from human.

vladmandic avatar vladmandic commented on June 9, 2024

some devices/platforms are just not good enough for web-worker mode.

but if it works for 10 image and and break on 20 - there is no reason for that unless you're either submitting them in parallel or not doing cleanups in your code. i'm sorry i cant say more, but i really cannot spend time analyzing your code.

from human.

Bobo100 avatar Bobo100 commented on June 9, 2024

I think I will double-check my syntax on this end to see if there are any missing cleanups.

Thank you once again for your assistance.

from human.

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.