sciter-sdk / go-sciter

Golang bindings of Sciter: the Embeddable HTML/CSS/script engine for modern UI development
https://sciter.com
2.57k stars 268 forks source link

index out of range [x] with length x #308

Open asjustas opened 3 years ago

asjustas commented 3 years ago

Hi

my users receive a lot errors like this (check snippet bellow). Maybe I am doing something wrong? Also I cant reproduce this issue I only see that app is crashing for users with this error.

runtime.boundsError
runtime error: index out of range [303109] with length 303105

/go/pkg/mod/github.com/sciter-sdk/go-sciter@v0.5.1-0.20200602150116-89a4dd09b0f8/sciter.go in goSciterElementCallback at line 1097
_cgo_gotypes.go in _cgoexpwrap_bdd04dc8eea4_goSciterElementCallback at line 2065
/usr/local/go/src/runtime/syscall_windows.go in Syscall at line 188
/go/pkg/mod/github.com/lxn/win@v0.0.0-20191128105842-2da648fda5b4/user32.go in DispatchMessage at line 2294
… od/github.com/sciter-sdk/go-sciter@v0.5.1-0.20200602150116-89a4dd09b0f8/window/window_windows.go in (*Window).Run at line 65
pravic commented 3 years ago

It looks like here, but now sure, why:

https://github.com/sciter-sdk/go-sciter/blob/a04e052a28133d8a79c82b53fc861d1e473c0499/sciter.go#L1095-L1100