Bug 164149 - cannot browse sftp/ssh/fish URLs with kde4.1 beta, both in Linux and Windows, with Konqueror or Dolphin
Summary: cannot browse sftp/ssh/fish URLs with kde4.1 beta, both in Linux and Windows,...
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-15 16:35 UTC by Frederic Schaer
Modified: 2009-09-09 17:30 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Schaer 2008-06-15 16:35:49 UTC
Version:            (using KDE 4.0.80)
Installed from:    Ubuntu Packages
OS:                Linux

Hi,

I can't browse my own computer dirs using the fish/sftp/ssh protocols both with Konqueror or Dolphin.

I tried this kind or URLs :

fish://fred@192.168.1.15 --> could not connect to host
sftp://fred@192.168.1.15 --> Unexpected SFTP error: 8
ssh://fred@192.168.1.15 --> URL cannot be listed
fish://192.168.1.15 --> could not connect to host
sftp://192.168.1.15 --> Unexpected SFTP error: 8
ssh://192.168.1.15 --> error : URL cannot be listed
remote://fred@192.168.1.15 --> crash !

At this stage, I see the following errors in the terminal output :
dolphin(9590) KFileItem::isDir: can't say -> false
dolphin(9590) KFileMetaInfoPrivate::init: KUrl("file://ssh://fred@localhost")
dolphin(9590) DirectoryListThread::run: Failed to open dir: "/home/fred/f://"
dolphin(9590) KFileItem::isDir: can't say -> false
dolphin(9590) KFileMetaInfoPrivate::init: KUrl("file://fish://fred@localhost")
kdeinit4: Got EXEC_NEW 'kio_fish' from launcher.
kdeinit4: preparing to launch
dolphin(9590) KFileItem::isDir: can't say -> false
dolphin(9590) KFileMetaInfoPrivate::init: KUrl("file://fish://fred@192.168.1.15")
kdeinit4: PID 9593 terminated.
dolphin(9590) KFileItem::isDir: can't say -> false
dolphin(9590) KFileMetaInfoPrivate::init: KUrl("file://ssh://192.168.1.15")
dolphin(9590) DirectoryListThread::run: Failed to open dir: "/home/fred/f://"
dolphin(9590) KFileItem::isDir: can't say -> false
dolphin(9590) KFileMetaInfoPrivate::init: KUrl("file://fish://192.168.1.15")
dolphin(9590) DirectoryListThread::run: Failed to open dir: "/home/fred/f://"
dolphin(9590) DirectoryListThread::run: Failed to open dir: "/home/fred/s://"
dolphin(9590) KFileItem::isDir: can't say -> false
dolphin(9590) KFileMetaInfoPrivate::init: KUrl("file://sftp://192.168.1.15")
dolphin(9590) KIO::SlaveInterfacePrivate::messageBox: 5 "" caption= "Unexpected SFTP error: 8"
dolphin(9590) KFileItem::isDir: can't say -> false
dolphin(9590) KFileMetaInfoPrivate::init: KUrl("file://ssh://fred@192.168.1.15")
dolphin(9590) KFileItem::isDir: can't say -> false
dolphin(9590) KFileMetaInfoPrivate::init: KUrl("file://sftp://fred@192.168.1.15")
dolphin(9590) KIO::SlaveInterfacePrivate::messageBox: 5 "" caption= "Unexpected SFTP error: 8"
dolphin(9590) DirectoryListThread::run: Failed to open dir: "/home/fred/p://"
dolphin(9590) DirectoryListThread::run: Failed to open dir: "/home/fred/f://"
dolphin(9590) KFileItem::isDir: can't say -> false
dolphin(9590) KFileMetaInfoPrivate::init: KUrl("file://fish://fred@192.168.1.15")
dolphin(9590) DirectoryListThread::run: Failed to open dir: "/home/fred/f://"
dolphin(9590) DirectoryListThread::run: Failed to open dir: "/home/fred/r://"
dolphin(9590) KFileItem::isDir: can't say -> false
dolphin(9590) KFileMetaInfoPrivate::init: KUrl("file://remote://fred@192.168.1.15")
kdeinit4: Got EXEC_NEW 'kio_remote' from launcher.
kdeinit4: preparing to launch
ASSERT: "result.second" in file /build/buildd/kde4libs-4.0.80/kio/kio/kdirmodel.cpp, line 308
Fatal Error: Accessed global static 'Solid::DeviceManagerPrivate *globalDeviceManager()' after destruction. Defined at /build/buildd/kde4libs-4.0.80/solid/solid/devicemanager.cpp:32
kdeinit4: PID 9598 terminated.
kdeinit4: PID 9644 terminated.
kdeinit4: PID 9612 terminated.

I have the same behaviour with konqueror in KDE4.1beta, and konqueror/dolphin in windows (but these are not the 4.1 beta, just latest windows KDE4 release)

Strangely, connecting using fish to localhost works :
URL : fish://localhost --> asks for a username and password

Terminal then shows this :
dolphin(9661) KFileMetaInfoPrivate::init: KUrl("file://fish://localhost")
fish(9670) KRemoteEncoding::setEncoding: setting encoding "ISO-8859-1" for name=


Regards
Comment 1 tropikhajma 2008-08-24 02:43:22 UTC
sort of confirming with KDE 4.1.0 (mandriva 2009 beta2)
the fish just dies saying 'Unexpected Program Termination'

I can see this in the konsole:

konqueror(6992)/kio (KIOJob) KIO::StatJobPrivate::slotRedirection: KUrl("fish://hajma@192.168.1.65")
konqueror(6992)/kio (Slave) KIO::Slave::gotInput: slave died pid =  7019
konqueror(6992)/kparts KParts::BrowserRun::slotStatResult: BrowserRun::slotStatResult: "The process for the fish://192.168.1.65 protocol died unexpectedly."
konqueror(6992) KonqRun::handleError: KonqRun::handleError error: "The process for the fish://192.168.1.65 protocol died unexpectedly."
konqueror(6992) KonqMainWindow::openView: "text/html" KUrl("error:/?error=143&errText=fish%3A%2F%2F192.168.1.65#fish://192.168.1.65") childView= KonqView(0x8f151a8) req: "[typedUrl=fish://192.168.1.65 newTabInFront forceAutoEmbed]"
konqueror(6992) KonqFactory::createView: Trying to create view for "text/html" ""
konqueror(6992)/kdecore (trader) KMimeTypeTrader::query: query for mimeType  "text/html" ,  "Application"  : returning  3  offers
konqueror(6992)/kdecore (trader) KMimeTypeTrader::query: query for mimeType  "text/html" ,  "KParts/ReadOnlyPart"  : returning  3  offers
konqueror(6992) KonqFactory::createView: "khtml"  : X-KDE-BrowserView-AllowAsDefault is valid :  false
konqueror(6992)/kdecore (KLibLoader) findLibraryInternal: plugins should not have a 'lib' prefix: "libkhtmlpart.so"
konqueror(6992)/kdecore (KLibLoader) findLibraryInternal: plugins should not have a 'lib' prefix: "libkhtmlpart.so"
konqueror(6992)/kdecore (KLibLoader) kde4Factory: The library "/usr/lib/kde4/libkhtmlpart.so" does not offer a qt_plugin_instance function.
konqueror(6992) KonqView::changePart: Reusing service. Service type set to "text/html"
konqueror(6992) KonqView::openUrl: url= KUrl("error:/?error=143&errText=fish%3A%2F%2F192.168.1.65#fish://192.168.1.65") locationBarURL= "error:/?error=143&errText=fish%3A%2F%2F192.168.1.65#fish://192.168.1.65"
konqueror(6992)/khtml (part) KHTMLPart::openUrl: KHTMLPart( KHTMLPart(0x8f15650, name = "webkit") )::openURL  "error:/?error=143&errText=fish%3A%2F%2F192.168.1.65#fish://192.168.1.65"
konqueror(6992)/khtml (part) KHTMLPart::htmlError: errorCode 143 text "fish://192.168.1.65"
konqueror(6992) KonqHistoryManager::addToHistory: ## addToHistory:  "fish://192.168.1.65"  Typed URL:  "fish://192.168.1.65" , Title:  "Error: Unexpected Program Termination - fish://192.168.1.65"
konqueror(6992) KonqHistoryManager::addToHistory: ## addToHistory:  "error:/?error=143&errText=fish%3A%2F%2F192.168.1.65#fish://192.168.1.65"  Typed URL:  "error:/?error=143&errText=fish%3A%2F%2F192.168.1.65#fish://192.168.1.65" , Title:  ""
ControlElement: 22


also fish to localhost is fine
sftp works fine
Comment 2 David Faure 2008-09-16 18:06:52 UTC
The fish problem is bug 145123, no?
I don't know about the other two. sftp works for me.
Comment 3 Murz 2008-12-01 09:20:19 UTC
Confirm on KDE 4.1 and KDE 4.2 beta 1 on Kubuntu Intrepid AMD64.


Dolphin:
dolphin(11844) KDirListerCache::listDir: Listing directory: KUrl("sftp://192.168.1.72")
dolphin(11844) KFileItem::isDir: can't say -> false
dolphin(11844) MetaDataWidget::setFile: KUrl("sftp://192.168.1.72")
dolphin(11844) KUrlComboBox::urls: ::urls()
dolphin(11844) KIO::SlaveInterface::dispatch: needs a msg box
dolphin(11844) KIO::SlaveInterface::messageBox: messageBox  5   ""  -  "Unexpected SFTP error: 8"   ""
dolphin(11844) KIO::SlaveInterfacePrivate::messageBox: 5 "" caption= "Unexpected SFTP error: 8"
dolphin(11844) KIO::SlaveInterface::messageBox: KIO::Slave(0xea27e0)  SlaveInterface result= 1
dolphin(11844) KIO::SlaveInterface::dispatch: error  151   ""
dolphin(11844) KDirListerCache::slotResult: finished listing KUrl("sftp://192.168.1.72")


konqueror:
konqueror(11966) KonqMainWindow::openFilteredUrl: url "sftp://192.168.1.72" filtered into KUrl("sftp://192.168.1.72")
konqueror(11966) KonqMainWindow::openUrl: url= KUrl("sftp://192.168.1.72") mimeType= "" _req= "[typedUrl=sftp://192.168.1.72 newTabInFront]" view= QObject(0x0)
konqueror(11966) KonqMainWindow::openUrl: Creating new konqrun for KUrl("sftp://192.168.1.72") req.typedUrl= "sftp://192.168.1.72"
konqueror(11966) KRun::slotTimeout: KonqRun(0x2596c80)  slotTimeout called
konqueror(11966) KRun::init: INIT called
konqueror(11966) KRun::init: Testing directory (stating)
konqueror(11966) KRun::init:  Job  KIO::StatJob(0x24a6350)  is about stating  "sftp://192.168.1.72"
konqueror(11966) KIO::SlaveInterface::dispatch: needs a msg box
konqueror(11966) KIO::SlaveInterface::messageBox: messageBox  5   ""  -  "Unexpected SFTP error: 8"   ""
konqueror(11966) KIO::SlaveInterfacePrivate::messageBox: 5 "" caption= "Unexpected SFTP error: 8"

Comment 4 Murz 2008-12-01 14:00:54 UTC
I solve problem for mine: this errors shows only when ssh on remove host is unavailable. I have open ssh ports on than host and all goes to work!
Comment 5 FiNeX 2008-12-30 14:37:12 UTC
I can reproduce the crash on current trunk (r903258) only trying to accesso to this:
   remote://192.168.0.2 


This is the backtrace:


Application: Dolphin (dolphin), signal SIGABRT
0x00007f2a41b54001 in nanosleep () from /lib/libc.so.6
[Current thread is 0 (LWP 29929)]

Thread 2 (Thread 0x7f2a36fa7950 (LWP 30016)):
#0  0x00007f2a41b7dd02 in select () from /lib/libc.so.6
#1  0x00007f2a428dcee6 in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007f2a42826d79 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f2a425b5fc7 in start_thread () from /lib/libpthread.so.0
#4  0x00007f2a41b845dd in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f2a45ef7750 (LWP 29929)):
[KCrash Handler]
#5  0x00007f2a41ae70c5 in raise () from /lib/libc.so.6
#6  0x00007f2a41ae85e3 in abort () from /lib/libc.so.6
#7  0x00007f2a428200a5 in qt_message_output () from /usr/lib/libQtCore.so.4
#8  0x00007f2a428201c7 in qFatal () from /usr/lib/libQtCore.so.4
#9  0x00007f2a45a7259b in KDirModelPrivate::_k_slotNewItems (this=0x1fe91b0, directoryUrl=<value optimized out>, items=@0x20212b0) at /home/test/KDE4/src/kdelibs/kio/kio/kdirmodel.cpp:379
#10 0x00007f2a45a7268a in KDirModel::qt_metacall (this=0x21e8ec0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff4e034960)
    at /home/test/KDE4/src/build/kdelibs/kio/kdirmodel.moc:77
#11 0x00007f2a42909d00 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#12 0x00007f2a45a5367a in KDirLister::itemsAdded (this=0x74e9, _t1=<value optimized out>, _t2=<value optimized out>) at /home/test/KDE4/src/build/kdelibs/kio/kdirlister.moc:266
#13 0x00007f2a45a5452b in KDirLister::Private::emitItems (this=0x21e8d40) at /home/test/KDE4/src/kdelibs/kio/kio/kdirlister.cpp:2239
#14 0x00007f2a45a5735e in KDirListerCache::slotEntries (this=0x1d3a2f0, job=<value optimized out>, entries=@0x225fa28) at /home/test/KDE4/src/kdelibs/kio/kio/kdirlister.cpp:1048
#15 0x00007f2a45a666fb in KDirListerCache::qt_metacall (this=0x1d3a2f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff4e034ce0)
    at /home/test/KDE4/src/build/kdelibs/kio/kdirlister_p.moc:97
#16 0x00007f2a42909d00 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#17 0x00007f2a45a2d5f4 in KIO::ListJob::entries (this=0x74e9, _t1=0x21cfde0, _t2=<value optimized out>) at /home/test/KDE4/src/build/kdelibs/kio/jobclasses.moc:763
#18 0x00007f2a45a3acb6 in KIO::ListJobPrivate::slotListEntries (this=0x1f8cd70, list=@0x7fff4e035270) at /home/test/KDE4/src/kdelibs/kio/kio/job.cpp:2341
#19 0x00007f2a45a3ae26 in KIO::ListJob::qt_metacall (this=0x21cfde0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff4e035050)
    at /home/test/KDE4/src/build/kdelibs/kio/jobclasses.moc:750
#20 0x00007f2a42909d00 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#21 0x00007f2a45af5385 in KIO::SlaveInterface::listEntries (this=0x74e9, _t1=<value optimized out>) at /home/test/KDE4/src/build/kdelibs/kio/slaveinterface.moc:177
#22 0x00007f2a45af8bdf in KIO::SlaveInterface::dispatch (this=0x1ef54b0, _cmd=<value optimized out>, rawdata=@0x4) at /home/test/KDE4/src/kdelibs/kio/kio/slaveinterface.cpp:193
#23 0x00007f2a45af5758 in KIO::SlaveInterface::dispatch (this=0x1ef54b0) at /home/test/KDE4/src/kdelibs/kio/kio/slaveinterface.cpp:91
#24 0x00007f2a45ae7923 in KIO::Slave::gotInput (this=0x1ef54b0) at /home/test/KDE4/src/kdelibs/kio/kio/slave.cpp:322
#25 0x00007f2a45ae8958 in KIO::Slave::qt_metacall (this=0x1ef54b0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff4e035440) at /home/test/KDE4/src/build/kdelibs/kio/slave.moc:75
#26 0x00007f2a42909d00 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#27 0x00007f2a45a015c0 in KIO::ConnectionPrivate::dequeue (this=0x2105100) at /home/test/KDE4/src/kdelibs/kio/kio/connection.cpp:82
#28 0x00007f2a45a016fa in KIO::Connection::qt_metacall (this=0x20a04e0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x20b5170) at /home/test/KDE4/src/build/kdelibs/kio/connection.moc:72
#29 0x00007f2a42905f9e in QObject::event () from /usr/lib/libQtCore.so.4
#30 0x00007f2a42d564dd in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#31 0x00007f2a42d5c86a in QApplication::notify () from /usr/lib/libQtGui.so.4
#32 0x00007f2a4413750b in KApplication::notify (this=0x7fff4e035e80, receiver=0x20a04e0, event=0x21f9880) at /home/test/KDE4/src/kdelibs/kdeui/kernel/kapplication.cpp:307
#33 0x00007f2a428f83d1 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#34 0x00007f2a428f8db8 in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4
#35 0x00007f2a4291cc03 in ?? () from /usr/lib/libQtCore.so.4
#36 0x00007f2a3e915aa2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#37 0x00007f2a3e91921d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#38 0x00007f2a3e9193db in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#39 0x00007f2a4291c89f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#40 0x00007f2a42dd6fff in ?? () from /usr/lib/libQtGui.so.4
#41 0x00007f2a428f6d42 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#42 0x00007f2a428f6ed5 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#43 0x00007f2a428f9025 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#44 0x000000000044380d in main (argc=6, argv=0x7fff4e036368) at /home/test/KDE4/src/kdebase/apps/dolphin/src/main.cpp:94

Comment 6 FiNeX 2008-12-30 14:44:05 UTC
bug #164149 should be similar.
Comment 7 FiNeX 2008-12-30 14:46:12 UTC
Sorry, I mean bug #178416 :-p
Comment 8 Andreas Schneider 2009-09-09 12:44:45 UTC
Is this reproducible with a current KDE version?
Comment 9 Murz 2009-09-09 17:20:24 UTC
Protocols:
fish://fred@192.168.1.15
sftp://fred@192.168.1.15
remote://fred@192.168.1.15
fish://192.168.1.15
sftp://192.168.1.15
remote://192.168.1.15
working properly for me on Dolphin (KDE 4.3, Kubuntu Jaunty).
I think this bug was been solved already in KDE. Other subscribers, please test this on your systems and post results here.
Comment 10 Andreas Schneider 2009-09-09 17:30:26 UTC
I'm closing it as fixed. Reopen if the problem occurs again.

Thanks for your interest in KDE!