CreateWindow not working on Secondary Screen

167 views
Skip to first unread message

Mora Ogando

unread,
Dec 28, 2021, 1:34:30 AM12/28/21
to Bonsai Users
Hi there! I'm a bit new to Bonsai and I wonder if you can help me fix a strange issue I'm having displaying visual stimuli on a secondary screen.
I did a fresh Bonsai installation (6.2.3) and installed the starter pack on a Windows 10 computer. 
When I run a simple CreateWindow object, it works fine in the main screen, but if I set the DisplayDevice to second, the window does open in the secondary screen, but the background color never gets updated (it stays black) and bonsai seems to crash without throwing an error.
If I swap the main vs secondary screens I have the same issue: the primary screen (former secondary) works well and the secondary screen crashes, so this is independent of the physical identity of the screens.

I'm running out of things to try, but one thing we checked is that an identical fresh install of bonsai in a previously created virtual machine inside the same host computer actually displays the window correctly on both screens, which might mean this is a windows update issue? However we uninstalled all recent updates and couldn't fix it.

I wonder if this issue was reported before or if there's a way to have Bonsai print the state of the process before crashing? like a verbose mode? 
Any hint on how to continue troubleshooting would be very much appreciated! 

Thanks a lot in advance! 









Capture.PNG

Gonçalo Lopes

unread,
Dec 29, 2021, 9:30:17 PM12/29/21
to Mora Ogando, Bonsai Users
Hi Mora,

This is a bit strange and it might be a graphics driver issue. Have you tried updating your graphics card drivers?

--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/f75d71ef-4158-416f-8f70-ad7c9dd61bcbn%40googlegroups.com.

Aman Saleem

unread,
Dec 30, 2021, 5:23:32 AM12/30/21
to Gonçalo Lopes, Mora Ogando, Bonsai Users
Hi Mora, 

I also wonder if it's related to the graphics card + monitor configuration. Is it an extended display? 


Reply all
Reply to author
Forward
0 new messages