file upload hangs after some files

mr.bienzle

Joined: 2005-10-21
Posts: 12
Posted: Fri, 2005-10-21 15:03

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

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-10-21 15:44

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.

 
mr.bienzle

Joined: 2005-10-21
Posts: 12
Posted: Fri, 2005-10-21 19:37

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!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-10-21 22:32

if you're using apache2, there could also be another limit (limitrequestbody in the apache configuration files).

 
mr.bienzle

Joined: 2005-10-21
Posts: 12
Posted: Sat, 2005-10-22 16:46

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.

 
mr.bienzle

Joined: 2005-10-21
Posts: 12
Posted: Sat, 2005-10-22 17:52

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 :(

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-10-22 17:58

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.

 
mr.bienzle

Joined: 2005-10-21
Posts: 12
Posted: Sun, 2005-10-23 19:41

right before the upload hangs, there is a "java.lang.OutOfMemoryError" and a java.lang.IndexOutOfBoundsException. attached you'll find the log.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-10-23 20:48

sorry, gotta repeat myself:

Quote:
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.

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.

 
mr.bienzle

Joined: 2005-10-21
Posts: 12
Posted: Mon, 2005-10-24 05:26

I see. But let me quote my message:

Quote:
What worked, is to upload one zipped file (e.g. 178MB),...

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!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-10-24 09:54

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.

 
mr.bienzle

Joined: 2005-10-21
Posts: 12
Posted: Mon, 2005-10-24 21:25

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

 
mr.bienzle

Joined: 2005-10-21
Posts: 12
Posted: Mon, 2005-12-19 10:21

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!

 
xaphod2

Joined: 2006-03-30
Posts: 11
Posted: Fri, 2006-03-31 00:24

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)

 
mr.bienzle

Joined: 2005-10-21
Posts: 12
Posted: Wed, 2006-05-10 21:37

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?

 
zawngek

Joined: 2007-05-31
Posts: 8
Posted: Thu, 2008-08-28 11:47

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

 
donnieballgame

Joined: 2007-05-14
Posts: 10
Posted: Mon, 2008-12-22 13:31

Just wondered if anyone has resolved this issue?

Don

 
donnieballgame

Joined: 2007-05-14
Posts: 10
Posted: Mon, 2008-12-22 13:33

sorry, I'm a noob, but how do I apply this patch? Thanks!