max delay reached

Hey,
First of all thanks for the work on the plug-in
I am experiencing an issue with it though, the stream says its live but if there is any movement on the camera it freezes until it eventually disconnects.
tried running
ffmpeg -re -i rtsp://xx.x.x.xx:554/stream1 -threads 0 -vcodec libx264 -an -pix_fmt yuv420p -r 30 -f rawvideo -tune zerolatency -vf scale=1280:720 -b:v 300k -bufsize 300k -f rtp rtp://<IP_ADDRESS>:5129
and got this output:
`pi@raspberrypi:~ $ ffmpeg -re -i rtsp://xx.x.x.xx:554/stream1 -threads 0 -vcodec libx264 -an -pix_fmt yuv420p -r 30 -f rawvideo -tune zerolatency -vf scale=1280:720 -b:v 300k -bufsize 300k -f rtp rtp://<IP_ADDRESS>:5129
ffmpeg version git-2017-02-04-b1e2192 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.9.2 (Raspbian 4.9.2-10)
configuration: --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree
libavutil      55. 46.100 / 55. 46.100
libavcodec     57. 75.100 / 57. 75.100
libavformat    57. 66.101 / 57. 66.101
libavdevice    57.  2.100 / 57.  2.100
libavfilter     6. 72.100 /  6. 72.100
libswscale      4.  3.101 /  4.  3.101
libswresample   2.  4.100 /  2.  4.100
libpostproc    54.  2.100 / 54.  2.100
Input #0, rtsp, from 'rtsp://<IP_ADDRESS>:554/stream1':
Metadata:
title           : Ambarella streaming
comment         : Ambarella streaming
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, progressive), 848x480 [SAR 1:1 DAR 53:30], 14.99 fps, 14.99 tbr, 90k tbn, 29.97 tbc
Stream #0:1: Audio: aac (LC), 48000 Hz, mono, fltp
[swscaler @ 0x33c3b20] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x333bdc0] VBV maxrate unspecified, assuming CBR
[libx264 @ 0x333bdc0] using SAR=159/160
[libx264 @ 0x333bdc0] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x333bdc0] profile High, level 3.1
Output #0, rtp, to 'rtp://<IP_ADDRESS>:5129':
Metadata:
title           : Ambarella streaming
comment         : Ambarella streaming
encoder         : Lavf57.66.101
Stream #0:0: Video: h264 (libx264), yuv420p, 1280x720 [SAR 159:160 DAR 53:30], q=-1--1, 300 kb/s, 30 fps, 90k tbn, 30 tbc
Metadata:
encoder         : Lavc57.75.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/300000 buffer size: 300000 vbv_delay: -1
SDP:
v=0
o=- 0 0 IN IP4 <IP_ADDRESS>
s=Ambarella streaming
c=IN IP4 <IP_ADDRESS>
t=0 0
a=tool:libavformat 57.66.101
m=video 5129 RTP/AVP 96
b=AS:300
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
Past duration 0.929985 too large      66kB time=00:00:02.33 bitrate= 233.1kbits/s dup=70 drop=0 speed=0.357x
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 223.6kbits/s dup=88 drop=5 speed=0.374x
[rtsp @ 0x32ce310] RTP: missed 705 packets
[h264 @ 0x3352050] error while decoding MB 17 22, bytestream -57
[h264 @ 0x3352050] concealing 456 DC, 456 AC, 456 MV errors in I frame
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 3 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 222.0kbits/s dup=90 drop=5 speed=0.282x
[rtsp @ 0x32ce310] RTP: missed 412 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 5 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 232.8kbits/s dup=376 drop=5 speed=0.429x
[rtsp @ 0x32ce310] RTP: missed 245 packets
[h264 @ 0x34e6c90] error while decoding MB 43 20, bytestream -15
[h264 @ 0x34e6c90] concealing 536 DC, 536 AC, 536 MV errors in I frame
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 8 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 6 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 948 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 233.3kbits/s dup=384 drop=5 speed=0.429x
[rtsp @ 0x32ce310] RTP: missed 1365 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 252.3kbits/s dup=504 drop=5 speed=0.412x
[rtsp @ 0x32ce310] RTP: missed 256 packets
[h264 @ 0x34e6c90] error while decoding MB 41 9, bytestream -43
[h264 @ 0x34e6c90] concealing 1121 DC, 1121 AC, 1121 MV errors in I frame
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 4 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 582 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 518 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 41 packets
More than 1000 frames duplicated
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 260.2kbits/s dup=1388 drop=5 speed=0.458x
[rtsp @ 0x32ce310] RTP: missed 2786 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 534 packets
[h264 @ 0x34d7540] error while decoding MB 35 16, bytestream -23
[h264 @ 0x34d7540] concealing 756 DC, 756 AC, 756 MV errors in I frame
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 6 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 261.0kbits/s dup=1391 drop=5 speed=0.458x
[rtsp @ 0x32ce310] RTP: missed 1271 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 262.5kbits/s dup=1393 drop=5 speed=0.448x
[rtsp @ 0x32ce310] RTP: missed 5 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 3 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 2771 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 263.6kbits/s dup=2672 drop=5 speed=0.44x
[rtsp @ 0x32ce310] RTP: missed 9 packets
[h264 @ 0x34d7540] error while decoding MB 39 23, bytestream -39ate= 264.8kbits/s dup=3168 drop=5 speed=0.433x
[h264 @ 0x34d7540] concealing 381 DC, 381 AC, 381 MV errors in I frame
frame= 3243 fps= 13 q=24.0 Lsize=    3514kB time=00:01:48.06 bitrate= 266.4kbits/s dup=3186 drop=5 speed=0.431x
video:3479kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.016440%
[libx264 @ 0x333bdc0] frame I:13    Avg QP:25.20  size: 29016
[libx264 @ 0x333bdc0] frame P:3230  Avg QP:15.00  size:   986
[libx264 @ 0x333bdc0] mb I  I16..4: 19.8% 65.7% 14.5%
[libx264 @ 0x333bdc0] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  5.3%  0.3%  0.4%  0.0%  0.0%    skip:93.9%
[libx264 @ 0x333bdc0] 8x8 transform intra:64.3% inter:78.9%
[libx264 @ 0x333bdc0] coded y,uvDC,uvAC intra: 51.4% 42.2% 6.2% inter: 1.2% 3.1% 0.1%
[libx264 @ 0x333bdc0] i16 v,h,dc,p: 25% 32%  8% 34%
[libx264 @ 0x333bdc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 19% 26%  3%  3%  3%  5%  3%  5%
[libx264 @ 0x333bdc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 26% 11%  3%  4%  4%  8%  3%  4%
[libx264 @ 0x333bdc0] i8c dc,h,v,p: 62% 16% 21%  1%
[libx264 @ 0x333bdc0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x333bdc0] ref P L0: 94.2%  1.0%  3.9%  1.0%
[libx264 @ 0x333bdc0] kb/s:263.63`
This is a copy of the plug in section in my config.json
`"platforms": [
            {
                    "platform": "Camera-ffmpeg",
                    "cameras": [{
                            "name": "Sala Cam",
                            "videoConfig": {
                                    "source": "-rtsp_transport tcp -re -i rtsp://xx.x.x.xx:554/stream1",
                                    "maxStreams": 2,
                                    "maxWidth": 640,
                                    "maxHeight": 480,
                                    "maxFPS": 15
                            }
                    }]

`
I have tried:

Adding -rtsp_transport tcp before -re -i
udo usermod -aG video homebridge
apt-get install libomxil-bellagio-bin
apt-get install libomxil-bellagio-dev

And none have improved the issue. Does anyone have any other suggestions?
Appreciate it

This is more of a ffmpeg issue instead of a plugin issue. I'm afraid I won't be able to help on this one since I'm not really familiar with ffmpeg, you may have a better chance to search it online or ask in one of the ffmpeg mailing list.
Sent from my iPhone

On Feb 4, 2017, at 7:56 AM, Cloudore<EMAIL_ADDRESS>wrote:
Hey,
First of all thanks for the work on the plug-in
I am experiencing an issue with it though, the stream says its live but if there is any movement on the camera it freezes until it eventually disconnects.
tried running
ffmpeg -re -i rtsp://xx.x.x.xx:554/stream1 -threads 0 -vcodec libx264 -an -pix_fmt yuv420p -r 30 -f rawvideo -tune zerolatency -vf scale=1280:720 -b:v 300k -bufsize 300k -f rtp rtp://<IP_ADDRESS>:5129
and got this output:
`pi@raspberrypi:~ $ ffmpeg -re -i rtsp://xx.x.x.xx:554/stream1 -threads 0 -vcodec libx264 -an -pix_fmt yuv420p -r 30 -f rawvideo -tune zerolatency -vf scale=1280:720 -b:v 300k -bufsize 300k -f rtp rtp://<IP_ADDRESS>:5129
ffmpeg version git-2017-02-04-b1e2192 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.9.2 (Raspbian 4.9.2-10)
configuration: --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree
libavutil 55. 46.100 / 55. 46.100
libavcodec 57. 75.100 / 57. 75.100
libavformat 57. 66.101 / 57. 66.101
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 72.100 / 6. 72.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
Input #0, rtsp, from 'rtsp://<IP_ADDRESS>:554/stream1':
Metadata:
title : Ambarella streaming
comment : Ambarella streaming
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, progressive), 848x480 [SAR 1:1 DAR 53:30], 14.99 fps, 14.99 tbr, 90k tbn, 29.97 tbc
Stream #0:1: Audio: aac (LC), 48000 Hz, mono, fltp
[swscaler @ 0x33c3b20] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x333bdc0] VBV maxrate unspecified, assuming CBR
[libx264 @ 0x333bdc0] using SAR=159/160
[libx264 @ 0x333bdc0] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x333bdc0] profile High, level 3.1
Output #0, rtp, to 'rtp://<IP_ADDRESS>:5129':
Metadata:
title : Ambarella streaming
comment : Ambarella streaming
encoder : Lavf57.66.101
Stream #0:0: Video: h264 (libx264), yuv420p, 1280x720 [SAR 159:160 DAR 53:30], q=-1--1, 300 kb/s, 30 fps, 90k tbn, 30 tbc
Metadata:
encoder : Lavc57.75.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/300000 buffer size: 300000 vbv_delay: -1
SDP:
v=0
o=- 0 0 IN IP4 <IP_ADDRESS>
s=Ambarella streaming
c=IN IP4 <IP_ADDRESS>
t=0 0
a=tool:libavformat 57.66.101
m=video 5129 RTP/AVP 96
b=AS:300
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
Past duration 0.929985 too large 66kB time=00:00:02.33 bitrate= 233.1kbits/s dup=70 drop=0 speed=0.357x
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 223.6kbits/s dup=88 drop=5 speed=0.374x
[rtsp @ 0x32ce310] RTP: missed 705 packets
[h264 @ 0x3352050] error while decoding MB 17 22, bytestream -57
[h264 @ 0x3352050] concealing 456 DC, 456 AC, 456 MV errors in I frame
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 3 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 222.0kbits/s dup=90 drop=5 speed=0.282x
[rtsp @ 0x32ce310] RTP: missed 412 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 5 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 232.8kbits/s dup=376 drop=5 speed=0.429x
[rtsp @ 0x32ce310] RTP: missed 245 packets
[h264 @ 0x34e6c90] error while decoding MB 43 20, bytestream -15
[h264 @ 0x34e6c90] concealing 536 DC, 536 AC, 536 MV errors in I frame
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 8 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 6 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 948 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 233.3kbits/s dup=384 drop=5 speed=0.429x
[rtsp @ 0x32ce310] RTP: missed 1365 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 252.3kbits/s dup=504 drop=5 speed=0.412x
[rtsp @ 0x32ce310] RTP: missed 256 packets
[h264 @ 0x34e6c90] error while decoding MB 41 9, bytestream -43
[h264 @ 0x34e6c90] concealing 1121 DC, 1121 AC, 1121 MV errors in I frame
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 4 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 582 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 518 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 41 packets
More than 1000 frames duplicated
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 260.2kbits/s dup=1388 drop=5 speed=0.458x
[rtsp @ 0x32ce310] RTP: missed 2786 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 534 packets
[h264 @ 0x34d7540] error while decoding MB 35 16, bytestream -23
[h264 @ 0x34d7540] concealing 756 DC, 756 AC, 756 MV errors in I frame
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 6 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 261.0kbits/s dup=1391 drop=5 speed=0.458x
[rtsp @ 0x32ce310] RTP: missed 1271 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 262.5kbits/s dup=1393 drop=5 speed=0.448x
[rtsp @ 0x32ce310] RTP: missed 5 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 3 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packet
[rtsp @ 0x32ce310] RTP: missed 2771 packets
[rtsp @ 0x32ce310] max delay reached. need to consume packetbitrate= 263.6kbits/s dup=2672 drop=5 speed=0.44x
[rtsp @ 0x32ce310] RTP: missed 9 packets
[h264 @ 0x34d7540] error while decoding MB 39 23, bytestream -39ate= 264.8kbits/s dup=3168 drop=5 speed=0.433x
[h264 @ 0x34d7540] concealing 381 DC, 381 AC, 381 MV errors in I frame
frame= 3243 fps= 13 q=24.0 Lsize= 3514kB time=00:01:48.06 bitrate= 266.4kbits/s dup=3186 drop=5 speed=0.431x
video:3479kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.016440%
[libx264 @ 0x333bdc0] frame I:13 Avg QP:25.20 size: 29016
[libx264 @ 0x333bdc0] frame P:3230 Avg QP:15.00 size: 986
[libx264 @ 0x333bdc0] mb I I16..4: 19.8% 65.7% 14.5%
[libx264 @ 0x333bdc0] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 5.3% 0.3% 0.4% 0.0% 0.0% skip:93.9%
[libx264 @ 0x333bdc0] 8x8 transform intra:64.3% inter:78.9%
[libx264 @ 0x333bdc0] coded y,uvDC,uvAC intra: 51.4% 42.2% 6.2% inter: 1.2% 3.1% 0.1%
[libx264 @ 0x333bdc0] i16 v,h,dc,p: 25% 32% 8% 34%
[libx264 @ 0x333bdc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 19% 26% 3% 3% 3% 5% 3% 5%
[libx264 @ 0x333bdc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 26% 11% 3% 4% 4% 8% 3% 4%
[libx264 @ 0x333bdc0] i8c dc,h,v,p: 62% 16% 21% 1%
[libx264 @ 0x333bdc0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x333bdc0] ref P L0: 94.2% 1.0% 3.9% 1.0%
[libx264 @ 0x333bdc0] kb/s:263.63`
This is a copy of the plug in section in my config.json
`"platforms": [
        {
                "platform": "Camera-ffmpeg",
                "cameras": [{
                        "name": "Sala Cam",
                        "videoConfig": {
                                "source": "-rtsp_transport tcp -re -i rtsp://xx.x.x.xx:554/stream1",
                                "maxStreams": 2,
                                "maxWidth": 640,
                                "maxHeight": 480,
                                "maxFPS": 15
                        }
                }]

`
I have tried:
Adding -rtsp_transport tcp before -re -i
udo usermod -aG video homebridge
apt-get install libomxil-bellagio-bin
apt-get install libomxil-bellagio-dev
And none have improved the issue. Does anyone have any other suggestions?
Appreciate it
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Stream now running smooth on raspberry pi by using the following fork:
https://github.com/legotheboss/homebridge-camera-ffmpeg-omx

Ah then this is an issue with machine CPU power being under power then. Good to know ^^
Sent from my iPhone

On Feb 4, 2017, at 7:08 PM, Cloudore<EMAIL_ADDRESS>wrote:
Stream now running smooth on raspberry pi by using the following fork:
https://github.com/legotheboss/homebridge-camera-ffmpeg-omx
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Don't use flag '-re'!!!
`-re (input)
Read input at native frame rate. Mainly used to simulate a grab device, or live input stream (e.g. when reading from a file). Should not be used with actual grab devices or live input streams (where it can cause packet loss).`
http://ffmpeg.org/ffmpeg.html#Advanced-options

Thanks a lot for the input on my settings, @AVBIT, have it working reliably now, alas with some delay (omg fork). Will try removing the re flag to see how things change.
Regards!


New check slnt direction

Description
Check slant direction of outline to match values of slnt axis extrema.
(Right-lean must be expressed through a negative slnt axis value as per Microsoft’s axis registry, which may be counter-intuitive for people used to LTR text and therefore easy to set up the wrong way). The outlines are processed by uharfbuzz using the slnt axis extreme values.
The PointsPen that's necessary for this is currently sitting in googlefonts.py directly above the check method. That may be an undesirable location. Feel free to suggest a different location and I'll move it.
The code test doesn't use CheckTester because CheckTester can’t handle arbitrary parameters such as (in this case) uharfbuzz blobs.
To Do

[x] update CHANGELOG.md
[ ] wait for all checks to pass
[ ] request a review

Can you use vharfbuzz instead? That's already a dependency.
If you can't that's fine, but you'll have to add uharfbuzz to setup.py otherwise the check will fail with an ERROR when people run FB on their machines.
If you end up using uharfbuzz please add it to setup.py under an extras keyword named harfbuzz.

Eh, uharfbuzz is a dependency of vharfbuzz (it's in the name). So if you have one installed, you have the other.

That means I should rather remove the dependency from requirements.txt as I had pinned a specific version there.

Eh, uharfbuzz is a dependency of vharfbuzz (it's in the name). So if you have one installed, you have the other.

Thanks. You could have conveyed the same information without being condescending though.

That means I should rather remove the dependency from requirements.txt as I had pinned a specific version there.

That's right.

Sorry, Miguel, I didn’t intend to sound condescending but I see how the message comes across on rereading. My apologies.

@simoncozens Apologies accepted.

@yanone please rebase this with main branch. The linting problem was addressed at #3911 and this should result in a clean, green build for this PR.

I'm going to perform a rebase main and force-push now here.

I don't know how this rebasing works. I did it in the two other PRs of mine (#3905 and #3908) and those checks pass now. This one doesn't even tho you rebased it.


Could not create task: ERR_CONNECTION_RESET

My actions before raising this issue

[x] Read/searched the docs
[x] Searched past issues

I have installed CVAT on an Azure VM, and the tool is accessible on port 8080 from outside. I can sign up new users, and access the admin panel. However, if I create a new task (no tasks are created yet) and I submit it, I get back an error that says that "Error, cannot create task".
Expected Behaviour
A task should be created with the attached video file
Current Behaviour
At accessing the tool, crtl+F12 reveals 1 error:

GET http://jads001vmcvat.westeurope.cloudapp.azure.com:8080/analytics/app/kibana 404 (Not Found)

And after I submit the task and the file (a 600+mb avi file) two new errors show up after approximately 30-60 seconds:

xhr.js:160 POST http://jads001vmcvat.westeurope.cloudapp.azure.com:8080/api/v1/tasks/22/data net::ERR_CONNECTION_RESET
Error: Network Error.

Furthermore, during the 30-60 seconds, my whole internet connection goes down (for my whole house).
The output of the command docker ps -a:
CONTAINER ID        IMAGE                                  COMMAND                  CREATED             STATUS              PORTS                            NAMES
5239867b8038        nginx:stable-alpine                    "/docker-entrypoint.…"   11 minutes ago      Up 11 minutes       <IP_ADDRESS>:8080->80/tcp             cvat_proxy
f19bd2901e44        cvat/ui                                "/docker-entrypoint.…"   11 minutes ago      Up 11 minutes       80/tcp                           cvat_ui
ff46fb50314a        cvat/server                            "/usr/bin/supervisord"   11 minutes ago      Up 11 minutes       8080/tcp, 8443/tcp               cvat
1c9168fa8721        redis:4.0-alpine                       "docker-entrypoint.s…"   11 minutes ago      Up 11 minutes       6379/tcp                         cvat_redis
010dcc9a3a9c        postgres:10-alpine                     "docker-entrypoint.s…"   11 minutes ago      Up 11 minutes       5432/tcp                         cvat_db
d4c1c8e469e0        quay.io/nuclio/dashboard:1.4.8-amd64   "sh -c ./runner.sh"      11 minutes ago      Up 11 minutes       80/tcp, <IP_ADDRESS>:8070->8070/tcp   nuclio
8a3ba79658ae        alpine:3.11                            "/bin/sh -c '/bin/sl…"   2 hours ago         Up 2 hours                                           nuclio-local-storage-reader

The output of docker logs cvat:
2020-09-25 13:43:26,840 DEBG 'runserver' stdout output:
Successfully ran command.

2020-09-25 13:43:26,840 DEBG 'runserver' stderr output:
System check identified some issues:

WARNINGS:
?: (urls.W005) URL namespace 'v1' isn't unique. You may not be able to reverse all URLs in this namespace

2020-09-25 13:43:26,844 DEBG 'runserver' stdout output:
Server URL         : http://localhost:8080/
Server Root        : /tmp/cvat-server
Server Conf        : /tmp/cvat-server/httpd.conf
Error Log File     : /dev/stderr (INFO)
Request Capacity   : 5 (1 process * 5 threads)
Request Timeout    : 60 (seconds)
Startup Timeout    : 15 (seconds)
Queue Backlog      : 100 (connections)
Queue Timeout      : 45 (seconds)
Server Capacity    : 20 (event/worker), 20 (prefork)
Server Backlog     : 500 (connections)
Locale Setting     : C.UTF-8

2020-09-25 13:43:26,892 DEBG 'runserver' stderr output:
[Fri Sep 25 13:43:26.892276 2020] [wsgi:info] [pid 193:tid<PHONE_NUMBER>10240] mod_wsgi (pid=193): Starting process 'localhost:8080' with threads=5.
[Fri Sep 25 13:43:26.892419 2020] [mpm_event:notice] [pid 20:tid<PHONE_NUMBER>10240] AH00489: Apache/2.4.41 (Ubuntu) mod_wsgi/4.7.1 Python/3.8 configured -- resuming normal operations
[Fri Sep 25 13:43:26.892503 2020] [mpm_event:info] [pid 20:tid<PHONE_NUMBER>10240] AH00490: Server built: 2020-08-12T19:46:17
[Fri Sep 25 13:43:26.892511 2020] [core:notice] [pid 20:tid<PHONE_NUMBER>10240] AH00094: Command line: 'apache2 (mod_wsgi-express) -f /tmp/cvat-server/httpd.conf -D MOD_WSGI_MPM_ENABLE_EVENT_MODULE -D MOD_WSGI_MPM_EXISTS_EVENT_MODULE -D MOD_WSGI_MPM_EXISTS_WORKER_MODULE -D MOD_WSGI_MPM_EXISTS_PREFORK_MODULE -D FOREGROUND'

2020-09-25 13:43:26,892 DEBG 'runserver' stderr output:
[Fri Sep 25 13:43:26.892744 2020] [wsgi:info] [pid 193:tid<PHONE_NUMBER>10240] mod_wsgi (pid=193): Python home /usr.
[Fri Sep 25 13:43:26.892791 2020] [wsgi:info] [pid 193:tid<PHONE_NUMBER>10240] mod_wsgi (pid=193): Initializing Python.

2020-09-25 13:43:26,915 DEBG 'runserver' stderr output:
[Fri Sep 25 13:43:26.915405 2020] [wsgi:info] [pid 193:tid<PHONE_NUMBER>10240] mod_wsgi (pid=193): Attach interpreter ''.

2020-09-25 13:43:26,920 DEBG 'runserver' stderr output:
[Fri Sep 25 13:43:26.920175 2020] [wsgi:info] [pid 193:tid<PHONE_NUMBER>10240] mod_wsgi (pid=193): Imported 'mod_wsgi'.

2020-09-25 13:43:26,920 DEBG 'runserver' stderr output:
[Fri Sep 25 13:43:26.920242 2020] [wsgi:info] [pid 193:tid<PHONE_NUMBER>10240] mod_wsgi (pid=193, process='localhost:8080', application=''): Loading Python script file '/tmp/cvat-server/handler.wsgi'.

2020-09-25 13:43:27,174 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2020-09-25 13:43:27,176 DEBG 'ssh-agent' stderr output:
debug1: process_message: socket 1 (fd=4) type 17

2020-09-25 13:43:27,178 DEBG 'ssh-agent' stderr output:
debug1: process_add_identity: add ssh-rsa SHA256:IkRmofpmo+Sv+honLmA5VCcGHePbz+9VbzZqJ6b2j3E "django@5da1c21f82ff" (life: 0) (confirm: 0) (provider: none)

2020-09-25 13:43:27,183 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: process_message: socket 1 (fd=4) type 11

The output of docker logs cvat_db:
PostgreSQL Database directory appears to contain a database; Skipping initialization

2020-09-25 13:43:11.263 UTC [1] LOG:  listening on IPv4 address "<IP_ADDRESS>", port 5432
2020-09-25 13:43:11.263 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2020-09-25 13:43:11.294 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-09-25 13:43:11.350 UTC [20] LOG:  database system was shut down at 2020-09-25 13:42:51 UTC
2020-09-25 13:43:11.370 UTC [1] LOG:  database system is ready to accept connections
2020-09-25 13:43:13.587 UTC [27] LOG:  incomplete startup packet

Possible Solution
No idea. I have tried to rebuild the tool several times, but no difference in output
Steps to Reproduce (for bugs)
Context
I am trying to create tasks for video annotation. These annotations should be quite basic, bounding boxes that are tracked through the video.
Your Environment

Docker version: 19.03.12
Operating System and version (e.g. Linux, Windows, MacOS): Linux (ubuntu 18.04)
Azure VM System: vCPUs 4 ; RAM 16 GiB

@plangenhuizen Hi,
The size of uploaded file is limited to 500 MB by default: https://github.com/openvinotoolkit/cvat/blob/develop/cvat/settings/base.py#L410,
Could you please try to create a task with a small video file or increase this limit?

@azhavoro Thank you for your suggesting. Unfortunately, I receive the same error when I try to upload a file of 376 MB.

@plangenhuizen I don't see any logs showing that the backend server received data and started the process of creating a task(like this: INFO:rq.worker:default: cvat.apps.engine.task._create_thread(1, {'chunk_size': None, 'size': 0, 'image_quality': 70, 'start_frame': 0, 'sto...) (/api/v1/tasks/1)
)
Could you please try to create a task from several images or a really small video file?

@azhavoro Indeed, that is not in the logs. If I create a task with two images, everything works. A task is created, and the line you mentioned appears in the log. However, if I try to create a task with a video file of size 65 MB, it fails with the above-described error. In the task creation page, I get the following messages:
The task is being created on the server...,
followed by:
The data is being uploaded to the server....
This message is there for a couple of minutes, after which the error Could not create task - Error: Network Error. appears on the top right of the window. Furthermore, nothing appears in the cvat log.

Looks like a kind of network issue, could you open the browser dev tools (F12) and try to create a new task. Please attach a screenshot of the failed request to the server, I think it should be the request to the task data endpoint /api/v1/tasks/<TASK_ID>/data.

Sure, here it is

I think there is some network issue as I said early, the POST request that uploads data to the server failed for some reason, so the task cannot be created. Could you please try to create a new task from another computer?
Can you reproduce this issue on cvat.org?

@plangenhuizen  I'll close the issue. Don't hesitate to reopen if the issue is still actual for you.


Inclusion of LIMIT within SPARQL subquery eliminates any subquery results

If a LIMIT is added to the subquery in the following SPARQL all subquery results are eliminated. The same does not happen with ORDER BY or OFFSET:
select *
WHERE {
	{	SELECT *
		{
			VALUES(?FileFormat_s){(<http://www.nationalarchives.gov.uk/PRONOM/fmt/100>)}
		}
	}
	{
		VALUES(?FileFormat_p){    (<http://www.w3.org/2000/01/rdf-schema#label>)}
    	?FileFormat_s ?FileFormat_p ?FileFormat_o .
	}
	UNION	{
		OPTIONAL{
			{SELECT ?FileFormat_s ?FileFormatfileFormat_FormatIdentifier_s {
					?FileFormat_s <http://data.nationalarchives.gov.uk/formatregistry/def/fileFormat.FormatIdentifier> ?FileFormatfileFormat_FormatIdentifier_s .
        		}  #LIMIT 2
			}
			VALUES(?FileFormatfileFormat_FormatIdentifier_p){(<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>)(<http://www.w3.org/2000/01/rdf-schema#label>)}
			?FileFormatfileFormat_FormatIdentifier_s ?FileFormatfileFormat_FormatIdentifier_p ?FileFormatfileFormat_FormatIdentifier_o .
		}
	}
}

The LIMIT is commented out in the above example.
Various rearrangements of the query pattern have been tested but all exhibit the same issue.
The issue is the same with version 3.0.0 and 3.1.3

Could you add some example turtle data for us to be able to reproduce this issue?

Not really. I tried to create a very small sample set and unfortunately, maybe, it works as expected. However not in the full database.
<http://data.nationalarchives.gov.uk/formatregistry/id/FormatIdentifier/FI-6ffaad09c30216c38c8888e6d6757d2f>
  rdf:type <http://data.nationalarchives.gov.uk/formatregistry/def/FormatIdentifier> ;
  rdfs:label "text/html" ;
.
<http://data.nationalarchives.gov.uk/formatregistry/id/FormatIdentifier/FI-93ba72d72dacb9a35f957af5ed69439c>
  rdf:type <http://data.nationalarchives.gov.uk/formatregistry/def/FormatIdentifier> ;
  rdfs:label "public.html" ;
.
<http://www.nationalarchives.gov.uk/PRONOM/fmt/100>
  rdf:type <http://data.nationalarchives.gov.uk/formatregistry/def/FileFormat> ;
  <http://data.nationalarchives.gov.uk/formatregistry/def/fileFormat.FormatIdentifier> <http://data.nationalarchives.gov.uk/formatregistry/id/FormatIdentifier/FI-6ffaad09c30216c38c8888e6d6757d2f> ;
  <http://data.nationalarchives.gov.uk/formatregistry/def/fileFormat.FormatIdentifier> <http://data.nationalarchives.gov.uk/formatregistry/id/FormatIdentifier/FI-93ba72d72dacb9a35f957af5ed69439c> ;
  rdfs:label "Hypertext Markup Language(4.01)" ;
.

I've tried to make this small sample exhibit the same error, but I cannot.

My original store which exhibits this problem had a single context with 36 TTL files.
I created a test store and loaded the TTL that contains the relevant data and executed the query: results were correct, as expected.
I then added all 36 TTL into individual contexts. Now the query fails, so I have to deduce that the issue is triple-volume related.

I am getting the following output:
NativeStore
With limit 2:
[FileFormat_o="Hypertext Markup Language(4.01)";FileFormat_p=http://www.w3.org/2000/01/rdf-schema#label;FileFormat_s=http://www.nationalarchives.gov.uk/PRONOM/fmt/100]

Without limit:
[FileFormat_o="Hypertext Markup Language(4.01)";FileFormat_p=http://www.w3.org/2000/01/rdf-schema#label;FileFormat_s=http://www.nationalarchives.gov.uk/PRONOM/fmt/100]
[FileFormatfileFormat_FormatIdentifier_s=http://data.nationalarchives.gov.uk/formatregistry/id/FormatIdentifier/FI-6ffaad09c30216c38c8888e6d6757d2f;FileFormatfileFormat_FormatIdentifier_o=http://data.nationalarchives.gov.uk/formatregistry/def/FormatIdentifier;FileFormatfileFormat_FormatIdentifier_p=http://www.w3.org/1999/02/22-rdf-syntax-ns#type;FileFormat_s=http://www.nationalarchives.gov.uk/PRONOM/fmt/100]
[FileFormatfileFormat_FormatIdentifier_s=http://data.nationalarchives.gov.uk/formatregistry/id/FormatIdentifier/FI-6ffaad09c30216c38c8888e6d6757d2f;FileFormatfileFormat_FormatIdentifier_o="text/html";FileFormatfileFormat_FormatIdentifier_p=http://www.w3.org/2000/01/rdf-schema#label;FileFormat_s=http://www.nationalarchives.gov.uk/PRONOM/fmt/100]
[FileFormatfileFormat_FormatIdentifier_s=http://data.nationalarchives.gov.uk/formatregistry/id/FormatIdentifier/FI-93ba72d72dacb9a35f957af5ed69439c;FileFormatfileFormat_FormatIdentifier_o=http://data.nationalarchives.gov.uk/formatregistry/def/FormatIdentifier;FileFormatfileFormat_FormatIdentifier_p=http://www.w3.org/1999/02/22-rdf-syntax-ns#type;FileFormat_s=http://www.nationalarchives.gov.uk/PRONOM/fmt/100]
[FileFormatfileFormat_FormatIdentifier_s=http://data.nationalarchives.gov.uk/formatregistry/id/FormatIdentifier/FI-93ba72d72dacb9a35f957af5ed69439c;FileFormatfileFormat_FormatIdentifier_o="public.html";FileFormatfileFormat_FormatIdentifier_p=http://www.w3.org/2000/01/rdf-schema#label;FileFormat_s=http://www.nationalarchives.gov.uk/PRONOM/fmt/100]

With limit 9999:
[FileFormat_o="Hypertext Markup Language(4.01)";FileFormat_p=http://www.w3.org/2000/01/rdf-schema#label;FileFormat_s=http://www.nationalarchives.gov.uk/PRONOM/fmt/100]
[FileFormatfileFormat_FormatIdentifier_s=http://data.nationalarchives.gov.uk/formatregistry/id/FormatIdentifier/FI-6ffaad09c30216c38c8888e6d6757d2f;FileFormatfileFormat_FormatIdentifier_o=http://data.nationalarchives.gov.uk/formatregistry/def/FormatIdentifier;FileFormatfileFormat_FormatIdentifier_p=http://www.w3.org/1999/02/22-rdf-syntax-ns#type;FileFormat_s=http://www.nationalarchives.gov.uk/PRONOM/fmt/100]
[FileFormatfileFormat_FormatIdentifier_s=http://data.nationalarchives.gov.uk/formatregistry/id/FormatIdentifier/FI-6ffaad09c30216c38c8888e6d6757d2f;FileFormatfileFormat_FormatIdentifier_o="text/html";FileFormatfileFormat_FormatIdentifier_p=http://www.w3.org/2000/01/rdf-schema#label;FileFormat_s=http://www.nationalarchives.gov.uk/PRONOM/fmt/100]
[FileFormatfileFormat_FormatIdentifier_s=http://data.nationalarchives.gov.uk/formatregistry/id/FormatIdentifier/FI-93ba72d72dacb9a35f957af5ed69439c;FileFormatfileFormat_FormatIdentifier_o=http://data.nationalarchives.gov.uk/formatregistry/def/FormatIdentifier;FileFormatfileFormat_FormatIdentifier_p=http://www.w3.org/1999/02/22-rdf-syntax-ns#type;FileFormat_s=http://www.nationalarchives.gov.uk/PRONOM/fmt/100]
[FileFormatfileFormat_FormatIdentifier_s=http://data.nationalarchives.gov.uk/formatregistry/id/FormatIdentifier/FI-93ba72d72dacb9a35f957af5ed69439c;FileFormatfileFormat_FormatIdentifier_o="public.html";FileFormatfileFormat_FormatIdentifier_p=http://www.w3.org/2000/01/rdf-schema#label;FileFormat_s=http://www.nationalarchives.gov.uk/PRONOM/fmt/100]

MemoryStore
With limit 2:
[FileFormat_o="Hypertext Markup Language(4.01)";FileFormat_p=http://www.w3.org/2000/01/rdf-schema#label;FileFormat_s=http://www.nationalarchives.gov.uk/PRONOM/fmt/100]
[FileFormatfileFormat_FormatIdentifier_s=http://data.nationalarchives.gov.uk/formatregistry/id/FormatIdentifier/FI-6ffaad09c30216c38c8888e6d6757d2f;FileFormatfileFormat_FormatIdentifier_o=http://data.nationalarchives.gov.uk/formatregistry/def/FormatIdentifier;FileFormatfileFormat_FormatIdentifier_p=http://www.w3.org/1999/02/22-rdf-syntax-ns#type;FileFormat_s=http://www.nationalarchives.gov.uk/PRONOM/fmt/100]
[FileFormatfileFormat_FormatIdentifier_s=http://data.nationalarchives.gov.uk/formatregistry/id/FormatIdentifier/FI-6ffaad09c30216c38c8888e6d6757d2f;FileFormatfileFormat_FormatIdentifier_o="text/html";FileFormatfileFormat_FormatIdentifier_p=http://www.w3.org/2000/01/rdf-schema#label;FileFormat_s=http://www.nationalarchives.gov.uk/PRONOM/fmt/100]

I believe I understand what is going on.
Your LIMIT has no ORDER BY so returns two random results. Then your first select limits which ?FileFormat_s are legal.
An option for you could be to copy VALUES(?FileFormat_s){(<http://www.nationalarchives.gov.uk/PRONOM/fmt/100>)} inside your second select as well.

Thanks, I think your interpretation is correct, however should not the variable ?FileFormat_s be projected into the sub-select as a pre-bound value. If not how can the variable be projected into the sub-select without repeating the query that binds its value? The reason is that this overall query is greatly simplified: the preliminary query is more complex, and there are multiple sub-selects.

I usually use this method: https://rdf4j.org/javadoc/latest/org/eclipse/rdf4j/query/Operation.html#setBinding-java.lang.String-org.eclipse.rdf4j.model.Value-

@jeenbroekstra do you know how to simplify this
SELECT * WHERE {
        {
	        SELECT * WHERE {
			VALUES(?FileFormat_s){
			        (<http://www.nationalarchives.gov.uk/PRONOM/fmt/100>)
			}

			# .... some query here

		}
	}

	{
		VALUES(?FileFormat_p) {
		        (<http://www.w3.org/2000/01/rdf-schema#label>)
		}

    	        ?FileFormat_s ?FileFormat_p ?FileFormat_o .

	}

	UNION	{
		OPTIONAL{
			{
			        SELECT ?FileFormat_s ?FileFormatfileFormat_FormatIdentifier_s WHERE {
			                VALUES(?FileFormat_s){
                                	        (<http://www.nationalarchives.gov.uk/PRONOM/fmt/100>)
                                	}

					?FileFormat_s <http://data.nationalarchives.gov.uk/formatregistry/def/fileFormat.FormatIdentifier> ?FileFormatfileFormat_FormatIdentifier_s .

        		        }   LIMIT 1
			}

			VALUES(?FileFormatfileFormat_FormatIdentifier_p) {
			        (<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>)
			        (<http://www.w3.org/2000/01/rdf-schema#label>)
			}

			?FileFormatfileFormat_FormatIdentifier_s ?FileFormatfileFormat_FormatIdentifier_p ?FileFormatfileFormat_FormatIdentifier_o .
		}
	}
}

So that there is no need to have this twice:
VALUES(?FileFormat_s){
     (<http://www.nationalarchives.gov.uk/PRONOM/fmt/100>)
}

Currently it needs to be inside both of the subselects.

Thanks, I think your interpretation is correct, however should not the variable ?FileFormat_s be projected into the sub-select as a pre-bound value.

Unfortunately not. The SPARQL recommendation defines evaluation order as bottom-up, which means we can not inject pre-bound values into subselects (or indeed union clauses), as logically speaking the subselect is to be evaluated before the outer part of the query sets the value.
For what it's worth you're not the first to be frustrated by this.

If not how can the variable be projected into the sub-select without repeating the query that binds its value? The reason is that this overall query is greatly simplified: the preliminary query is more complex, and there are multiple sub-selects.

The only way I can think of is to manually replace the variable with the fixed value throughout the query, or using the API method that @hmottestad suggested above (I'll take a closer look at why it doesn't work in this case, it should as far as I know - the setBindings mechanism is intended to inject values for every occurrence of a variable throughout the query).
For what it's worth, and I realize I say this unburdened by any knowledge of your particular domain or use case, the query you're trying to do looks more complex than it needs to be. If I understand it correctly, the query is intended to retrieve for a particular file format, its label, and if present its fileformat identifier and the label of that identifier. Couldn't this far simpler query achieve the same thing:
SELECT *
WHERE {
       VALUES(?FileFormat_s){  (<http://www.nationalarchives.gov.uk/PRONOM/fmt/100>) }
       ?FileFormat_s rdfs:label ?fileFormat_o .
       OPTIONAL {
                  ?FileFormat_s  <http://data.nationalarchives.gov.uk/formatregistry/def/fileFormat.FormatIdentifier> ?FileFormatfileFormat_FormatIdentifier_s .
                  OPTIONAL {
                      ?FileFormatfileFormat_FormatIdentifier_s  rdfs:label ?FileFormatfileFormat_FormatIdentifier_o .
                   }
        }
}

@hmottestad in looking at why using setBinding didnt' work for you, I couldn't reproduce the problem, it seems to work on my machine at least (testing with rdf4j 3.1.3). I've put a gist together:
https://gist.github.com/jeenbroekstra/5c3b9bb29bb474f70e1546ffba373f15
As I understand it, the outcome of that test is what we would expect (5 solutions in total). Could you take a quick glance and see if/how it's different from your attempt?

Here's a gist with some code that loads the two test files into a native store, and executes the original query minus the VALUES clauses, instead using setBinding to inject the value: https://gist.github.com/jeenbroekstra/96d8c05ec4bbccbde3d329a227a1e6f0
@hmottestad I tried to reproduce the problem you were having with this but as far as I can tell it works as expected: it produces 5 results. Am I overlooking something? Was your test scenario different? Or did I misunderstand your comment?

:)
Just noticed my typo: 			tupleQuery.setBinding("FileFormat_s", SimpleValueFactory.getInstance().createIRI("http://www.nationalarchives.gov.uk/PRONOM/fmt/100>)"));
Forgot the remove the >) from the end there.
That's why it wasn't working for me :P
Thanks @jeenbroekstra !

The example query was much reduced from a 'typical' query that is generated for this particular problem.
The problem that the query is solving is visiting nodes in a graph, then visiting adjacent nodes, and so on, but not indefinitely.
The first part of the query assemblies the 'start nodes' and picks up any datatype properties of those nodes.  The UNIONs then visit adjacent nodes, as defined by objectProperty edges, and then repeat the same. However to avoid a result-set explosion we only want to pick up a limited number of adjacent nodes, hence the LIMIT clause, but we want a count of the total number of nodes that were available, hence the aggregate select. We also limit how far removed from the original nodes we travel.
I have attached a fully formed query: please use coffee or something stronger before viewing this query as it might cause you consternation. Let me say before you look at it, RDF4J performs incredibly well and can easily handle queries of this complexity.
Since these queries are autogenerated it is possible to organize them in any, more optimal, way. However, as I saw these queries as typical nested-joins, I had not anticipated a query problem. I could even perform the graph iteration in code, but 'why buy a dog (SPARQL) then bark (Java) yourself':-)
Open to any suggestions.
BTW any easy access to the query plan that RDF4J is using in these cases?
Actual Query.txt

We have an issue tracking work on making the query plans available: https://github.com/eclipse/rdf4j/issues/2044
Still in the design phase though.
I think it's great you are getting good performance out of RDF4J. I usually prefer somewhat complicated queries to writing Java code. Sometimes I will run into performance bottlenecks, at which point I may end up splitting a query into multiple queries and feeding the results from one into the next.

Thanks @peterjohnlawrence, both for the kind words and for the background on why your queries are formed the way they are. That query is quite a beast, I must say!
I'm afraid that the conclusion is that if you need to inject values into your query via a VALUES clause, you will have to make sure that this happens in multiple places so that the bindings are in scope. In particular, patterns that change the scope are UNION clauses, subselects, as well as any group of patterns that you put in curly braces.
That being said, the eventual outcome of a query will likely not be different if you put the values clause in the outer scope, except in some very specific corner cases: one such case is your example, where a LIMIT is used to drop part of the solutions in the inner query. Another example would be if you did something like a BIND in your inner query, using the VALUES clause variable as the input.

Thanks for all of the clarifications


New version: RustDesk.RustDesk version 1.2.3-2

Created by 🥟 Dumplings.
Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Installer Verification Analysis Context Information:
Installer https://github.com/rustdesk/rustdesk/releases/download/1.2.3-2/rustdesk-1.2.3-2-x86-sciter.exe
Scan request id: '28c64882-b582-4986-b12c-32d8d3f71d90'

Installer https://github.com/rustdesk/rustdesk/releases/download/1.2.3-2/rustdesk-1.2.3-2-x86_64.exe
Scan request id: 'deee1fc9-49f7-4e66-b491-b1060bf5c5d9'
Error information: BlockingDetectionFound
4/7/2024 11:00:17 PM

(Automated response - build 876.)

This might be due to a network block of data centers, to prevent automated downloads.
(Automated response - build 876.)


Missing 2d_bbox folder while converting to KITTI format

Hi @artzha
Thank you for releasing the coda-models scripts. This issue is a followup of coda-devkit#20. The following error showed up when I ran the CODa converter: python tools/create_data.py coda command:
Start converting ...
  0%|                                                                     | 0/19511 [00:00<?, ?it/s]
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "/home/abhinav/anaconda3/envs/coda11_3/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/home/abhinav/project/coda-models/tools/data_converter/coda_converter.py", line 358, in convert_one
    self.save_label(traj, cam_id, frame_idx, file_idx)
  File "/home/abhinav/project/coda-models/tools/data_converter/coda_converter.py", line 482, in save_label
    twod_anno_dict = np.loadtxt(twod_anno_path, dtype=int).reshape(-1, 6)
  File "/home/abhinav/anaconda3/envs/coda11_3/lib/python3.8/site-packages/numpy/lib/npyio.py", line 1356, in loadtxt
    arr = _read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
  File "/home/abhinav/anaconda3/envs/coda11_3/lib/python3.8/site-packages/numpy/lib/npyio.py", line 975, in _read
    fh = np.lib._datasource.open(fname, 'rt', encoding=encoding)
  File "/home/abhinav/anaconda3/envs/coda11_3/lib/python3.8/site-packages/numpy/lib/_datasource.py", line 193, in open
    return ds.open(path, mode, encoding=encoding, newline=newline)
  File "/home/abhinav/anaconda3/envs/coda11_3/lib/python3.8/site-packages/numpy/lib/_datasource.py", line 533, in open
    raise FileNotFoundError(f"{path} not found.")
FileNotFoundError: ./data/coda_original_format/2d_bbox/cam0/0/2d_bbox_cam0_0_451.txt not found.

The converter.py file looks for the 2D annotations file, but could not find inside the 2d_bbox folder.
I appreciate you letting me know that you are able to share this 2d_bbox folder via a link.
Would it be possible to share the 2d_bbox folder here? This would allow me to download the folder and use for our research. I once again thank you for your timely help and assistance.

Hi @abhi1kumar, Thanks for raising this issue! We have uploaded a zip file containing the 2d_bbox folder to our TACC data distribution server. You may download the zip file from this url. Once unzipping, you should see a folder 2d_bbox with the following directory structure.

Hi @artzha
Thank you once again for sharing. Unfortunately, I still encounter the same error since ./data/coda_original_format/2d_bbox/cam0/0/2d_bbox_cam0_0_451.txt.
I quickly ran the number of files inside the cam0 folder with the command find * -type f | wc -l.

It reports a total of 6592 files.
My guess is that the converter script expects some more 2d_bbox which is absent in the current upload. Would you mind double check if there are only 2d_bbox txt files needed for conversion.

I uploaded a more updated version of 2d_bbox.zip file to the same location. I haven't checked each file manually, but I can confirm it contains same number of 2d_bbox as 3d_bbox files. You should see 27876 files under each label directory.

I uploaded a more updated version of 2d_bbox.zip file to the same location. I haven't checked each file manually, but I can confirm it contains same number of 2d_bbox as 3d_bbox files. You should see 27876 files under each label directory.

Thank you once again. The error is fixed now. I deeply appreciate your timely help and assistance with your awesome CODa dataset.


menus/dropdown respect theme

First commit is a no-op refactor.
Night

Legacy Day

New Day

Actually, gonna tweak the design...

Actually, gonna tweak the design...

Ah, I'll hold off review then. (Looked good from what I saw)

Actually, going to re-open as is. I thought the contrast of the "hovered" item was a little intense, so I experimented with using the style from our "plain" buttons, but because the Menu bg is actually a little darker than the default panel there wasn't enough contrast IMO.
The better solution is probably somewhere in the middle, but I'm going to punt and just opt for "too much" contrast for now rather than too little.
Here's what that would have looked like FYI:

Too much contrast SGTM -- I have to squint at those screenshots to see the active line.
LGTM, merging


Pixie SVG does not support clipPath

I was trying to draw one of my SVGs, but got the following error:
Error: unhandled exception: Unsupported SVG tag: clipPath [PixieError]

Simple test image that generates the error:
<?xml version="1.0" encoding="UTF-8"?>
<svg clip-rule="evenodd" fill-rule="evenodd" version="1.1" viewBox="0 0 140 140" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
<rect x="20" y="20" width="100" height="100"/>
<clipPath id="a">
 <rect x="20" y="20" width="100" height="100"/>
</clipPath>
<g clip-path="url(#a)">
 <rect x="40" y="40" width="100" height="100" fill="#f00"/>
</g></svg>

I don't know if the current plan is to use Cairo for SVGs, but I thought I would create an issue anyways.
How hard would it be implementing clipPath given that we already have masks in the drawing library?

Definitely! You guys are heroes for building this!
I have read the svg.nim to figure out how it was built, but I haven't understood it well enough yet to try to implement clipPath myself. Will try to wrap my head around it and give it a go.


”Nenciulești”, ”Popești”, ”Țepești” are listed in the drop-down menu

Description:
When user writes ”Nenciulești”, ”Popești”, ”Țepești” the locations appear in the drop-down menu next to the comune and the county which is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Nenciulești"

Expected results
The location appears in the drop-down menu as "Sat Nenciulești, VÂLCEA (Tetoiu)".

Step 3
Write in the search bar "Popești"

Expected results
The location appears in the drop-down menu as "Sat Popești, VÂLCEA (Tetoiu)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Write in the search bar "Țepești"

Expected results
The location appears in the drop-down menu as "Sat Țepești, VÂLCEA (Tetoiu)".


"Back to article link" from comitee wiki when permission is denied, doesn't work

What kind of an issue is this?

Bug report

What is the expected behaviour?
The "back to article" button should take the user the previous page: https://online.ntnu.no/wiki/ ?
What is the current behaviour?
The "back to article"-button just refreshes the page.

How do you reproduce this problem?
When entering wiki for comitees, and permission is denied (because not member of a comitee?),and clicking "back to article"

Other information

This is an issue with django-wiki. I opened an issue for the project here: https://github.com/django-wiki/django-wiki/issues/914

This has been fixed in django-wiki and was released in version 0.4.0.
Should be able to just upgrade from django-wiki 0.3.1 to 0.4.x.
However, the upgrade will be required for Django 2.
The upgrade to Django 2 has been started at #2156

We upgraded to Django 2 and Django Wiki <IP_ADDRESS> on November 19th.
This should be fixed now 😄


Refactored WaitForSingleObject and CloseHandle

Every handle now has a structure containing the function pointers used for cleanup after wait, file descriptor retrieval and resource cleanup
WaitForSingleObject and WaitForMultipleObjects now use function pointer to get file descriptors to wait on and clean up after wait

@akallabeth I like your patch and I think it's the first step to handle all winpr operations this way (read, writes).
Just one remark: we would save space and CPU time if the callbacks were in a static structure, and the handle struct would have a pointer to structure. I don't think we need to have each operation in the handle struct, but just a pointer to the set of operations.

+1 much cleaner now \o/


path separator issue

https://github.com/pythongosssss/ComfyUI-WD14-Tagger/blob/0701cab324c32d46c018dc8324c3e7fe869b2cbe/pysssss.py#L57
I think it should be / instead of \
And other path related code, too.

Updated in f16ea4b6e0445b901bb1c19d8399674a08eb9f7d
I think there were only 2 instances of it (that I spotted anyway)


V0p3p10b dev01

Codecov Report
Base: 85.34% // Head: 46.15% // Decreases project coverage by -39.18% :warning:

Coverage data is based on head (65d97a1) compared to base (25e11d9).
Patch coverage: 62.85% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           master      #99       +/-   ##
===========================================
- Coverage   85.34%   46.15%   -39.19%
===========================================
  Files           4        4
  Lines         423      442       +19
===========================================
- Hits          361      204      -157
- Misses         62      238      +176

Impacted Files
Coverage Δ

src/compute.jl
42.85% <ø> (-51.13%)
:arrow_down:

src/data_wrangling.jl
25.49% <45.00%> (-37.37%)
:arrow_down:

src/API.jl
69.73% <86.66%> (-29.58%)
:arrow_down:

src/IndividualDisplacements.jl
50.00% <0.00%> (-25.00%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Don't panic

Letting panics leak through the package boundary should be the last resort solution. None of the servermux conditions that lead to panic are unrecoverable.
See:

https://github.com/golang/go/wiki/CodeReviewComments#dont-panic
https://golang.org/doc/effective_go.html#errors
https://golang.org/doc/effective_go.html#panic

Thx for contributing.


Reporting / Traffic (+dashboard widget): 24H format alternative

Hi
just https://github.com/opnsense/core/commit/3d3810b42d1664087594ecc8fadc43568056220c alternative
uses internal time formatting instead of additional moment use
don't think it's faster - just fewer lines of code
thanks!

@kulikov-a thanks!

@AdSchellevis  oops. I didn't have time to add minutes to the widget (
sorry, can you add it?
Thanks!!

@kulikov-a done, I was a bit too eager it seems 🙃

my bad. hurried up and sent a commit for traffic.volt thinking that it was for a widget. had to do another one. thanks again!)


failed to connect 3:-9816 (Firebase Realtime Database IoS App)

Does anyone know what could be the cause of this error? I suddenly just started getting this error. Let me know if you need any more info:
2021-06-04 15:58:25.475356-0500 Fibrus[45315:314605] Connection 3: received failure notification
2021-06-04 15:58:25.475596-0500 Fibrus[45315:314605] Connection 3: failed to connect 3:-9816, reason -1
2021-06-04 15:58:25.475685-0500 Fibrus[45315:314605] Connection 3: encountered error(3:-9816)
2021-06-04 15:58:25.479376-0500 Fibrus[45315:314605] Task .<1> HTTP load failed, 0/0 bytes (error code: -1200 [3:-9816])

This may be a transient networking issue. Please retry.  If it is still occurring, please follow up with Firebase Support. It's not likely to be an SDK issue.


fix: text cut off phenomenon on some Android devices like OPPO, Xiaomi and etc

Summary: Fix text-cutoff phenomenon in non-Fabric mode on Android device, like  #15114, #29259 and many other similar issues that not fixed, and onTextLayout with wrong TextLayout params.
The text-cutoff phenomenon is fixed in native side with a proper layout procedure rather than making a work-around in JavaScript side.
The TextLayout params for onTextLayout callback will be fixed to offer reasonable x and y for each line, especially for RTL languages like Arabic. This problem is shown below.

Changelog:

[ANDROID] [FIXED] - Fix Text cutoff problem in non-Fabric mode.
[ANDROID] [FIXED] - Fix TextLayout params of onTextLayout callback.

Test Plan:
It has been tested on many devices to make sure that the problems are fixed and Text component can work better than that of old version.
The devices are: Pixel 5 Android 13, Xiaomi 10 Pro Android 10, Xiaomi 12 Android 12, Vivo X9L  Android 7.1.2, Vivo Y85A  Android 8.1, Oppo Reno8 Android13, Oppo A3 Andrroid 10, Oppo R9s Android 6.0.1, Oppo R5m  Android 5.1 and Huawei Nova2s Harmony 2.0.
Next two cases on Pixel 5 and Xiaomi 10 Pro wil be shown for proving the effect.
Xiaomi 10 Pro
You could find that text-cutoff problem is well fixed from the screeshots of Xiaomi 10 Pro. And the fixed version works better than the old version on Pixel 5, because the fixed version offers better onTextLayout callback. The evidence will be presented in the next section.

Old version

There are many texts cut off.

Fixed version

No text cutoff phenomenon and all text are better than the old version.
Pixel 5
Now cases for onTextLayout callback will be presented in this section.

Old version

The x and y of all the lines is not in correct place.

Fixed version

Work better!

Interesting, thanks for sending this.
Does this also fix #25481? That's the issue that #15114 was closed as a duplicate of.

Interesting, thanks for sending this.
Does this also fix #25481? That's the issue that #15114 was closed as a duplicate of.

Yes, I just tested this issue on the OnePlus device with Roboto font family. I reproduced it and it proved to be fixed with this pr.
The issue #25481 can be reproduced when changing system default font family to Roboto, like the following picture.

But the same operation don't reproduce the problem.

Anybody knows what's going on with this pr?

What's wrong with this PR? @facebook-github-bot

Do you know what is happening about this PR? @cipolleschi

Hi, what do you mean with "what is happening about this PR?" Are you seeing something unusual or is it just taking longer than usual to get reviewed?

Hi, what do you mean with "what is happening about this PR?" Are you seeing something unusual or is it just taking longer than usual to get reviewed?

It simple means that there is no any information or any state change. So I cannot figure out if I should do something.

@jcdhlzq Ok, thanks. I'll try to push it forward!

@mdvacca got back to me offline with the history that we moved away from background component based measurement because of both performance and thread safety challenges.
So, I don’t think we’re going to be able to accept this solution.

could you please provide a  work-around ?


add --no-sandbox to chrome in karma

Coverage remained the same at 37.489% when pulling 358d6ed6f18dd0a9e8899612d34498e897288287 on embbnux:feature/update-karma-config into c685f06ab2f51c2e3acac85a733855314d68dfce on ringcentral:master.

Something went wrong. Investigate!

Something went wrong. Investigate!


Draft and hull specs/attributes

Include slide for changing fulfilled tank volume.

Double check calculations and push master when done.

I took the liberty to push to master even before everything is OK. That is because I have fixed countless bugs, and everything seems to be working at least as well as before.
I have introduced a small debug tool under examples: https://shiplab.github.io/vesseljs/examples/PX121_calculations.html
Ixwp and Iywp are still a long way off. But as far as I can see, all other values look quite reasonable. I will of course continue debugging, and it will be interesting to have @MrEranwe 's work on #11 as another debug tool.

Hey Elias,
I'm going to start working on it now. I hope I have something finished
before the end of today.
Regards,
Alejandro
On Tue, Oct 17, 2017 at 12:56 PM, Elias Hasle<EMAIL_ADDRESS>wrote:

I took the liberty to push to master even before everything is OK. That is
because I have fixed countless bugs, and everything seems to be working at
least as well as before.
I have introduced a small debug tool under examples:
https://shiplab.github.io/vesseljs/examples/PX121_calculations.html
Ixwp and Iywp are still a long way off. But as far as I can see, all other
values look quite reasonable. I will of course continue debugging, and it
will be interesting to have @MrEranwe https://github.com/mreranwe 's
work on #11 https://github.com/shiplab/vesseljs/issues/11 as another
debug tool.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/shiplab/vesseljs/issues/3#issuecomment-337194986, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ANRkD_fpSIZdNUgnreBPBw-C-dbcIkj6ks5stIfjgaJpZM4PvDny
.

Status for calculations run on the block case (#11):
The calculation of wetted area ("As") does not yet account for end caps. But even when adding two times the calculated projected area (which should give an upper bound, at least approximately), the number is still much lower than the manually calculated wetted area. This suggests that there is at least one other error too, either in the calculation of wetted area or in that of projected area.
The calculation of center of bouyancy ("Cv") is broken, and returns (0,0,0).
Waterplane Ix and Iy (Ixwp, Iywp) are off by a couple orders of magnitude.
Cb is way off. I expected exactly 0.5 (not accounting for trim), and it returns 0.99725.
Submerged volume ("Vs") does not align with the assumed displacement. A bug here is probably causing the Cb problem too.
The rest of the calculated values are within the margin expected from the difference in accounting or not accounting for trim.
I will look into the problems, and try to solve them during this week.

Hey Elias, don't worry about the values. The weight is not right and it
gives a not valid T and therefore, all the values that depend on it. I'm
working on are wrong it,
Regards,
Alejandro
On Wed, Oct 25, 2017 at 4:30 PM, Elias Hasle<EMAIL_ADDRESS>wrote:

Status for calculations run on the block case (#11
https://github.com/shiplab/vesseljs/issues/11):
The calculation of wetted area ("As") does not yet account for end caps.
But even when adding two times the calculated projected area (which should
give an upper bound, at least approximately), the number is still much
lower than the manually calculated wetted area. This suggests that there is
at least one other error too, either in the calculation of wetted area or
in that of projected area.
The calculation of center of bouyancy ("Cv") is broken, and returns
(0,0,0).
Waterplane Ix and Iy (Ixwp, Iywp) are off by a couple orders of magnitude.
Cb is way off. I expected exactly 0.5 (not accounting for trim), and it
returns 0.99725.
Submerged volume ("Vs") does not align with the assumed displacement. A
bug here is probably causing the Cb problem too.
The rest of the calculated values are within the margin expected from the
difference in accounting or not accounting for trim.
I will look into the problems, and try to solve them during this week.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/shiplab/vesseljs/issues/3#issuecomment-339349264, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ANRkDyufSrJ2wlPE9LNAOpKj50INVFGeks5sv0X8gaJpZM4PvDny
.

Check out my new comparison file in the dev branch. It compares the same
values, calculated from the same draft (even if it is the wrong draft, and
doesn't account for trim).
None of the "manual" calculations are really hand-made, but they are made
from simple formulas tailored to the triangular prism ship that you
specified.
2017-10-27 8:44 GMT+02:00 Vicente Alejandro Iváñez Encinas <
<EMAIL_ADDRESS>
Hey Elias, don't worry about the values. The weight is not right and it
gives a not valid T and therefore, all the values that depend on it. I'm
working on are wrong it,
Regards,
Alejandro
On Wed, Oct 25, 2017 at 4:30 PM, Elias Hasle<EMAIL_ADDRESS>wrote:

Status for calculations run on the block case (#11
https://github.com/shiplab/vesseljs/issues/11):
The calculation of wetted area ("As") does not yet account for end caps.
But even when adding two times the calculated projected area (which
should
give an upper bound, at least approximately), the number is still much
lower than the manually calculated wetted area. This suggests that there
is
at least one other error too, either in the calculation of wetted area or
in that of projected area.
The calculation of center of bouyancy ("Cv") is broken, and returns
(0,0,0).
Waterplane Ix and Iy (Ixwp, Iywp) are off by a couple orders of
magnitude.
Cb is way off. I expected exactly 0.5 (not accounting for trim), and it
returns 0.99725.
Submerged volume ("Vs") does not align with the assumed displacement. A
bug here is probably causing the Cb problem too.
The rest of the calculated values are within the margin expected from the
difference in accounting or not accounting for trim.
I will look into the problems, and try to solve them during this week.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/shiplab/vesseljs/issues/3#issuecomment-339349264,
or mute
the thread
<https://github.com/notifications/unsubscribe-auth/
ANRkDyufSrJ2wlPE9LNAOpKj50INVFGeks5sv0X8gaJpZM4PvDny>

.

—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/shiplab/vesseljs/issues/3#issuecomment-339887229, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AQaT-xT_W3BOrujWOpxyUoALlDyrW6gRks5swXvNgaJpZM4PvDny
.

Now it almost passes the blockCase_compare_json.html test. Only the z
component of the center of submerged volume deviates signfificantly from
the hand-calculated value. It looks like more zero-offset areas are sent
to the patchColumnCalculation function than I would expect. (Potential
bug.)
I have (temporarily) introduced simpler volume and area calculations
during debugging, and will try to reintroduce the bilinear patches, as
they give higher accuracy when they work (at least for the volume, where there is a siple analytical solution to the integral).


AsyncEngineDeadError with QUEN

Hello,
I am trying to test Qwen/Qwen-7B-Chat with openai.api_server and this error shows up:
'''
vllm.engine.async_llm_engine.AsyncEngineDeadError: Task finished unexpectedly. This should never happen! Please open an issue on Github. See stack trace above for the actual cause
'''
The Traceback:
Traceback (most recent call last):
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 426, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/fastapi/applications.py", line 1106, in call
await super().call(scope, receive, send)
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/starlette/applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in call
raise exc
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/starlette/middleware/cors.py", line 83, in call
await self.app(scope, receive, send)
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in call
raise exc
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in call
raise e
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in call
await self.app(scope, receive, send)
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/starlette/routing.py", line 718, in call
await route.handle(scope, receive, send)
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/fastapi/routing.py", line 274, in app
raw_response = await run_endpoint_function(
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/vllm/entrypoints/openai/api_server.py", line 300, in create_chat_completion
async for res in result_generator:
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 436, in generate
raise e
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 430, in generate
async for request_output in stream:
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 70, in anext
raise result
File "uvloop/cbhandles.pyx", line 63, in uvloop.loop.Handle._run
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 37, in _raise_exception_on_finish
raise exc
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 32, in _raise_exception_on_finish
raise AsyncEngineDeadError(
.

do you find the reason? i met the same problem

met the same problem, any solutions?


Change the way we do static properties

Coverage decreased (-0.2%) to 70.255% when pulling a013eb80afd6d872eb0993a429115a4498aefd09 on static into a62be28b90ef16e04cb3b69888bd5404beab5241 on master.

Coverage decreased (-0.5%) to 69.868% when pulling 4c05ea16681d9262095f64ae0547e78736540fd3 on static into a62be28b90ef16e04cb3b69888bd5404beab5241 on master.

Coverage decreased (-0.5%) to 69.868% when pulling 4c05ea16681d9262095f64ae0547e78736540fd3 on static into a62be28b90ef16e04cb3b69888bd5404beab5241 on master.


Default arguments transform is not equivalent

Example:
function example (x) {
  x = x || 1;
  return x;
}

example(0); // --> 1

But the transformed version:
function example(x=1) {
  return x;
}

example(0); // --> 0

This same issue also applies to the transform for a = a ? a : 1

That's true. That's one of the several corner cases where Lebab goes wrong. It's simply following heuristics, and these aren't 100% reliable.
We could exclude these two patterns from the transform, but that would make the transform pretty useless - while x = x || 1 is quite common pattern, x = x === undefined ? x : 1 is pretty rare one.
I guess the best I can do is to link this issue from the main page, similarly to #107, to make people more aware of the potential pitfalls.

Thanks for bringing this up.
I've restructured README to emphasize which transforms are "safe" and which are "unsafe", like this default-param transform.


mathcomp: 2.0.0 -> 2.1.0

Various adaptations to mathcomp 2.1.0
Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

@vbgl successfully tested on https://github.com/coq-community/coq-nix-toolbox/pull/176 (for real this time thanks to @Zimmi48 )
To sum up, once Analysis/classical and Jasmin/word are ported, we could make MathComp 2 the default but currently keeping 1 as default.

Thanks!


Add menu entry swaps for Gourd tree and Storage unit in Xeric

Usage
Swap Pick with Pick-lots.
Swaps chest option Shared while holding shift to Private.
Examples

Needs rebase


Add fly.imports key to package.json config

Pulled from #233
For the sake of reusable, private plugins:
{
  "fly": {
    "imports": [
      "./build/custom-task-one.js",
      "./build/custom-task-two.js",
      "./build/custom-task-three.js"
    ]
  }
}

// build/custom-task-one.js
module.exports = function () {
  this.plugin('plugOne', {every: 0}, function * (files, opts) {
    // custom stuff
  })
}

// flyfile.js
yield this.source('src').plugOne({hello: 'world'}).target('dist');

Open to alternative names for the imports key.
The same functionality can be achieved using npm link (or npm install and file:./ as a dependency), but this requires that each plugin has its own package.json file.

You can group multiple plugins in the same "package" (example). However, this method also doesn't scale well & becomes quite messy to manage.

@lukeed love this!!! configuration based,
imports is fine, if i may suggest also may call themlocal-extensions,  local-plugins, local-tasks or just omit the local part

@devmondo thanks!
As mentioned in #233, I want to stay away from calling it plugins only because it implies that you can declare public packages there too. So, there, I used localPlugins

@lukeed awesome, i noticed you call them above task it is good too and i agree with you about your concern, i think require too is a good candidate this goes along with Node convensions

i noticed you call them above task it is good too

@devmondo sorry, what do you mean?

// build/custom-task-one.js

Oh, sorry. I meant custom-plugin-*.js. This new keys is only for plugins.
Tasks can already be shared easily from within a flyfile.
exports.default = function * () {
  //
}

exports.styles = require ('./tasks/styles')

exports.scripts = require ('./tasks/scripts')

man lovely!!! i cant wait for this to be released

The key is called requires.
{
  "fly": {
    "requires": [
      "./build/custom-plugin-one.js",
      "./build/custom-plugin-two.js",
      "./build/custom-plugin-three.js"
    ]
  }
}

awesome!!!!!

@devmondo You can now access this by installing the latest beta release.

@lukeed  it is working perfectly!!!!! thank you very much

@devmondo Yippee! 🙌🏼


fix: dosc issues

:tada: This PR is included in version 0.11.0-beta.42 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Bump copyright year in footer

Description
This PR bumps the copyright year in the footer.
Happy new year! 🎉
Note
This PR should only be merged once a change to the content of the website was done.

@thomasaugsten You merged this change without other changes been done to the page. Also, the page was not updated due to #32.

Deployment is a manual process for this page

@thomasaugsten
Okay so you will deploy this change manually? Don't forget the change from #30.
The README should be updated, to reflect this.
Could you comment on #32 whether it's planned to change this?


Fixed Verilog emission of andr, orr, and xorr

#356

Worth discussing whether we should remove andr and orr entirely from spec.

I think removing andr and orr makes sense.
Note, there's a much more efficient way to emit these in Verilog: just prefix the name of the signal with the operator, and you've got a reduction.
http://www.asic-world.com/verilog/operators2.html


produce kedacore/build-tools image in GitHub Action

Signed-off-by: Zbynek Roubalik<EMAIL_ADDRESS>

FOSSA failed due to problems on FOSSA server side:
FATAL Error during upload: Error response from API: <html>
<head><title>502 Bad Gateway</title></head>

Commit is correctly signed


Istio URI routing is not working with tls

Bug description
Hello,
We are using istio 1.1.7 and kubernetes 1.14.2 and we deploy one application with HTTPs enable and certificates are inside the pods itself and it is working fine, we are using tls "PASSTHROUGH" concept to process our https requests.
But issues come when we are applying "uri" based routing on tls in virtualservice.
Below are the things that we want our application will do:
test.example.com/check1 -> call svc-infra-nodehealthcheck-1 service
test.example.com/check2 -> call svc-infra-nodehealthcheck-2 service

Ingress Gateway:
kubectl create -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: dynamic-gateway-1
  namespace: istio-system
spec:
  selector:
    istio: ingressgateway
  servers:
  - hosts:
    - test.example.com
    port:
      number: 443
      name: https
      protocol: HTTPS
    tls:
      mode: PASSTHROUGH
EOF

Virtual Service:
kubectl create -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: vs-test-web
  namespace: istio-system
spec:
  hosts:
  - test.example.com
  gateways:
  - dynamic-gateway-1
  tls:
  - match:
    - uri:
        prefix: /check1
    - port: 443
      sni_hosts:
      - test.example.com
    route:
    - destination:
        host: svc-infra-nodehealthcheck-1-http.ns-beta.svc.cluster.local
        port:
          number: 9101
  - match:
    - uri:
        prefix: /check2
    - port: 443
      sni_hosts:
      - test.example.com
    route:
    - destination:
        host: svc-infra-nodehealthcheck-2-http.ns-beta.svc.cluster.local
        port:
          number: 9101
EOF

So uri section is not working in the virtual service.
but when we try http instead of tls with normal http request these uri matches works.
Version (include the output of istioctl version --remote and kubectl version)
istio version 1.1.7

Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.0", GitCommit:"641856db18352033a0d96dbc99153fa3b27298e5", GitTreeState:"clean", BuildDate:"2019-03-25T15:53:57Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.2", GitCommit:"66049e3b21efe110454d67df4fa62b08ea79a19b", GitTreeState:"clean", BuildDate:"2019-05-16T16:14:56Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}

How was Istio installed?
Istio  is installed with mtls disabled, we manually enabled mtls.
Environment where bug was observed (cloud vendor, OS, etc)
ID=coreos
VERSION=2079.4.0
VERSION_ID=2079.4.0
BUILD_ID=2019-05-15-0808
PRETTY_NAME="Container Linux by CoreOS 2079.4.0 (Rhyolite)"
ANSI_COLOR="38;5;75"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://issues.coreos.com"
COREOS_BOARD="amd64-usr"

So what we are missing here?
Is URI based routing won't work in TLS ?
Thanks in advance,
Ronak Pandya

TLS "PASSTHROUGH" mode and URI-based routing are mutually exclusive. URIs are encrypted as part of HTTPS traffic which is opaque to the ingressgateway in "PASSTHROUGH" mode.
If you want to use URI-based routing you should allow ingressgateway to perform TLS-termination for you (e.g. by using "SIMPLE" TLS-mode), otherwise you're limited to "virtual host" based routing only (which is supported via SNI feature of TLS).


S3.ListObjects returns IsTruncated as true with a nil NextMarker

I've done a couple of calls on a bucket I have using different prefix searches. The IsTruncated version is returning true and when I inspect the NextMarker the value is nil. There are prefix searches I'm doing where I know that the return value is < 1000, but IsTruncated still returns true. Searches returning < 1000 seem to work fine.

Delimiter is not specified in the above mentioned requests. According to the AWS documentation, NextMarker is only returned from the server when delimiter is specified. This seems to be working consistently with the API documentation.
Feature Request: Always fill in NextMarker when IsTruncated is true.

@kshinn our plan is to always return the API response as provided by the service at the low-level clients. This provides a more consistent interface that reflects all AWS documentation (including our own, which is generated from service documentation) and won't break if the underlying API makes subtle adjustment to their own return values. I would recommend opening a thread on the Amazon S3 forums to request feature support from the API itself.
As a sidenote, a lot of this complexity will go away (or at least hidden) once pagination support (#58) is added, since the SDK will be able to correctly manage this logic for you.

@lsegal This makes sense. I figured that was the intent. In that case, this is not an issue and can be closed. Looking forward to pagination!

Thanks, I am too! :)


Expected a valid shop query parameter

I was trying to finish the tutorial with instructions. So after I redirect the user to the edit products page I am facing this error inside of admin UI.

Expected a valid shop query parameter

The main page of the app still works correctly.
Specifications

Browser: Chrome
Operating System: Windows 10

Thanks for pointing this out @aburak256, you should be able to navigate properly if you add a ClientRouter to your app, which is one of the next steps in that page.
We'll rearrange the steps so they don't lead to an error scenario.

This tripped me up as well...
The redirect using ?shop= should probably be mentioned earlier also - https://shopify.dev/tutorials/build-a-shopify-app-with-node-and-react/build-your-user-interface-with-polaris#add-shopify-app-bridge

@paulomarg This appears to be ineffective. The app's initial page works fine, but when you navigate to the navigation link, it throws an error message saying "Expected a valid shop query parameter" in the app.

Furthermore, even though I clicked on "Tab 2," the active navigation tab is still set to "Tab 1."
And I have added a ` component already.

@paulomarg This appears to be ineffective. The app's initial page works fine, but when you navigate to the navigation link, it throws an error message saying "Expected a valid shop query parameter" in the app.

Furthermore, even though I clicked on "Tab 2," the active navigation tab is still set to "Tab 1."
And I have added a <ClientRouter /> component already.

This was no longer an issue with the cookie based approach described in the past examples.

Which is this cookie based approach you are referring to? Hopefully that can solve my problem.

@rahilwazir Which is this cookie based approach you are referring to? Hopefully that can solve my problem.

The tutorial is not updated and has been like this for a long while now.

@Theantipioneer This is the PR https://github.com/Shopify/shopify-app-node/commit/442b3cd05012fe88f577e3901c7f4a310033d2ba that removed the Cookie implementation.


Support for YAML translation files

Using JSON format for localization strings is not always convenient. It has problems with multiline strings, quotes, comments, etc. So it is common practice to use more human-friendly formats for documents that are frequently edited by hand.
I'm trying to set up next-translate to work with YAML files instead. Here are my current configs:
i18n.js
module.exports = {
  // ...rest of config
  loadLocaleFrom: (lang, ns) =>
    import(`./locales/${lang}/${ns}.yaml`).then((m) => m.default),
}

next.config.js
const withNextTranslate = require('next-translate')

module.exports = withNextTranslate({
    webpack: (config) => {
      config.module.rules.push({
        test: /\.ya?ml$/,
        type: 'json',
        use: 'yaml-loader',
      })

      return config
    },
)

Localization strings are loaded with the app as expected. However, when I edit any locales, changes don't get picked up by hot reloading. Page refresh doesn't help either. And only dev server restart helps.
Any ideas what could cause that behavior?

@xcrzx I think is not related to YAML, is related to this another issue: https://github.com/vinissimus/next-translate/issues/411 I close it because it seems to be duplicated. In principle it will be 1.1.0. Thanks for reporting it anyway.

@xcrzx I think is not related to YAML, is related to this another issue: https://github.com/vinissimus/next-translate/issues/411 I close it because it seems to be duplicated. In principle it will be 1.1.0. Thanks for reporting it anyway.