Opened 9 years ago

Closed 9 years ago

Last modified 5 years ago

#2073 closed bug (Fixed)

Crash when creating torrent in Ubuntu

Reported by: toniboni88 Owned by: Cas
Priority: minor Milestone:
Component: GTK UI Version: 1.3.5
Keywords: Cc:

Description

For specific folders, when I create the torrent remains firm on this screen, doing nothing. If I let go creates nothing, remaining always in the picture, until the lock manually.

I've Deluge 1.3.4, LibTorrent? 1.5.9, Ubuntu Server 11.04 Updated

http://i42.tinypic.com/2u8bdiu.png

Change History (13)

comment:1 Changed 9 years ago by Cas

  • Component changed from other to gtkui
  • Owner set to Cas
  • Status changed from new to assigned
  • Summary changed from Crash when creating torrent to Crash when creating torrent in Ubuntu

This is gtk issue but does not seem that it will be fixed anytime soon for Oneiric or previous releases.

There is a workaround that will prevent the crash, which you could also test on Natty.

--- a/deluge/ui/gtkui/createtorrentdialog.py
+++ b/deluge/ui/gtkui/createtorrentdialog.py
@@ -370,7 +370,7 @@ def create_torrent(self, path, tracker, piece_length, progress, comment, target,
     def _on_create_torrent_progress(self, value, num_pieces):
         percent = float(value)/float(num_pieces)
         pbar = self.glade.get_widget("progressbar")
- pbar.set_text("%.2f%%" % (percent*100))
+ #pbar.set_text("%.2f%%" % (percent*100))
         if percent >= 0 and percent <= 1.0:
             pbar.set_fraction(percent)

When I next update the PPA I can add it as a patch.

comment:2 Changed 9 years ago by Cas

  • Milestone changed from 1.3.6 to 1.3.5
  • Resolution set to fixed
  • Status changed from assigned to closed

comment:3 Changed 9 years ago by toniboni88

  • Milestone changed from 1.3.5 to 1.3.6
  • Resolution fixed deleted
  • Status changed from closed to reopened
  • Version changed from 1.3.4 to 1.3.5

I've 2 pc:

  • Ubuntu Server 11.04, Deluge 1.3.5, LibTorrent? 1.5.9, the system is update
  • Ubuntu Server 11.10, Deluge 1.3.5, LibTorrent? 1.5.9, the system is update

On both pc crashes in the creation of certain torrent, remains locked until you close it manually, without creating the torrent file.

comment:4 Changed 9 years ago by Cas

I'll test it again when I get a chance but do you have an error or traceback?

comment:5 Changed 9 years ago by Cas

  • Milestone changed from 1.3.6 to 1.3.x

comment:6 Changed 9 years ago by toniboni88

Does not leave any type of error, it closes the program improssivamente alone. remains as firm as in the image in the first post, for hours, days, until you close it forcibly. does not create the torrent.

http://i44.tinypic.com/2pzipaq.jpg

comment:7 Changed 9 years ago by toniboni88

On windows (Windows XP SP3 + Deluge 1.3.5) of all regular. On Ubuntu Server (11.04 or 11.10 i tested)happens the error exposed.

comment:8 Changed 9 years ago by Cas

I cannot replicate on desktop version of Ubuntu Oneiric.

Does this happen with any size/number of files and piece size?

You could use a standalone program, such as mktorrent, to create your torrents.

Could you test with Ubuntu Precise?

comment:9 Changed 9 years ago by toniboni88

I found the reason for which is blocked by creating the torrent.

If the file for which you want to create the torrent, there are non-standard characters, the creation of the torrent crashes. It would be possible to control the encoding of filenames, and if the characters do not stardard return a warning. I have noticed that, for example, a file contains a letter stressed the torrent file is created, but check the torrent file with accented letters does not pass the check. It would also be handy to have the rate of creation of the torrent bar.

http://i39.tinypic.com/2ymvgax.jpg

comment:10 Changed 9 years ago by Cas

Can you provide example of filenames with characters that exhibit this issue?

I have tested with files/folders using the following characters and there are no issues:

ÇüéâäàçêëèïîìÄÅÉæÆôöòûùÿÖÜáíóúñÑ¿

comment:11 Changed 9 years ago by toniboni88

Characters not supported by the operating system.

You have tried to do the recheck of the torrent with those characters in the filename?

comment:12 Changed 9 years ago by Cas

  • Resolution set to fixed
  • Status changed from reopened to closed

comment:13 Changed 5 years ago by Cas

  • Milestone 1.3.x deleted

Milestone deleted

Note: See TracTickets for help on using tickets.