You are not logged in.

#1 11-01-2013 00:07:45

chrisbra
Nouveau membre
Registered: 10-31-2013
Posts: 6

segmentation fault with Ubuntu saucy and ffDiaporama 1.6

I have been using ffDiaporama 1.6 from the ffdiaporamateam/stable ppa.
It works fine so far, however I noticed one problem, which makes it segfault.

Create a dia and open it (dia properties).
Add a second image by using Add file.
press undo (Ctrl-Z)
(now wait a little bit and it will core dump).

I have been trying to debug it using gdb, however haven't have luck to successfully build a debug built of ffdiaporama.

Offline

#2 11-01-2013 07:16:49

domledom
Administrateur
Registered: 09-17-2011
Posts: 1,080

Re: segmentation fault with Ubuntu saucy and ffDiaporama 1.6

Hi

Which operating system are you using ?


Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)

Offline

#3 11-01-2013 10:47:40

boenki
Membre
Registered: 09-21-2011
Posts: 88

Re: segmentation fault with Ubuntu saucy and ffDiaporama 1.6

title says: Ubuntu saucy


Archlinux packager: stable / texuremate-addon / openclipart-addon

Offline

#4 11-01-2013 21:21:59

chrisbra
Nouveau membre
Registered: 10-31-2013
Posts: 6

Re: segmentation fault with Ubuntu saucy and ffDiaporama 1.6

boenki wrote:

title says: Ubuntu saucy

correct.

Offline

#5 11-01-2013 22:08:56

chrisbra
Nouveau membre
Registered: 10-31-2013
Posts: 6

Re: segmentation fault with Ubuntu saucy and ffDiaporama 1.6

Here is a backtrace from the most recent development snapshot:
http://pastebin.com/cau2kUi6

Offline

#6 11-01-2013 22:26:39

chrisbra
Nouveau membre
Registered: 10-31-2013
Posts: 6

Re: segmentation fault with Ubuntu saucy and ffDiaporama 1.6

This seems to fix it:
diff --git a/ffDiaporama/src/ffDiaporama/DlgSlide/DlgSlideProperties.cpp b/ffDiaporama/src/ffDiaporama/DlgSlide/DlgSlideProperties.cpp
index 39f3ed6..a76c1f7 100755
--- a/ffDiaporama/src/ffDiaporama/DlgSlide/DlgSlideProperties.cpp
+++ b/ffDiaporama/src/ffDiaporama/DlgSlide/DlgSlideProperties.cpp
@@ -784,7 +784,7 @@ void DlgSlideProperties::ApplyPartialUndo(int ActionType,QDomElement root) {
             }
         }
         CurrentSlide->Parent->UpdateChapterInformation();
-        ApplyToContexte(true);
+        ApplyToContexte(false);
         RefreshBlockTable(CurrentCompoObjectNbr);
         ui->ShotTable->setUpdatesEnabled(false);
         ui->ShotTable->setUpdatesEnabled(true);

Offline

#7 11-02-2013 06:54:59

domledom
Administrateur
Registered: 09-17-2011
Posts: 1,080

Re: segmentation fault with Ubuntu saucy and ffDiaporama 1.6

Hi

Thank you for this analysis.
The solution you propose is not good because it disables updates in all cases, against it put me on the right track.
This bug will be fixed in the next beta.


Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)

Offline

Board footer