Skip to content

Fixed error that happened in multi-screen environments#29

Open
etsinko wants to merge 1 commit into
hharrison:masterfrom
etsinko:fix-to-multiscreen-query
Open

Fixed error that happened in multi-screen environments#29
etsinko wants to merge 1 commit into
hharrison:masterfrom
etsinko:fix-to-multiscreen-query

Conversation

@etsinko

@etsinko etsinko commented Aug 29, 2019

Copy link
Copy Markdown

In our environment we have two screens and sometimes we would get this exception when doing canvas.queryProperties():

java.lang.IllegalArgumentException: adding a container to a container on a different GraphicsDevice
	at java.awt.Component.checkGD(Component.java:1185)
	at java.awt.Container.addImpl(Container.java:1093)
	at java.awt.Container.add(Container.java:973)
	at javax.media.j3d.JoglPipeline.createQueryContext(JoglPipeline.java:6558)
	at javax.media.j3d.Canvas3D.createQueryContext(Canvas3D.java:4619)
	at javax.media.j3d.Canvas3D.createQueryContext(Canvas3D.java:3616)
	at javax.media.j3d.Renderer.doWork(Renderer.java:461)
	at javax.media.j3d.J3dThread.run(J3dThread.java:271)

I traced it and found out that it happens because frame is created with one screen's configuration, while QueryCanvas is created with another screen's configuration. This pull request fixes this problem by creating Frame with same graphics configuration as QueryCanvas

@ghost

ghost commented Aug 29, 2019

Copy link
Copy Markdown

Please rather put your pull requests here:
https://github.com/philjord/java3d-core/pulls

Harvey no longer maintains Java3D:
#28 (comment)

Keep in mind that some repositories are only used as mirrors, contact the JogAmp community on our official forum:
https://forum.jogamp.org

@philjord Are you aware of this?

@etsinko

etsinko commented Aug 29, 2019

Copy link
Copy Markdown
Author

@gouessej Thanks for the update! I created a PR in that other repo

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant