rhiokim / haroopad

Haroopad - The Next Document processor based on Markdown
http://pad.haroopress.com
GNU General Public License v3.0
1.61k stars 225 forks source link

GLX/hardware accelerated 2D *required*? #569

Open tukoz opened 8 years ago

tukoz commented 8 years ago

Hi I'm willing to try Haroopad out, being all in markdown and git atm. Haroopad's installed on my remote desktop running Arch linux; willing to launch it remotely via a well functionning X11 forward setup (x2go).

However when launching from the remote $TERM, no window appears on my tiny netbook and the terminal content is wiped out. Pressing shows the following:

$ haroopad --disable-setuid-sandbox
[16887:0302/135824:ERROR:browser_main_loop.cc(162)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[16887:0302/135824:INFO:audio_manager_pulse.cc(260)] Failed to connect to the context.  Error: Connection refused
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[16907:0302/135824:ERROR:gl_surface_glx.cc(333)] GLX 1.3 or later is required.
[16907:0302/135824:ERROR:gl_surface_x11.cc(57)] GLSurfaceGLX::InitializeOneOff failed.
[16907:0302/135824:ERROR:sandbox_linux.cc(305)] InitializeSandbox() called with multiple threads in process gpu-process
[16907:0302/135824:ERROR:gpu_child_thread.cc(143)] Exiting GPU process due to errors during initialization

And when launched on pure ssh x11-forward:

$ haroopad --disable-setuid-sandbox
[26009:0302/140953:ERROR:browser_main_loop.cc(162)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[26009:0302/140953:INFO:audio_manager_pulse.cc(260)] Failed to connect to the context.  Error: Connection refused
[26029:0302/140954:ERROR:gl_surface_glx.cc(328)] glxQueryVersion failed
[26029:0302/140954:ERROR:gl_surface_x11.cc(57)] GLSurfaceGLX::InitializeOneOff failed.
[26029:0302/140955:ERROR:gpu_child_thread.cc(143)] Exiting GPU process due to errors during initialization
[26009:0302/140955:ERROR:gpu_process_transport_factory.cc(418)] Failed to establish GPU channel.
[26009:0302/140956:INFO:CONSOLE(50)] "Uncaught SyntaxError: Unexpected string", source: file:///tmp/.org.chromium.Chromium.6bcmV6/index.html (50)

^C

Have no issue running whatever GUI app over the same tunnel, without hardware accelerated 2D display though. E.g. Chromium:

kozaki@gwenael (SSH):~$ [0]$ chromium 
[26105:26105:0302/141024:ERROR:gl_surface_glx.cc(343)] glxQueryVersion failed
[26105:26105:0302/141024:ERROR:gl_surface_x11.cc(56)] GLSurfaceGLX::InitializeOneOff failed.
[26105:26105:0302/141024:ERROR:gpu_child_thread.cc(243)] Exiting GPU process due to errors during initialization
[26048:26069:0302/141027:ERROR:browser_gpu_channel_host_factory.cc(132)] Failed to launch GPU process.
[26048:26069:0302/141028:ERROR:browser_gpu_channel_host_factory.cc(132)] Failed to launch GPU process. # Browsers launches localy with no more errors.

Which leads to some questions:

tukoz commented 8 years ago

EDIT: won't run either on the netbook which has GLX 1.4. So there's possibly a mixed issue here. Please what's yoru idea?

 $ glxinfo 
name of display: :108
display: :108  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_visual_info, 
    GLX_EXT_visual_rating, GLX_OML_swap_method, GLX_SGIS_multisample, 
    GLX_SGIX_fbconfig, GLX_SGIX_hyperpipe, GLX_SGIX_swap_barrier, 
    GLX_SGI_make_current_read
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile,
    ....
rhiokim commented 8 years ago

I have made new pkg for next release. I can get your feedback about release candidate?

tukoz commented 8 years ago

Hi @rhiokim

Can it run on a system without GLX? E.g. there's no hardware acceleration on my main laptop (gma500). Please answer.

Now trying to launch haroopad v0.13.2 after packaging it for my Arch.

Launched from my desktop Arch x86_64 via x2go (NX client/server):

There's "something" (looks like a window) appears shortly on my local screen, then the desktop (very shortly also) and then same all white console.

$ LANG=en_US.UTF-8 haroopad --disable-setuid-sandbox
[26253:0305/141249:ERROR:browser_main_loop.cc(170)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[26253:0305/141249:INFO:audio_manager_pulse.cc(258)] Failed to connect to the context.  Error: Connection refused
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[26272:0305/141249:ERROR:gl_surface_glx.cc(357)] GLX 1.3 or later is required.
[26272:0305/141249:ERROR:gl_surface_x11.cc(56)] GLSurfaceGLX::InitializeOneOff failed.
[26272:0305/141249:ERROR:sandbox_linux.cc(325)] InitializeSandbox() called with multiple threads in process gpu-process
[26272:0305/141249:ERROR:gpu_child_thread.cc(146)] Exiting GPU process due to errors during initialization
[26253:0305/141249:ERROR:backend_impl.cc(1364)] Unable to map Index file
^C
 ~ :( $ Failed to tell parent about crash.

Next I'll run it from the Intel netbook and report.

EDITs:

Man, it's polished tool :) Next I'll try on the no-GLX netbook.

Updated PKGBUILD in the Arch linux AUR Haroopad page's comment

Would be great when it can run remotely (X-forward), as this would mean infinite portability for all remote-setup users.