Last modified: 2011-04-30 01:16:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 14336 - Something Strange with SVG
Something Strange with SVG
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.14.x
All All
: Highest trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 14397
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-29 20:32 UTC by DaSch
Modified: 2011-04-30 01:16 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description DaSch 2008-05-29 20:32:01 UTC
File::transform: Doing stat for /var/www/web0/html/images/thumb/3/3c/BSicon_STR.svg/20px-BSicon_STR.svg.png
SvgHandler::doTransform: rsvg --width=20 --height=20 --format=png '/var/www/web0/html/images/3/3c/BSicon_STR.svg' '/var/www/web0/html/images/thumb/3/3c/BSicon_STR.svg/20px-BSicon_STR.svg.png' 2>&1
wfShellExec: '/var/www/web0/html/bin/ulimit4.sh' 120 102400 102400 'rsvg --width=20 --height=20 --format=png '\''/var/www/web0/html/images/3/3c/BSicon_STR.svg'\'' '\''/var/www/web0/html/images/thumb/3/3c/BSicon_STR.svg/20px-BSicon_STR.svg.png'\'' 2>&1'
thumbnail failed on v5697.vanager.de: error 126 "" from "rsvg --width=20 --height=20 --format=png '/var/www/web0/html/images/3/3c/BSicon_STR.svg' '/var/www/web0/html/images/thumb/3/3c/BSicon_STR.svg/20px-BSicon_STR.svg.png' 2>&1"


This is the Text from my Debugger
don't know what to do with this.
Comment 1 DaSch 2008-05-30 17:25:38 UTC
when using the given command in the command line everything works fine
Comment 2 DaSch 2008-05-30 19:19:32 UTC
I think there is somehow a permissionproblem with the commands from ulimit4.sh the the ulimit4.sh is on 777 an rsvg is also usable for everybody, maybe somebody should create a workaround for this Problem for the MediaWiki Page, I think there could be many people running into this problem an giving up because there is nothing you can find about this error
Comment 3 DaSch 2008-05-30 19:55:10 UTC
My "Patch", after changing this the problem is gone

Index: GlobalFunctions.php
===================================================================
--- GlobalFunctions.php	(revision 35615)
+++ GlobalFunctions.php	(working copy)
@@ -1821,7 +1821,7 @@
 		$mem = intval( $wgMaxShellMemory );
 		$filesize = intval( $wgMaxShellFileSize );
 
-		if ( $time > 0 && $mem > 0 ) {
+		if ( $time > 0 && $mem > 0 && true==false) {
 			$script = "$IP/bin/ulimit4.sh";
 			if ( is_executable( $script ) ) {
 				$cmd = escapeshellarg( $script ) . " $time $mem $filesize " . escapeshellarg( $cmd );
Comment 4 DaSch 2008-05-31 21:39:41 UTC
Could be useful to creating an option to disable ulimit
Comment 5 Siebrand Mazeland 2008-08-17 12:12:04 UTC
Keyword: patch, need-review
Comment 6 Tim Starling 2008-10-14 05:11:42 UTC
<sarcasm> Yeah, good idea Siebrand. Let's patch that one in right away. </sarcasm>

DaSch: please check your open_basedir/safe_mode settings.
Comment 7 DaSch 2008-10-14 15:04:48 UTC
well how I already said, the problem is with ulimit, because when deactivating the use of ulimit it works

I've already comitted the patch on my Patchbug that was misschanged to Generate Sitemap (https://bugzilla.wikimedia.org/show_bug.cgi?id=14397)

that's nothing with basedir of safemode only that ulimit does not work, so well not it works for me with this patch, now it's your turn to face the problem or close it right now because it does not matter for you
Comment 8 Tim Starling 2008-10-20 11:02:07 UTC
If open_basedir is set to allow you to execute rsvg but not ulimit4.sh, then the symptoms would be more or less as you described. The ulimit script is important, because it stops rsvg from using large amounts of memory, sending your server into swap death, which it will happily do given half a chance. 
Comment 9 DaSch 2009-02-24 14:14:34 UTC
I fixed the problem for me by disabling ulimit, now everything works fine, see the patch in the bug marked as duplicate

*** This bug has been marked as a duplicate of bug 14397 ***
Comment 10 DaSch 2009-02-26 14:04:56 UTC
Well, i reverted my mediawiki to use ulimit every time. I deactivated safemode and all open_baesdir restrictions but rsvg does not work
Comment 11 DaSch 2009-02-26 15:25:23 UTC
still the same as a year ago, the whole ulimit sh... does not work, no open_basedir no safe mode and it only works in commandline
Comment 12 DaSch 2009-02-26 15:31:59 UTC
when deactivating ulimit again most things work fine, only images with special-characters does not work
Comment 13 DaSch 2009-02-26 16:16:38 UTC
the whole thumbnailing and comandline scripting is very buggy and the documentation is very bad

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links