Skip to content
This repository has been archived by the owner on May 20, 2021. It is now read-only.

Getting "FATAL:scoped_file.cc(29) Check failed: 0 == IGNORE_EINTR(close(fd)). : Bad file descriptor" when starting IDEA with this plugin enabled and internet access forbidden in iptables #135

Open
klesun opened this issue Mar 29, 2018 · 2 comments
Assignees
Labels

Comments

@klesun
Copy link

klesun commented Mar 29, 2018

Hello. Sorry if this happens to be the problem in IDEA or JxBrowser, not in your plugin.

I start IDEA with internet acces forbidden in iptables. The thing is, IDEA starts fine when I disable the gfm plugin. But when I enable it back I first get this in STDOUT:

04:17:11 INFO: [0329/161711:ERROR:browser_main_loop.cc(172)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
04:17:11 INFO: [0329/161711:FATAL:scoped_file.cc(29)] Check failed: 0 == IGNORE_EINTR(close(fd)). : Bad file descriptor

and then IDEA freezes for 5 minutes.

I think that problem is related to your plugin because word "chromium" appears in the error, and your README says it uses JxBrowser, an amazing lightweight Chromium-based Swing/JavaFX component.

Full STDOUT:

klesun@klesun-work:/var/www/html$ sudo -g no-internet ~/m/PhpStorm-*/bin/phpstorm.sh
04:17:11 INFO: OS name: Linux
04:17:11 INFO: JRE version: 1.8.0_152-release 64-bit
04:17:11 INFO: JxBrowser version: 5.4.3
04:17:11 INFO: Starting IPC...
04:17:11 INFO: Starting IPC Server...
04:17:11 INFO: Starting IPC Process...
04:17:11 INFO: Start Chromium process...
04:17:11 INFO: The '/lib/x86_64-linux-gnu/libudev.so.0' library exists: FALSE
04:17:11 INFO: The '/tmp/jxbrowser-chromium-43.0.2357.52.5.4.3/libudev.so.0' library exists: TRUE
04:17:11 INFO: The '/lib/x86_64-linux-gnu/libgcrypt.so.11' library exists: FALSE
04:17:11 INFO: The '/tmp/jxbrowser-chromium-43.0.2357.52.5.4.3/libgcrypt.so.11' library exists: TRUE
04:17:11 INFO: Command line: /tmp/jxbrowser-chromium-43.0.2357.52.5.4.3/jxbrowser-chromium 1101 6451 --enable-npapi 
04:17:11 INFO: [0329/161711:ERROR:browser_main_loop.cc(172)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
04:17:11 INFO: [0329/161711:FATAL:scoped_file.cc(29)] Check failed: 0 == IGNORE_EINTR(close(fd)). : Bad file descriptor
# following gets printed at 04:22:30, when IDEA finally unfreezes.
file://a.html [1:2] Error in pseudo class or element. (Invalid token ":". Was expecting one of: <IDENT>, <FUNCTION_LANG>, <FUNCTION>.)
file://a.html [1:2] Ignoring the whole rule.
file://a.html [1:2] Error in pseudo class or element. (Invalid token ":". Was expecting one of: <IDENT>, <FUNCTION_LANG>, <FUNCTION>.)
file://a.html [1:2] Ignoring the whole rule.
file://a.html [1:2] Error in pseudo class or element. (Invalid token ":". Was expecting one of: <IDENT>, <FUNCTION_LANG>, <FUNCTION>.)
file://a.html [1:2] Ignoring the whole rule.
file://a.html [1:2] Error in pseudo class or element. (Invalid token ":". Was expecting one of: <IDENT>, <FUNCTION_LANG>, <FUNCTION>.)
file://a.html [1:2] Ignoring the whole rule.
file://a.html [1:2] Error in pseudo class or element. (Invalid token ":". Was expecting one of: <IDENT>, <FUNCTION_LANG>, <FUNCTION>.)
file://a.html [1:2] Ignoring the whole rule.
file://a.html [1:2] Error in pseudo class or element. (Invalid token ":". Was expecting one of: <IDENT>, <FUNCTION_LANG>, <FUNCTION>.)
file://a.html [1:2] Ignoring the whole rule.
04:22:15 INFO: Starting IPC...
04:22:15 INFO: IPC is already started.
@klesun klesun changed the title Getting "FATAL:scoped_file.cc(29) Check failed: 0 == IGNORE_EINTR(close(fd)). : Bad file descriptor" when starting IDEA with this plugin enabled and forbidden in iptables Getting "FATAL:scoped_file.cc(29) Check failed: 0 == IGNORE_EINTR(close(fd)). : Bad file descriptor" when starting IDEA with this plugin enabled and internet access forbidden in iptables Mar 29, 2018
@ShyykoSerhiy ShyykoSerhiy self-assigned this Mar 29, 2018
@ShyykoSerhiy
Copy link
Owner

That's probably a problem with gfm-plugin

@klesun
Copy link
Author

klesun commented May 11, 2018

Tried enabling plugin again today, got more info after the 5 minute hang, HTH:
image
image
image
image
image
image

Failed to initialize IPC. Remote process doesn't respond.
com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: Failed to initialize IPC. Remote process doesn't respond.
	at com.teamdev.jxbrowser.chromium.internal.ipc.IPC.a(Unknown Source)
	at com.teamdev.jxbrowser.chromium.internal.ipc.IPC.start(Unknown Source)
	at com.teamdev.jxbrowser.chromium.Browser.<init>(Unknown Source)
	at com.teamdev.jxbrowser.chromium.Browser.<init>(Unknown Source)
	at com.teamdev.jxbrowser.chromium.Browser.<init>(Unknown Source)
	at com.teamdev.jxbrowser.chromium.Browser.<init>(Unknown Source)
	at com.github.shyykoserhiy.gfm.browser.BrowserJx.<init>(BrowserJx.java:19)
	at com.github.shyykoserhiy.gfm.editor.GfmPreviewJX.<init>(GfmPreviewJX.java:22)
	at com.github.shyykoserhiy.gfm.editor.GfmPreviewProvider.createEditor(GfmPreviewProvider.java:35)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.dumbModeFinished(FileEditorManagerImpl.java:189)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.access$300(FileEditorManagerImpl.java:93)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$2.lambda$exitDumbMode$0(FileEditorManagerImpl.java:151)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:447)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:431)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:415)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
	at java.awt.EventQueue.access$500(EventQueue.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:715)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:779)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:720)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:395)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
null
java.lang.NullPointerException
	at com.teamdev.jxbrowser.chromium.internal.ipc.IPC.send(Unknown Source)
	at com.teamdev.jxbrowser.chromium.Browser.a(Unknown Source)
	at com.teamdev.jxbrowser.chromium.Browser.<init>(Unknown Source)
	at com.teamdev.jxbrowser.chromium.Browser.<init>(Unknown Source)
	at com.teamdev.jxbrowser.chromium.Browser.<init>(Unknown Source)
	at com.teamdev.jxbrowser.chromium.Browser.<init>(Unknown Source)
	at com.github.shyykoserhiy.gfm.browser.BrowserJx.<init>(BrowserJx.java:19)
	at com.github.shyykoserhiy.gfm.editor.GfmPreviewJX.<init>(GfmPreviewJX.java:22)
	at com.github.shyykoserhiy.gfm.editor.GfmPreviewProvider.createEditor(GfmPreviewProvider.java:35)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.dumbModeFinished(FileEditorManagerImpl.java:189)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.access$300(FileEditorManagerImpl.java:93)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$2.lambda$exitDumbMode$0(FileEditorManagerImpl.java:151)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:447)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:431)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:415)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
	at java.awt.EventQueue.access$500(EventQueue.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:715)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:779)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:720)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:395)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

@ShyykoSerhiy ShyykoSerhiy added this to the v0.2.0 milestone May 11, 2018
@ShyykoSerhiy ShyykoSerhiy removed this from the v0.2.0 milestone Nov 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants