Resolved [Linux/Arch/KDE/RSU] IOException: cannot run window_info.sh

Discussion in 'Developer Support' started by SlashnHax, Feb 13, 2016.

  1. Code (Text):
    1. java.io.IOException: Cannot run program "/root/RuneMate/cache/window_info.sh": error=13, Permission denied
    2. at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    3. at nul.IIiIIIiIiiii.enum(qsb:79)
    4. at nul.iiIIiiiIiiIi.enum(eh:23)
    5. at nul.iiIIiiiIiiIi.enum(eh:168)
    6. at nul.iiIIiiiIiiIi.enum(eh:50)
    7. at nul.iiIIiiiIiiIi.enum(eh:194)
    8. at nul.IIiIiIiIIIII.enum(nic:201)
    9. at nul.IIIiiIiIIIiI.enum(gvb:28)
    10. at nul.IIIiiIiIIIiI.toString(gvb:46)
    11. at com.sun.javafx.scene.control.skin.ComboBoxListViewSkin.updateDisplayText(ComboBoxListViewSkin.java:388)
    12. at com.sun.javafx.scene.control.skin.ComboBoxListViewSkin.access$100(ComboBoxListViewSkin.java:57)
    13. at com.sun.javafx.scene.control.skin.ComboBoxListViewSkin$2$1.updateItem(ComboBoxListViewSkin.java:425)
    14. at javafx.scene.control.ListCell.updateItem(ListCell.java:471)
    15. at javafx.scene.control.ListCell.indexChanged(ListCell.java:330)
    16. at javafx.scene.control.IndexedCell.updateIndex(IndexedCell.java:116)
    17. at com.sun.javafx.scene.control.skin.ComboBoxListViewSkin.updateDisplayNode(ComboBoxListViewSkin.java:351)
    18. at com.sun.javafx.scene.control.skin.ComboBoxListViewSkin.getDisplayNode(ComboBoxListViewSkin.java:206)
    19. at com.sun.javafx.scene.control.skin.ComboBoxBaseSkin.updateDisplayArea(ComboBoxBaseSkin.java:141)
    20. at com.sun.javafx.scene.control.skin.ComboBoxBaseSkin.handleControlPropertyChanged(ComboBoxBaseSkin.java:134)
    21. at com.sun.javafx.scene.control.skin.ComboBoxListViewSkin.handleControlPropertyChanged(ComboBoxListViewSkin.java:1
    22. 59)
    23. at com.sun.javafx.scene.control.skin.BehaviorSkinBase.lambda$registerChangeListener$61(BehaviorSkinBase.java:197)
    24. at com.sun.javafx.scene.control.MultiplePropertyChangeListenerHandler$1.changed(MultiplePropertyChangeListenerHand
    25. ler.java:55)
    26. at javafx.beans.value.WeakChangeListener.changed(WeakChangeListener.java:89)
    27. at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:361)
    28. at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
    29. at javafx.beans.property.ObjectPropertyBase.fireValueChangedEvent(ObjectPropertyBase.java:105)
    30. at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:112)
    31. at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:146)
    32. at javafx.scene.control.ComboBoxBase.setValue(ComboBoxBase.java:150)
    33. at javafx.scene.control.ComboBox.updateValue(ComboBox.java:463)
    34. at javafx.scene.control.ComboBox.access$200(ComboBox.java:192)
    35. at javafx.scene.control.ComboBox$3.changed(ComboBox.java:446)
    36. at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:361)
    37. at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
    38. at javafx.beans.property.ReadOnlyObjectPropertyBase.fireValueChangedEvent(ReadOnlyObjectPropertyBase.java:74)
    39. at javafx.beans.property.ReadOnlyObjectWrapper.fireValueChangedEvent(ReadOnlyObjectWrapper.java:102)
    40. at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:112)
    41. at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:146)
    42. at javafx.scene.control.SelectionModel.setSelectedItem(SelectionModel.java:102)
    43. at javafx.scene.control.ComboBox$ComboBoxSelectionModel.lambda$new$154(ComboBox.java:494)
    44. at com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:137)
    45. at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
    46. at javafx.beans.property.ReadOnlyIntegerPropertyBase.fireValueChangedEvent(ReadOnlyIntegerPropertyBase.java:72)
    47. at javafx.beans.property.ReadOnlyIntegerWrapper.fireValueChangedEvent(ReadOnlyIntegerWrapper.java:102)
    48. at javafx.beans.property.IntegerPropertyBase.markInvalid(IntegerPropertyBase.java:113)
    49. at javafx.beans.property.IntegerPropertyBase.set(IntegerPropertyBase.java:147)
    50. at javafx.scene.control.SelectionModel.setSelectedIndex(SelectionModel.java:68)
    51. at javafx.scene.control.SingleSelectionModel.updateSelectedIndex(SingleSelectionModel.java:215)
    52. at javafx.scene.control.SingleSelectionModel.select(SingleSelectionModel.java:149)
    53. at com.sun.javafx.scene.control.skin.ComboBoxListViewSkin.lambda$createListView$323(ComboBoxListViewSkin.java:484)
    54. at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:349)
    55. at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
    56. at javafx.beans.property.ReadOnlyIntegerPropertyBase.fireValueChangedEvent(ReadOnlyIntegerPropertyBase.java:72)
    57. at javafx.beans.property.ReadOnlyIntegerWrapper.fireValueChangedEvent(ReadOnlyIntegerWrapper.java:102)
    58. at javafx.beans.property.IntegerPropertyBase.markInvalid(IntegerPropertyBase.java:113)
    59. at javafx.beans.property.IntegerPropertyBase.set(IntegerPropertyBase.java:147)
    60. at javafx.scene.control.SelectionModel.setSelectedIndex(SelectionModel.java:68)
    61. at javafx.scene.control.MultipleSelectionModelBase.select(MultipleSelectionModelBase.java:404)
    62. at javafx.scene.control.MultipleSelectionModelBase.clearAndSelect(MultipleSelectionModelBase.java:356)
    63. at javafx.scene.control.ListView$ListViewBitSetSelectionModel.clearAndSelect(ListView.java:1403)
    64. at com.sun.javafx.scene.control.behavior.CellBehaviorBase.simpleSelect(CellBehaviorBase.java:256)
    65. at com.sun.javafx.scene.control.behavior.CellBehaviorBase.doSelect(CellBehaviorBase.java:220)
    66. at com.sun.javafx.scene.control.behavior.CellBehaviorBase.mousePressed(CellBehaviorBase.java:150)
    67. at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:95)
    68. at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89)
    69. at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.j
    70. ava:218)
    71. at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
    72. at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
    73. at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
    74. at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
    75. at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
    76. at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    77. at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    78. at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    79. at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    80. at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    81. at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    82. at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    83. at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    84. at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    85. at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
    86. at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
    87. at javafx.event.Event.fireEvent(Event.java:198)
    88. at javafx.scene.Scene$MouseHandler.process(Scene.java:3757)
    89. at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
    90. at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
    91. at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
    92. at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:352)
    93. at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:275)
    94. at java.security.AccessController.doPrivileged(Native Method)
    95. at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$354(GlassViewEventHandler.java:388)
    96. at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
    97. at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:387)
    98. at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
    99. at com.sun.glass.ui.View.notifyMouse(View.java:937)
    100. at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
    101. at com.sun.glass.ui.gtk.GtkApplication.lambda$null$49(GtkApplication.java:139)
    102. at java.lang.Thread.run(Thread.java:745)
    103. Caused by: java.io.IOException: error=13, Permission denied
    104. at java.lang.UNIXProcess.forkAndExec(Native Method)
    105. at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
    106. at java.lang.ProcessImpl.start(ProcessImpl.java:134)
    107. at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    108. ... 97 more
    109. java.io.IOException: Cannot run program "/root/RuneMate/cache/window_info.sh": error=13, Permission denied
    110. at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    111. at nul.IIiIIIiIiiii.enum(qsb:79)
    112. at nul.iiIIiiiIiiIi.enum(eh:23)
    113. at nul.iiIIiiiIiiIi.enum(eh:168)
    114. at nul.iiIIiiiIiiIi.enum(eh:50)
    115. at nul.iiIIiiiIiiIi.enum(eh:194)
    116. at nul.IIiIiIiIIIII.enum(nic:201)
    117. at nul.IIIiiIiIIIiI.enum(gvb:28)
    118. at nul.IIIiiIiIIIiI.toString(gvb:46)
    119. at com.sun.javafx.scene.control.skin.ComboBoxListViewSkin.updateDisplayText(ComboBoxListViewSkin.java:388)
    120. at com.sun.javafx.scene.control.skin.ComboBoxListViewSkin.access$100(ComboBoxListViewSkin.java:57)
    121. at com.sun.javafx.scene.control.skin.ComboBoxListViewSkin$2$1.updateItem(ComboBoxListViewSkin.java:425)
    122. at javafx.scene.control.ListCell.updateItem(ListCell.java:471)
    123. at javafx.scene.control.ListCell.indexChanged(ListCell.java:330)
    124. at javafx.scene.control.IndexedCell.updateIndex(IndexedCell.java:116)
    125. at com.sun.javafx.scene.control.skin.ComboBoxListViewSkin.updateDisplayNode(ComboBoxListViewSkin.java:351)
    126. at com.sun.javafx.scene.control.skin.ComboBoxListViewSkin.lambda$createListView$323(ComboBoxListViewSkin.java:485)
    127. at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:349)
    128. at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
    129. at javafx.beans.property.ReadOnlyIntegerPropertyBase.fireValueChangedEvent(ReadOnlyIntegerPropertyBase.java:72)
    130. at javafx.beans.property.ReadOnlyIntegerWrapper.fireValueChangedEvent(ReadOnlyIntegerWrapper.java:102)
    131. at javafx.beans.property.IntegerPropertyBase.markInvalid(IntegerPropertyBase.java:113)
    132. at javafx.beans.property.IntegerPropertyBase.set(IntegerPropertyBase.java:147)
    133. at javafx.scene.control.SelectionModel.setSelectedIndex(SelectionModel.java:68)
    134. at javafx.scene.control.MultipleSelectionModelBase.select(MultipleSelectionModelBase.java:404)
    135. at javafx.scene.control.MultipleSelectionModelBase.clearAndSelect(MultipleSelectionModelBase.java:356)
    136. at javafx.scene.control.ListView$ListViewBitSetSelectionModel.clearAndSelect(ListView.java:1403)
    137. at com.sun.javafx.scene.control.behavior.CellBehaviorBase.simpleSelect(CellBehaviorBase.java:256)
    138. at com.sun.javafx.scene.control.behavior.CellBehaviorBase.doSelect(CellBehaviorBase.java:220)
    139. at com.sun.javafx.scene.control.behavior.CellBehaviorBase.mousePressed(CellBehaviorBase.java:150)
    140. at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:95)
    141. at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89)
    142. at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.j
    143. ava:218)
    144. at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
    145. at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
    146. at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
    147. at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
    148. at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
    149. at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    150. at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    151. at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    152. at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    153. at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    154. at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    155. at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    156. at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    157. at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    158. at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
    159. at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
    160. at javafx.event.Event.fireEvent(Event.java:198)
    161. at javafx.scene.Scene$MouseHandler.process(Scene.java:3757)
    162. at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
    163. at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
    164. at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
    165. at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:352)
    166. at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:275)
    167. at java.security.AccessController.doPrivileged(Native Method)
    168. at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$354(GlassViewEventHandler.java:388)
    169. at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
    170. at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:387)
    171. at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
    172. at com.sun.glass.ui.View.notifyMouse(View.java:937)
    173. at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
    174. at com.sun.glass.ui.gtk.GtkApplication.lambda$null$49(GtkApplication.java:139)
    175. at java.lang.Thread.run(Thread.java:745)
    176. Caused by: java.io.IOException: error=13, Permission denied
    177. at java.lang.UNIXProcess.forkAndExec(Native Method)
    178. at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
    179. at java.lang.ProcessImpl.start(ProcessImpl.java:134)
    180. at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    181. ... 64 more
    182.  
    Might be related to https://www.runemate.com/community/...u-unknown-clients-3-items-only-1-client.5688/

     
    #1 SlashnHax, Feb 13, 2016
    Last edited: Feb 13, 2016
  2. Best Answer:
    Post #12 by Cloud, Feb 18, 2016
  3. Are you super user when this happens?
     
  4. Pretty sure I was.
     
  5. Please verify.
     
  6. I will next time I'm on Linux
    --- Double Post Merged, Feb 16, 2016, Original Post Date: Feb 15, 2016 ---
    Verified. It happens as root.
    Slack

    And if I go to the folder, become root and try to execute window_info.sh I get this error:
    Code (Text):
    1. [[email protected] cache]# ./window_info.sh
    2. bash: ./window_info.sh: Permission denied
     
  7. @SlashnHax Please show us the output of "ls -lh" on that directory.
     
  8. @Cloud
    Looks like it's caused by not having xwininfo.
    Code (Text):
    1. [[email protected] cache]$ xwininfo -root -tree
    2. bash: xwininfo: command not found
    3.  
     
  9. We need to gracefully handle the error and/or pre-check that the library exists. If it does not, we need to prompt the user via both UI and console to install xwininfo.
     
  10. @Cloud the file is being made in DOS style.
    Running this fixed it for me (Converts DOS to UNIX).
    Code (Text):
    1. perl -pi -e 's/\r\n/\n/g' window_info.sh
    Allowing me to run window info via the terminal, and having it print out a bunch of window titles and their PIDs. However, Spectre still can't seem to find it :/
    --- Double Post Merged, Feb 18, 2016, Original Post Date: Feb 18, 2016 ---
    Turns out that Spectre is overwriting the file.
    Here's the file after running that perl one liner (tabs got messed up when I pasted):
    Code (Text):
    1. #!/bin/sh
    2. xwininfo -root -tree | while read x; do
    3. line=$x;
    4. wid=$(echo $line | awk '{print $1}');
    5. if [ ! $wid ] ; then
    6. continue;
    7. fi
    8. title=$(echo $line | awk '{print $2}');
    9. if [ ! $title ] ; then
    10. continue;
    11. fi
    12. len=${#title};
    13. if [[ $len -gt 3 ]] && [[ $title == '"'* ]] && [[ $title == *'":' ]] ; then
    14. title=$(echo $title | awk -F'"' '{print $2}');
    15. else
    16. continue;
    17. fi
    18. pid=$(xprop -id $wid | awk '/_NET_WM_PID/{print $3}');
    19. if [ ! $pid ] ; then
    20. continue;
    21. fi
    22. echo $title':'$pid;
    23. done
    24.  
    Looks exactly the same, but uses unix newlines now.
     
  11. Upload the file with the correct line breaks somewhere so I don't fuck it up while copy pasting.
     
  12. Sent it via Slack
     
  13. Fixed in V1.0.18
     
    SlashnHax likes this.

Share This Page

Loading...