Bug 176066 - KSnapshot crashes when trying to save file
Summary: KSnapshot crashes when trying to save file
Status: RESOLVED DUPLICATE of bug 176916
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.1
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Richard Moore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-25 14:27 UTC by Tomas Van Verrewegen
Modified: 2008-12-05 21:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***