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

Crash after a while (at least on Safari + Wasm) #678

Closed
hajimehoshi opened this issue Sep 10, 2018 · 4 comments
Closed

Crash after a while (at least on Safari + Wasm) #678

hajimehoshi opened this issue Sep 10, 2018 · 4 comments

Comments

@hajimehoshi
Copy link
Owner

Crash with the message "This webpage was reloaded because a problem occurred". I suspect it is a memory leak, but I don't know.

@hajimehoshi hajimehoshi added this to the v1.8.0 milestone Sep 10, 2018
@hajimehoshi hajimehoshi changed the title Crash after a while Crash after a while (at least on Safari + Wasm) Sep 10, 2018
@hajimehoshi
Copy link
Owner Author

Unhandled Promise Rejection: Error: Out of memory

Sometimes I see this message, but still am not sure this is related.

@hajimehoshi hajimehoshi modified the milestones: v1.8.0, v1.9.0 Sep 10, 2018
@hajimehoshi
Copy link
Owner Author

Now the crash doesn't happen.

@hajimehoshi
Copy link
Owner Author

With Go 1.12 beta2, OOM happend :-/

Unhandled Promise Rejection: Error: Out of memory

with a simple test code:

package main

import (
	"syscall/js"
)

func main() {
	f := js.FuncOf(func(this js.Value, args []js.Value) interface{} {
		println("hi")
		return nil
	})
	defer f.Release()
	js.Global().Call("setTimeout", f, 1000)
	select {}
}

@hajimehoshi hajimehoshi reopened this Jan 21, 2019
@hajimehoshi hajimehoshi removed this from the v1.9.0 milestone Jan 21, 2019
@hajimehoshi
Copy link
Owner Author

golang/go#27462 Looks like this is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant