UnableToAllocateCacheInfo UnableToAllocateCacheInfo
 

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]

Main Menu

UnableToAllocateCacheInfo

Started by Bethzur, April 13, 2005, 09:31:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bethzur

I was running cpg 1.3.0 and was having issues uploading. I figured I'd finally bit the bullet and upgrade to 1.3.2, which went well with one exception. My initial upload problem was fixed (the dreaded "Impossible to move" error), but now something changes such that ImageMagick seems to fail after uploading. Oddly, I tried the exact same flle (in single file mode) before under 1.3.0 and it worked fine. Just one hour later wih 1.3.2, it now fails with:


The file 'albums/userpics/10001/IMG_2065~0.JPG' can't be inserted in the album

Error executing ImageMagick - Return value: 188

Cmd line :
/usr/local/bin/convert -quality 80 -antialias -geometry 75x100 'albums/userpics/10001/IMG_2065~0.JPG' 'albums/userpics/10001/thumb_IMG_2065~0.JPG'


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


File: /usr/local/psa/home/vhosts/bethzur.com/httpdocs/photo/db_input.php - Line: 304


I've run with debug on, and it yields:

USER:
------------------
Array
(
    [ID] => 9913c9bdf0be5725ad7f8b5ddb06c467
    [am] => 1
    [theme] => default
    [liv] => Array
        (
            [0] => 473
            [1] => 474
            [2] => 475
            [3] => 476
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => ********
    [user_password] => ********
    [user_lastvisit] => 2005-04-12 22:53:40
    [user_regdate] => 2004-05-30 19:00:55
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [user_favpics] =>
    [disk_max] => 102400
    [disk_min] => 102400
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 1
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [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] => 102400
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM cpg130_filetypes;
    [1] => SELECT * FROM cpg130_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '99c7648191b7b8c82321023b4adc4989'
    [2] => 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 cpg130_usergroups WHERE group_id in (1)
    [3] => SELECT group_name FROM  cpg130_usergroups WHERE group_id= 1
    [4] => DELETE FROM cpg130_banned WHERE expiry < 1113376465
    [5] => SELECT * FROM cpg130_banned WHERE ip_addr='24.5.201.162' OR ip_addr='24.5.201.162' OR user_id=1
    [6] => SELECT category FROM cpg130_albums WHERE aid='21'
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.3.4 - OK
------------------
mySQL version: 4.0.16-globat
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.0.10-gamma
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.3
Linked Version 1.1.3
==========================
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 | .:/usr/local/lib/php | .:/usr/local/lib/php
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.6 seconds - 7 queries in 0.004 seconds - Album set :


Again, nothing else changed. It worked, then didn't. I can't control ImageMagick's config file, but it's odd that it worked before (and I can see that image in my album.) I tried GD 1.x, but that fails, and the server doesn't have GD 2.x installed. Any thoughts? I have searched for UnableToAllocateCacheInfo here, but that was no help.

Edit: I should also note that in the past I've uploaded much larger files. This file is 4 megapixels. I have previously done several hundred at that size (again under 1.3.0) and several at around 10458 x 1124 (over 10 MP.)

ahsan

Is there a solution to this problem? what is the reason? configuration issues on cpg133 or issues with the hosting server? This is the error I get:

Error executing ImageMagick - Return value: 188


Cmd line :
/usr/local/bin/convert -quality 75 -antialias -geometry 75x56 'albums/upload/test/DSCN1084.JPG' 'albums/upload/test/thumb_DSCN1084.JPG'



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



kegobeer

It's not because of Coppermine.  That's a server/configuration issue - most likely the image is too large and the convert function can't allocate the required memory.  It could also be a configuration problem - you can ask your host.
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