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
Beta repository lacks i386 builds #3198
Comments
Got the following signed-vs-unsigned comparison errors with GCC 10 on i386: I guess there are more since |
32-bit builds are no longer supported.. as you just found out. That said, the compilation bug should be fixed. @basilgello can you copy one of the parts of the
Lines around 3473 should point us to the pyx source.
Which would be annoying. |
@totaam This one passed the build on i386, let me see if it actually works for amd64: |
In Debian, there are 12 supported architectures, including |
Adventure goes on... 2021-07-13 17:16:39,422 swscale: testing YUV420P / BGRX
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3.9/logging/__init__.py", line 1079, in emit
msg = self.format(record)
File "/usr/lib/python3/dist-packages/xpra/colorstreamhandler.py", line 60, in format
text = super().format(record)
File "/usr/lib/python3.9/logging/__init__.py", line 923, in format
return fmt.format(record)
File "/usr/lib/python3.9/logging/__init__.py", line 661, in format
record.asctime = self.formatTime(record, self.datefmt)
File "/usr/lib/python3.9/logging/__init__.py", line 602, in formatTime
s = self.default_msec_format % (s, record.msecs)
ValueError: cannot convert float NaN to integer
Call stack:
File "/usr/lib/python3.9/threading.py", line 912, in _bootstrap
self._bootstrap_inner()
File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
self.run()
File "/usr/lib/python3.9/threading.py", line 892, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/xpra/server/server_base.py", line 167, in threaded_init
c.threaded_setup(self)
File "/usr/lib/python3/dist-packages/xpra/server/mixins/encoding_server.py", line 55, in threaded_setup
getVideoHelper().init()
File "/usr/lib/python3/dist-packages/xpra/codecs/video_helper.py", line 234, in init
self.init_csc_options()
File "/usr/lib/python3/dist-packages/xpra/codecs/video_helper.py", line 310, in init_csc_options
load_codec(mod)
File "/usr/lib/python3/dist-packages/xpra/codecs/loader.py", line 184, in load_codec
xpra_codec_import(name, description, top_module, class_module, classnames)
File "/usr/lib/python3/dist-packages/xpra/codecs/loader.py", line 141, in xpra_codec_import
if codec_import_check(name, description, xpra_top_module, xpra_class_module, classname):
File "/usr/lib/python3/dist-packages/xpra/codecs/loader.py", line 71, in codec_import_check
selftest(FULL_SELFTEST)
File "/usr/lib/python3/dist-packages/xpra/codecs/codec_checks.py", line 266, in testcsc
log("test_csc(%s, %s, %s, %s)", csc_module, full, test_cs_in, test_cs_out)
File "/usr/lib/python3/dist-packages/xpra/log.py", line 432, in __call__
self.log(logging.DEBUG, msg, *args, **kwargs)
File "/usr/lib/python3/dist-packages/xpra/log.py", line 428, in log
global_logging_handler(self.logger.log, self.level_override or level, msg, *args, **kwargs)
File "/usr/lib/python3/dist-packages/xpra/log.py", line 145, in standard_logging
log(level, msg, *args, **kwargs)
Message: 'test_csc(%s, %s, %s, %s)'
Arguments: (<module 'xpra.codecs.csc_swscale.colorspace_converter' from '/usr/lib/python3/dist-packages/xpra/codecs/csc_swscale/colorspace_converter.cpython-39-i386-linux-gnu.so'>, False, ['BGRX'], ['YUV420P'])
2021-07-13 17:16:39,426 do_testcsc(<module 'xpra.codecs.csc_swscale.colorspace_converter' from '/usr/lib/python3/dist-packages/xpra/codecs/csc_swscale/colorspace_converter.cpython-39-i386-linux-gnu.so'>, 48, 32, 48, 32, False, ['BGRX'], ['YUV420P'], 8192, 8192)
2021-07-13 17:16:39,426 swscale: testing BGRX / YUV420P
Segmentation fault |
This one is actually scarier: it may come from memory corruption somewhere else.
I would just disable all ffmpeg based codecs on i386. |
The power of GDB shows that first call to Thread 19 "python3" hit Breakpoint 1, sws_scale (c=0xecfd9600, srcSlice=0xe58ba0c0, srcStride=0xe58ba0e0, srcSliceY=0, srcSliceH=32, dst=0xe58ba0d0, dstStride=0xf73c0df8) at src/libswscale/swscale.c:749
749 src/libswscale/swscale.c: No such file or directory.
(gdb) py-bt-full
#6 Frame 0xf4c71728, for file /usr/lib/python3/dist-packages/xpra/codecs/codec_checks.py, line 310, in do_testcsc (csc_module=<module at remote 0xf4863af0>, iw=48, ih=32, ow=48, oh=32, full=False, test_cs_in=['YUV420P'], test_cs_out=['BGRX'], limit_w=8192, limit_h=8192, cs_in_list=[...], cs_in='YUV420P', cs_out_list=[...], cs_out='BGRX', e=<xpra.codecs.csc_swscale.colorspace_converter.ColorspaceConverter at remote 0xf73c0da8>, image=<ImageWrapper(x=0, y=0, target_x=0, target_y=0, width=48, height=32, pixels=[b' ...(truncated)
out = e.convert_image(image)
#13 Frame 0xf48681a8, for file /usr/lib/python3/dist-packages/xpra/codecs/codec_checks.py, line 267, in testcsc (csc_module=<module at remote 0xf4863af0>, scaling=True, full=False, test_cs_in=['YUV420P'], test_cs_out=['BGRX'], W=48, H=32)
do_testcsc(csc_module, W, H, W, H, full, test_cs_in, test_cs_out)
#21 <built-in function selftest>
#27 Frame 0xf4beb6c8, for file /usr/lib/python3/dist-packages/xpra/codecs/loader.py, line 71, in codec_import_check (name='csc_swscale', description='swscale colorspace conversion', top_module='xpra.codecs.csc_swscale', class_module='xpra.codecs.csc_swscale.colorspace_converter', classnames=('ColorspaceConverter',), classname='ColorspaceConverter', ic=<module at remote 0xf4863af0>, init_module=<built-in function init_module>, clazz=<type at remote 0xe9fc1380>, selftest=<built-in function selftest>)
selftest(FULL_SELFTEST)
#34 Frame 0xf48a9028, for file /usr/lib/python3/dist-packages/xpra/codecs/loader.py, line 141, in xpra_codec_import (name='csc_swscale', description='swscale colorspace conversion', top_module='csc_swscale', class_module='colorspace_converter', classname=('ColorspaceConverter',), xpra_top_module='xpra.codecs.csc_swscale', xpra_class_module='xpra.codecs.csc_swscale.colorspace_converter') But second call trashes: Thread 19 "python3" hit Breakpoint 1, sws_scale (c=0xecfd9600, srcSlice=0xe58ba0c0, srcStride=0xe58ba0e0, srcSliceY=0, srcSliceH=32, dst=0xe58ba0d0, dstStride=0xf73c0df8) at src/libswscale/swscale.c:749
749 in src/libswscale/swscale.c
(gdb) py-bt-full
#6 Frame 0xf4c71728, for file /usr/lib/python3/dist-packages/xpra/codecs/codec_checks.py, line 310, in do_testcsc (csc_module=<module at remote 0xf4863af0>, iw=48, ih=32, ow=48, oh=32, full=False, test_cs_in=['BGRX'], test_cs_out=['YUV420P'], limit_w=8192, limit_h=8192, cs_in_list=[...], cs_in='BGRX', cs_out_list=[...], cs_out='YUV420P', e=<xpra.codecs.csc_swscale.colorspace_converter.ColorspaceConverter at remote 0xf73c0da8>, image=<ImageWrapper(x=0, y=0, target_x=0, target_y=0, width=48, height=32, pixels=b' ...(truncated)
out = e.convert_image(image)
#13 Frame 0xf48681a8, for file /usr/lib/python3/dist-packages/xpra/codecs/codec_checks.py, line 267, in testcsc (csc_module=<module at remote 0xf4863af0>, scaling=True, full=False, test_cs_in=['BGRX'], test_cs_out=['YUV420P'], W=48, H=32)
do_testcsc(csc_module, W, H, W, H, full, test_cs_in, test_cs_out)
#21 <built-in function selftest>
#27 Frame 0xf4beb6c8, for file /usr/lib/python3/dist-packages/xpra/codecs/loader.py, line 71, in codec_import_check (name='csc_swscale', description='swscale colorspace conversion', top_module='xpra.codecs.csc_swscale', class_module='xpra.codecs.csc_swscale.colorspace_converter', classnames=('ColorspaceConverter',), classname='ColorspaceConverter', ic=<module at remote 0xf4863af0>, init_module=<built-in function init_module>, clazz=<type at remote 0xe9fc1380>, selftest=<built-in function selftest>)
selftest(FULL_SELFTEST)
#34 Frame 0xf48a9028, for file /usr/lib/python3/dist-packages/xpra/codecs/loader.py, line 141, in xpra_codec_import (name='csc_swscale', description='swscale colorspace conversion', top_module='csc_swscale', class_module='colorspace_converter', classname=('ColorspaceConverter',), xpra_top_module='xpra.codecs.csc_swscale', xpra_class_module='xpra.codecs.csc_swscale.colorspace_converter') Thread 19 "python3" received signal SIGSEGV, Segmentation fault.
0xe9f4e104 in ff_yuv2plane1_8_sse2.unaligned () at src//libavutil/x86/x86util.asm:1316
1316 src//libavutil/x86/x86util.asm: No such file or directory.
(gdb) bt full
#0 0xe9f4e104 in ff_yuv2plane1_8_sse2.unaligned () at src//libavutil/x86/x86util.asm:1316 |
How do I do it? |
OTOH: |
Ya, removing the appropriate codec solibs did the trick, too (as a quick test) |
@basilgello thanks - applied above IIRC, Debian doesn't use a patched dummy driver, so why use Xdummy instead of Xvfb? |
It has both Xvfb and Xdummy as deps. It was like that since 3.0 packaged in Debian so I did not touch that part :) |
So the config you ship will use Xdummy I think we can finally close this ticket, right? |
With https://salsa.debian.org/basilgello/xpra/-/blame/master/debian/control#L51 I did not notice Xpra starts,with Xdummy as default:
|
Yup. That's |
I faced this today trying to deploy a container to test a bug in Kodi i386. Of course I can build both packages, but Xpra users will unlikely do it :)
The text was updated successfully, but these errors were encountered: