AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
142.86k stars 26.93k forks source link

[Bug]: Generate Button throws ReferenceError: submit is not defined Error #10442

Open jackkerouac opened 1 year ago

jackkerouac commented 1 year ago

Is there an existing issue for this?

What happened?

Clicking the generate button throws a ReferenceError: submit is not defined error and does nothing.

Steps to reproduce the problem

  1. Load program
  2. Enter description of image
  3. Click Generate

What should have happened?

Generation process should begin.

Commit where the problem happens

89f9faa

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Mozilla Firefox, Google Chrome, Microsoft Edge

Command Line Arguments

--xformers

List of extensions

None

Console logs (Firefox)

Uncaught (in promise) ReferenceError: submit is not defined
    anonymous Blocks-842d53a2.js line 35 > AsyncFunction:3
    xe Blocks-842d53a2.js:36
    uo Blocks-842d53a2.js:36
    Cn index.mjs:1170
    Cn index.mjs:1170
    f Button.svelte:12
    Cn index.mjs:1170
    Cn index.mjs:1170
    v Button.svelte:11
    Te index.mjs:421
    m Button.svelte:25
    me index.mjs:2030
    m Button.svelte:21
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Row.svelte:21
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Column.svelte:24
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Row.svelte:21
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m TabItem.svelte:24
    m index-cb14108f.js:1
    m Column.svelte:24
    me index.mjs:2030
    m TabItem.svelte:35
    me index.mjs:2030
    m Tabs.svelte:10
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m index-d7a9d4ac.js:1
    m Tabs.svelte:75
    me index.mjs:2030
    m index-d7a9d4ac.js:1
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Blocks-842d53a2.js:5
    m Column.svelte:24
    me index.mjs:2030
    m Blocks-842d53a2.js:5
    me index.mjs:2030
    m Blocks-842d53a2.js:34
    p Blocks-842d53a2.js:35
    Mn index.mjs:1273
    en index.mjs:1233
    promise callback*Yt index.mjs:1184
    Rn index.mjs:2066
    ctx index.mjs:2104
    He Index.svelte:270
    i Index.svelte:331
    ctx index.mjs:2102
    Ns Blocks-842d53a2.js:36
    promise callback*Ns/< Blocks-842d53a2.js:36
    promise callback*Ns Blocks-842d53a2.js:36
    De index.mjs:2098
    Rs Blocks-842d53a2.js:36
    zo Index.svelte:331
    p Index.svelte:284
    Vt index.mjs:100
    p Embed.svelte:25
    Mn index.mjs:1273
    en index.mjs:1233
    promise callback*Yt index.mjs:1184
    Rn index.mjs:2066
    ctx index.mjs:2104
    Ee Index.svelte:228
    Ve Index.svelte:261
    update Index.svelte:223
    Mn index.mjs:1269
    en index.mjs:1233
    promise callback*Yt index.mjs:1184
    Rn index.mjs:2066
    ctx index.mjs:2104
    Lo Index.svelte:197
    It index.mjs:20
    me index.mjs:2034
    en index.mjs:1255
    De index.mjs:2130
    Mo Index.svelte:223
    connectedCallback main.ts:71
    Po main.ts:98
    <anonymous> main.ts:101
Blocks-842d53a2.js line 35 > AsyncFunction:3:14

(Microsoft Edge):


    at Object.eval [as frontend_fn] (eval at <anonymous> (Blocks.svelte:67:25), <anonymous>:3:14)
    at xe (Blocks.svelte:290:6)
    at HTMLButtonElement.<anonymous> (Blocks.svelte:349:7)
    at index.mjs:1170:44
    at Array.forEach (<anonymous>)
    at HTMLButtonElement.Cn (index.mjs:1170:27)
    at HTMLButtonElement.f (Button.svelte:12:51)
    at index.mjs:1170:44
    at Array.forEach (<anonymous>)
    at HTMLButtonElement.Cn (index.mjs:1170:27)
eval @ VM39:3
xe @ Blocks.svelt```

### Additional information

_No response_
xwhzz commented 1 year ago

When I use the gradio-app component to embed this into my web app, there is the same issue here.

Eddcapone commented 1 year ago

Any news? It doesn't work for me either (windows 10)

marchcat69 commented 1 year ago

Same issue after upgrading to 1.6. All submit buttons don't work.

Meowdoleon commented 1 year ago

Same issue here. I also tried Opera without success. I am getting a whole lot of 403 Forbidden Error too though. Not sure if related.

samvv commented 1 year ago

I am getting a whole lot of 403 Forbidden Error too though.

Same here.

MikkoMMM commented 1 year ago

I've been trying a clean install of the webui, and went ahead and pulled up Python 3.10.13, and I'm still getting this error. I'm using Arch Linux myself. My console logs aren't exactly the same as the OP's, but I would imagine this is basically the same issue. This is how the log ends (on Chromium):

VM308:3 Uncaught (in promise) ReferenceError: applyExtraNetworkFilter is not defined
    at eval (eval at <anonymous> (Blocks.svelte:68:25), <anonymous>:3:32)
    at Object.eval [as frontend_fn] (eval at <anonymous> (Blocks.svelte:68:25), <anonymous>:3:79)
    at we (Blocks.svelte:366:6)
eval @ VM308:3
eval @ VM308:3
we @ Blocks.svelte:366
Promise.then (async)
we @ Blocks.svelte:371
await in we (async)
(anonymous) @ Blocks.svelte:551
(anonymous) @ Blocks.svelte:550
dispatch @ gradio_helper.ts:31
o @ StaticHtml.svelte:30
(anonymous) @ lifecycle.js:105
(anonymous) @ lifecycle.js:104
G.t.$$.update @ HTML.svelte:11
Zi @ scheduler.js:115
Bo @ scheduler.js:79
Promise.then (async)
To @ scheduler.js:20
ea @ Component.js:79
(anonymous) @ Component.js:127
qe @ Blocks.svelte:278
(anonymous) @ Blocks.svelte:389
(anonymous) @ index.js:584
y @ index.js:584
F.onmessage @ index.js:547
VM248:3 Uncaught (in promise) ReferenceError: submit is not defined
    at Object.eval [as frontend_fn] (eval at <anonymous> (Blocks.svelte:68:25), <anonymous>:3:14)
    at we (Blocks.svelte:366:6)
eval @ VM248:3
we @ Blocks.svelte:366
Promise.then (async)
we @ Blocks.svelte:371
await in we (async)
(anonymous) @ Blocks.svelte:551
(anonymous) @ Blocks.svelte:550
dispatch @ gradio_helper.ts:31
w @ StaticButton.svelte:39
(anonymous) @ lifecycle.js:181
Ec @ lifecycle.js:181
L @ Button.svelte:16
MikkoMMM commented 1 year ago

This worked for me: https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/13507#issuecomment-1748899174

glibg10b commented 9 months ago

Make sure the path doesn't contain a directory that starts with a dot. In my case, I had to move it from /home/waldo/.local/bin/ to /home/waldo/bin/