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

glx: failed to create drisw screen; failed to load driver: zink #10

Closed
eserte opened this issue Oct 25, 2024 · 1 comment
Closed

glx: failed to create drisw screen; failed to load driver: zink #10

eserte opened this issue Oct 25, 2024 · 1 comment

Comments

@eserte
Copy link

eserte commented Oct 25, 2024

The test suite fails on my fedora smoker (with vnc setup as X11 DISPLAY, if this matters):

PERL_DL_NONLAZY=1 "/opt/perl-5.38.2t/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t

#   Failed test 'simple lines plot succeeded'
#   at t/simple.t line 99.
#          got: 'PDL::Graphics::Gnuplot: ERROR: the gnuplot backend issued an error:
# 
# glx: failed to create drisw screen
# failed to load driver: zink
#  at /opt/perl-5.38.2t/lib/site_perl/5.38.2/PDL/Graphics/Gnuplot.pm line 7647.
# 	PDL::Graphics::Gnuplot::_checkpoint(PDL::Graphics::Gnuplot=HASH(0x289ce70), "main", HASH(0x3110040)) called at /opt/perl-5.38.2t/lib/site_perl/5.38.2/PDL/Graphics/Gnuplot.pm line 3289
# 	PDL::Graphics::Gnuplot::plot(undef, HASH(0x30f8a00), HASH(0x30ff660), PDL=SCALAR(0x30fefb8), PDL=SCALAR(0x28d7528)) called at /home/cpansand/.cpan/build/2024102423/PDL-Graphics-Simple-1.014-5/blib/lib/PDL/Graphics/Simple/Gnuplot.pm line 376
# 	PDL::Graphics::Simple::Gnuplot::plot(PDL::Graphics::Simple::Gnuplot=HASH(0x30ff618), HASH(0x30f85b0), ARRAY(0x30f8658)) called at /home/cpansand/.cpan/build/2024102423/PDL-Graphics-Simple-1.014-5/blib/lib/PDL/Graphics/Simple.pm line 1161
# 	PDL::Graphics::Simple::_convenience_plot("line", PDL=SCALAR(0x30fefb8), PDL=SCALAR(0x28d7528), HASH(0x310fff8)) called at /home/cpansand/.cpan/build/2024102423/PDL-Graphics-Simple-1.014-5/blib/lib/PDL/Graphics/Simple.pm line 1164
# 	PDL::Graphics::Simple::line(PDL=SCALAR(0x30fefb8), PDL=SCALAR(0x28d7528), HASH(0x310fff8)) called at t/simple.t line 98
# 	eval {...} called at t/simple.t line 98
# '
#     expected: ''
# module 'plplot' registration hash: {
#   'engine' => 'PDL::Graphics::PLplot',
#   'module' => 'PDL::Graphics::Simple::PLplot',
#   'msg' => 'Can\'t locate PDL/Graphics/PLplot.pm in @INC (you may need to install the PDL::Graphics::PLplot module) (@INC entries checked: /home/cpansand/.cpan/build/2024102423/PDL-Graphics-Simple-1.014-5/blib/lib /home/cpansand/.cpan/build/2024102423/PDL-Graphics-Simple-1.014-5/blib/arch /opt/perl-5.38.2t/lib/site_perl/5.38.2/x86_64-linux-thread-multi /opt/perl-5.38.2t/lib/site_perl/5.38.2 /opt/perl-5.38.2t/lib/5.38.2/x86_64-linux-thread-multi /opt/perl-5.38.2t/lib/5.38.2 .) at /home/cpansand/.cpan/build/2024102423/PDL-Graphics-Simple-1.014-5/blib/lib/PDL/Graphics/Simple/PLplot.pm line 53.
# ',
#   'ok' => 0,
#   'pgs_api_version' => '1.012',
#   'shortname' => 'plplot',
#   'synopsis' => 'PLplot (nice plotting, sloooow images)'
# }
# Skipping PDL::Graphics::Simple::PLplot: Can't locate PDL/Graphics/PLplot.pm in @INC (you may need to install the PDL::Graphics::PLplot module) (@INC entries checked: /home/cpansand/.cpan/build/2024102423/PDL-Graphics-Simple-1.014-5/blib/lib /home/cpansand/.cpan/build/2024102423/PDL-Graphics-Simple-1.014-5/blib/arch /opt/perl-5.38.2t/lib/site_perl/5.38.2/x86_64-linux-thread-multi /opt/perl-5.38.2t/lib/site_perl/5.38.2 /opt/perl-5.38.2t/lib/5.38.2/x86_64-linux-thread-multi /opt/perl-5.38.2t/lib/5.38.2 .) at /home/cpansand/.cpan/build/2024102423/PDL-Graphics-Simple-1.014-5/blib/lib/PDL/Graphics/Simple/PLplot.pm line 53.
# module 'gnuplot' registration hash: {
#   'engine' => 'PDL::Graphics::Gnuplot',
#   'itype' => 'qt',
#   'module' => 'PDL::Graphics::Simple::Gnuplot',
#   'ok' => 1,
#   'pgs_api_version' => '1.012',
#   'shortname' => 'gnuplot',
#   'synopsis' => 'Gnuplot 2D/3D (versatile; beautiful output)',
#   'valid_terms' => {
#     'cairolatex' => 1,
#     'canvas' => 1,
#     'cgm' => 1,
#     'dumb' => 1,
#     'dxf' => 1,
#     'emf' => 1,
#     'epscairo' => 1,
#     'epslatex' => 1,
#     'fig' => 1,
#     'gif' => 1,
#     'jpeg' => 1,
#     'pdfcairo' => 1,
#     'png' => 1,
#     'pngcairo' => 1,
#     'postscript' => 1,
#     'pslatex' => 1,
#     'pstex' => 1,
#     'qt' => 1,
#     'svg' => 1,
#     'texdraw' => 1,
#     'x11' => 1
#   }
# }
PDL::Graphics::Gnuplot: ERROR: the gnuplot backend issued an error:

glx: failed to create drisw screen
failed to load driver: zink
 at /opt/perl-5.38.2t/lib/site_perl/5.38.2/PDL/Graphics/Gnuplot.pm line 7647.
	PDL::Graphics::Gnuplot::_checkpoint(PDL::Graphics::Gnuplot=HASH(0x30f1bb0), "main", HASH(0x30f1ce8)) called at /opt/perl-5.38.2t/lib/site_perl/5.38.2/PDL/Graphics/Gnuplot.pm line 3289
	PDL::Graphics::Gnuplot::plot(undef, HASH(0x30f2a20), HASH(0x2fcb8b0), PDL=SCALAR(0x2f9d5a8), PDL=SCALAR(0x30132b0)) called at /home/cpansand/.cpan/build/2024102423/PDL-Graphics-Simple-1.014-5/blib/lib/PDL/Graphics/Simple/Gnuplot.pm line 376
	PDL::Graphics::Simple::Gnuplot::plot(PDL::Graphics::Simple::Gnuplot=HASH(0x30ff1e0), HASH(0x2fbd770), ARRAY(0x30ff810)) called at /home/cpansand/.cpan/build/2024102423/PDL-Graphics-Simple-1.014-5/blib/lib/PDL/Graphics/Simple.pm line 1084
	PDL::Graphics::Simple::plot(PDL::Graphics::Simple=HASH(0x2f05c58), "with", "polylines", PDL=SCALAR(0x2f9d0c8), PDL=SCALAR(0x3001800), HASH(0x2f9cde0)) called at t/simple.t line 174
# Tests were run but no plan was declared and done_testing() was not seen.
t/simple.t .. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/49 subtests 
	(less 15 skipped subtests: 33 okay)
mohawk2 added a commit to PDLPorters/PDL-Graphics-Gnuplot that referenced this issue Oct 28, 2024
@mohawk2
Copy link
Member

mohawk2 commented Oct 28, 2024

Thanks for the report! This is actually a problem with PDL::Graphics::Gnuplot, hence the commit linked above. I've released a new version of that which should tolerate this new chattiness from gnuplot 6, as well as a new P:G:Simple which reports the versions of underlying graphics engines.

Could I ask you to install the new P:G:G, then try the new P:G:Simple against it?

While I think of it, do you have any thoughts on eserte/perl-tk#104 (comment) ?

@mohawk2 mohawk2 closed this as completed Nov 6, 2024
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

No branches or pull requests

2 participants