Bug#1121622: dizzy: Crashes on launch

Étienne Mollier <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.rc
Message-ID <aoinKvwQmfax6F_H__35038.7973406882$1787340676$gmane$org@emlwks999.eu>
Control: tags -1 + help

The interesting part of the issue looks to be the beginning:

> When I run dizzy from an xterm, it crashes with these lines:
> 
> --- begin of output ---
> 
> GPU features: [x] GLSL     [x] FBOs
> Shader compilation failed: 0(2) : warning C1503: undefined variable
> "UNKNOWN_padsv_store_OP"

For a moment, I thought that Damyan's ignore-unknown-ops.patch
would be somewhat related and tried something looking like:

	--- dizzy-0.3.orig/lib/Dizzy/Perl2GLSL.pm
	+++ dizzy-0.3/lib/Dizzy/Perl2GLSL.pm
	@@ -50,11 +50,7 @@
	                        return ["glob", $pad->NAME, $pad];
	                }
	        } elsif ($optype eq "OP") {
	-               if ($op->name eq "padsv") {
	-                       return "var" . $op->targ;
	-               } else {
	-                       return ();
	-               }
	+               return ();
	        } elsif ($optype eq "COP") {
	                return ();
	        }

however this leads nowhere and running the program now results
in:

	$ dizzy
	GPU features: [x] GLSL     [x] FBOs
	Use of uninitialized value $op[2] in hash element at /usr/share/perl5/Dizzy/Perl2GLSL.pm line 165.
	Use of uninitialized value $op[3] in hash element at /usr/share/perl5/Dizzy/Perl2GLSL.pm line 166.
	Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Dizzy/Perl2GLSL.pm line 167.
	Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Dizzy/Perl2GLSL.pm line 167.
	Use of uninitialized value $op in pattern match (m//) at /usr/share/perl5/Dizzy/Perl2GLSL.pm line 107.
	Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Dizzy/Perl2GLSL.pm line 175.
	Shader compilation failed: 0:1(21): error: syntax error, unexpected '=', expecting ',' or ';'
	
	Shader source:
	void main() { float  = gl_TexCoord[0].x - 0.5; float  = gl_TexCoord[0].y - 0.5;
	UNKNOWN_padsv_store_OP;
	float retval = ((sin((3.14159265358979 / (0.0001 + (2. * )))) / 2.) + 0.5); gl_FragColor = vec4(vec3(retval), 1.0); }
	
	Died at /usr/share/perl5/Dizzy/TextureGenerator.pm line 135.

The further issues and resurgence of UNKNOWN_padsv_store_OP
suggest I may not have solved much.  Part of the issue might
require insights from people more at ease with OpenGL than I am.

In hope this helps moving forwards,
-- 
  .''`.  Étienne Mollier <[email protected]>
 : :' :  pgp: 8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
 `. `'   sent from /dev/pts/2, please excuse my verbosity
   `-
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEj5GyJ8fW8rGUjII2eTz2fo8NEdoFAmqIpyoACgkQeTz2fo8N
EdrJQhAAnkHGl5HQyPPxv2X6CDKI99OU+OyxnK1z3mFw/eVyZij5eleTH+m9JiK0
KJ26tCinLFtQz0cH48ttBeUdRsvv8QYfy1xhLIeIg+SJSIWLGqOdckImAHvYfs7T
ZazlOSoVVHR2geItl2uKmTJhsoWmGo5JSb3l9sCgjJu9/Kbcv4Jgt4osD90yaC4I
EAK8yGQAf2S32pgIFbBXowrVL/85s8jkgmZ0uowmsHNpL2+FTCZoITI2JAkr319M
s/gXniR8MgGwQ0O38C0E/JZaID4QC85rnklwOgnSVdW3cD4yRiXAd/YFL3TC7Dyy
hI5wTMNqmLJi/kt/xQVGi23f6WAJNvwq4GK/RPBLEXHbX+k40OZ0hEpVGbC6QxND
ZzFLs5LP9k0ILttRZwyBi6xGnL6pHKDBXuyjWFFcqbcx0ib7aGlHKuUl1tI9ZAfO
XNDpGo/Z1rfUrzK+e8fmnH3/0unjenq8fWACDsYYsqBc5MlIiM5NqmZyWn77NqFK
+Mtt2NgQfgfFklWw8EGjD0C9YqWyX0tfv8Wpr/McBtpXNQBbjCRMiE3qQCdXY1aC
PB4KVtxMOuY0zhA6QMKyjL+Prsimb/OFwqEJhBW8YUvP0OgtaWf7RdWlhwmRvFcZ
NgrBOu7+cG2Zqh5P7X9j9Je0vncfECswtackwH6hgytLcBaLiDQ=
=RDTB
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.