Re: [Bug 1956642] Re: convert crash during operation leaving partial output file

2022-01-08 Thread Bob Friesenhahn
On Sat, 8 Jan 2022, Michael Lueck wrote:

> Yes Bob, I knew convert is a part of ImageMagick. I was having
> difficulty locating the correct package within this bug tracker.

The other problem is I suspect that Ubuntu does not actually fix bugs. 
They just act as a pass-through for Debian and apply patches from 
Debian.  This causes a problem since Debian is unlikely to accept 
direct bug reports pertaining to Ubuntu, but Debian is doing all the 
work.  Maintaining ImageMagick for Debian is a huge amount of work.

> So I can see that Memory and Disk are now far more constrained than
when on Xubuntu 16.04.

Yes, it is annoying.

> All right, so I searched and found this page:
> https://imagemagick.org/script/resources.php
>
> Seems I am to make a policy.xml file in my home directory... I made:
> ~/.config/ImageMagick/policy.xml
>
> Copied in the default per the site, uncommented lines for:
>  
>  
>
>
> Saved, retested showing resources, no changes. Further suggestions please.

A problem with ImageMagick is that you need to find the documentation 
which pertains to your exact version since ImageMagick is always in 
flux.  Debian/Ubuntu are providing ImageMagick 6 which is considered 
to be "legacy" and has its own web site (although since ImageMagick 
is always in flux the web site might not match the software).

I am the developer/maintainer of the competing GraphicsMagick 
software, which I would immediately suggest except that it does not 
directly write MP4 files.  You would need to find a way to convert 
from a format that GraphicsMagick writes to MP4 (e.g. ffmpeg).

Both ImageMagick and GraphicsMagick are very poor at dealing with 
large video/animation streams because they buffer the data up before 
writing anything.

I see that this discovers the files which are actually searched for 
and used:

MAGICK_DEBUG=configure convert -list resource

On my own system I recall editing the Ubuntu default policy.xml file 
directly since it was hindering my ability to reasonably compare 
ImageMagick with GraphicsMagick.

Feel free to try installing the 'graphicsmagick' package and see if it 
works any better for your needs.  Unfortunately, I see that the 
provided GraphicsMagick dates from February, 2020 so it is a bit old.

Bob
-- 
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1956642

Title:
  convert crash during operation leaving partial output file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/graphicsmagick/+bug/1956642/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1956642] Re: convert crash during operation leaving partial output file

2022-01-08 Thread Michael Lueck
Yes Bob, I knew convert is a part of ImageMagick. I was having
difficulty locating the correct package within this bug tracker.

Thanks for explaining how to show what resources convert is allowed to
use. Following is the output from my three systems:

Xubuntu 16.04:
$ convert -list resource
  File   Area MemoryMap   Disk   Thread  Throttle   Time

   768   16.584GB  7.7226GiB  15.445GiB  unlimited2 0  unlimited
$


Xubuntu 20.04:
$ convert -list resource
Resource limits:
  Width: 16KP
  Height: 16KP
  List length: 18.446744EP
  Area: 128MP
  Memory: 256MiB
  Map: 512MiB
  Disk: 1GiB
  File: 768
  Thread: 12
  Throttle: 0
  Time: unlimited
$

Xubuntu 22.04:
$ convert -list resource
Resource limits:
  Width: 16KP
  Height: 16KP
  List length: unlimited
  Area: 128MP
  Memory: 256MiB
  Map: 512MiB
  Disk: 1GiB
  File: 768
  Thread: 2
  Throttle: 0
  Time: unlimited
$


So I can see that Memory and Disk are now far more constrained than when on 
Xubuntu 16.04.

All right, so I searched and found this page:
https://imagemagick.org/script/resources.php

Seems I am to make a policy.xml file in my home directory... I made:
~/.config/ImageMagick/policy.xml

Copied in the default per the site, uncommented lines for:
  
  


Saved, retested showing resources, no changes. Further suggestions please.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1956642

Title:
  convert crash during operation leaving partial output file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/graphicsmagick/+bug/1956642/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1956642] Re: convert crash during operation leaving partial output file

2022-01-07 Thread Bob Friesenhahn
FYI, the software you are using is ImageMagick and not GraphicsMagick,
yet you filed the bug against GraphicsMagick.

You are likely running into a configured resources limit, which is much
lower than what the system can handle, and in my opinion defaulted (by
Debian/Ubuntu) to quite low limits.  Limits can be adjusted by the user.
Use 'convert -list resource' to see the current resource limits like:

```
% convert -list resource 
Resource limits:
  Width: 16KP
  Height: 16KP
  List length: 18.446744EP
  Area: 128MP
  Memory: 256MiB
  Map: 512MiB
  Disk: 1GiB
  File: 768
  Thread: 8
  Throttle: 0
  Time: unlimited
```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1956642

Title:
  convert crash during operation leaving partial output file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/graphicsmagick/+bug/1956642/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1956642] Re: convert crash during operation leaving partial output file

2022-01-06 Thread Michael Lueck
** Attachment added: "Output from Xubuntu 22.04 system"
   
https://bugs.launchpad.net/ubuntu/+source/graphicsmagick/+bug/1956642/+attachment/5552241/+files/Xubuntu_22.04.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1956642

Title:
  convert crash during operation leaving partial output file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/graphicsmagick/+bug/1956642/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1956642] Re: convert crash during operation leaving partial output file

2022-01-06 Thread Michael Lueck
** Attachment added: "Output from Xubuntu 20.04 system"
   
https://bugs.launchpad.net/ubuntu/+source/graphicsmagick/+bug/1956642/+attachment/5552240/+files/Xubuntu_20.04.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1956642

Title:
  convert crash during operation leaving partial output file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/graphicsmagick/+bug/1956642/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1956642] Re: convert crash during operation leaving partial output file

2022-01-06 Thread Michael Lueck
** Attachment added: "Output from Xubuntu 16.04 system"
   
https://bugs.launchpad.net/ubuntu/+source/graphicsmagick/+bug/1956642/+attachment/5552239/+files/Xubuntu_16.04.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1956642

Title:
  convert crash during operation leaving partial output file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/graphicsmagick/+bug/1956642/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs