Opened 14 years ago
Closed 14 years ago
#7712 closed defect (worksforme)
framebuffer color error
Reported by: | ganquan | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 3.2.10 |
Keywords: | framebuffer | Cc: | |
Guest type: | Linux | Host type: | Windows |
Description
HOST OS: win xp
GUEST OS:Debian testing
I write a program which has two threads. Thread A writes data to /dev/fb0, to paint the whole screen as red{255, 0, 0}, green{0, 255, 0}, blue{0, 0, 255}, white{255, 255, 255}, gray{110, 110, 110} every 1 second. After A paints screen complete, Thread B read from /dev/fb0 and save the whole screen data and use libgd to save the screenshot as a jpeg image every 1 second. The two threads work synchronized well.
Howerver,Thread A paints the screen well, all color is correct, Thread B gets some colors error. blue becomes black, white becomes yellow, gray becomes dark yellow. Red and green is correctly.
I recompile my program and run it on VMware workstation(HOST OS winxp and GUEST OS debian testing, everything is same as Virtulbox's HOST OS and GUEST OS), both thread A and thread B work correctly. No color error.
p.s. I set the GUEST OS "vga = 0x0318" at the end of line which locate kernel image. So /dev/fb0 should be 1024x768 24bits color mode.
The information is not sufficient. Which graphics mode is selected by the guest and where is the VBox.log file for such a session?