web-stable-diffusion icon indicating copy to clipboard operation
web-stable-diffusion copied to clipboard

Demo site generation error: Required limit

Open mindgitrwx opened this issue 3 years ago • 5 comments

screenshot 2023-03-17 at 5 30 24 PM

Find an error initializing the WebGPU device OperationError: Required limit (1073741824) is greater than the supported limit (268435456). - While validating maxBufferSize - While validating required limits

How to get around this error?

mindgitrwx avatar Mar 17 '23 08:03 mindgitrwx

The same happens to me. Same values and everything.

ahmartello avatar Mar 17 '23 12:03 ahmartello

Hello @mindgitrwx and @ahmartello, thanks for the feedback. This issue is essentially because running the model needs to allocate larger buffers for intermediate values. At this moment we are running the FP32 model, and the largest buffer to allocate is 1GB.

We are now developing the support for lower-precision models, and we hope this issue can be resolved in the future with the development going on. For another thing, would you like to share your environment (e.g., the OS version and the Chrome version) to us so that we can try to reproduce and see if there is any quick workaround? It is also the first time we are reported with this issue, and we may need more information to improve our work.

MasterJH5574 avatar Mar 17 '23 14:03 MasterJH5574

@mindgitrwx @ahmartello I also meets the same problem on Edge, Chrome, and Safari on my Windows PC and MacBook. But the demo works well on Chrome Canary, which could be downloaded here: https://www.google.com/chrome/canary/. Hope it helps

Lay2000 avatar Mar 18 '23 17:03 Lay2000

@Lay2000 It works well. Thanks!

mindgitrwx avatar Mar 21 '23 04:03 mindgitrwx

I think i hit the same bug on mac ?

env:

MAC OS: 11.7.5 (20G1225)
CHROME CANARY BROWSER: Version 114.0.5705.0 (Official Build) canary (x86_64)
 

error:


/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --enable-dawn-features=disable_robustness
[13839:34823:0410/100612.308539:ERROR:trust_store_mac.cc(844)] Error parsing certificate:
ERROR: Failed parsing extensions

2023-04-10 10:09:24.583 Google Chrome Helper (Renderer)[14025:114346] CoreText note: Client requested name ".AppleSDGothicNeoI-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2023-04-10 10:09:24.592 Google Chrome Helper (Renderer)[14025:114346] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
2023-04-10 10:09:24.640 Google Chrome Helper (Renderer)[14025:114346] CoreText note: Client requested name ".PingFangSC-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2023-04-10 10:09:24.684 Google Chrome Helper (Renderer)[14025:114346] CoreText note: Client requested name ".PingFangSC-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2023-04-10 10:09:24.687 Google Chrome Helper (Renderer)[14025:114346] CoreText note: Client requested name ".PingFangSC-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
Error in cpuinfo: sysctlbyname("hw.packages") failed: Operation not permitted
Error in cpuinfo: sysctlbyname("hw.cacheconfig") failed: Operation not permitted
[0410/101459.563107:ERROR:directory_reader_posix.cc(42)] opendir /Users/apple/Library/Application Support/Google/Chrome Canary/Crashpad/attachments/fc4117ee-bd9a-49b8-ae50-074a50093647: No such file or directory (2)
[13839:259:0410/101459.711382:ERROR:gpu_process_host.cc(952)] GPU process exited unexpectedly: exit_code=512

gedw99 avatar Apr 10 '23 08:04 gedw99