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

'Failed to create a Winit window' when a debugger tries to pop up with a very long space title #3765

Closed
StephanEggermont opened this issue May 10, 2024 · 5 comments · Fixed by feenkcom/Bloc#16
Milestone

Comments

@StephanEggermont
Copy link
Contributor

Windows 11, 1.0.671

WinitMainThreadEventLoop(Object)>>error:
Receiver: a WinitMainThreadEventLoop(@ 16r1E674438EA0)
Arguments and temporary variables:
aString: 'Failed to create a Winit window'
Receiver's instance variables:
handle: @ 16r1E674438EA0
isAutoRelease: true
isRunning: true
waker: @ 16r1E674438CC0

WinitMainThreadEventLoop>>createWindow:
Receiver: a WinitMainThreadEventLoop(@ 16r1E674438EA0)
Arguments and temporary variables:
aWindowBuilder: a WinitWindowBuilder(@ 16r1E60EFB7B40)
aBuilderCopy: a WinitWindowBuilder(@ 16r00000000)
aWindow: a WinitWindowReference(@ 16r00000000)
Receiver's instance variables:
handle: @ 16r1E674438EA0
isAutoRelease: true
isRunning: true
waker: @ 16r1E674438CC0

BlWinitHost(BlRustWindowingHost)>>createWindowSpaceFor:
Receiver: a BlWinitHost
Arguments and temporary variables:
aSpace: a BlSpace('KeyNotFound: key ''{"data":{"getTestPlans":{"total":43,"star...etc...
aHostSpace: nil
windowBuilder: a WinitWindowBuilder(@ 16r1E60EFB7B40)
windowedContext: nil
eventLoop: a WinitMainThreadEventLoop(@ 16r1E674438EA0)
Receiver's instance variables:
a BlWinitHost

BlWinitHost(BlRustWindowingHost)>>createHostSpaceFor:
Receiver: a BlWinitHost
Arguments and temporary variables:
aSpace: a BlSpace('KeyNotFound: key ''{"data":{"getTestPlans":{"total":43,"star...etc...
aHostSpace: nil
Receiver's instance variables:
a BlWinitHost

@girba
Copy link
Member

girba commented May 10, 2024

Thanks. Do you have a way to reproduce the error?

@StephanEggermont
Copy link
Contributor Author

space := BlSpace new.
longString := String loremIpsum: 65536.
space title: longString.
space show

@StephanEggermont
Copy link
Contributor Author

On Linux, the limit seems to be higher. 65536000 crashes the image

@StephanEggermont
Copy link
Contributor Author

StephanEggermont commented May 11, 2024

On a M1 Max, 1.0.663 or 1.0.714 it takes about 16 minutes to open the space with 6553600 string length. During that time the image is unresponsive, so I assume it is in an FFI call

@StephanEggermont
Copy link
Contributor Author

IMG_9509

@girba girba added this to the v1.0 milestone May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants