Bug 329392 - unable to create io-slave unknow protocolo - so nothing work
Summary: unable to create io-slave unknow protocolo - so nothing work
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 4.6.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-29 23:08 UTC by kailed
Modified: 2014-10-06 12:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
KDevelop's state right after creating a new application from scratch (200.69 KB, image/png)
2014-03-16 13:45 UTC, Marko Käning
Details
KDevelop's document browser shows that it tries to access the file at a non-existent path (170.85 KB, image/png)
2014-03-16 13:46 UTC, Marko Käning
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kailed 2013-12-29 23:08:33 UTC
After start a pop up appear with message:
Could not start process Unable to create io-slave:
klauncher said: Protocollo «» sconosciuto. (Protocol unknow)

Popup re-appear if I try to save a open file

openSUSE 12.2 with kde-4.11

Reproducible: Always

Steps to Reproduce:
1. start kdevelop
2.
3.
Actual Results:  
unuseable

Expected Results:  
working software :)

konsole output:
kdevelop(7598) KDevNinjaBuilderPlugin::KDevNinjaBuilderPlugin: Ninja plugin installed but ninja is not installed. 
kdevelop(7598)/kdevplatform (shell) KDevelop::PluginController::loadPluginInternal: "Plugin 'Compilatore progetto Ninja' could not be loaded correctly and was disabled.
Reason: ." 
kdevelop(7598) KDevNinjaBuilderPlugin::KDevNinjaBuilderPlugin: Ninja plugin installed but ninja is not installed. 
kdevelop(7598)/kdevplatform (shell) KDevelop::PluginController::loadPluginInternal: "Plugin 'Compilatore progetto Ninja' could not be loaded correctly and was disabled.
Reason: ." 
kdevelop(7598): couldn't create slave: "Unable to create io-slave:
klauncher said: Protocollo �� sconosciuto.
" 
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
qrc:/main.qml:23:1: QML Loader: Binding loop detected for property "source"
qrc:/main.qml:23:1: QML Loader: Binding loop detected for property "source"
kdevelop(7598)/kdevplatform (shell) KDevelop::SessionControllerPrivate::performRecovery: Starting recovery from  "/home/dan/.kde4/share/apps/kdevelop/sessions/{844fde6b-4e02-46b3-a5d3-ac0d39d7cacb}/recovery/current" 
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x5200013
kdevelop(7598): couldn't create slave: "Unable to create io-slave:
klauncher said: Protocollo �� sconosciuto.
" 
kdevelop(7598) KSambaSharePrivate::testparmParamValue: We got some errors while running testparm "Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
ERROR: pid directory /var/run/samba does not exist
" 
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x520017d
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x520001d
Thread::requestAbort: not running.
Thread::requestAbort: not running.
register count: 0, destroy count 0:
Comment 1 Kevin Funk 2013-12-30 11:05:03 UTC
Please try to re-run with console output in english. Somehow, the actual protocol name is missing in the lines "klauncher said: Protocollo �� sconosciuto.".

Try re-running with "LC_ALL=C kdevelop".

In any case: This looks more like a setup issue (e.g. missing distro package or something).
Comment 2 kailed 2013-12-30 16:23:11 UTC
I did it with LANG=C but anyway, the ouput is the same with LC_ALL.

Side note: why for the hell samba is involved in kdevelop startup ??

Installed packages:
kdevelop4-plugins-php-doc-1.6.0-11.1.i586
kdevelop4-4.6.0-10.1.i586
kdevelop4-plugins-php-1.6.0-11.1.i586
kdevelop4-devel-4.6.0-10.1.i586
kdevelop4-lang-4.6.0-10.1.noarch

Tested with a fresh user, same error.
Comment 3 Kevin Funk 2013-12-30 16:39:27 UTC
Try with LC_MESSAGES=C instead. This should display the console messages in english.
Comment 4 kailed 2013-12-30 16:46:11 UTC
Still the same. Sorry I don't know why this half english half italian.
Yes no protocol name...
Comment 5 kailed 2013-12-30 16:55:13 UTC
Ok english output (after login as root) but protocol still missing:

kdevelop(4604)/kdevplatform (language) KDevelop::ItemRepositoryRegistryPrivate::open: version-hint not found, seems to be an old version 
kdevelop(4604)/kdevplatform (language) KDevelop::ItemRepositoryRegistryPrivate::open: "The data-repository at /root/.cache/kdevduchain/kdevelop-{1f381660-2cb7-4353-9175-59ef17e7e046} has to be cleared." 
qrc:/main.qml:23:1: QML Loader: Binding loop detected for property "source"
qrc:/main.qml:23:1: QML Loader: Binding loop detected for property "source"
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2c00013
kdevelop(4604) KSambaSharePrivate::testparmParamValue: We got some errors while running testparm "Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
ERROR: pid directory /var/run/samba does not exist
" 
/usr/bin/cat: /root/.kde4/share/apps/kdevelop/sessions/{1f381660-2cb7-4353-9175-59ef17e7e046}/default.sh: No such file or directory
kdevelop(4604)/kdevplatform (shell) KDevelop::PluginController::loadPluginInternal: Unable to find a plugin named ' "" '! 
kdevelop(4604) KDevNinjaBuilderPlugin::KDevNinjaBuilderPlugin: Ninja plugin installed but ninja is not installed. 
kdevelop(4604)/kdevplatform (shell) KDevelop::PluginController::loadPluginInternal: "Plugin 'Ninja Project Builder' could not be loaded correctly and was disabled.
Reason: ." 
kdevelop(4604) KDevNinjaBuilderPlugin::KDevNinjaBuilderPlugin: Ninja plugin installed but ninja is not installed. 
kdevelop(4604)/kdevplatform (shell) KDevelop::PluginController::loadPluginInternal: "Plugin 'Ninja Project Builder' could not be loaded correctly and was disabled.
Reason: ." 
kdevelop(4604): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol ''.
" 
kdevelop(4604): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol ''.
" 
kdevelop(4604)/kdevelop (cpp support) KDevelop::ParseJob::readContents: Could not open file "%25{dest}/3.php" (path "%{dest}/3.php" ) 
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2c0017d
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2c0001d
Thread::requestAbort: not running.
Thread::requestAbort: not running.
register count: 0, destroy count 0:
Comment 6 kailed 2014-01-04 14:01:37 UTC
Some news: it seems that it happens only with php project.
No io-slave error with cmake project.
Comment 7 Milian Wolff 2014-01-04 14:33:16 UTC
Did you ever ran kbuildsycoca4? If not - try that and see if it works. I presume that the packages are broken when they don't run this after installation. Or did you install the PHP plugin on your own?
Comment 8 kailed 2014-01-04 16:23:14 UTC
All packages installed from opensuse repo (see #3) and kbuildsycoca didn't help.
Comment 9 kailed 2014-02-14 13:44:40 UTC
Fresh install of opensuse 13.1 with kde-4.12.2 and kdevelop-4.6, same issue.
For me the issue is: whe you start a new php project 'foo' there are two file foo.php. One empty opened in the editor and another one stored in ~/projects/foo/. If I close the former I can go ahead. Then I can open the latter and working on it without issue (at least after a quick test).
The files are not the same, the stored one has some code (php open tag, Documentation, License parts..).

Any thoughts ?
Comment 10 Marko Käning 2014-03-16 13:44:54 UTC
I saw the same on KDevelop 1.6.0 installed on MacOSX 10.9.2 through MacPorts running KDE 4.12.2.

I'll attach a PNG which demonstrates that KDevelop wants to access a file at a path which still seems to include same strange place-holder "%25{dest}/src/" as above which must be the reason for that KDevelop can't access the file properly.

Once I've closed that illegal file all goes well (I can browse the code, start the build and it builds just fine. Doesn't run yet, but that's another issue.)
Comment 11 Marko Käning 2014-03-16 13:45:47 UTC
Created attachment 85599 [details]
KDevelop's state right after creating a new application from scratch
Comment 12 Marko Käning 2014-03-16 13:46:50 UTC
Created attachment 85600 [details]
KDevelop's document browser shows that it tries to access the file at a non-existent path
Comment 13 Marko Käning 2014-03-16 13:53:11 UTC
(In reply to comment #7)
> Did you ever ran kbuildsycoca4? If not - try that and see if it works.

Yes, I did so, otherwise KDevelop wouldn't start properly due to some Kate issue.

So, kbuildsycoca4 isn't the solution, yet.
Comment 14 Marko Käning 2014-03-16 13:54:30 UTC
(In reply to comment #6)
> Some news: it seems that it happens only with php project.
> No io-slave error with cmake project.

In my case it was a graphical application!

So, it does NOT only happen with a php project.
Comment 15 Marko Käning 2014-03-18 06:50:20 UTC
This issue is marked as being waiting for info. Which info could/should be delivered? I am willing to investigate further.
Comment 16 kailed 2014-03-18 18:50:33 UTC
(In reply to comment #15)
> This issue is marked as being waiting for info. Which info could/should be
> delivered? I am willing to investigate further.
Also marked as resolved.. Why ??

We have exactly the same problem, what a lucky guys :)
Comment 17 Marko Käning 2014-03-18 20:04:52 UTC
I also wondered why it was marked resolved as well as waiting for info... Trying to reopen it.
Comment 18 Milian Wolff 2014-03-19 09:17:53 UTC
Can someone please write down the _explicit_ steps to reproduce this issue? Apparently you use the "new project from template". Please list _every_ input you enter in this wizard, with selections, file paths, names etc. pp.
Comment 19 kailed 2014-03-19 18:32:06 UTC
(In reply to comment #18)
> Can someone please write down the _explicit_ steps to reproduce this issue?
> Apparently you use the "new project from template". Please list _every_
> input you enter in this wizard, with selections, file paths, names etc. pp.

For me:
start kdevelop
click New Project, then the wizard starts.
choose php
add a name (eg. foo)
next
finish.

Error appear. 
If I close kdevelop, on restarting the error re-appear. I already posted the kdevelop ouput, I can attach strace ouput if you want but it's loooong.
Comment 20 Marko Käning 2014-03-19 20:05:58 UTC
For me:
1) start develop
2) click New Project
3) click on Project Type "Graphical"
4) Choose C++ KDE
5) Choose "TestProject" as Application Name
6) Click Next
7) Click Finish
8) Leave "Configure build directory settings" as is and click OK
9) Then image "KDevelop's state right after creating a new application from scratch" shows the dialogs popping up
10) Click "Close" in red dialog at the top of the main window
11) All classes are browsable in the class viewer and there is no warning anymore about the wrong path starting with "%25{dest}"...

SPECULATION: Could it be that the missing path has been created some time after KDevelop's FIRST start and therefore doesn't appear anymore once you've got a functional KDevelop environment??!
Comment 21 Marko Käning 2014-03-19 20:07:45 UTC
(In reply to comment #20)
> 11) All classes are browsable in the class viewer and there is no warning
> anymore about the wrong path starting with "%25{dest}"...

I didnt mean to say "no warning", I meant no entry in the Document tree structure with that wrong path in there.
Comment 22 Marko Käning 2014-03-19 20:22:47 UTC
And I realised now that the first file automatically opened by KDevelop after project creation - in this case TestProject.cpp - would be EMPTY!

But if you click in class browser on the TestProject3 constructor the REAL FILE will open up and be just fine. The other zombie just needs to closed for good and gone it is...
Comment 23 Marko Käning 2014-03-19 20:43:13 UTC
OK, in order to reproduce image "KDevelop's document browser shows that it tries to access the file at a non-existent path" I had to stay in the illegal empty cpp file opened during project creation and then click onto the "Documents" tab on the left. This opens the Documents pane which then contains the path "%25{dest}/src" and lists only that said cpp underneath.

Closing the illegal file is the solution.
Comment 24 Milian Wolff 2014-03-20 10:08:33 UTC
OK, with the steps from Kailed I could reproduce this bug.
Comment 25 Milian Wolff 2014-03-20 10:50:52 UTC
Git commit 33b660dfefe02ecd4391a284f6fd6de9439b2b45 by Milian Wolff.
Committed on 20/03/2014 at 10:50.
Pushed by mwolff into branch '1.6'.

Keep backwards compatibility: replace "dest" variable.

Its an alias for PROJECTDIR and used in quite some templates
apparently.

M  +2    -0    plugins/appwizard/appwizardplugin.cpp

http://commits.kde.org/kdevplatform/33b660dfefe02ecd4391a284f6fd6de9439b2b45
Comment 26 kailed 2014-03-20 19:18:15 UTC
(In reply to comment #25)
> Git commit 33b660dfefe02ecd4391a284f6fd6de9439b2b45 by Milian Wolff.
> Committed on 20/03/2014 at 10:50.
> Pushed by mwolff into branch '1.6'.
> 
> Keep backwards compatibility: replace "dest" variable.
> 
> Its an alias for PROJECTDIR and used in quite some templates
> apparently.
> 
> M  +2    -0    plugins/appwizard/appwizardplugin.cpp
> 
> http://commits.kde.org/kdevplatform/33b660dfefe02ecd4391a284f6fd6de9439b2b45

Great !
Comment 27 Marko Käning 2014-03-20 21:14:45 UTC
Thanks looking into this little show-stopper.
Comment 28 primoz 2014-10-06 12:28:01 UTC
What is the state of this bug? The messagebox opens everytime I Interrupt the debugger. Just found out I have 2 new grey hair in the morning.