[Mono-bugs] [Bug 50849][Nor] New - Multiple included resource files: Problems accessing resource data, garbled data
Tue, 3 Feb 2004 12:59:49 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by email@example.com.
--- shadow/50849 2004-02-03 12:59:49.000000000 -0500
+++ shadow/50849.tmp.1233 2004-02-03 12:59:49.000000000 -0500
@@ -0,0 +1,80 @@
+Summary: Multiple included resource files: Problems accessing resource data, garbled data
+Description of Problem:
+When including multiple resource files using the -resource option to mcs,
+the runtime produces reproducable odd garbled data at some of the files.
+This is in the context of Gdk#, Gtk# and Gnome#, which may be part of the
+problem. The problem goes away instantly in case the resource files are not
+included, but accessed as files.
+Steps to reproduce the problem:
+1. Unpack and "make" the attached file.
+2. Run ./SSkat.exe
+3. Press "Give cards"
+Null reference exceptions and garbled pixbuf dimensions for image files
+loaded from resource files.
+What should happen is that a picture from a resource file is loaded and
+displayed to the canvas. If the responsible line of code at
+SkatCanvas.cs:57 is changed to use static names, it works as expected. See
+the comments right at SkatCanvas.c:56 to change this. Also, if at
+SkatCard.cs:34 the Gdk.Pixbuf constructor is changed to load the resource
+from a file (ie removing the first null, parameter), it also works exactly
+as expected. Also, for some cards it works, roughly 60% of the files. I
+double checked all included resource file names and the files are exactly
+included as all others are. On my system, the cards that always produce a
+crash are: 17, 6, 3, 4, 15, 5, 18, 10, 16, 9. Cards that are displayed, but
+with garbled data are 8 and 12. Cards that always work are: 29, 9, 32, 23,
+24, 27, 26, 7, 19, 30, 28, 31, 20. It is clearly reproducable.
+How often does this happen?
+I know the example is rather large and could have been smaller to narrow
+down the problem, sorry.
+------- Additional Comments From firstname.lastname@example.org 2003-11-12 05:45 -------
+Created an attachment (id=5926)
+Reproducing program, including .exe
+------- Additional Comments From email@example.com 2003-11-13 07:41 -------
+When the program prints out the card dimensions for the first time,
+they are correct. So they are correctly read from the embedded
+resources, so it is not a resource problem.
+------- Additional Comments From firstname.lastname@example.org 2003-11-23 18:01 -------
+Have you tried this with gtk# 0.14 or newer, it seems to work here.
+Please close it if so.
+------- Additional Comments From email@example.com 2004-02-03 12:59 -------
+closing due to lack of response and jluke's comments about it not
+being reproducible on 0.14.