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

glfwGetMonitors lists deactivated monitors #36

Closed
karhu opened this Issue Jun 7, 2013 · 13 comments

Comments

Projects
None yet
3 participants
@karhu

karhu commented Jun 7, 2013

On my machine (Ubuntu Linux 12.10) this function also lists monitors that were deactivated (via the Displays system tool).

This is problematic, as using these monitor handles in glfw queries causes errors. For example calling glfwGetMonitorPos(), I get:

X Error of failed request:  BadRRCrtc (invalid Crtc parameter)
  Major opcode of failed request:  157 (RANDR)
  Minor opcode of failed request:  20 (RRGetCrtcInfo)
  Crtc id in failed request: 0x0
  Serial number of failed request:  103
  Current serial number in output stream:  103

@ghost ghost assigned elmindreda Jun 9, 2013

@elmindreda

This comment has been minimized.

Show comment
Hide comment
@elmindreda

elmindreda Jun 12, 2013

Member

What is the output of glxinfo and xrandr?

Member

elmindreda commented Jun 12, 2013

What is the output of glxinfo and xrandr?

@elmindreda

This comment has been minimized.

Show comment
Hide comment
@elmindreda

elmindreda Jun 12, 2013

Member

Also, is anything in this issue familiar?

Member

elmindreda commented Jun 12, 2013

Also, is anything in this issue familiar?

@elmindreda

This comment has been minimized.

Show comment
Hide comment
@elmindreda

elmindreda Jun 12, 2013

Member

Please see if current master works better on your machine.

Member

elmindreda commented Jun 12, 2013

Please see if current master works better on your machine.

@karhu

This comment has been minimized.

Show comment
Hide comment
@karhu

karhu Jun 12, 2013

Thanks, this works now as expected. Please let me know if you still need any info/feedback.

karhu commented Jun 12, 2013

Thanks, this works now as expected. Please let me know if you still need any info/feedback.

@elmindreda

This comment has been minimized.

Show comment
Hide comment
@elmindreda

elmindreda Jun 12, 2013

Member

I believe this bug is fixed, then. Thank you for your help!

Member

elmindreda commented Jun 12, 2013

I believe this bug is fixed, then. Thank you for your help!

@elmindreda elmindreda closed this Jun 12, 2013

@wagnerpatriota

This comment has been minimized.

Show comment
Hide comment
@wagnerpatriota

wagnerpatriota Mar 6, 2014

I got this error when trying to open GLFW 3.0.4 on Amazon Linux (Amazon EC2 hvm). Here is my glxinfo (http://pastebin.com/3se9DCJE). Any idea?

I got this error when trying to open GLFW 3.0.4 on Amazon Linux (Amazon EC2 hvm). Here is my glxinfo (http://pastebin.com/3se9DCJE). Any idea?

@elmindreda

This comment has been minimized.

Show comment
Hide comment
@elmindreda

elmindreda Mar 6, 2014

Member

@wagnerpatriota What is the output of xrandr?

Member

elmindreda commented Mar 6, 2014

@wagnerpatriota What is the output of xrandr?

@wagnerpatriota

This comment has been minimized.

Show comment
Hide comment
@wagnerpatriota

wagnerpatriota Mar 6, 2014

Screen 0: minimum 8 x 8, current 640 x 480, maximum 16384 x 16384

Screen 0: minimum 8 x 8, current 640 x 480, maximum 16384 x 16384

@elmindreda

This comment has been minimized.

Show comment
Hide comment
@elmindreda

elmindreda Mar 6, 2014

Member

No monitors, huh. GLFW fails with BadRRCrtc?

Member

elmindreda commented Mar 6, 2014

No monitors, huh. GLFW fails with BadRRCrtc?

@wagnerpatriota

This comment has been minimized.

Show comment
Hide comment
@wagnerpatriota

wagnerpatriota Mar 6, 2014

yes... is there a workaround? I wanna do offscreen rendering...

X Error of failed request: BadRRCrtc (invalid Crtc parameter)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 22 (RRGetCrtcGammaSize)
Crtc id in failed request: 0x1
Serial number of failed request: 57
Current serial number in output stream: 57

yes... is there a workaround? I wanna do offscreen rendering...

X Error of failed request: BadRRCrtc (invalid Crtc parameter)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 22 (RRGetCrtcGammaSize)
Crtc id in failed request: 0x1
Serial number of failed request: 57
Current serial number in output stream: 57

@elmindreda

This comment has been minimized.

Show comment
Hide comment
@elmindreda

elmindreda Mar 6, 2014

Member

There is a bugfix for this in master. It was made after 3.0.4 was released.

Member

elmindreda commented Mar 6, 2014

There is a bugfix for this in master. It was made after 3.0.4 was released.

@elmindreda

This comment has been minimized.

Show comment
Hide comment
@elmindreda

elmindreda Mar 6, 2014

Member

There may be other bugs on that setup. Report them as you find them.

Member

elmindreda commented Mar 6, 2014

There may be other bugs on that setup. Report them as you find them.

@wagnerpatriota

This comment has been minimized.

Show comment
Hide comment
@wagnerpatriota

wagnerpatriota Mar 7, 2014

great! it worked! thank you very very much Camilla! if I find some other issue I will let you know! ;-)

great! it worked! thank you very very much Camilla! if I find some other issue I will let you know! ;-)

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