You are not logged in.

#1 2021-09-15 11:47:53

tony5429
Member
Registered: 2006-03-28
Posts: 1,017

[SOLVED] Scaling an Image on Two Computers - One Works, One Doesn't

I uploaded the image here, for reference - https://easyupload.io/4d5gi4

This is the command I'm running to scale the image 1000%:

convert -scale 1000% earth.svg earth.png

Both computers are using up-to-date Arch Linux with latest versions of imagemagick (7.1.0.6-1). The conversion works just fine on the newer computer but fails every time on the older computer, with this error message:

[me@linux ~]$ convert -scale 1000% earth.svg earth.png
Aborted (core dumped)

I figured it was related to the amount of RAM on the older computer so I set up a 10-GB swapfile on it, but the command still fails - and using "free", I see that consistently there are about 7 GB of unused swapspace when the process quits.

Is it possible Image Magick is using the GPU memory which is lower on the older computer? And if so, is there any way to either make a swapspace for the GPU or force IM to use the RAM (and, therefore the swapfile I already created) instead?

Last edited by tony5429 (2021-09-17 00:56:47)

Offline

#2 2021-09-15 11:52:04

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: [SOLVED] Scaling an Image on Two Computers - One Works, One Doesn't

What's the content of the dump: https://wiki.archlinux.org/title/Core_d … _core_dump ? More general system level relevances could be lacking cpu microcode/instruction sets.

Offline

#3 2021-09-16 11:38:39

tony5429
Member
Registered: 2006-03-28
Posts: 1,017

Re: [SOLVED] Scaling an Image on Two Computers - One Works, One Doesn't

Hmm... is this what you're looking for?

           PID: 548833 (convert)
           UID: 1000 (me)
           GID: 1000 (me)
        Signal: 6 (ABRT)
     Timestamp: Wed 2021-09-15 20:27:54 EDT (10h ago)
  Command Line: convert -scale 1000% earth.svg earth.png
    Executable: /usr/bin/magick
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-org.kde.konsole-8df2cb3ae68e49bc9df124719d99405d.scope
          Unit: user@1000.service
     User Unit: app-org.kde.konsole-8df2cb3ae68e49bc9df124719d99405d.scope
         Slice: user-1000.slice
     Owner UID: 1000 (me)
       Boot ID: e3b7472a8373481c8f9b49bdb1b0defa
    Machine ID: 4592d75b128445228c97d3799a05de56
      Hostname: linux
       Storage: /var/lib/systemd/coredump/core.convert.1000.e3b7472a8373481c8f9b49bdb1b0defa.548833.1631752074000000.zst (truncated)
     Disk Size: 5.1M
       Message: Process 548833 (convert) of user 1000 dumped core.
                
                Found module /usr/bin/magick with build-id: 68d193cf7fe9554e18761177f7c5250fdb5864d8
                Stack trace of thread 548833:
                #0  0x00007f1f8fce9d22 n/a (n/a + 0x0)

Offline

#4 2021-09-16 16:15:33

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: [SOLVED] Scaling an Image on Two Computers - One Works, One Doesn't

Is the stack trace longer than that?
(There's a nullptr resolution and it SIGABRTs but that doesn't say much)

Offline

#5 2021-09-16 17:18:45

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: [SOLVED] Scaling an Image on Two Computers - One Works, One Doesn't

I would try https://archlinux.org/packages/extra/x8 … icsmagick/ instead, it does not use the GPU.

Or use ImageMagick with OpenCL disabled...

Offline

#6 2021-09-17 00:56:13

tony5429
Member
Registered: 2006-03-28
Posts: 1,017

Re: [SOLVED] Scaling an Image on Two Computers - One Works, One Doesn't

Using graphicsmagick is the perfect fix - thanks, Morn!

Offline

Board footer

Powered by FluxBB