Bug 176066

Summary: KSnapshot crashes when trying to save file
Product: [Frameworks and Libraries] kio Reporter: Tomas Van Verrewegen <tomasvanverrewegen>
Component: generalAssignee: Richard Moore <rich>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra
Priority: NOR    
Version: 4.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Tomas Van Verrewegen 2008-11-25 14:27:26 UTC
Version:           0.8.1 (using 4.1.3 (KDE 4.1.3), Kubuntu packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.27-8-generic

When I try to save a file in KSnapshot (or KGrab for that matter) a crash occurs.
(A) Reproduce like this:
  1. make a snapshot
  2. choose Save As...
  3. type the filename
KSnapshot crashes when I type the last letter of the file extension.
Eg: Snapshot.png
---------------^ crash occurs here

(B) Or reproduce like this:
  1. make a snapshot
  2. choose Save As...
  3. choose a file extension from the combobox

Output on the console for case (A):
tomas@sokopok:~$ ksnapshot 
ksnapshot(22736) KMimeTypeFactory::parseMagic: Now parsing  "/usr/share/mime/magic"
ksnapshot(22736) KMimeTypeFactory::parseMagic: Now parsing  "/home/tomas/.local/share/mime/magic"
ksnapshot(22736) KUrlCompletion::postProcessMatch: Could not stat file "file:///home/tomas//1.jpg"
ksnapshot(22736) KUrlCompletion::postProcessMatch: Could not stat file "file:///home/tomas//1.jpg"
ksnapshot(22736) KUrlCompletion::postProcessMatch: Could not stat file "file:///home/tomas//1.jpg"
ksnapshot(22736) KUrlCompletion::postProcessMatch: Could not stat file "file:///home/tomas//1.jpg"
ASSERT: "node" in file /build/buildd/kde4libs-4.1.3/kio/kio/kdirmodel.cpp, line 441               
KCrash: Application 'ksnapshot' crashing...                                                       
sock_file=/home/tomas/.kde/socket-sokopok/kdeinit4__0

Output on the console for case (B):
tomas@sokopok:~$ ksnapshot
ksnapshot(22757) KMimeTypeFactory::parseMagic: Now parsing  "/usr/share/mime/magic"
ksnapshot(22757) KMimeTypeFactory::parseMagic: Now parsing  "/home/tomas/.local/share/mime/magic"
ksnapshot(22757) KUrlCompletion::postProcessMatch: Could not stat file "file:///home/tomas//1.jpg"
ksnapshot(22757) KUrlCompletion::postProcessMatch: Could not stat file "file:///home/tomas//1.jpg"
ASSERT: "node" in file /build/buildd/kde4libs-4.1.3/kio/kio/kdirmodel.cpp, line 441
KCrash: Application 'ksnapshot' crashing...
sock_file=/home/tomas/.kde/socket-sokopok/kdeinit4__0

Both crashes occur for every file type I choose, the filename/folder  also don't make a difference.

similar bugs:
174480
152974

I will file a bug report for KGrab for the same problem.
Comment 1 Marcos Dione 2008-11-28 23:39:59 UTC
can't reproduce with svn version 885801.
Comment 2 Dario Andres 2008-12-05 21:03:35 UTC
Assert in KIO, reassigning.
Comment 3 Dario Andres 2008-12-05 21:07:14 UTC
Marking this as duplicate of bug 176916. (same assert and line number, similar situations (filters in file-dialogs)

*** This bug has been marked as a duplicate of bug 176916 ***