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

Windowless example with sciter.lite does not work #146

Open
LaineZ opened this issue May 10, 2024 · 1 comment
Open

Windowless example with sciter.lite does not work #146

LaineZ opened this issue May 10, 2024 · 1 comment

Comments

@LaineZ
Copy link

LaineZ commented May 10, 2024

Windowless example from this repository does not work (Sciter 4.4.9.3.)

loading sciter from "D:\\projects\\dubspell\\sciter-js-sdk-4.4.9.3\\bin.lite\\windows\\x64\\sciter.dll"
create window
create sciter instance
running...
mouse enter
thread 'main' panicked at C:\Users\user\.cargo\registry\src\index.crates.io-6f17d22bba15001f\sciter-rs-0.5.58\src\windowless.rs:288:17:
assertion failed: !rgba.is_null()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `F:\rust-sciter\target\debug\windowless.exe D:\projects\dubspell\sciter-js-sdk-4.4.9.3\bin.lite\windows\x64\sciter.dll` (exit code: 101)

I found one forum topic about that (https://sciter.com/forums/topic/sciter-lite-is-broken/) but I can't understand what's mean "recompile project".

Same panic occurs at last version of Sciter (5.0.3.11)

loading sciter from "F:\\rust-sciter\\sciter-js-sdk-main\\sciter-js-sdk-main\\bin.lite\\windows\\x64\\sciter.dll"
create window
create sciter instance
running...
thread 'main' panicked at C:\Users\user\.cargo\registry\src\index.crates.io-6f17d22bba15001f\sciter-rs-0.5.58\src\windowless.rs:288:17:
assertion failed: !rgba.is_null()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `F:\rust-sciter\target\debug\windowless.exe F:\rust-sciter\sciter-js-sdk-main\sciter-js-sdk-main\bin.lite\windows\x64\sciter.dll` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)

OS: Windows 10

@LaineZ
Copy link
Author

LaineZ commented May 12, 2024

I found as a walkaround, before calling a RenderTo message you need specify a initial window size. like this

handle_message(scwnd, Message::Size { width: 800, height: 600 });

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

No branches or pull requests

1 participant