Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Imagemagik Problem, Return value: 188  (Read 3733 times)

0 Members and 1 Guest are viewing this topic.

golf7

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Imagemagik Problem, Return value: 188
« on: February 03, 2006, 04:11:42 am »

The file 'albums/userpics/10001/me_and_carolyn~2.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 188

Cmd line :
/usr/local/bin/convert -quality 80 -antialias -geometry 100x85 'albums/userpics/10001/me_and_carolyn~2.jpg' 'albums/userpics/10001/thumb_me_and_carolyn~2.jpg'


The convert program said:
/usr/local/bin/convert: MemoryAllocationFailed (UnableToAllocateCacheInfo) [Cannot allocate memory].


File: /usr/local/psa/home/vhosts/academyofdanceinc.com/httpdocs/photos.academyofdanceinc.com/db_input.php - Line: 391

************************************************************************************************************

Debug Info:

USER:
------------------
Array
(
    [ID] => 5e9ef438e050f74ee76315bc5b5b96dc
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => golf7
    [groups] => Array
        (
           
  • => 1

        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 1
    [num_URI_upload] => 0
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content, player FROM cpg143_filetypes; (0.001s)
  • [1] => select * from cpg143_plugins order by priority asc; (0s)
        [2] => delete from `academy_cpg`.cpg143_sessions where time<1138933929 and remember=0; (0.001s)
        [3] => delete from `academy_cpg`.cpg143_sessions where time<1137727929; (0.002s)
        [4] => select user_id from `academy_cpg`.cpg143_sessions where session_id=md5("e2ea28bc7761d6aa393a58df61b213668e23f3a41feb9277864498e77cddd106"); (0.012s)
        [5] => select user_id as id, user_password as password from `academy_cpg`.cpg143_users where user_id=1 (0.003s)
        [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `academy_cpg`.cpg143_users AS u INNER JOIN `academy_cpg`.cpg143_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.003s)
        [7] => SELECT user_group_list FROM `academy_cpg`.cpg143_users AS u WHERE user_id='1' and user_group_list <> ''; (0.003s)
        [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg143_usergroups WHERE group_id in (1) (0.003s)
        [9] => SELECT group_name FROM  cpg143_usergroups WHERE group_id= 1 (0.001s)
        [10] => update `academy_cpg`.cpg143_sessions set time='1138937529' where session_id=md5('e2ea28bc7761d6aa393a58df61b213668e23f3a41feb9277864498e77cddd106'); (0.018s)
        [11] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 1 (0.001s)
        [12] => DELETE FROM cpg143_banned WHERE expiry < '2006-02-02 22:32:09' (0s)
        [13] => SELECT * FROM cpg143_banned WHERE (ip_addr='66.56.165.103' OR ip_addr='66.56.165.103' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT category FROM cpg143_albums WHERE aid='1' (0.002s)
        [15] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0.002s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    Array
    (
       
[album] => 1
    [MAX_FILE_SIZE] => 2097152
    [title] =>
    [caption] =>
    [keywords] =>
    [event] => picture
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.6 - OK
------------------
mySQL version: 4.1.10a
------------------
Coppermine version: 1.4.3(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.22 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support: 1

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.0.18
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/include/mysql
MYSQL_LIBS -L/usr/local/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/php/includes:/usr/local/share/pear:/usr/local/lib/php/pear | .:/php/includes:/usr/local/share/pear:/usr/local/lib/php/pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 8M | 8M
post_max_size | 8M | 8M
==========================
Page generated in 6.321 seconds - 16 queries in 0.052 seconds - Album set : ; Meta set: ;

***********************************************************************************************************


Thats the error that I get, however my uploads work with other files that ive tried, its just this one file thats having trouble, and i created it in photoshop, so i dunno what the problem is

test account:

photos.academyofdanceinc.com
test
test
« Last Edit: February 03, 2006, 04:33:56 am by golf7 »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Imagemagik Problem, Return value: 188
« Reply #1 on: February 03, 2006, 12:56:43 pm »

ImageMagick is running out of memory while working with that image.  Large dimension images eat up a lot of resources, and ImageMagick is simply consuming everything available during the convert process.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

golf7

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Imagemagik Problem, Return value: 188
« Reply #2 on: February 03, 2006, 04:04:28 pm »

So there is no way to fix this problem?

Anyway to scale down the speed it tried to convert it in, or scale down the options or something?

thanks alot for the info btw, i really appreciate it

btw, my server says i have GD 1.xx and GD2.xx installed but when i change the options to use them, the file uploads, but then i click on add to album, and the screen is all white, like a php parsing error or something
« Last Edit: February 03, 2006, 04:16:05 pm by golf7 »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Imagemagik Problem, Return value: 188
« Reply #3 on: February 03, 2006, 04:40:27 pm »

try uploading a known-good jpeg file that is small both in file size and dimensions for testing purposes, my guess is that you're trying to add a file that is extremely large.
Logged

golf7

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Imagemagik Problem, Return value: 188
« Reply #4 on: February 04, 2006, 09:26:24 pm »

it works for all files but this one, and its only 675kb and like 1800x1500 pixals, not that big

i really dont know why its not working on that file

But for all other files ive tried it is working, ive tried files straight from the digital camera, and they worked and they are like 2100x1800 or something and over 1mb

thanks for the help guys, maybe ill get it sorted out
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Imagemagik Problem, Return value: 188
« Reply #5 on: February 05, 2006, 04:35:54 am »

Is the image's color profile RGB or CMYK?  CMYK images tend to cause GD and ImageMagick to choke.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Imagemagik Problem, Return value: 188
« Reply #6 on: February 05, 2006, 09:15:03 pm »

Post a deep link directly to the pic, so we can take a look at it.
Logged
Pages: [1]   Go Up
 

Page created in 0.076 seconds with 19 queries.