Image.read(filename) eats characters from filename

Bug #1299 reported by Ilmari Vacklin
8
Affects Status Importance Assigned to Milestone
librmagick-ruby (Ubuntu)
Fix Released
Medium
MOTURuby
Breezy
Invalid
High
MOTU Reviewers Team

Bug Description

When trying to open a file with RMagick::Image.read(filename), the leading characters of filename are lost on the way to imagemagick

When trying to open a file with RMagick::Image.read(filename), the leading characters of filename are lost on the way to imagemagick. Quick googling seems to indicate that RMagick has been built with a different imagemagick version than the one currently installed.

Changed in librmagick-ruby:
assignee: nobody → motu
assignee: nobody → motu
Changed in librmagick-ruby:
assignee: motu → moturuby
assignee: motu → moturuby
Revision history for this message
Lucas Nussbaum (lucas) wrote :

Could you please add a test script to this bug report that reproduces the crash ?

Revision history for this message
Lucas Nussbaum (lucas) wrote :

I investigated the bug. Here is a test script :
#!/usr/bin/ruby

require 'RMagick'

im = Magick::Image::read('circle-510.png')

The problem is the one described on http://rubyforge.org/forum/forum.php?thread_id=1344&forum_id=33 . It is caused by libmagick6 being "too new" compared to librmagick-ruby. Also, librmagick-ruby doesn't even build currently inside breezy.

I think that the only solution is to backport the new version of librmagick-ruby into breezy. But under which conditions would this be made ? librmagick-ruby isn't used by any package, so this could be made without risking to break everything.

Revision history for this message
Lucas Nussbaum (lucas) wrote :

Could a MOTU comment on this bug ?

Revision history for this message
Lucas Nussbaum (lucas) wrote :

Ok, seems nobody is interested in this one. Maybe we could close it, since it's fixed in dapper anyway ?

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I'd keep it open in breezy and close in ubuntu

Revision history for this message
Manfred (manfred-stienstra) wrote :

It would be really nice if someone could actually fix this?

Revision history for this message
unnu (norman-timmler) wrote :

I agree with Manfred. This should be fixed. I'd do it, but I have no experience building deb packages.

You can use the gem version from RubyForge, but using a gem for a package that exists in Ubuntu is not the preferred way.

At last at costs me about two hours to figure out the bug and finally install the gem version. This could be avoided.

Lucas Nussbaum (lucas)
Changed in librmagick-ruby:
status: Unconfirmed → Fix Released
assignee: moturuby → motureviewers
status: Unconfirmed → Confirmed
Revision history for this message
Manfred (manfred-stienstra) wrote :

Installing from a gem is not an option because it requires a toolchain. Installing a complete toolchain in a web chroot is not very pleasant.

Revision history for this message
rhalff (info-rhalff) wrote :

this package should be fixed, and it seems like a 1 minute job for whoever maintains this package.

Revision history for this message
Benjamin Montgomery (bmonty) wrote :

To have this issue addressed for breezy please follow the instructions at https://wiki.ubuntu.com/UbuntuBackports.

Changed in librmagick-ruby:
status: Confirmed → Rejected
Revision history for this message
Lucas Nussbaum (lucas) wrote :

Benjamin, please don't close bugs about ruby-related packages before at least asking somebody from the moturuby team ...

I'm planning to work on this bug sooner or later, either by preparing an upload to breezy-backports or breezy-updates, but last time I checked, the process for uploads to breezy-updates was broken.

Changed in librmagick-ruby:
status: Rejected → Confirmed
Revision history for this message
Benjamin Montgomery (bmonty) wrote :

Lucas, if you are working on the package, please mark this as "In Progress".

Revision history for this message
Lucas Nussbaum (lucas) wrote :

I've prepared an updated package for Breezy, available at http://tiber.tauware.de/~lucas/pkg/librmagick-ruby/

It builds and installs on Breezy, and fixes bugs 1299, 4636 and 26138. It is a new version of the library, but is unlikely to break anything since there was only additions to the API.

Also, the version currently in Breezy is severely broken, so I really think this is an interesting upgrade.

Changed in librmagick-ruby:
status: Confirmed → In Progress
Revision history for this message
Lucas Nussbaum (lucas) wrote :

This updated package won't get into breezy-backports (See bug 39095). Marking this bug as Rejected. Feel free to use the package on my homepage as a workaround.

Changed in librmagick-ruby:
status: In Progress → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.