Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crashes, when trying to diff #1083

Closed
freder opened this issue May 3, 2020 · 8 comments
Closed

crashes, when trying to diff #1083

freder opened this issue May 3, 2020 · 8 comments
Labels
Bug Feedback needs user response, may be closed after timeout without a response Heisenbug a problem that is not reproducible but random (non-deterministic)

Comments

@freder
Copy link

freder commented May 3, 2020

version 1.2.1

every time I do either of these, the program crashes:

  • view → snapshots → diff
  • view → snapshots → diff options → ok
5/3/20 8:57 PM	python	Traceback (most recent call last):
File "/usr/share/backintime/qt/snapshotsdialog.py", line 339, in btnDiffClicked
	path1 = self.parent.tmpCopy(path1, sid1)
File "/usr/share/backintime/qt/app.py", line 1266, in tmpCopy
	shutil.copytree(full_path, tmp_file)
File "/usr/lib/python3.8/shutil.py", line 554, in copytree
	return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
File "/usr/lib/python3.8/shutil.py", line 455, in _copytree
	os.makedirs(dst, exist_ok=dirs_exist_ok)
File "/usr/lib/python3.8/os.py", line 223, in makedirs
	mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/tmp/tmpkt7c6arq_20200503-191846-429/'
@frithrah
Copy link

For the record, I have the same consistent crash but a different error...

Traceback (most recent call last):
  File "/usr/share/backintime/qt/snapshotsdialog.py", line 76, in accept
    diffCmd = str(self.editCmd.text().toUtf8())
AttributeError: 'str' object has no attribute 'toUtf8'

@buhtz
Copy link
Member

buhtz commented Sep 25, 2022

@freder There is a new forming maintaining team and we do review all issues. Is this problem still relevant for you or did you find a solution?

Tag: Feedback, Bug, Qt

@buhtz
Copy link
Member

buhtz commented Sep 25, 2022

For the record, I have the same consistent crash but a different error...

Traceback (most recent call last):
  File "/usr/share/backintime/qt/snapshotsdialog.py", line 76, in accept
    diffCmd = str(self.editCmd.text().toUtf8())
AttributeError: 'str' object has no attribute 'toUtf8'

This is different from the opening report. Your problem (error about missing `toUtf8()) is fixed (via #1246) in the current upstream version. That version is not released yet.

@emtiu
Copy link
Member

emtiu commented Oct 14, 2022

Possible duplicate of #1197?

@emtiu emtiu added the Bug label Oct 14, 2022
@buhtz
Copy link
Member

buhtz commented Mar 19, 2023

Dear @freder ,
can you report back please if you are still able to reproduce your problem with the latest version (1.3.3) of BIT?

@buhtz buhtz added the Feedback needs user response, may be closed after timeout without a response label Mar 19, 2023
@buhtz buhtz added this to the 1.3.5 / 1.4.0 milestone Mar 19, 2023
@buhtz
Copy link
Member

buhtz commented Jun 29, 2023

I've seen this, too in 1.3.4-dev. But again I can't reproduce it for sure.

But I do see a trail and need to further investigate the code.

# prevent backup data from being accidentally overwritten
# by create a temporary local copy and only open that one
if not isinstance(sid1, snapshots.RootSnapshot):
path1 = self.parent.tmpCopy(path1, sid1)
if not isinstance(sid2, snapshots.RootSnapshot):
path2 = self.parent.tmpCopy(path2, sid2)

There are two situations / variants of calls to tmpCopy(). But they are not exclusive to each other. It might happen in rare cases that tmpCopy() is called twice. But there is also high evidence that I'm wrong here. I travled Back In Time to version 1.2.1 (the Issue opener used) and had a look at line 339 which was reported in his traceback. This line number refers to the first call of tmpCopy() not the second.

@emtiu emtiu added the Heisenbug a problem that is not reproducible but random (non-deterministic) label Aug 25, 2023
@buhtz buhtz removed the Feedback needs user response, may be closed after timeout without a response label Sep 5, 2023
@buhtz
Copy link
Member

buhtz commented Apr 17, 2024

Frederic we are currently working (#1682) on the snapshots dialog and its compare feature. Can you somehow reproduce the problem with a newer version of BIT and can you provide us the steps to reproduce?

@buhtz buhtz added the Feedback needs user response, may be closed after timeout without a response label Apr 17, 2024
@buhtz
Copy link
Member

buhtz commented Sep 10, 2024

Closing this ticket based on the comment above. Feel free to reopen
if the problem still exists. Thank you for your efforts. If you have
any further questions, ideas or encounter any other issues, please
don't hesitate to let us know.

Best regards,

@buhtz buhtz closed this as completed Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Feedback needs user response, may be closed after timeout without a response Heisenbug a problem that is not reproducible but random (non-deterministic)
Projects
None yet
Development

No branches or pull requests

4 participants