Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crashes a few seconds after starting, seems to be related to opening child windows #446

Closed
totaam opened this issue Oct 21, 2013 · 10 comments

Comments

@totaam
Copy link
Collaborator

totaam commented Oct 21, 2013

Issue migrated from trac ticket # 446

component: server | priority: major | resolution: invalid

2013-10-21 02:54:09: ElDuderino created the issue


xpra 0.10.6 was compiled locally (Sabayon/Linux 3.11). old-libav-no0RGB patch was applied manually (couldn't compile otherwise).

Just attaching and not doing anything seems not to cause the crash.

command to start the server:

PYTHONPATH=`ls -d /home/christian/xpra/lib*/python`:$PYTHONPATH xpra/bin/xpra start :100 --start-child=VirtualBox

command to attach (locally):

PYTHONPATH=`ls -d /home/christian/xpra/lib*/python`:$PYTHONPATH xpra/bin/xpra attach --ssh='ssh -p 22222' ssh:localhost:100

xpra info output (before attaching, because afterwards the server has crashed and there is no info):

christian@uhu2 ~ $ PYTHONPATH=`ls -d /home/christian/xpra/lib*/python`:$PYTHONPATH xpra/bin/xpra info --ssh='ssh -p 22222' ssh:localhost:100
build.bit=64bit
build.by=christian
build.cpu=Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz
build.date=2013-10-20
build.local_modifications=0
build.on=uhu2.wald
build.revision=4501
clients=0
clients.unauthenticated=0
clipboard.CLIPBOARD.blocked_owner_change=False
clipboard.CLIPBOARD.event.get_contents=0
clipboard.CLIPBOARD.event.got_token=0
clipboard.CLIPBOARD.event.request_contents=0
clipboard.CLIPBOARD.event.selection_clear=0
clipboard.CLIPBOARD.event.selection_get=0
clipboard.CLIPBOARD.event.selection_request=0
clipboard.CLIPBOARD.event.sent_token=0
clipboard.CLIPBOARD.greedy_client=False
clipboard.CLIPBOARD.have_token=False
clipboard.PRIMARY.blocked_owner_change=False
clipboard.PRIMARY.event.get_contents=0
clipboard.PRIMARY.event.got_token=0
clipboard.PRIMARY.event.request_contents=0
clipboard.PRIMARY.event.selection_clear=0
clipboard.PRIMARY.event.selection_get=0
clipboard.PRIMARY.event.selection_request=0
clipboard.PRIMARY.event.sent_token=0
clipboard.PRIMARY.greedy_client=False
clipboard.PRIMARY.have_token=False
clipboard.SECONDARY.blocked_owner_change=False
clipboard.SECONDARY.event.get_contents=0
clipboard.SECONDARY.event.got_token=0
clipboard.SECONDARY.event.request_contents=0
clipboard.SECONDARY.event.selection_clear=0
clipboard.SECONDARY.event.selection_get=0
clipboard.SECONDARY.event.selection_request=0
clipboard.SECONDARY.event.sent_token=0
clipboard.SECONDARY.greedy_client=False
clipboard.SECONDARY.have_token=False
clipboard.filters=()
clipboard.max_size=262144
clipboard.pending=()
clipboard.requests=0
clipboard.type=GDKClipboardProtocolHelper
clipboard.want_targets=False
cursor=None
encoding.PIL.version=1.1.7
encoding.avcodec.version=Lavc54.35.0
encoding.swscale.version=SwS2.1.1
encoding.vpx.version=3
encoding.webp.version=0.2.2
encoding.x264.version=138
encodings=('vpx', 'x264', 'webp', 'png', 'png/L', 'png/P', 'jpeg', 'rgb')
encodings.core=('rgb24', 'rgb32', 'vpx', 'x264', 'webp', 'png', 'png/L', 'png/P', 'jpeg')
encodings.lossless=('rgb24', 'rgb32', 'png', 'png/L', 'png/P', 'webp')
encodings.with_lossless_mode=('webp',)
encodings.with_quality=('x264', 'webp', 'jpeg')
encodings.with_speed=('x264', 'png', 'png/L', 'png/P', 'jpeg', 'rgb')
features.bell=True
features.clipboard=True
features.cursors=True
features.notifications=False
features.password_file=
features.pulseaudio=True
features.randr=False
info_thread[0]=write
info_thread[1]=read
info_thread[2]=parse
info_thread[3]=format
info_threads=4
keyboard.keys_pressed=()
keyboard.modifiers={}
keyboard.repeat.delay=-1
keyboard.repeat.interval=-1
keyboard.sync=True
memory.children.idrss=0
memory.children.inblock=0
memory.children.isrss=0
memory.children.ixrss=0
memory.children.majflt=0
memory.children.maxrss=16852
memory.children.minflt=8276
memory.children.msgrcv=0
memory.children.msgsnd=0
memory.children.nivcsw=12
memory.children.nsignals=0
memory.children.nswap=0
memory.children.nvcsw=25
memory.children.oublock=8
memory.children.stime=0
memory.children.utime=0
memory.server.idrss=0
memory.server.inblock=16
memory.server.isrss=0
memory.server.ixrss=0
memory.server.majflt=1
memory.server.maxrss=33196
memory.server.minflt=12925
memory.server.msgrcv=0
memory.server.msgsnd=0
memory.server.nivcsw=15
memory.server.nsignals=0
memory.server.nswap=0
memory.server.nvcsw=1512
memory.server.oublock=32
memory.server.stime=0
memory.server.utime=0
server.XShm=True
server.byteorder=little
server.gid=1001
server.gtk.version=(2, 24, 22)
server.hostname=uhu2.wald
server.pid=8866
server.platform=Linux
server.platform.linux_distribution=('Gentoo Base System', '2.2', '')
server.platform.platform=Linux-3.11.0-sabayon-x86_64-Intel-R-_Core-TM-_i7-2670QM_CPU_@_2.20GHz-with-gentoo-2.2
server.platform.release=3.11.0-sabayon
server.pycrypto.version=2.6
server.pygtk.version=(2, 24, 0)
server.python.full_version=2.7.5 (default, Oct 14 2013, 09:13:45) \n[GCC 4.7.3]
server.python.version=(2, 7, 5)
server.start_time=1382319785
server.type=Python/gtk/x11
server.uid=1000
server.version=0.10.6
session.name=
thread[0]=MainThread
threads=1
windows=1
connection closed after 1 packets received (1.5K bytes) and 1 packets sent (0.4K bytes)
Connection lost

Output when attaching:

christian@uhu2 ~ $ PYTHONPATH=`ls -d /home/christian/xpra/lib*/python`:$PYTHONPATH xpra/bin/xpra attach --ssh='ssh -p 22222' ssh:localhost:100
xpra client version 0.10.6
2013-10-20 21:48:54,449 No OpenGL_accelerate module loaded: No module named OpenGL_accelerate
2013-10-20 21:48:54,510 Unable to load registered array format handler numeric:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/OpenGL/arrays/formathandler.py", line 35, in loadPlugin
    plugin_class = entrypoint.load()
  File "/usr/lib64/python2.7/site-packages/OpenGL/plugins.py", line 14, in load
    return importByName( self.import_path )
  File "/usr/lib64/python2.7/site-packages/OpenGL/plugins.py", line 28, in importByName
    module = __import__( ".".join(moduleName), {}, {}, moduleName)
  File "/usr/lib64/python2.7/site-packages/OpenGL/arrays/numeric.py", line 15, in <module>
    raise ImportError( """No Numeric module present: %s"""%(err))
ImportError: No Numeric module present: No module named Numeric

2013-10-20 21:48:54,511 Unable to load registered array format handler vbo:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/OpenGL/arrays/formathandler.py", line 35, in loadPlugin
    plugin_class = entrypoint.load()
  File "/usr/lib64/python2.7/site-packages/OpenGL/plugins.py", line 14, in load
    return importByName( self.import_path )
  File "/usr/lib64/python2.7/site-packages/OpenGL/plugins.py", line 28, in importByName
    module = __import__( ".".join(moduleName), {}, {}, moduleName)
  File "/usr/lib64/python2.7/site-packages/OpenGL/arrays/vbo.py", line 33, in <module>
    from OpenGL import GL
ImportError: cannot import name GL

2013-10-20 21:48:54,511 Unable to load registered array format handler vbooffset:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/OpenGL/arrays/formathandler.py", line 35, in loadPlugin
    plugin_class = entrypoint.load()
  File "/usr/lib64/python2.7/site-packages/OpenGL/plugins.py", line 14, in load
    return importByName( self.import_path )
  File "/usr/lib64/python2.7/site-packages/OpenGL/plugins.py", line 28, in importByName
    module = __import__( ".".join(moduleName), {}, {}, moduleName)
  File "/usr/lib64/python2.7/site-packages/OpenGL/arrays/vbo.py", line 33, in <module>
    from OpenGL import GL
ImportError: cannot import name GL

2013-10-20 21:48:54,548 OpenGL Version: 3.0 Mesa 9.2.0
2013-10-20 21:48:54,590 GL Extension GL_ARB_shader_objects available
2013-10-20 21:48:54,595 GL Extension GL_ARB_vertex_array_object available
2013-10-20 21:48:54,596 GL Extension GL_ARB_texture_buffer_object available
2013-10-20 21:48:54,597 GL Extension GL_ARB_framebuffer_object available
2013-10-20 21:48:54,599 GL Extension GL_ARB_map_buffer_range available
2013-10-20 21:48:54,600 GL Extension GL_ARB_copy_buffer available
2013-10-20 21:48:54,601 GL Extension GL_ARB_uniform_buffer_object available
2013-10-20 21:48:54,602 GL Extension GL_ARB_draw_elements_base_vertex available
2013-10-20 21:48:54,603 GL Extension GL_ARB_provoking_vertex available
2013-10-20 21:48:54,603 GL Extension GL_ARB_sync available
2013-10-20 21:48:54,605 GL Extension GL_ARB_texture_multisample available
2013-10-20 21:48:54,607 GL Extension GL_ARB_blend_func_extended available
2013-10-20 21:48:54,608 GL Extension GL_ARB_sampler_objects available
2013-10-20 21:48:54,610 GL Extension GL_ARB_timer_query available
2013-10-20 21:48:54,610 GL Extension GL_ARB_vertex_type_2_10_10_10_rev available
2013-10-20 21:48:54,614 GL Extension GL_ARB_draw_indirect unavailable
2013-10-20 21:48:54,614 GL Extension GL_ARB_gpu_shader_fp64 unavailable
2013-10-20 21:48:54,616 GL Extension GL_ARB_shader_subroutine unavailable
2013-10-20 21:48:54,616 GL Extension GL_ARB_tessellation_shader unavailable
2013-10-20 21:48:54,617 GL Extension GL_ARB_transform_feedback2 unavailable
2013-10-20 21:48:54,618 GL Extension GL_ARB_transform_feedback3 unavailable
2013-10-20 21:48:54,618 GL Extension GL_ARB_ES2_compatibility available
2013-10-20 21:48:54,619 GL Extension GL_ARB_get_program_binary available
2013-10-20 21:48:54,620 GL Extension GL_ARB_separate_shader_objects unavailable
2013-10-20 21:48:54,624 GL Extension GL_ARB_vertex_attrib_64bit unavailable
2013-10-20 21:48:54,625 GL Extension GL_ARB_viewport_array unavailable
2013-10-20 21:48:54,626 GL Extension GL_ARB_base_instance unavailable
2013-10-20 21:48:54,628 GL Extension GL_ARB_transform_feedback_instanced unavailable
2013-10-20 21:48:54,629 GL Extension GL_ARB_internalformat_query available
2013-10-20 21:48:54,629 GL Extension GL_ARB_shader_atomic_counters unavailable
2013-10-20 21:48:54,630 GL Extension GL_ARB_shader_image_load_store unavailable
2013-10-20 21:48:54,631 GL Extension GL_ARB_texture_storage available
2013-10-20 21:48:54,632 GL Extension GL_ARB_clear_buffer_object unavailable
2013-10-20 21:48:54,633 GL Extension GL_ARB_compute_shader unavailable
2013-10-20 21:48:54,633 GL Extension GL_ARB_copy_image unavailable
2013-10-20 21:48:54,634 GL Extension GL_KHR_debug unavailable
2013-10-20 21:48:54,635 GL Extension GL_ARB_framebuffer_no_attachments unavailable
2013-10-20 21:48:54,636 GL Extension GL_ARB_internalformat_query2 unavailable
2013-10-20 21:48:54,637 GL Extension GL_ARB_invalidate_subdata available
2013-10-20 21:48:54,639 GL Extension GL_ARB_multi_draw_indirect unavailable
2013-10-20 21:48:54,640 GL Extension GL_ARB_program_interface_query unavailable
2013-10-20 21:48:54,641 GL Extension GL_ARB_shader_storage_buffer_object unavailable
2013-10-20 21:48:54,642 GL Extension GL_ARB_texture_buffer_range unavailable
2013-10-20 21:48:54,642 GL Extension GL_ARB_texture_storage_multisample available
2013-10-20 21:48:54,643 GL Extension GL_ARB_texture_view unavailable
2013-10-20 21:48:54,643 GL Extension GL_ARB_vertex_attrib_binding unavailable
2013-10-20 21:48:54,656 GL Extension GL_ARB_fragment_program available
2013-10-20 21:48:54,657 GL Extension GL_ARB_texture_rectangle available
2013-10-20 21:48:54,658 GL Extension GL_ARB_vertex_program available
2013-10-20 21:48:57,082 mmap is enabled using 128MB area in /tmp/xpra.lTY09S.mmap
2013-10-20 21:48:57,084 Attached to ssh:localhost:100 (press Control-C to detach)

2013-10-20 21:49:01,754 Connection lost
2013-10-20 21:49:01,755 connection closed after 139 packets received (24K bytes) and 389 packets sent (40K bytes)
@totaam
Copy link
Collaborator Author

totaam commented Oct 21, 2013

2013-10-21 02:56:07: ElDuderino commented


Seems to be similar to this one: #314

However, using --opengl=no doesn't help.

@totaam
Copy link
Collaborator Author

totaam commented Oct 21, 2013

2013-10-21 03:04:38: ElDuderino commented


Just tested a few other programs like dolphin or thunar, there was the same problem, so maybe not exclusive to VirtualBox.

@totaam
Copy link
Collaborator Author

totaam commented Oct 21, 2013

2013-10-21 04:09:59: totaam edited the issue description

@totaam
Copy link
Collaborator Author

totaam commented Oct 21, 2013

2013-10-21 04:09:59: totaam commented


All your problems are probably ffmpeg/libav related. Try a different encoding to confirm, one that does not use libav (ie: png, jpeg, webp or plain rgb).
The most interesting messages would have been in the server log, which is missing.
(should you want to get more helpful logging, add -d all to the server command line)

  • AFAIK, xpra has ebuilds in gentoo, so I'm not sure why you're not using those
  • you probably need more than one patch when running against libav, which ones depend on which version you have (and that's why most people use pre-packaged builds instead)
  • if you try building against ffmpeg 2.x (and maybe some newer libav versions), it will not work: see ffmpeg 2.0 support #415
  • The GL warnings are harmless (just missing some components) and I have added them to the FAQ. And the crash you are having is server side anyway, so opengl (which is client side) is unlikely to be relevant.

Please confirm so I can close this ticket.

@totaam
Copy link
Collaborator Author

totaam commented Oct 21, 2013

2013-10-21 05:14:52: ElDuderino uploaded file 100.log (2.4 KiB)

server log

@totaam
Copy link
Collaborator Author

totaam commented Oct 21, 2013

2013-10-21 05:16:46: ElDuderino commented


The gentoo ebuild complained about missing python qt4 module, even though it was installed. I couldn't get it to run.

May be related to my particular setup, if I don't post again, you can close this one.

I attached the server log.

@totaam
Copy link
Collaborator Author

totaam commented Oct 21, 2013

2013-10-21 05:21:50: totaam changed status from new to closed

@totaam
Copy link
Collaborator Author

totaam commented Oct 21, 2013

2013-10-21 05:21:50: totaam changed resolution from ** to invalid

@totaam
Copy link
Collaborator Author

totaam commented Oct 21, 2013

2013-10-21 05:21:50: totaam changed title from VirtualBox crashes a few seconds after starting, seems to be related to opening child windows to crashes a few seconds after starting, seems to be related to opening child windows

@totaam
Copy link
Collaborator Author

totaam commented Oct 21, 2013

2013-10-21 05:21:50: totaam commented


Qt4 is not needed at build time (and is not in our ebuilds), the qt4 client is very experimental and should not be used.

If you are talking about a warning about qt4 at runtime instead, then this is just a warning, in current trunk only AFAIK, and can safely be ignored anyway.

As for the server log, you didn't include -d all, so there is nothing of interest there.

I am fairly certain you have library or patching problems, so I am closing this ticket.

@totaam totaam closed this as completed Oct 21, 2013
@totaam totaam added the v0.10.x label Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant