Opened 13 years ago

Closed 12 years ago

Last modified 9 years ago

#2073 closed bug (Fixed)

Crash when creating torrent in Ubuntu

Reported by: toniboni88 Owned by: Calum
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 by Calum, 13 years ago

Component: othergtkui
Owner: set to Calum
Status: newassigned
Summary: Crash when creating torrentCrash 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 by Calum, 13 years ago

Milestone: 1.3.61.3.5
Resolution: fixed
Status: assignedclosed

comment:3 by toniboni88, 13 years ago

Milestone: 1.3.51.3.6
Resolution: fixed
Status: closedreopened
Version: 1.3.41.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 by Calum, 13 years ago

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

comment:5 by Calum, 13 years ago

Milestone: 1.3.61.3.x

comment:6 by toniboni88, 13 years ago

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 by toniboni88, 13 years ago

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 by Calum, 13 years ago

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 by toniboni88, 13 years ago

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 by Calum, 13 years ago

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 by toniboni88, 13 years ago

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 by Calum, 12 years ago

Resolution: fixed
Status: reopenedclosed

comment:13 by Calum, 9 years ago

Milestone: 1.3.x

Milestone deleted

Note: See TracTickets for help on using tickets.