Bug 992 : continue to have problem exporting my sketch, get blank white 100 square
Last modified: 2008-11-06 07:35




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
oompa_l
Assigned To:
fry

Attachment Type Created Size Actions
example sketch application/x-zip-compressed 2008-11-04 13:44 44.67 KB

Description:   Opened: 2008-11-02 15:33
I just upgraded to the latest build and thought (hoped) that this issue had
been resolved.

When I go File, Export the resulting html page gives me a blank square of
100 x 100 with the typical bg color and links ot classes but ultimately the
applet does not work. I was told, when I reported this a few weeks ago that
this issue had been resolved...

1. 0154
2. windowsXP
3. (can't figure out what the best response is here)
4. what I have only just noticed is that the problem is sketch specific and
I am noticing them in my own projects and not in the examples. Another
strange aspect is that the examples are pumping out single jar files into
the export folder while mine have multiple...

thanks
Additional Comment #1 From fry 2008-11-03 03:50
I need an example that reproduces the problem, especially if it's not
happening in the examples, but is happening in your code.
Additional Comment #2 From oompa_l 2008-11-03 11:32
I am now having difficulty adding the file - I thought a zip would be
appropriate so you could have the full sketchbook including the resultant
export applet - can you suggest another way? bugzilla is not allowing this...
Additional Comment #3 From fry 2008-11-04 08:27
a zip should work fine, just use tools > archive sketch to and upload the
file it creates.
Additional Comment #4 From oompa_l 2008-11-04 09:44
it's not happening, the uploading of the attachment...

Internal Server Error

The server encountered an internal error or misconfiguration and was unable
to complete your request.

Please contact the server administrator, webmaster@processing.org and
inform them of the time the error occurred, and anything you might have
done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.0.46 (White Box) Server at dev.processing.org Port 80
Additional Comment #5 From fry 2008-11-04 13:32
how large is the zip file? the database seems to be giving up before the
upload has completed.
Additional Comment #6 From fry 2008-11-04 13:33
also when uploading, be sure to remove the 'applet' folder or any
'application' folders before doing the archive sketch. as well as any
additional files that are not actually part of the sketch (large data
files, etc).
Additional Comment #7 From oompa_l 2008-11-04 13:42
oh, I thought you'd want to see what was being spewed out - eg applet
folder...without that evidence, on a working copy of processing i dont
think you'll reproduce the results...anyways i will attach
Additional Comment #8 From oompa_l 2008-11-04 13:44
edit]
example sketch
Additional Comment #9 From fry 2008-11-04 13:54
You've gotta mind the reference for the size() command:

"Using variables as the parameters to size() is strongly discouraged and
can create problems. Instead, use a numeric value for the width and height
variables if you need to know the dimensions of the display window within
your program."

Or from the vida book:

"For objects whose size is dependent on the screen, always use the width
and height variables instead of a number. This prevents problems when the
size() line is altered."

But since you're not the first to have trouble, I've changed the reference
for the size() command to be more explicit for the next release:

"Do not use variables as the parameters to size() command, because it will
cause problems when exporting your sketch. Instead, employ numeric values
in the size() statement, and then use the built-in width and height
variables inside your program when you need the dimensions of the display
window are needed."
Additional Comment #10 From oompa_l 2008-11-04 19:57
thanks so much. i know it seems elementary but I never would have figured
that one out...thanks
Additional Comment #11 From fry 2008-11-06 07:35
k, i've added more detail to the error message that pops up.