**[SOLVED] ** G2 crashes when I add pics over 1MB?

cow736

Joined: 2004-12-21
Posts: 46
Posted: Mon, 2005-06-20 02:59

I noticed that when I add pictures above 1MB G2 crashes? What is the problem?

Gallery URL (optional): localhost
Gallery version: G2 latest nightly build
Webserver (with version): Apache 2.0.54
Datatabase (with version): MySQL v4.1.11
PHP version (eg 4.2.1): 5.0.4
phpinfo URL (optional): N/A
Graphics Toolkit(s): Netpbm v0.9.5 then ImageMagicK v0.9.7
Operating system: Fedora Core 4 Kernel 2.6.11-1.1369_FC4
Web browser/version: IE 6 / Mozilla Firefox
G1 version (for migration bugs): N/A

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-06-20 03:37

part of the problem is your post has too little information.. :)

 
cow736

Joined: 2004-12-21
Posts: 46
Posted: Mon, 2005-06-20 04:23
mindless wrote:
part of the problem is your post has too little information.. :)

ok it's been updated now.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-06-20 07:19

what does "G2 crashes" mean?
no error message, nothing?
and do you see an entry in the apache error log (not the access log) when this happens?
and is there a upload or memory restriction in your php info? see yourgalleryurl/lib/tools/phpinfo.php.

 
cow736

Joined: 2004-12-21
Posts: 46
Posted: Mon, 2005-06-20 07:34
valiant wrote:
what does "G2 crashes" mean?
no error message, nothing?
and do you see an entry in the apache error log (not the access log) when this happens?
and is there a upload or memory restriction in your php info? see yourgalleryurl/lib/tools/phpinfo.php.

i have 1GB of memory and i set upload memory to 16M. i would like to higher it? What can I higher it too? i don't want to overkill the number. i upload 5.1megapixel images to my server through the internet. it's hosted at my work. i sometimes upload 100 images at one time. so i would like to set it as high & efficient as possible.

i am using fedora core 4 so i don't know what the default file system is for that distribution of linux.

i seem to have solved my problem... any huge file near 1MB or bigger would not post and would return to a blank main.php page. no picture posted nothing... so what i did was changed graphics toolkit priority gd, netpbm, imagemagick -> netpbm, gd, imagemagick.

i read some where that gd was memory intensive so i thought maybe that might be crashing it. once i made netpbm first everything seems fine now.

 
cow736

Joined: 2004-12-21
Posts: 46
Posted: Mon, 2005-06-20 08:00

problem not fixed yet... by putting my graphics toolkit at netpbm, gd then imagemagick only worked for 1 album. i tried adding another album and i am back at one of my original problems where i get broken thumnail images, broken resize images but i can see the full image.

so it shows 92x92 but no thumbnail.
doesn't show 640x480 at all.
2592x1944 full size always shows up fine.

i am lost now.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-06-20 08:07

let's try this: remove the GD toolkit, put imagemagick > netpbm as priority.

also, you didn't answer if there was an entry in the apache error log when you used GD (i guess you won't see there errors when using netpbm or imagemagick).

 
n8jaeger

Joined: 2005-06-20
Posts: 13
Posted: Mon, 2005-06-20 14:15
Quote:
i get broken thumnail images, broken resize images but i can see the full image

same problem here.

i can upload images (jpg) with 1,5 MB (4000x2000 pixel).
upload is ok.
the thumbnails aren't generated, there's a broken image placeholder.
the generated preview in 800x600 is broken too.
but when i open the original size, the image is there and ok!

i'm using the same config as described above, gallery 2 beta 3 with gd2.

is there a fix for this problem!?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-06-20 14:21

n8jaeger, what's your php memory limit? in most cases, using another image toolkit than GD solves the problem.

 
n8jaeger

Joined: 2005-06-20
Posts: 13
Posted: Mon, 2005-06-20 14:24

update:

when i switch from gd2 to netpbm as 1st tool, and force the "build thumbnails" in site administration: no effect. same es described above!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-06-20 14:45

running "rebuild thumbnails" when the thumbnails are already broken doesn't fix it. it rebuild thumbs only for images that don't have thumbs at the moment. and the broken image is considered as a thumb.

i consider this is as a serious problem and i create a new task to solve this (being able to identify broken-images and rebuilding them).

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-06-20 14:53
 
cow736

Joined: 2004-12-21
Posts: 46
Posted: Tue, 2005-06-21 07:07
n8jaeger wrote:
Quote:
i get broken thumnail images, broken resize images but i can see the full image

same problem here.

i can upload images (jpg) with 1,5 MB (4000x2000 pixel).
upload is ok.
the thumbnails aren't generated, there's a broken image placeholder.
the generated preview in 800x600 is broken too.
but when i open the original size, the image is there and ok!

i'm using the same config as described above, gallery 2 beta 3 with gd2.

is there a fix for this problem!?

ok I think I know what is wrong... try this. i mean it worked one time so why not again right? when it was working i had turned off SELinux and regular Firewall in linux. Set my graphics toolkit to Netpbm, GD then ImageMagicK.

I have rebooted my linux box... tested it over and over.. everything is fine now.

I will turn on the basic firewall in linux then test again... if that works then maybe the SELinux Firewall is too much?

Does this make any sense? Is it because my file/folder ownership permissions should be set to APACHE???

Right now file ownership permissions is set to the account user. Both in user/group. Could that be my problem? Should it be set to APACHE?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-06-21 07:09

use the forum search function for SELinux, we already have reported problems with it.

 
cow736

Joined: 2004-12-21
Posts: 46
Posted: Tue, 2005-06-21 07:23

I've done more testing and the above still stands as working!!!

Since I turned off Firewall & SELinux Firewall everything is still working. I even de-activated GD graphics toolkit and it still works. I am only using Netpbm & ImageMagicK right now. My thumbnails, resize & full images all show up properly.

I've used 3 upload methods... From Web Browser, Windows XP & Upload Applet (Java) they all upload the pics properly. I tried uploading pics directly from the server and from another computer on the same network and wireless from a laptop. All pics post properly.

I think many people use both of these firewalls... can this be looked into? Is anyone using linux firewall & selinux firewall and is able to upload pics properly to their server?

 
cow736

Joined: 2004-12-21
Posts: 46
Posted: Tue, 2005-06-21 07:27
valiant wrote:
use the forum search function for SELinux, we already have reported problems with it.

VALIANT: I just tried it with basic linux firewall and it is still working. I will leave the SELinux firewall off. I am so tired of restart/testing/uploading pics... wheeewww what a project.

thanks for all the help Valiant.

So people turn off SELinux firewall.

 
rscultho

Joined: 2005-02-03
Posts: 9
Posted: Tue, 2005-06-21 13:36

I turned off GD and recreated the thumbnails and resized images and everything seems to work now.