hi,
i've installed gallery 2.0.1, but i got problems when i upload files (>20) via GalleryRemote or Applett.
all files are smaller than 20MB.
the upload hangs after uploaded some files. if i cancel the upload and start it again, all files are transferred.
my php.ini settings are:
<snip>
memory_limit = 16M
upload_max_filesize = 100M
post_max_size = 100M
<snap>
does anyone of you have an idea what happens?
regards,
mr.bienzle
Posts: 32509
the upload limits are shown in
add item -> from web browser. there's a per file and a total upload limit. make sure they are the same as the ones you set in php.ini (webserver restart needed).
else:
maybe report this in the Gallery Remote forum.
Posts: 12
it tells me:
"You can upload up to 100 megabytes at one time. No individual file may be larger than 100 megabytes."
i now figured out, that the upload is hanging just before uploaded 90MB amount of data (no matter which pictures i've chosen).
after that i increased:
upload_max_filesize = 200M
post_max_size = 200M
... without success ;(
the upload still hangs just before 90M (yes, i've restarted the webserver ;-)
any ideas?
i appreciate any help. thx!
Posts: 32509
if you're using apache2, there could also be another limit (limitrequestbody in the apache configuration files).
Posts: 12
i checked this, but the directive is not set. i also tried to set it to:
LimitRequestBody 0
which means "no limit". but even then applet/remotegallery file upload hangs just before 90MB.
What worked, is to upload one zipped file (e.g. 178MB), which means for me, that apache/php is configured the right way, isn't it?
if you need more information, don't hesitate to contact me ;-)
thanks in advance.
Posts: 12
i've installed gallery v1.5.1, now.
with this version (and exactly the same apache/php configuration) the file upload via applet/gallery remote works (even with several files more than 90MB total ;)
so it definetely should be a gallery2 problem. anyone else, who has the same problems than i have?
i even tried it, by exchanging the applet itself,... no success
Posts: 32509
don't use the applet when debugging G2 issues.
you've got to enable logged or immediate debug mode in g2 and then retry to 100mb upload.
Posts: 12
right before the upload hangs, there is a "java.lang.OutOfMemoryError" and a java.lang.IndexOutOfBoundsException. attached you'll find the log.
Posts: 32509
sorry, gotta repeat myself:
we want to solve this issue, right? and doing it in combination with Gallery Remote / upload applet only adds complexity to the case.
so use another add item method if you want to debug g2.
if you want to solve your GR / upload applet issue, you have to discuss it in the Gallery Remote forum.
Posts: 12
I see. But let me quote my message:
This means that the issue only appears, if i use Gallery Remote in combination with Gallery v2.0.1
Let me clarify the situation by using a table:
!Gallery Version ! kind of Upload ! amount of Data ! status !
--------------------------------------------------------------------
! v1.5.1 ! item upload ! doesn't matter ! WORKS !
! v1.5.1 ! applet upload ! doesn't matter ! WORKS !
! v1.5.1 ! GR upload ! doesn't matter ! WORKS !
! v2.0.1 ! item upload ! doesn't matter ! WORKS !
! v2.0.1 ! applet upload ! <90M ! WORKS !
! v2.0.1 ! GR upload ! <90M ! WORKS !
! v2.0.1 ! applet upload ! >90M ! DOESN'T WORK !
! v2.0.1 ! GR upload ! >90M ! DOESN'T WORK !
Maybe i'll try my luck in the Gallery Remote Forum.
Thanks anyway!
Posts: 32509
we can move this topic to the GR forum since it's obviously a GR / G2 problem.
"java.lang.OutOfMemoryError"
sounds more like a java error of GR, maybe your computer has too few memory, maybe GR has a bug there.
Posts: 12
by debugging/profiling into the Remote Gallery Application, i've figured out, what the problem is in the end:
if you're on a "slow" connection, everything works as expected. but if you are uploading your pictures via a fast connection (i did it via a 100MBit connection), some object (i guess "RespHandlerList" in "StreamDemultiplexor") holds a reference to the Request-Objects for a long time.
Since the Request Objects are holding the payload-data in a byte-array, and all my pictures have about 1MB-4MB, the Java Heap is filled quite fast!
attached, you'll find a patch that fixes this bug. this patch simply sets the entity data of the Request to null, if it's not needed anymore.
Is there anybody who will apply the patch into cvs? I guess there are more people (see http://gallery.menalto.com/node/38888) that are waiting for a bugfix ;-)
regards,
mr.bienzle
Posts: 12
Is anybody of the GR Developers reading this Bug? I've sent you a patch (one post above) two month ago, that fixes this Bug and Bug #38777. Would you please be so kind and add this patch to CVS and to the next Release? Thanks!
Posts: 11
It's MArch 2006, i'm using the current version of Gallery Remote (1.5), and i have this exact problem (well i have the symptoms but don't know how to check for a java error)
Posts: 12
it seems that several people do have that error (this conclusion is supported by my inbox
but nobody feels responsible to commit the fix into cvs. i guess paour should be the right person for that?
Posts: 8
It's August 28, 2008. I'm using (the latest) version 1.5.1-b39 of GR.
A fix has been suggested, yet the problem still remains.
Is Gallery Remote abandoned?
IT Gallery Online!
http://www.infotechgallery.com
Posts: 10
Just wondered if anyone has resolved this issue?
Don
Posts: 10
sorry, I'm a noob, but how do I apply this patch? Thanks!