Bug 14819 - isodumper crashes while writing log file
Summary: isodumper crashes while writing log file
Status: RESOLVED WORKSFORME
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: papoteur
QA Contact:
URL:
Whiteboard: MGA5TOO
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-16 23:13 CET by Morgan Leijström
Modified: 2015-09-26 23:23 CEST (History)
0 users

See Also:
Source RPM: isodumper-0.40-1.mga5.src.rpm
CVE:
Status comment:


Attachments

Description Morgan Leijström 2014-12-16 23:13:37 CET
Description of problem:
I start isodumper as normal user, enter root pwd, have it write the USB stick, and when i click [close] nothing seem to happen, but it in the terminal from where I started it it prints:

Traceback (most recent call last):
  File "/usr/lib/isodumper/isodumper.py", line 456, in confirm_close
    self.close('dummy')
  File "/usr/lib/isodumper/isodumper.py", line 489, in close
    self.write_logfile()
  File "/usr/lib/isodumper/isodumper.py", line 508, in write_logfile
    logfile=open(logpath+'/isodumper.log',"w")

When click the window frame close button it outputs:
(isodumper.py:24148): Gtk-WARNING **: Failed to read filechooser settings from "/root/.config/gtk-2.0/gtkfilechooser.ini": Ãtkomst nekas

( "Ãtkomst nekas" = "Access denied" )

and the window disappears, but still the processes runs:
isodumper - owned by root, and
isodumper.py - owned by normal user.
i close isodumper.py and the other go away too.

Exactly the same happens when i run it as root, with the difference
following messages are written out the terminal before writing stick:
Error creating proxy: Anslutningen är stängd (g-io-error-quark, 18)
Error creating proxy: Anslutningen är stängd (g-io-error-quark, 18)
Error creating proxy: Anslutningen är stängd (g-io-error-quark, 18)
Error creating proxy: Anslutningen är stängd (g-io-error-quark, 18)
Error creating proxy: Anslutningen är stängd (g-io-error-quark, 18)

( "Anslutningen är stängd" = "Connection is closed" )

My system is on-line upgraded from mga4 to mga5 around beta1

Reproducible: 

Steps to Reproduce:
claire robinson 2014-12-17 17:09:18 CET

Assignee: bugsquad => yves.brungard_mageia

Comment 1 papoteur 2014-12-18 21:27:28 CET
Thanks for reporting.
The "access denied" is not the subject. The program should be exited at this step.
It seems that the log file can not be written. Either the path is erroneous, or the access rights are not allowed.
I don't reproduce the problem on my Mageia 4. I will try to install a cauldron.
Comment 2 papoteur 2014-12-18 22:15:03 CET
I don't reproduce the error on a cauldron i586.
What is the identifier of your user?
Comment 3 Morgan Leijström 2014-12-19 08:47:33 CET
I do not understand "identifier"
This machine is a 64bit up to date cauldron - originally mga4, updated online.
I will soon try on other cauldron machines too.
Comment 4 Morgan Leijström 2014-12-19 08:48:23 CET
using KDE
Comment 5 papoteur 2014-12-20 20:53:45 CET
(In reply to Morgan Leijström from comment #3)
> I do not understand "identifier"
I mean the name of the user
/home/name_of_the_user
Comment 6 papoteur 2014-12-20 21:02:24 CET
Morgan
Have you a directory ~/.isodumper created?
Is it empty?
What is the owner of the directory and eventually of the file isodumper.log?
Comment 7 papoteur 2015-02-26 20:30:55 CET
Morgan, do you have always this problem?
I can not do any modifications without your cooperation.

Keywords: (none) => NEEDINFO

papoteur 2015-03-04 14:12:11 CET

Summary: isodumper fail to exit => isodumper crashes while writing log file

papoteur 2015-03-04 14:13:14 CET

Status: NEW => UNCONFIRMED
Ever confirmed: 1 => 0

Comment 8 Morgan Leijström 2015-03-04 16:56:05 CET
Sorry for the delay, i forgot.
On that computer i see i have used isodumper earlier.
I do not remember if I noticed a problem then.
(system have been upgraded from mga4 and now run cauldron)

my /home/username/.isodumper was created 2014-06-09 owner=root, rights rwxr-xr-x
contains isodumper.log dated 2014-10-01 owner=root, rights rw-r--r--

When posting this bug isodumper was version 0.32
I have not used isodumper since then.
Now i see it is updated to 0.40

Now i remove .isodumper/ and start isodumper as root from terminal
Output in terminal is
 (isodumper.py:28841): Gtk-WARNING **: Kan inte hitta temamotorn i "module_path": "oxygen-gtk",
 Error creating proxy: Anslutningen är stängd (g-io-error-quark, 18)
(two rows of the Gtk-WARNING, five rows of the Error)

Weird: While running, it do not create anything in /home/username/ nor in /root/
But when i stop it (it was dead slow, see below) it writes out log in terminal and also creates the folder and logfile in my home.
Interesting (and good) it creates it in my normal user home despite i started it as root in a KDE terminal.

Same when started as normal user from terminal
(only difference is it pops up a dialog to log in as root)

Other observations:

§  The issue this bug was created for i can not replicate :)
You choose if we should close this and make a new one or continue here (in that case change the subject line please)

However: 

§  writing is very slow!  isodumper achieve 1MB/s while dd achieve 6MB/s on the same file and target. It use less than a percent CPU, and speed seem not to be dependent on other system load.

§  clicking the buttons in bottom of the interface while it is writing '(i.e (i) info or Stop buttons) it takes about ten seconds for the popup to display, and if i try to close it by the (x) it takes so long time that KDE shows a popup question if i want to kill it or wait longer...

§  "Details" is not clickable when writing have started.  It would be nice if that worked.

§  Detail in log file: there is no space between the word from and source file path.  (at least in swedish translation)

Source RPM: isodumper-0.32-1.mga5.src.rpm => isodumper-0.40-1.mga5.src.rpm

Comment 9 Morgan Leijström 2015-03-04 17:55:00 CET
More...

§ I realise it is intended not to write out log file until it finishes, but maybe it would be a good idea if it wrote continously?  at least as it does not work to click "details" while it is running.

§ another missing space between words: when it verifies,
there is no space between (the swedish word for) "Checking"
and the drive name ("sdc" here) written on the progress bar.
Comment 10 papoteur 2015-03-05 20:52:58 CET
Thanks Morgan.
I think you first problem was that .isodumper was owned by root.
For writing log file, I need to change the application's owner to the local user. After that, writing in the device is no more possible. This is why the log file is writing at end. What is possible is to write directly on stout.
The problems you report seem all linked to the speed of the application. I know that the interface is not very responsive while writing. The same for details.

For the missing spaces, can you edit them in transifex. If not, I will ask on i18n list.

I will try to have a more responsive behavior.
Papoteur
Comment 11 Morgan Leijström 2015-03-06 11:30:15 CET
Yes. No idea why it was owned by root, but the current version makes me the owner.

It is OK to not write the log until exits.
-but can you make "Details" work while operating - or simply make it open as default. (click to close)

How come it is six times slower than the dd command?  (it takes more than an hour to write a DVD iso to usb stick) I thought it was kind of a wrapper to dd.  Or can you make it that?  (comment: i used dd with bs=1M)


I am not used to transifex, so please forward my translation comments, and ask also to check for missing spaces in other places. Possibly the same mistake have also been made in other languages.
Comment 12 papoteur 2015-03-06 19:11:29 CET
@margan
Is your writing classical or for UEFI?
Comment 13 Morgan Leijström 2015-03-07 09:05:03 CET
classical
Samuel Verschelde 2015-05-19 14:18:09 CEST

Keywords: NEEDINFO => (none)

Samuel Verschelde 2015-06-06 16:01:07 CEST

Whiteboard: (none) => MGA5TOO

Comment 14 Morgan Leijström 2015-09-26 23:23:46 CEST
As i have not seen it since, and it was a while ago and no one else comment here, i close it as worksforme.

As for the other issues i mention in Comment 11 :
 it now (v 0.42, mga5) writes quickly, and  "Details" work while operating.

Thanks :)

Status: UNCONFIRMED => RESOLVED
Resolution: (none) => WORKSFORME


Note You need to log in before you can comment on or make changes to this bug.