Write-error on swap-device

Running Raspian Buster on a RPi4 4GB.
Zram-config works brilliantly until one or two days of uptime, when dmesg gets flooded with "write-error on swap-devices". Here's a sample of the last few lines:
 [101734.099250] Write-error on swap-device (254:0:1134984) [101734.099300] Write-error on swap-device (254:0:1135016) [101734.099420] Write-error on swap-device (254:0:1135088) [101734.099473] Write-error on swap-device (254:0:1135104) [101734.099526] Write-error on swap-device (254:0:1135120) [101734.099577] Write-error on swap-device (254:0:1135136) [101734.099631] Write-error on swap-device (254:0:1135152) [101734.101754] Write-error on swap-device (254:0:1135448) [101734.339315] systemd-journald[119]: /dev/kmsg buffer overrun, some messages l                                                                                ost. [101734.794086] oom_reaper: reaped process 581 (rclone), now anon-rss:0kB, file-                                                                                rss:0kB, shmem-rss:0kB
I'm using the following (although default settings show the same error):
NAME       ALGORITHM DISKSIZE   DATA  COMPR  TOTAL STREAMS MOUNTPOINT /dev/zram1 lz4           450M 427.3M    92M  96.2M       4 /opt/zram/zram1 /dev/zram0 lz4           1.5G 271.7M 124.3M 128.5M       4 [SWAP]
I have deactivated the swap and am only using zram.

Same error 3B on raspbian without adding diskswap.
I add diskswap , and no error happens.
pi@raspberrypi:~ $ swapon
NAME       TYPE      SIZE   USED PRIO
/var/swap  file      1.8G     0B   -2
/dev/zram0 partition 1.3G 519.8M   75

Wasn't that obvious at first, this issue happens when mem_limit is full.
How to avoid this? What's the point of disk_size?

Maybe, This is just only lack of swap.

Is this still happening?

Aug 12 05:20:19 raspberrypi kernel: Read-error on swap-device (254:0:573072)
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.4.51-v7+ #1327 SMP Thu Jul 23 10:58:46 BST 2020 armv7l GNU/Linux

Post you ztab as likely your disk_size is to high a ratio to mem_limit or you have idle pages that are already compressed maybe or its a bug with lz4/zram.
To be honest the Ztab defaults are extremely optimistic as the original focus was logs and text logs are highly compressible.
Try 2x disk_size:mem_limit and if works maybe up to 2.5x disk_size:mem_limit or you have found a bug and should via Raspberry.

Configuration file for zram-swap-config (https://github.com/StuartIanNaylor/zram-swap-config) under GNU General Public License v3.0 license.
This configuration file is read by the zram-swap-config service
MEM_FACTOR = Percentage of available ram to allocate to all zram swap devices which is divided equally by swap_devices number
MEM_FACTOR=75
DRIVE_FACTOR = Virtual uncompressed zram drive size = estimate approx alg compression ratio an results and is the % of the Memfactor
DRIVE_FACTOR=210
COMP_ALG lz4 is faster than lzo but some distro's show compile and operation difference and in use lzo depending on binary may be faster
COMP_ALG=lzo-rle
SWAP_DEVICES = number of indivial drives sharing memeory provided by MEM_FACTOR each device support multiple streams 1 large drive is generally better
SWAP_DEVICES=1
SWAP_PRI = swap_priority for each drive 75 is a hig order preference and should be well above other swap drives
SWAP_PRI=75
PAGE_CLUSTER default page cluster is 3 which caches fetches in batches of 8 and helps with HDD paging, with zram mem 0 forces single page fetches
This can help reduce latency and increase performance
PAGE_CLUSTER=0
SWAPPINESS default swappiness is 60 but with increased performance of zram swap 80 garners overall performance gain without excessive load
Because zram uses compression load is created and even if minimal at intense load periods such as boot any extra load is unwanted
Unfortunately there is no dynamic load balancing of swappiness as with zram in general operation SWAPINESS=100 will garner performance benefit
If the overall load is reasonable at high load it will cause load to accumulate.
SWAPPINESS=90
If you check my repo there will also be a simple dynamic load branch based SWAPPINESS governor that will get of the hurdle of a static compromise on swappiness
sorry, mine is zram-swap-config.

I changed DRIVE_FACTOR=210 DRIVE_FACTOR=250.

NAME       ALGORITHM DISKSIZE  DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 lzo-rle       1.6G  828K   74B    4K       4 [SWAP]
This works well,sometimes error occurs like above.

I was going to say your swapping repos's.
Yeah its your drive factor probably as even if 210% seems like its struggling to compress.
Unless its lzo-rle as was going to say now we are on 5.4 its in LZO-RLE is in the kernel.
The is always deflate but boy that is slow (zlib) zstd is a trade off that does give higher compression with not so bad compress and decompress speed.
I have been trying for a while to get Raspberry to enable the write back cache which is a safe guard against this where very infrequently we will dump to SD if idle in zram for a long time.
Yeah I know it is writes but very low infrequent writes that you have control over, but for now that doesn't solve things.
Because resultant compression is just pure guesswork and that the compression level of input is totally dependent on what your software is doing, you are going to have to drop the drive_factor to as low as 125% as lower it becomes a bit pointless.
Do it in 20% steps and see how you go.
It is interesting you are seeing decompress errors though and maybe this is something introduced in 5.4 and lzo-rle as I have only had problems compressing the uncompressible, aka already compressed.

root@raspberrypi:/home/pi# zramctl
NAME       ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 zstd        820.5M   4K   58B    4K       4 [SWAP]
Maybe I was too greedy.

MEM_FACTOR=50
DRIVE_FACTOR=125
root@raspberrypi:/home/pi# zramctl
NAME       ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 zstd          547M   4K   58B    4K       4 [SWAP]

OK but that is only a 125% compression rate so build up.
The amount of ram you allocate prob should run in 75%
free -h should give you a good idea.
Its not greedy its just the unknown that a random app might hold a large chunk of compressed data in memory and be idle.
Its not that usual but it can happen and you just have to tune a bit by getting to a working the work up.
Is zstd working ok as never did try it as its not blazing fast like lzo-rle but guess maybe a good compromise

root@raspberrypi:/home/pi# free -h
total        used        free      shared  buff/cache   available
Mem:          875Mi       324Mi        77Mi        16Mi       473Mi       475Mi
Swap:         546Mi        18Mi       528Mi
As router, It seems fine.
I will try it and to increase mem_factor and ratio as desktop.

root@raspberrypi:/home/pi# zramctl
NAME       ALGORITHM DISKSIZE  DATA  COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 zstd          1.5G  2.1M 622.9K  1.1M       4 [SWAP]
root@raspberrypi:/home/pi# free -h
total        used        free      shared  buff/cache   available
Mem:          875Mi       345Mi        84Mi        22Mi       445Mi       449Mi
Swap:         1.4Gi       2.0Mi       1.4Gi
MEM_FACTOR=75
DRIVE_FACTOR=225
zstd compression ratio is 2.8 , so I set DRIVE_FACTOR around 2.8.

I misunderstood.
compression ratio is <3. so DRIVE_FACTOR should be <150% .

Google on there Chromebooks ran 50% memory 200% compression (drive factor)  which should be achievable.
Only thing now is load as presume on boot things rattle a bit but should calm down.
Slower compression is usually because its more intensive (load) but guess you can lower the SWAPPINESS but the we we are employing zram is because we wish to use it :)
See how you go but yeah drive_factor is likely the important one but also check mem usage with free -h.
Usually no tuning is needed but seems you might be running something quite load and memory hungry.

Raspbian Desktop Use.
It seems no problem.
But dmesg left some lines.
root@raspberrypi:/home/pi# free -h
total        used        free      shared  buff/cache   available
Mem:          874Mi       542Mi        75Mi        86Mi       255Mi       189Mi
Swap:         1.3Gi       463Mi       847Mi
[58257.470735] Backtrace:
[58257.470756] [<8010d480>] (dump_backtrace) from [<8010d778>] (show_stack+0x20/0x24)
[58257.470763]  r6:b33d6000 r5:00000000 r4:80d95cb8 r3:baec4fd4
[58257.470774] [<8010d758>] (show_stack) from [<808cdbe4>] (dump_stack+0xe0/0x124)
[58257.470788] [<808cdb04>] (dump_stack) from [<802c7324>] (warn_alloc+0xd4/0x15c)
[58257.470795]  r8:80d05684 r7:00000a00 r6:80ab60e4 r5:00000000 r4:80d04f48 r3:baec4fd4
[58257.470803] [<802c7250>] (warn_alloc) from [<802c84f4>] (__alloc_pages_nodemask+0x1090/0x123c)
[58257.470807]  r3:00000000 r2:80ab60e4
[58257.470813]  r6:00000000 r5:00000000 r4:00000200
[58257.470821] [<802c7464>] (__alloc_pages_nodemask) from [<802c8940>] (page_frag_alloc+0x180/0x1a0)
[58257.470828]  r10:00000000 r9:00000000 r8:00000000 r7:00000a00 r6:00000a20 r5:00000b40
[58257.470831]  r4:b37a0e48
[58257.470844] [<802c87c0>] (page_frag_alloc) from [<8077b35c>] (__netdev_alloc_skb+0x150/0x184)
[58257.470849]  r7:00000a00 r6:b37a0e48 r5:b2b6e000 r4:00000b40
[58257.470857] [<8077b20c>] (__netdev_alloc_skb) from [<80694084>] (rx_submit+0x10c/0x23c)
[58257.470863]  r7:00000a00 r6:a916fcc0 r5:ad83cb80 r4:b2b6e540
[58257.470868] [<80693f78>] (rx_submit) from [<80694ba4>] (rx_complete+0x200/0x220)
[58257.470875]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:a916fcc0 r5:ad83cb80
[58257.470879]  r4:b2b6e540 r3:00000001
[58257.470887] [<806949a4>] (rx_complete) from [<8069ecec>] (__usb_hcd_giveback_urb+0x74/0x118)
[58257.470892]  r7:00000000 r6:00000000 r5:b335ee00 r4:ad83cb80
[58257.470900] [<8069ec78>] (__usb_hcd_giveback_urb) from [<8069eddc>] (usb_hcd_giveback_urb+0x4c/0xfc)
[58257.470906]  r7:80d04f48 r6:ad83cb80 r5:ad83cb80 r4:b0e26ec0
[58257.470916] [<8069ed90>] (usb_hcd_giveback_urb) from [<806ca854>] (completion_tasklet_func+0x90/0xd0)
[58257.470922]  r6:ad83cb80 r5:b324b800 r4:b0e26ec0 r3:60000113
[58257.470930] [<806ca7c4>] (completion_tasklet_func) from [<806d9fec>] (tasklet_callback+0x20/0x24)
[58257.470935]  r7:b37962c4 r6:00000000 r5:b29fd7c4 r4:b29fd7c0
[58257.470946] [<806d9fcc>] (tasklet_callback) from [<8012628c>] (tasklet_action_common+0x64/0xec)
[58257.470955] [<80126228>] (tasklet_action_common) from [<8012633c>] (tasklet_hi_action+0x28/0x30)
[58257.470961]  r9:00000001 r8:b305e000 r7:00000100 r6:b33d6000 r5:00000000 r4:80d03080
[58257.470972] [<80126314>] (tasklet_hi_action) from [<8010249c>] (__do_softirq+0x1a4/0x418)
[58257.470979] [<801022f8>] (__do_softirq) from [<80126130>] (irq_exit+0x100/0x110)
[58257.470986]  r10:b925173c r9:b33d6000 r8:b305e000 r7:00000001 r6:00000000 r5:00000000
[58257.470989]  r4:80ca42e4
[58257.471000] [<80126030>] (irq_exit) from [<80181200>] (__handle_domain_irq+0x70/0xc4)
[58257.471007] [<80181190>] (__handle_domain_irq) from [<80102228>] (bcm2836_arm_irqchip_handle_irq+0x60/0xa4)
[58257.471016]  r8:ac4d800d r7:b33d76f4 r6:ffffffff r5:20000013 r4:00000000 r3:b33d76c0
[58257.471022] [<801021c8>] (bcm2836_arm_irqchip_handle_irq) from [<80101a3c>] (__irq_svc+0x5c/0x7c)
[58257.471026] Exception stack(0xb33d76c0 to 0xb33d7708)
[58257.471033] 76c0: ac4d800d 00001ff3 00000000 0000000b 80d04f48 00000553 b918ff38 b33d7840
[58257.471040] 76e0: ac4d800d b92a9b3c b925173c b33d7774 00001ff3 b33d7710 000000ff 7f20d298
[58257.471043] 7700: 20000013 ffffffff
[58257.471047]  r4:7f20d298 r3:baec4fd4
[58257.471084] [<7f20d1ec>] (HUF_compress4X_repeat [zstd_compress]) from [<7f229a58>] (ZSTD_compressBlock_internal+0x260/0x12d0 [zstd_compress])
[58257.471091]  r10:7f22f2a0 r9:b92a9b3c r8:00000000 r7:00000004 r6:00000553 r5:80d04f48
[58257.471093]  r4:b918f008
[58257.471119] [<7f2297f8>] (ZSTD_compressBlock_internal [zstd_compress]) from [<7f22acb0>] (ZSTD_compressContinue_internal+0x1e8/0x43c [zstd_compress])
[58257.471126]  r10:ac4d8006 r9:00001ffa r8:953e1000 r7:00001000 r6:00001000 r5:b918f008
[58257.471129]  r4:953e2000
[58257.471154] [<7f22aac8>] (ZSTD_compressContinue_internal [zstd_compress]) from [<7f22b938>] (ZSTD_compressCCtx+0x2f8/0x628 [zstd_compress])
[58257.471161]  r10:32c30001 r9:00000004 r8:00000001 r7:00000008 r6:b33d7a00 r5:b918f074
[58257.471164]  r4:b918f008
[58257.471184] [<7f22b640>] (ZSTD_compressCCtx [zstd_compress]) from [<7f1b312c>] (__zstd_compress+0x88/0xa0 [zstd])
[58257.471190]  r10:00002000 r9:b918f008 r8:00001000 r7:953e1000 r6:ac4d8000 r5:b33d7b28
[58257.471193]  r4:00000000
[58257.471203] [<7f1b30a4>] (__zstd_compress [zstd]) from [<7f1b31b4>] (zstd_compress+0x34/0x3c [zstd])
[58257.471210]  r10:b33d6000 r9:00000000 r8:80e24fb8 r7:80d07d44 r6:b33d6000 r5:7f1d5400
[58257.471213]  r4:b0e3aa00
[58257.471226] [<7f1b3180>] (zstd_compress [zstd]) from [<8051f970>] (crypto_compress+0x2c/0x34)
[58257.471244] [<8051f944>] (crypto_compress) from [<7f1d1218>] (zcomp_compress+0x40/0x48 [zram])
[58257.471264] [<7f1d11d8>] (zcomp_compress [zram]) from [<7f1d2a3c>] (zram_bvec_rw+0x3e8/0xa50 [zram])
[58257.471283] [<7f1d2654>] (zram_bvec_rw [zram]) from [<7f1d3168>] (zram_rw_page+0xc4/0x15c [zram])
[58257.471290]  r10:00000001 r9:00000000 r8:0002aff8 r7:b3af5ba4 r6:80d04f48 r5:00000000
[58257.471293]  r4:00000000
[58257.471310] [<7f1d30a4>] (zram_rw_page [zram]) from [<8033caf0>] (bdev_write_page+0x8c/0xc8)
[58257.471317]  r10:b33d7cb0 r9:b33d7d68 r8:b2c446c0 r7:00000000 r6:0002aff0 r5:b2c446c0
[58257.471319]  r4:7f1d4038
[58257.471329] [<8033ca64>] (bdev_write_page) from [<802cd9ac>] (__swap_writepage+0x1d8/0x3d4)
[58257.471335]  r7:802cd3cc r6:b33d7cc0 r5:80d04f48 r4:b3af5ba4
[58257.471341] [<802cd7d4>] (__swap_writepage) from [<802cdbe8>] (swap_writepage+0x40/0x88)
[58257.471347]  r8:00000000 r7:b33d7f10 r6:b33d7cc0 r5:b3af5ba4 r4:ffffffed
[58257.471356] [<802cdba8>] (swap_writepage) from [<8028b888>] (shrink_page_list+0x9a4/0xf34)
[58257.471361]  r6:b33d7d60 r5:b3af5ba4 r4:b3af5ba8 r3:802cdba8
[58257.471368] [<8028aee4>] (shrink_page_list) from [<8028c6f8>] (shrink_inactive_list+0x1c8/0x454)
[58257.471375]  r10:00000019 r9:80d97a00 r8:80d04f48 r7:b33d7d60 r6:80d97a04 r5:00000000
[58257.471378]  r4:b33d7f10
[58257.471385] [<8028c530>] (shrink_inactive_list) from [<8028d1f0>] (shrink_node_memcg+0x3ac/0x7cc)
[58257.471392]  r10:00000019 r9:00000000 r8:80d97a04 r7:b33d7f10 r6:00000000 r5:b33d7dec
[58257.471395]  r4:00000000
[58257.471402] [<8028ce44>] (shrink_node_memcg) from [<8028d6ec>] (shrink_node+0xdc/0x4f8)
[58257.471409]  r10:80d97280 r9:000000b6 r8:80d057dc r7:00000000 r6:0000025f r5:00000000
[58257.471412]  r4:b33d7f10
[58257.471419] [<8028d610>] (shrink_node) from [<8028ec88>] (kswapd+0x3dc/0x954)
[58257.471425]  r10:80d97280 r9:00000000 r8:00000003 r7:00000000 r6:00000001 r5:00000001
[58257.471428]  r4:00003c00
[58257.471438] [<8028e8ac>] (kswapd) from [<80142f30>] (kthread+0x13c/0x168)
[58257.471445]  r10:b3309ddc r9:b30fbe0c r8:8028e8ac r7:80d97280 r6:00000000 r5:b3309d80
[58257.471447]  r4:b3309dc0
[58257.471456] [<80142df4>] (kthread) from [<801010ac>] (ret_from_fork+0x14/0x28)
[58257.471459] Exception stack(0xb33d7fb0 to 0xb33d7ff8)
[58257.471464] 7fa0:                                     00000000 00000000 00000000 00000000
[58257.471470] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[58257.471476] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[58257.471482]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:80142df4
[58257.471486]  r4:b3309d80 r3:80104648
[58257.471512] Mem-Info:
[58257.471531] active_anon:62598 inactive_anon:48378 isolated_anon:25
active_file:4078 inactive_file:2735 isolated_file:0
unevictable:4 dirty:0 writeback:0 unstable:0
slab_reclaimable:4710 slab_unreclaimable:7520
mapped:11266 shmem:5488 pagetables:2594 bounce:0
free:4632 free_pcp:651 free_cma:0
[58257.471542] Node 0 active_anon:250392kB inactive_anon:193512kB active_file:16312kB inactive_file:10940kB unevictable:16kB isolated(anon):100kB isolated(file):0kB mapped:45064kB dirty:0kB writeback:0kB shmem:21952kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
[58257.471563] Normal free:18528kB min:53248kB low:57344kB high:61440kB active_anon:250624kB inactive_anon:193448kB active_file:16312kB inactive_file:11148kB unevictable:16kB writepending:0kB present:917504kB managed:895296kB mlocked:16kB kernel_stack:3568kB pagetables:10376kB bounce:0kB free_pcp:2604kB local_pcp:1440kB free_cma:0kB
[58257.471570] lowmem_reserve[]: 0 0
[58257.471585] Normal: 10504kB (UMEHC) 6918kB (UEH) 32016kB (UEH) 8532kB (UE) 1564kB (UE) 0128kB 0256kB 0512kB 01024kB 02048kB 0*4096kB = 18528kB
[58257.471667] 12324 total pagecache pages
[58257.471678] 22 pages in swap cache
[58257.471688] Swap cache stats: add 2050607, delete 2050690, find 8606/1407398
[58257.471694] Free swap  = 447308kB
[58257.471701] Total swap = 1342940kB
[58257.471708] 229376 pages RAM
[58257.471715] 0 pages HighMem/MovableOnly
[58257.471722] 5552 pages reserved
[58257.471727] 16384 pages cma reserved

journalctl -xe
Aug 17 23:09:01 raspberrypi kernel: [<8051f944>] (crypto_compress) from [<7f1d1218>] (zcomp_compress+0x40/0x48 [zram])
Aug 17 23:09:01 raspberrypi kernel: [<7f1d11d8>] (zcomp_compress [zram]) from [<7f1d2a3c>] (zram_bvec_rw+0x3e8/0xa50 [zram])
Aug 17 23:09:01 raspberrypi kernel: [<7f1d2654>] (zram_bvec_rw [zram]) from [<7f1d3168>] (zram_rw_page+0xc4/0x15c [zram])
Aug 17 23:09:01 raspberrypi kernel: [<7f1d30a4>] (zram_rw_page [zram]) from [<8033caf0>] (bdev_write_page+0x8c/0xc8)

I chenged swappiness=90 to 100.
and trying to use.

swapiness is just pref of use, so higher means swap will be used even if more mem is avail.
As to above dunno? But looking like zstd is favoured either.

I didn't know.
I got it.
I got swappiness=80.

I set it back to 100; 100 is less error-prone than 80.

I found this article.
https://haydenjames.io/linux-performance-almost-always-add-swap-part2-zram/
we shuld set sysctl for zram.

Its already done in zram-swap-config.conf
Have you looked at the code?
	sysctl vm.page-cluster=${PAGE_CLUSTER}
	sysctl vm.swappiness=${SWAPPINESS}

Also just so others know we are talking about zram-swap-config.
How 100 can be less error prone than 80 is very confusing as your forcing more use the higher the number.
But the problem seems to be zram that you have, all zram-swap-config does is config the zram.
You will have to ask the zram maintainers about zram errors.

I alerady changed sysctl.conf.
I restored it.
and I trust you :)

MEM_FACTOR=50
seems good.

Failure to match algorithm compression and disk size results in an error.
For example, if you select zstd, double the disk size is not enough, so you need to make it nearly triple.

With raspbian desktop, It seems only lz4 is certain choice.
Because of something error with others.
Maybe it depends on its speed.

There is no disk and double the disk size is basically guessing low compression, its mem_factor that allocates ram usage and smaller disks are just a lower expectation on overall compression.
There are certain operations that just fail as already compressed huge chunks that can not be compressed fill past the available ram.
Its rare but it does happen seems from experience only when compiling certain apps.
If something is not working with zram and has changed file a bug on the raspbian desktop repo version.

This is my memo.
System looks at disk_size , not original mem_limit.

@Seketh
https://github.com/raspberrypi/linux/issues/3839

So you have a 8gb Pi 4 ?

Me ? no .
This is pi kernel problem.

That problem is only with the 8gb Pi4

No.Several error with zram is reported.

https://github.com/armbian/build/pull/2377

That is armbian and a kernel option any absolutely nothing to do with this project. Choose or compile your own kernel but those choices are not part of this repo.

@StuartIanNaylor
Excuse me , I thought that I showed you related info.
But here is github.

Post on the kernels or https://www.kernel.org/ is likely to have better effect. This is just an app that obs need a kernel and uses zram but isn't the source...

@StuartIanNaylor
I agree with you.
and I leave it a while.

I don't know what is happening but seems its a kernel option that needs to change like you posted. Guess its just time where new kernels will adopt and disable the malloc method that is the source.

@StuartIanNaylor
I see.
and Have you never seen these decompression error  around your pi?

Yes and the open source code that creates it is not in this repo but others and where you should be posting rather than spamming.
I have handed over the repo, so no longer have to be polite.

@StuartIanNaylor
Another repo you mean is raspberrypi kernel repo?

its ecdye/zram-config so you can post as you wish.

@StuartIanNaylor
Okay.
I think that you did great job some japanese rely on your script.
:)

and I should make post and no spam anymore :P


is-substring-tests.eo:29-31: Enable the test below when...

The puzzle 218-f4bba266 from #218 has to be resolved:
https://github.com/objectionary/eo-hamcrest/blob/298bd4884878fbdcd1bac2a2aa35b22603bf18e4/src/test/eo/org/eolang/hamcrest/is-substring-tests.eo#L29-L31
The puzzle was created by levBagryansky on 17-Oct-23.
Estimate: 90 minutes,  role: DEV.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

@graur please pay attention to this new issue.


Build fixes for GStreamer 1.4.x

Not fully copy-pasted but yes, very highly inspired from gstcaps.c :)

:+1: Merged. Thanks.


edit tasks

hi @Sam-Ogden very good ext thank you :)
but need add edit task by double click )

my use case, always show task in window, without closing )

so maybe need add functionality for adding and pin in sidebar like this:


Wrong color on Danish flag

The red parts of the Danish flag should be Pantone 186C, which translates to HEX #E31836.

Here https://www.pantone.com/color-finder/186-c it says #C8102E

Interesting. Of course, Pantone is the most reliable source (I used Wikipedia).
However, the color is still wrong, then.

So which one should we use?

#474

I updated the colors.. if it's not the correct one please comment here.


Patch 1

@edgexie mybe you can see this https://amadeus711.github.io/note/tool/git/github.html


add sensor graph sample

Sensor graph is a C++ Android sample that read current accelerometer values and draw them using OpenGL.
It demonstrate usage of the following Native C++ API:

Sensors
Assets

/cc @ggfan @hak

@ggfan @hak @claywilkinson @gguuss does someone have the bandwidth to review this?

just a few comment:

I feel the program leaks the shader object memory [vertex and pixel shader object]
the native module name could be something else, more relate to sensor rather than gl2jni
is java support egl1.4, maybe use it to replace egl1.0, just an comment
thank you for creating the sample!

@ggfan feel free to comment directly on the code too.

the native module name could be something else, more relate to sensor rather than gl2jni
Done.

I feel the program leaks the shader object memory [vertex and pixel shader object]

You mean I should delete them with glDeleteShader after calling glLinkProgram? I think hello-gl2 has also this problem, we should probably fix it too.

is java support egl1.4, maybe use it to replace egl1.0, just an comment

I'm just using the default GLSurfaceView with a GLES 2.0 context, I'm not sure how to force GLSurfaceView to use egl1.4, do you have an example?

I feel the program leaks the shader object memory [vertex and pixel shader object]

@ggfan Done.

PTAL

LGTM

Travis is green, merging.


WIP - Hist respect colors

This will fix the two first tasks on #995

This needs some tests

Added tests!


pytorch implementation

I have  re-implemented adaptive-l2-regularization in pytorch, adaptive-l2-regularization-pytorch

Thanks for your contribution. I have included your repository in the README file.
Xingyang

Thanks for your contribution. I have included your repository in the README file.
Xingyang

thank you

thank you


Need to add RTC

RW-SYS-069 states:
The ventilator shall provide non-volatile data storage for at least 5000 events in an event log, including at least the following items: - Ventilation starts and stops - All confirmed Ventilation settings - All confirmed alarm settings - All occurrences and ends of alarms with all their related actions: Inhibitions, cancellations, resets, acknowledge button presses. The ventilator shall provide a date and time stamp for all event log data. The event log shall note any change to the system’s Real Time Clock by logging the Current Date/Time followed by the new Date/Time and a unique event code indicating the change.
Relevant to this ticket: Real Time Clock.
So we need a real time clock.

RTC and backup battery added in #947, copied from FoundryM design.

RTC and backup battery added in #947, copied from FoundryM design.


AttributeError: 'app' object has no attribute 'calc'

Description
I created a calculator application using python and I got this error as "app object has no attribute calc"
Expected behaviour
Actual behaviour
Steps to reproduce
Additional info:
Output of the commands:

python --version
pip show connexion | grep "^Version\:"

Could you provide some more context (Swagger file, code, ..)? Your problem description does not allow me to help you.

I created a calculator application using python.But it is showing an error as above .can u please help me . It is showing the calculator window ,but when I am pressing the = symbol,it is showing that error.
Tq in advance 😀

Hi @bharathjinka09, unless you can make it clear how your problem relates to the connexion project (other than both being written in Python), we can't help you here. If your problem is not actually about connexion, please ask at a different place instead.

This is my calculator code and it is getting an error as "AttributeError: 'app' object has no attribute 'calc'
" and i have attached the image also.Can u please help me with that issue.Thank you:-)

from tkinter import*
from tkinter import ttk
def icalc(source,side):
storeobj = Frame(source,borderwidth=10,bd=4,bg="yellow")
storeobj.pack(side=side,expand=YES,fill=BOTH)
return storeobj
def button(source,side,text,command=None):
storeobj = Button(source,text=text,command=command)
storeobj.pack(side=side,expand=YES,fill=BOTH)
return storeobj
class app(Frame):
def init(self):
Frame.init(self)
self.option_add('*Font','arial 20 bold')
self.pack(expand=YES,fill=BOTH)
self.master.title('calculator')
display = StringVar()
Entry(self,relief=RIDGE,textvariable=display,justify='right',bd=30,bg="skyblue").pack(side=TOP,expand=YES,fill=BOTH)
    for clear in (["CL"],["C"]):
        erase = icalc(self,TOP)
        for char in clear:
            button(erase,LEFT,char,lambda storeobj=display,q=char:storeobj.set(''))
    for num in ("789/","456*","123-","0.+"):
        funnum = icalc(self, TOP)
        for char in num:
            button(funnum, LEFT, char, lambda storeobj=display, q=char: storeobj.set(storeobj.get()+q))
    Equals = icalc(self,BOTTOM)
    for iequals in "=":
        if iequals == '=':
            btnieqls = button(Equals,LEFT,iequals)
            btnieqls.bind('<ButtonRelease-1>',lambda e,s=self, storeobj=display: s.calc(storeobj),'+')
        else:
            btnieqls = button(Equals,LEFT,iequals,
                              lambda storeobj=display, s='%s '%iequals: storeobj.set(storeobj.get()+s))

if name=='main':
app().mainloop()

Hi @bharathjinka09, it doesn't look like your project is using Connexion. As such, your problem is off-topic here. Please try other places for help.

Closing as it does not seem to be related to Connexion.


test: [M3-6960] - Add regression test for downloading invoice of maximum size

Description 📝
Add regression tests for downloading the invoice of maximum size.
Major Changes 🔄

Add regression tests to download the invoice with maximum size.
Add fs library to devDependency.
Add new setup plugins downloadProcess to clean up the download folder.

How to test 🧪
yarn cy:run -s "cypress/e2e/core/billing/billing-invoices.spec.ts"

I was able to run the tests locally without issues. All 6 tests are passing ✅

@jdamore-linode @cliu-akamai just circling back on this PR - is this good to go?

@jaalah-akamai I'll try to circle back to this soon, but I think there may be changes we'll want to make to this before merging (cc @cliu-akamai -- I'll keep you posted too). For now I'm going to add the Wait to Merge label.


Eslint-loader looks to be out of date

Checklist

[X]  I am not using Home Assistant. Or: a developer has told me to come here.
[X] I have checked the troubleshooting section and my problem is not described there.
[X] I have read the changelog and my problem is not mentioned there.

Deploy method
Manually built (git clone - yarn build - yarn install
Z-Wave JS UI version
latest
ZwaveJS version
latest
Describe the bug
Trying to build using npm install produces...
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/eslint
npm ERR!   optional<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>|| ^7.0.0" from<EMAIL_ADDRESS>npm ERR! node_modules/eslint-loader
npm ERR!   optional<EMAIL_ADDRESS>from the root project
npm ERR!

Upgrading eslint and eslint-loader to latest seems to fix it.
To Reproduce
Raspberry Pi 4 B (Node 19)

Download Source
Run npm i
See Error

Expected behavior
I would expect it to install deps with no error
Additional context
No response

you are using npm but you should be using yarn...

I am not sure closing this for that reason is the right approach when you still have out of date deps in your package file. At least remove them if they "don't matter"

Sorry @jrgleason what I meant is that you were using a wrong command to do the install. You should run yarn in order to install deps and not npm. Anyway eslint-loader is no longer used as dep, I will remove it now as I forgot about it


17.0.7_7-jre-alpine latest image vulnerabilities

Requesting to fix the below security vulnerabilities reported by PRISMA image scan tool on the latest OpenJDK Eclipse Temurin Docker release 17.0.7_7-jre-alpine

freetype version 2.12.1-r0 has 1 vulnerability - https://nvd.nist.gov/vuln/detail/CVE-2023-2004
openssl (used in libssl3, libcrypto3) version 3.0.8-r3 has 1 vulnerability - https://nvd.nist.gov/vuln/detail/CVE-2023-1255

these have both been fixed in the latest image now


fix(#minor); Balancer Forks; Fix mainnet deployment TVL spike

Fixes: #1925

@dmelotik
Test Deployment: Link

I have turned off grafting.
yes, balancer v2 TVL bug is related to this PR.

@harsh9200 looks like it crashed

yes, sorry this is the correct deployment URL's.
Balancer: Mainnet, Arbitrum, Polygon
Beethoven: Optimism, Fantom

@harsh9200 is the $425bb spike on balancer mainnet expected?

@dmelotik  No, that's not expected. I am already working on a fix.

Addressed in #2116.


Added a new SQL question

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)

Changes made, thanks for the feedback!


Remove background-colors example and show only the code.

This is to avoid confusion.
Fixes #27068

Should we be more explicit in the docs and make a note that says these don't have a live example because they're purposefully disabled by default?

We could but as it seems no one reads the bold text :)
Feel free to push here any tweaks.


Validate program in DE API

Definition of Ready

[ ] Does this meet the INVEST criteria?
[ ] Does this have a clearly defined user?
[ ] Does this have an estimate?
[ ] Does this have acceptance criteria?
[ ] Does this have sufficient context (wireframes, business rules, etc.)?
[ ] Is this traceable to a feature, epic, or PI?

User Story
As a user I want to enter valid filter criteria for program so that I can see results for my specified program(s)
Acceptance Criteria
Given that a user has entered one or more program codes in an upper-case or lower case format
When the API endpoint is executed
Then the system displays the records that match the criteria (containing data elements below)
Given that a user has entered one or more program codes without white space(s) before or after the delimiter
When the API endpoint is executed
Then the system displays the records that match the criteria (containing data elements below)
Given that a user has entered one or more program codes with white space(s) before or after the delimiter
When the API endpoint is executed
Then the system displays the records that match the criteria (containing data elements below)
Given that a user has entered one or more invalid programs
When the API endpoint is executed
Then the returns the message FV-12
"One or more programs is not valid. Refer to the list of available programs for valid values [placeholder for link to endpoint]
Context
(User journeys, design mockups, architectural diagrams, business rules, data element definitions)
Testing
Test Case:
Tester:
Definition of Done

[ ] Have all Acceptance Criteria been agreed to and validated by the scrum team?
[ ] Has the code been unit tested and peer reviewed?
[ ] Have the functional tests been executed?
[ ] Have all defects been reviewed and dispositioned, resolved, or deferred?
[ ] Has the user story been accepted by the Product Owner?
[ ] Is the user story ready to be deployed to the test/staging environments?

During sprint planning on 3/17, the team decided to complete the DE API by creating tickets #967, #968, #969, #970


Bump python version

Leaving this here so that we can have something to put on testpypi in one click after related Python PRs get merged.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Reviewed; merge when you like.


High internet usage

If I'm not very much mistaken, my internet data usage went really high after installing the screensaver. Does this screensaver one time download or are you downloading different sceneries while the screensaver is running?
Great looking job on porting this for mac btw.

You're right, the main release doesn't save videos.
Try the beta, it caches videos:
https://github.com/JohnCoates/Aerial/releases/tag/v1.2beta5
On Sat, Jan 30, 2016 at 9:20 PM, kalanaw<EMAIL_ADDRESS>wrote:

If I'm not very much mistaken, my internet data usage went really high
after installing the screensaver Does this screensaver one time download or
are you downloading different sceneries while the screensaver is running?
Great looking job on porting this for mac btw
—
Reply to this email directly or view it on GitHub
https://github.com/JohnCoates/Aerial/issues/206.

Holy… I've had to update my ISP plan thinking it was all Apple TV, but it wasn't it was THIS!

Sorry to hear that.


Remove extra cell (perhaps added by mistake)

Looks like this is an extra cell inside vision.core.
Adding this PR to remove this cell from the notebook which also shows in docs here:
http://dev.fast.ai/vision.core.html#Image.reshape

Thanks!


Upgrade to 0.18

Still TODO

[ ] Upgrade tests once elm-test for 0.18 lands

Breaking Changes

Removed nullable since that function is in Json.Decode as of core v5.
Changed resolveResult : Decoder (Result String a) -> Decoder a to resolve : Decoder (Decoder a) -> Decoder a to keep consistent with how Json.Decode now works exclusively in terms of decoders (via andThen) instead of in terms of Result.

Hi,
Could you, please, share any estimates on upgraded to 0.18 version delivery?
Pardon for my impatience.

@edvail done!


Add provides-srfi to package form

@diamond-lizard Does this look reasonable?

For the purposes of generating a SRFI Table from this data, I think that would be fine.
However, it seems that we've kind of widened our scope to include not just SRFI Table generation, but specifying a metadata file format.  Such a file format could be used for more than just generating a SRFI Table, and when it is proposed to Scheme implementors, maintainers, and developers to adopt such a format, we can expect that they may wish its use not to be limited to just documenting what we've asked them for here.
More, specifically, I think we may want to consider generalizing this property from:
(provides-srfi <nonnegative-integer>)  ; allow multiple

to:
(provides (property NAME VALUE [NAME VALUE] ...))

where one of the valid NAMEs could be "srfis", and the only valid VALUE be a list of of non-negative integers.
With this approach we would leave open the possibility that the package provides other things that may be of interest of Scheme users, developers, implementers, and maintainers.
As an example, perhaps they'll want to know all of the symbols a package provides so they can search through the metadata index server for packages that provide that symbol.
In that case, one valid NAME would be "symbol", and the only valid VALUE for "symbol" would be a list of symbols.
Other valid NAMEs and VALUEs might be specified in the metadata SRFI, or might be left to the implementations.
What do you think?
(PS: I've quoted the above NAMEs, but of course they don't have to be strings, but could and maybe should be symbols)

However, it seems that we've kind of widened our scope to include not just SRFI Table generation, but specifying a metadata file format.

Yeah, sorry, I didn't realize I should explain that in detail. As detailed in #1, the existing package metadata formats are similar enough that we might as well suggest combining them into one standard format. They mostly talk abou the same stuff already, using similar notation.
I'd go even further and add library lookup and such to the mix; I'll open another issue about it.
In any case, the entire file format should be extensible. So that people can, for example, add implementation-defined subforms under (package ...). And (cond-expand ...) should be supported at every level for solving implementation differences.
Regarding SRFIs vs more general features specifically, some Scheme implementations store symbols like srfi-123 in the (features) list. However, since many Schemes support 10-20 SRFIs or even more, the list gets hard to read. Therefore I (and others) have suggested tracking SRFIs in a separate list.
If the whole file format is extensible, we will not paint ourselves into a corner by specifying more restricted versions of properties.

I'll merge this since it's only one line; we can change it later as needed.


feat: add protobuf 4.29.1 release

update protobuf with release 4.29.1

:tada: This PR is included in version 1.417.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Update ruby docs

🚀 Deployed on https://63dc1034cc09c12c8cb24c0b--cozy-fox-0defec.netlify.app

We need to document somewhere how to use the data adapter as the source of truth
I think we need to update here as well
https://docs.statsig.com/server/concepts/data_store

(and link off to that as well)


Done button disable in American Card. why?

I am scan american credit card that it is 15 digit card number. scan is good working but done button can't enable.
General information

SDK/Library version:
iOS Version and Device:
Integration type and version:

Issue description

Did you verify that you input 4 digits in the cv field

Thanks,
I enter cv 3 digit that it's issue coming after your comment check & enter cvv2(AmEx's) 4 digit that display done button


Add Configuration to Use Custom Templating Similar to Daily Notes Plugin

First off, excellent plugin, thank you putting this together.
Is your feature request related to a problem? Please describe.
Not associated with a problem.
Describe the solution you'd like
As a user, I should be able to define my standard template when adding a new Meeting Notes.
Additional context
The Daily Notes plugin has a setting that allows for setting a default template. The base template is nice, but it would be great to be able to change the default behaviour for the note title and contents of the template used. The user may need additional sections included in the template. The expectation for this feature would be to have the same behaviour as the daily note plugin.

Thank you for the feedback, that is something I wanted to do for a longer time. I might have some spare time coming up so this might be added soon(-ish).

Added in Version 1.0.6. #5


Add Multiple tags takes huge time to add.

HI ,
I am using this library.It's great but i stuck a one point.I am passing a array of 1300 records of string for creating Tags .I am calling addTags() it is taking huge time complete.Please suggest something to achieve this.
Thanks in Advance.

I face the same problem, it would cause CPU loading to high, and let UI lag (table view).

I'm facing the same issue as well. Does anyone has solution for the same? I have 10k records.

how to fix it? any one?

did any one solved this


Fix the javadoc paths

Motivation
While reading the getting started page, I realized that some links pointed to the Javadoc were broken.
Modifications:

Replace URLs of type http://camel.apache.org/maven/current/${component-name}/apidocs with http://javadoc.io/doc/org.apache.camel/${component-name}/latest everywhere in the project

Sorry since my commit was not signed and the build failed for something that is not related, I pushed a new commit to relaunch the build and sign it


"upload" command broken

Bug split out from #2
When doing "node microflo.js upload examples/monitorPin.fbp" on Windows 8 in Parallels 8 on Mac OSX with Arduino Nano R3, the graph parser enters an invalid state and just outputs
Network stopped
DEBUGLEVEL:  Error
ADD:  in ( Timer )
ADD:  split ( ToggleBoolean )
ADD:  outA ( DigitalWrite )
CONNECT:  in out -> split in
CONNECT:  split out1 -> outA
Network started
DEBUG:  ParserInvalidState
Probably a serial port initialization/timing issue, as when using the runtime it works OK.

Have not seen this in a while.


Make the announcer pronounce "friendivia" correctly

This should be fixed, but needs to be tested on friendivia.com


Error when setting user context since 1.6.0: array_merge(): Argument #2 is not an array

Since #387 I get an error when setting the user context.
The monolog RavenHandler stores $previousUserContext which in my app ends up being null (rather than its initial value of false). This happens when RavenHandler sets it to the value of $this->ravenClient->context->user, which at this point is null.
It then calls user_context (see https://github.com/Seldaek/monolog/blob/1.22.0/src/Monolog/Handler/RavenHandler.php#L189 which is the latest release right now -- current master has slightly different code but the same issue) with that null in the $data, which is not an array, hence the error.
I don't know if this is a bug with sentry-php or with the monolog RavenHandler, but it's the recent change in behaviour which is causing the error.

Dup of #388, I believe.

Yep, should be fixed in 1.6.1

Oh wow, reported just as I typed mine. Thanks!


Bug

You are able to move the camera in all screens screen towards the top, right and bottom by using the movement keys.

See issue 604593348


[WIP] Improve/create libraries

Improve or create new libraries for the next release!


Search Page

Overview:

There are so many conflicts... I'm going to merge main into this branch and resolve all the conflicts that way.

Ok... testing a merge with main right now and it is going TERRIBLE. Everything is just wrong. There are most likely global css selectors somewhere in the files that are messing things up.

The data is passed in as an object: state = { location: "string", checkDates: {startDate, endDate}, travelers: int, rooms: int }


Data Selection Overlay cannot be closed if browser window is reduced

Steps to reproduce

Go to test.visualize.admin.ch
Select a data set and proceed to creating a chart
Create a chart, then add another chart with another data set
Once the dataset search overlay appears, Reduce the browser window to ca. 50%
Click the "x" to close the overlay
See that the click target is not quite centred, making it seem like the overlay cannot be closed

Expected Behaviour
When clicking the X i would expect the overlay to close, it seems like the click target is a bit to far to the right.
Screenshots
See: https://www.notion.so/interactivethings/Testing-File-f5fb6a3566374bce9a731bbdf1734761?pvs=4#d508bcaab7c84479b862076c4381e4ec (file upload to github failed, presumably to large)

LGTM 👏


Fully qualify class name for expectedException in PimpleTest

As far as I can tell PHPUnit currently doesn't seem to mind if
you don't import or specify the full namespace for an
expectedException if it's in the root namespace. This is expected
as the class name is a string.
This seems the right thing to do though, and is done in other
places in the test.

There's a couple of coding standard fixes from fabbot.io. Want me to tack them on the end of this PR?
http://fabbot.io/patch/silexphp/Pimple/173/a0425f856ef82fcdf4fe4088155745692f48df72/cs.diff

@dave1010 I will take care of them, thanks.


merge package template from Kronos-Tools/npm-package-template

Updated standard to latest version

Codecov Report

Merging #270 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #270   +/-   ##
=======================================
  Coverage   88.42%   88.42%
=======================================
  Files           1        1
  Lines         216      216
=======================================
  Hits          191      191
  Misses         25       25

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8ece2e3...06b355b. Read the comment docs.


Add examples to .nuSpec reference

Customer comment:

Nuspec ref: As ALWAYS, there are too many fragmented examples outside the context in which they are required, and the current questions on contentFiles illustrate this. I intended to find a 'hard' definition of nuspec schema, not a millennial's collegiate writeup. A little proofreading wouldn't hurt, either. Using the correct UI elements for examples is advisable ("Content files with directory structure" absolutely does NOT require a source code type UI element, WHY do this?)

Content file material is covered under #775

Rolled up to #775


QoL: "Salvage Item/All xx Item" context menu addition. (+2)

The same way Store is in the context menu could go one for salvage option. This way you can selectively salvage items without the risk of salvage items you don't want to (the only reason why I don't use the "Salvage all ..." of Salvage kits). Even a shortcut like shift+ctrl+click (dunno) could be amazing, similar to the store one.

Also the feature to un-tick other context menu options like Store (ctrl+click) or Salvage all items.

Another suggestion is to add the possibility to bypass the identification need of blue/purple items before salvage them, so you can salvage them directly without identify. (Or auto id if this can't be skipped).

Point 1: That's way overkill for the rather irrelevant and niche functionality.
Point 2: A setting for this seems highly unnecessary as well. It will only lead to confusion among users when they untick a checkbox and then fail to find the option in the future.
Point 3: Yeah that's a nice idea. Rather surprised that the functionality right now only allows salvaging identified items, will have to check that before implementing.

Another suggestion is to add the possibility to bypass the identification need of blue/purple items before salvage them, so you can salvage them directly without identify. (Or auto id if this can't be skipped).

Point 3: Yeah that's a nice idea. Rather surprised that the functionality right now only allows salvaging identified items, will have to check that before implementing.

This is a guild wars bug btw, not something the salvage function explicitly doesn't salvage.

Point 1: That's way overkill for the rather irrelevant and niche functionality.

Despite I agree with you, isn't everything in this game niche, including the game itself? :D
That screenshot looks nice though, as much as the 25 slot Backpack there.

Items need to be identified so you don’t get random upgrades in your inventory when you salvage an unidentified item.  I meant to salvage with regular Salvage Kit, that only produces mats

Ok so you can see why this isn’t going to work very well; it will have to only use regular salvage kits, otherwise it’ll only salvage identified items. It’s too much code debt just to confuse a user who just wants to clear out their inventory with a convenience feature


fix: bootstrap merge order

fixes redkubes/unassigned-issues#362

I tested also team creation, so env.gotmpl change is known to work @j-zimnowoda

fixed with latest commit..test added

actually, what I fixed was the fact that cli bootstrap was writing derived values...I could not reproduce your error...are you sure you are testing with the right image?

installed with chart and activated drone
created team + service and deployed
pulled values and bootstrapped

no issues

Good question. Remnants of the previous destroy command I think. It needed it

On 21 Dec 2021, at 16:24, jeho @.***> wrote:

@j-zimnowoda commented on this pull request.
In chart/otomi/templates/post-job.yaml:

       - sh

       - -c

     args:

       - |

         kubectl delete cm otomi-status

         kubectl delete secret otomi-generated-passwords

         echo "Otomi has been uninstalled."

     env:

       - name: CI

         value: '1'

       - name: ENV_DIR

         value: /home/app/stack/env

       - name: VERBOSITY

         value: '1'

     resources:

       limits:

why such a high requests if it is just performing Kubectl command?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.


cannot call doctrine with JWTTokenAuthenticator extends BaseAuthenticator with app.php

Hi,
i have a problem when i switch between app_dev.php and app.php
here is the error in my prod.log
request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Call to a member function getRepository() on null" at /var/www/html/carPool/api/src/MainBundle/Security/Guard/JWTTokenAuthenticator.php line 73
the precise line is
$admin = $this->doctrine->getRepository('MainBundle:Admin')
->findOneByEmail($user->getUsername());
The problem is that $this->doctrine becomes null when I set app.php instead of app_dev.php
I wanted to include @doctrine.orm.entity_manager into JWTTokenAuthenticator so i decided to set my services.yml
app.jwt_token_authenticator:
    class: MainBundle\Security\Guard\JWTTokenAuthenticator
    parent: lexik_jwt_authentication.security.guard.jwt_token_authenticator
    calls:
        - [setDoctrine<EMAIL_ADDRESS>
so i set up setDoctrine method.
Here is my class JWTTokenAuthenticator.
``
<?php

namespace MainBundle\Security\Guard;

use MainBundle\Entity\Admin;

use Lexik\Bundle\JWTAuthenticationBundle\Security\Guard\JWTTokenAuthenticator as BaseAuthenticator;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\HttpFoundation\Request;
use Lexik\Bundle\JWTAuthenticationBundle\Security\Authentication\Token\JWTUserToken;
use Symfony\Component\Security\Core\Exception\BadCredentialsException;

class JWTTokenAuthenticator extends BaseAuthenticator
{
	private $doctrine;

	/**
	 * Injecte doctrine via les services
	 * @param type $doctrine
	 */
	public function setDoctrine($doctrine){
	    $this->doctrine = $doctrine;
	}

	/**
	 * {@inheritdoc}
	 */
	public function checkCredentials($credentials, UserInterface $user)
	{

	  .....

	    $admin = $this->doctrine->getRepository('MainBundle:Admin')
	                ->findOneByEmail($user->getUsername());

	    ....

	}

}

``
Do you know with i got the error when i switch with prod mode ?
Thank you in advance.
Cordially,
Maxime Bourdel

This looks like a cache issue. If you get a different behavior between dev and prod environments for a service that does not differ, it's likely you need to remove the production cache (fastest: rm -rf var/cache/*).

Works like a charm after cleaning cache sorry i did not think about it.


Change Font

What is the best way to change the font/styling of this component?  I cannot seem to overwrite the default stying.  Would it be possible to leave font as inherited?

I had the same problem and this solution worked for me. In your component CSS you may do "shadow piercing".
Reference: https://stackoverflow.com/questions/34542143/load-external-css-style-into-angular-2-component
:host /deep/ .datepicker-actions__input {     font-family: Arial !important; }


Fix compilation with C++20

Due to changes to aggregate initialisation in C++20 [dcl.init.aggr], a class type that has a user-declared constructor is no longer considered an aggregate, which means that code such as
struct S {
    int x;
    S(const S&) = delete;
};

S s{1}; // Error in C++20: Not an aggregate.

fails to compile in C++20, even though it was well-formed in C++17.
There was one instance of this in the library, i.e. opaque_trace, which is aggregate-initialised in the library, but is no longer an aggregate as of C++20. This pr adds a constructor to the class to make it possible again to initialise an instance of it with a void*.

Not sure why the sonar run failed, I'll deal with that later


i18n(fr): Translation of migrate-to-astro.mdx

What kind of changes does this PR include?

Translated content

Description
Translated migrate-to-astro.mdx content to french

Perfect @Elib27, also thanks @thomasbnt for the review! 🙌


Add held-suarez equator-pole temperature gradient

This pair of parameters is currently hardcoded in ClimaAtmos, but we will need to calibrate it soon. It would be nice to add this to the ClimaParameters defaults so I don't need to add an override TOML file in ClimaAtmos just for calibration.

bors r+


fix crash on disconnect button

This PR fixes crash on disconnect button on synced wallet

verified resolves disconnect crash issue


Go static not working

From an email:

https://go.godbolt.org/z/npmdEb
i wish to see low level implementation go_go and so...
i try to add compile options
as recommended
https://gist.github.com/PurpleBooth/ec81bad0a7b56ac767e0da09840f835a
but no lack
i  steel see only golang runtime api, no low level asm code

I'm guessing this is partly because the quotes aren't passed on and instead treated as separate non-existing parameters?

Thanks for that @partouf : I literally copy pasted the email as I ran for my train this morning, and hadn't looked at it in detail.

I may be missing some of the limitations that require binary mode, but for what it's worth:

go build can invoke gccgo by passing -compiler=gccgo. I believe the specific gccgo to use can be changed by setting the GCCGO environment variable, but I'm not a gccgo user so I can't say so with certainty.
go build can produce assembly by using -gcflags=-S. (similarly gccgo flags are passed with -gccgoflags).

I think I have some code locally that switched CE to use go build (and added support for additional OS and architectures). I'd be happy to clean it up and open a PR if you're interested.

Re-reading the issue, I see that binary mode would still be required for -ldflags. My offer still stands though. I can create a separate issue for it if desired.


Moving classes needed for realtime media calling into a separate GIT repo

https://github.com/Microsoft/BotBuilder-RealTimeMediaCalling will have constructs for Real-Time Media Calling

@MalarGit,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@MalarGit,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


Docs lack guidance about choosing job_name parameter

Many methods on google.cloud.bigquery.client.Client take a job_name as their parameter but there's no guidance in the docs about what the job_name should be.
Investigation suggests it needs to be unique, and this is confirmed under the "Generating a job ID" section of this page (which I found through Googling).  That page also suggests using eg Python's uuid.uuid4().
Could some advice about choosing job_name be added to https://googlecloudplatform.github.io/google-cloud-python/latest/bigquery/client.html?
And better, although it'd be a backwards-incompatible change, could job_name be an optional parameter that's generated automatically by BQ?

Hi @inglesp,
So, having BigQuery itself generate a job_name is actually a little bit of an anti-pattern, because that has an undesirable effect on retries. So, we want the client library to do it. However, we do have a plan to make it such that you to not have to specify the job_name, and the client library will do it for you (using uuid.uuid4()), which mitigates this.

Hmm, I thought we had an issue open for this, but I do not see one (I might have closed it by accident last week), so leaving this one open. :-)

Duplicate of https://github.com/GoogleCloudPlatform/google-cloud-python/issues/3209.

Okay, we did have one. Thanks.


Introduce concurrency setting to PR builds to streamline workflows

Description:
We need to introduce concurrency setting in PR build to stop unnecessary builds from previously pushed commits.

Sample PR: https://github.com/ballerina-platform/module-ballerina-sql/pull/642
Adjust the timeout based on the total average build time. If the build time is between 45-60 min better to increase the timeout to 90/120 minutes

This is fixed in the centralised workflows


Remove nanoseconds from UX / UI when deploying

/kind feature

Which functionality do you think we should add?
See below:
▶ odo create nodejs --starter
Experimental mode is enabled, use at your own risk

Validation
 ✓  Checking devfile existence [153046ns]
 ✓  Checking devfile compatibility [223245ns]
 ✓  Creating a devfile component from registry: DefaultDevfileRegistry [274307ns]
 ✓  Validating devfile component [718797ns]

Please use `odo push` command to create the component with source deployed

When the spinner is so fast that it's nanoseconds, we should not output it at all
Why is this needed?
Clean up the UX / UI.

https://github.com/openshift/odo/issues/3375
/triage duplicate
/close


Create grant.json

Grant County has a new interactive map up. No addresses, but parcels. They aren't perfect, for example vacation homes don't have a true property address, so the best field is blank for those records.

Don’t mind me, just testing new 3.x release:
Rerun, this please.


Show gifs in uicollectionview

Give some example how to shows gifs from server in UICollectionView

Install DFImageManager/GIF subspec to enable GIF support
Use standard DFImageView methods (for instance, -[DFImageView setImageWithResource:]. It will fetch an image and start playback automatically.

Here's a small FAQ on how DFImageManager handles animated GIFs. For more info see documentation and source code.
And if you have more general questions, please use Stack Overflow. I'm subscribed for dfimagemanager tag.

There is also an example of GIF playback in demo project (pod try DFImageManager).


Don't retry adhoc performance tests

Context
When running adhoc performance tests we currently retry the performance tests when they fail. Since we are not interested in the result but flame graphs we should not retry when running adhoc performance tests.

Thanks for fixing this @wolfs !


Compatibility list in README is incomplete

e.g. 28a598a22224702b6443eb7255c7e40ae117959b added binaries for Node.js 5, but the README doesn't have any entry for Node.js >0.12

You're correct. We've been lax about keeping this up to date.


not working after update

I am getting this error after updating:
Stderr:
.mops/map@9.0.0/src/Map/modules/rehash.mo:3.82-3.94: type error [M0119], object field nat32ToNat64 is not contained in expected type
  module {}

thanks!

If you are using vessel, use the next config
{
  dependencies = [
    ...
  ],
  compiler = Some "0.9.8",
}

And then deploy with
DFX_MOC_PATH=$(vessel bin)/moc dfx deploy

Ok thanks! I am using dfx 0.14.4 . I am just experimenting with stuff and not too deep into it, so I guess I will have to wait until the motoko compiler is updated maybe.


Update bulk analytics page: move aside below title

cc @zaidf

Fixes issue introduced in https://github.com/cloudflare/cloudflare-docs/pull/1594

Approved from a content perspective. I'll leave it up to you to merge in.

I noticed this problem when working on Stream Live and this is already solved in that PR. So I think we can go ahead and close this one.


How to use sentinl plugin to implement appears “java.lang.OutOfMemoryError” , the content of the send mail show which server has problem ?

System Details
Versions

Type
Version

Kibana
5.5.2

Elasticsearc
5.5.2

Server OS
Amazon Linux AMI release 2018.03

Browser
Chrome

I use the following metrics and buckets to query which server have "java.lang.OutOfMemoryError" and count the number of events.

Then I use select "Watcher" , then I click "set alarm" button:

The General of Editor is:

The Input of Editor is:
{
   "search": {
    "request": {
      "index": [
        "<filebeat-{now/d}>",
        "<filebeat-{now/d-1d}>"
      ],
      "body": {
        "size": 0,
        "query": {
          "bool": {
            "must": [
              {
                "query_string": {
                  "query": "\"java.lang.OutOfMemoryError\"",
                  "analyze_wildcard": true
                }
              },
              {
                "range": {
                  "@timestamp": {
                    "from": "now-1h"
                  }
                }
              }
            ],
            "must_not": []
          }
        },
        "_source": {
          "excludes": []
        },
        "aggs": {
          "hostname": {
            "terms": {
              "field": "beat.hostname.keyword",
              "size": 5,
              "order": {
                "_count": "desc"
              }
            }
           }
        }
      }
    }
  }
}

According to this link：
https://github.com/sirensolutions/sentinl/issues/277
The content of Condition is :

The content of  Transform is :

The content of Actions is :

Can the above configuration be implemented when "out of memory" appears in Kibana, the name of each server that has "out of memory" will be displayed in the alarm message?

Can the above configuration be implemented when "out of memory" appears in Kibana, the name of each server that has "out of memory" will be displayed in the alarm message?

Yes, if you have this "out of memory" info in Elasticsearch. What is the problem exactly? Can you get this data from Elasticsearch using DSL query?


Fix .gitattributes

Hi @Nyholm @nicolas-grekas, seems like some entries were missing in the gitattributes definition

I assume failures are unrelated


Extending bundled Typescript definitions for VueRx (or extending in general)

I'd like to use VueRx in a Typescript project.
VueRx extends the Vue prototype with several methods: https://github.com/vuejs/vue-rx#other-api-methods. Since VueRx does not ship with TS declarations, I would like to roll my own. Unfortunately I'm unable to come up with a way to extend the Vue declarations bundled with VueJs due to the way the declaration is written (classes rather than interfaces). Any suggestions?

/cc @ktsn @HerringtonDarkholme

Sure, I can add it.


Feature autocurrentpacket2

Add anther test and support.

[ ] merge #709

This PR will be added to #709


Experimental local inference server for hugging face models

Motivation and Context
While the Semantic Kernel is most powerful when backed with LLMs like GPT-3 variants, use of these models is expensive and not guaranteed. This PR introduces a small API service that enables users to interact with Hugging Face models as they would an OpenAI/Azure OpenAI endpoint.
Description
A Flask server with API support for text completions, embeddings, and text-to-image generation.
A Dockerfile for containerizing the service.
Note: This service is for experiments and testing purposes. It should never be deployed to a production environment.

Is it too early to introduce Image Generation into the Semantic Kernel? Or do you see this as a start to being able to offer that in our skills?


Error with font spacing

When converting a font to path the spaces between the letters are not respected.
I think that the kern displacement in func (ff FontFace) ToPath(s string) (*Path, float64) should be done before to add the glyph to the path.

This was fixed with the merged PR.


Fixed path to regenerator-runtime

Since 0.8.43 regenerator has regenerator-runtime dependency.
Fixes one js test in trunk
Test Plan:
See CI/Travis results

By analyzing the blame information on this pull request, we identified @sebmarkbage and @lexs to be potential reviewers.

@bestander updated the pull request.

@bestander updated the pull request.

@bestander updated the pull request.

@bestander updated the pull request.

cc @davidaurelio

@facebook-github-bot import

Thanks for importing. If you are an FB employee go to Phabricator to review.

Looks good to me!


Group methods refactoring

Simplifying group methods. Still in progress.

Coverage decreased (-0.03%) to 34.34% when pulling 8daf061611ef4797f0e0c4812342041bd48cddb4 on group_methods_refactoring into 0e235d3b3d0c68e0fcf8dd55258d340490c09463 on master.


exit code: 26

I have the same issue.

Hey @OlegTranzzo thanks for reporting this issue. It seems like there's some error when uploading the file.
I would need more details in order to give you the exact reason. Would you mind to list the error traces you get?
In the meantime, would you mind to double check the next two requirements and validate whether your file follows that or exceeds any?:

File size:

APK file: The size cannot exceed 4 GB.
RPK file: The size cannot exceed 20 MB.
AAB file: The size cannot exceed 150 MB.

The file name is coherent when it comes to what it's expected: you could be setting a file name with .apk
and gradle would be building an .aab. You can check this value in your Huawei Step (within your workflow) 👇🏽

I have resolved this issue for myself. The reason of it was in that i build apk file but tried to apload aab file. And script couldn't determine file suffix.

Cool, I presumed it was some issue between the file format expected and the actual one.
I will proceed to close this issue then 😄


Gazebo Fortress - Loading Models Problem with Ogre2.2

Hi there,
I’m currently using Gazebo Fortress with the SubT Simulator on Ubuntu 18.04, and the models in the world are taking up to 10 minutes to load with a medium complexity map. I have the models saved locally in the standard cache location (.ignition/fuel/fuel.ignitionrobotics.org/openrobotics/models) and the cache files are accessed only after Ogre 2.2 times out when attempting to load texture & deletes the buffer memory.
This issue doesn’t occur with Ignition Dome, and the map loads normally with Ignition Dome.
This is likely a physics engine related problem, as Ignition Dome doesn’t use Ogre2. The log from Ogre2 when the map is being loaded says the following:
“17:33:42: Can’t assign material scene::Material(55155) because this Material does not exist. Have you forgotten to define it in a .material script?
17:33:42: Can’t assign material scene::Material(55154) because this Material does not exist. Have you forgotten to define it in a .material script?
17:33:42: WARNING: Deleting mapped buffer without having it unmapped. This is often sign of a resource leak or a bad pattern. Umapping the buffer for you…”
Once the buffer is unmapped, the scene loads.
Possible Causes:

Ogre2 has an issue loading textures
There is an issue with namespace changes from ignition::gazebo to gz::sim
There is a problem with the setup of the Ignition Fortress & Ignition Fuel

Related errors occur:

EGL related
" 17:28:41: Trying to init device: EGL_EXT_device_drm /dev/dri/card0…
17:28:41: Created GL 4.5 context for device EGL_EXT_device_drm /dev/dri/card0
17:28:41: Destroying device: EGL_EXT_device_drm /dev/dri/card0…
17:28:41: EGL Device: EGL_EXT_device_drm /dev/dri/card1
17:28:41: Trying to init device: EGL_EXT_device_drm /dev/dri/card1…
17:28:41: OGRE EXCEPTION(3:RenderingAPIException): eglInitialize failed for device EGL_EXT_device_drm [ /dev/dri/card1 in EGLSupport::getGLDisplay at /var/lib/jenkins/workspace/ogre-2.2-debbuilder/repo/RenderSystems/GL3Plus/src/windowing/EGL/PBuffer/OgreEglPBufferSupport.cpp (line 322)
17:28:41: OGRE EXCEPTION(3:RenderingAPIException): eglInitialize failed for device EGL_EXT_device_drm /dev/dri/card1 in EGLSupport::getGLDisplay at /var/lib/jenkins/workspace/ogre-2.2-debbuilder/repo/RenderSystems/GL3Plus/src/windowing/EGL/PBuffer/OgreEglPBufferSupport.cpp (line 322)
17:28:41: Destroying device: EGL_EXT_device_drm /dev/dri/card1…
17:28:41: EGL Device: EGL_MESA_device_software
17:28:41: Trying to init device: EGL_MESA_device_software…
17:28:41: Created GL 3.3 context for device EGL_MESA_device_software [
17:28:41: Destroying device: EGL_MESA_device_software…
17:28:41: EGL Device: EGL_MESA_device_software
17:28:41: Trying to init device: EGL_MESA_device_software…
17:28:41: Created GL 3.3 context for device EGL_MESA_device_software
17:28:41: Destroying device: EGL_MESA_device_software …"

Could be caused by a graphics card issue, or this may be a red herring.

Level manager error:
[Err] [LevelManager.cc:218] Could not find a plugin tag with name gz::sim. Levels and distributed simulation will not work.
Found that it’s likely benign and can be ignored - Launch ignition through network issue · Issue #1350 · gazebosim/gz-sim · GitHub

Things I have tried:
Saved cache files in different likely locations, and edited multiple environment variables of gazebo to point towards the files
Set the uri of all the models that are being pointed towards, to be towards the local versions using model:// syntax
Compiled Ignition Fuel from source with debug mode on and debugged it using GDB. Tried multiple versions, and the code is pretty box standard from what I can tell.
Installing different versions of Ignition Gazebo
Using Ogre1. Ogre1 did the same thing without the material error in the log, but the same time hanging whilst the models are being loaded into the world.
Any suggestions on where to go from here? I’ve tried everything I can think of and it’s really slowing my development time down! Thank you in advance for your help.

Are there are errors printed in the console?
Dome -> Fortress: we upgraded ogre from 2.1 to 2.2 but not sure if that's the reason or not.
17:33:42: Can’t assign material scene::Material(55154) because this Material does not exist. Have you forgotten to define it in a .material script?
17:33:42: WARNING: Deleting mapped buffer without having it unmapped. This is often sign of a resource leak or a bad pattern. Umapping the buffer for you…”

These warnings should be ok to ignore. They still happen in newer version of gazebo.
17:28:41: OGRE EXCEPTION(3:RenderingAPIException): eglInitialize failed for device EGL_EXT_device_drm [ /dev/dri/card1 in EGLSupport::getGLDisplay at /var/lib/jenkins/workspace/ogre-2.2-debbuilder/repo/RenderSystems/GL3Plus/src/windowing/EGL/PBuffer/OgreEglPBufferSupport.cpp (line 322)

Related issue: https://github.com/gazebosim/gz-rendering/issues/587 - Logged when OGRE tries to query EGL devices - the OGRE 2 dev says it should be harmless.

Using Ogre1. Ogre1 did the same thing without the material error in the log, but the same time hanging whilst the models are being loaded into the world.

Maybe it's a Fuel server issue (https://app.gazebosim.org/). Some older models on Fuel points to ignitionrobotics.org instead of gazebosim.org and may no longer work. Launching gz sim should show errors in console mentioning that it timed out downloading these models.

An alternative reason: Ignition Fuel is trying to load models that are no longer accessible. Is there a way to setup Ignition Fortress to use local files by default prior to attempting to download?

Gazebo looks at the local cache first before downloading them from fuel. So if the models are available in ~/.gz/fuel/.. it should just load those.

From what you've said it sounds like the error is most likely an issue created by Ogre2.2. Is there a way to implement the memory buffer deletion sooner with Ogre2.2?

I'm not sure if that's the reason for slow down. You mentioned that it's also hanging with Ogre1 so that makes me thing it's caused by something else.
One thing I would try first is to comment out some models in the world and see if it's because certain models are taking too long to load.

Thanks for the suggestion @iche033! I have been using the simple_tunnel_02 map and have commented out different model files. I removed all of the model files except the robot one by one until all model files were removed, and tried different robots (it is very funny to watch a single robot falling through a non existent floor!). All/any of the model files cause this error to crop up in the Ogre2 rendering log:
"Can't assign material scene::Material(65447) because this Material does not exist. Have you forgotten to define it in a .material script?"
It is only after the memory is cleared that the GUI loads with the robot:
WARNING: Deleting mapped buffer without having it unmapped. This is often sign of a resource leak or a bad pattern. Umapping the buffer for you... `
After digging into it further and trying different approaches, I have reached the following conclusion which likely explains the situation:
There is a porting problem with Ogre2.2 and Ogre2.1 when the updates were rolled out to gz-rendering6. The reason the error still happens with Ogre1, is the version of gz-rendering6 remains the same, so the code still hangs when launched with the earlier Ogre1 engine instead.
I have identified the particular push when related areas were discussed in gz-rendering6: [(https://github.com/gazebosim/gz-rendering/issues/223)]
Tagging the relevant contributors from that push - @mjcarroll @ahcorde @chapulina @darksylinc
This also is in line with what I am experiencing with EGL support with Ignition Fortress -  the headless version is actually far slower than the normal GUI version, which it shouldn't be. This means that the port from Ogre2.1 to Ogre2.2 has a fundamental bug of some kind in gz-rendering6 and the EGL rendering is not happening as it should. It could be that there are inefficiencies in Ogre2.2's way of rendering but these bugs I'm experiencing are leading me to think it's a bug based in gz-rendering6, rather than Ogre2.2 based. I think this may solve related bugs which cropped up with Ignition Fortress (e.g. [https://github.com/gazebosim/gz-sim/issues/1116] and [https://github.com/gazebosim/gz-sim/issues/1370]), so I think it's worth other people taking a look at. It's a bit beyond my skill level to solve myself unfortunately.
I believe there also may be a different in how the two different .materials files are structured in the fuel models vs what comes loaded in Ogre2.2 and works already. I have attached the two corresponding files which highlight that difference, although it may not be a contributing factor.
skybox.material (ogre2.2).txt
tunnel_tile.material (fuel model material).txt

I'm now running a very similar installation and I don't observe this delay. I run it on a NUC with Intel GPU, though. And also with ctu_cras_norlab_absolem_sensor_config_1 .

How long is the delay you observe? Mine is about 1 minute from ign-rendering-ogre2 loading start (with a single robot model).

I've found this very dependent on the map in question and possibly the specs of the PC. It can range from 1 minute to 10-15 minutes with a map like tunnel_circuit_01. Should I open up a separate issue regarding EGL processing headless being slower than the normal run through with fortress?

I've found this very dependent on the map in question and possibly the specs of the PC. It can range from 1 minute to 10-15 minutes with a map like tunnel_circuit_01. Should I open up a separate issue regarding EGL processing headless being slower than the normal run through with fortress?

Is that on Linux or on Windows (or Windows via WSL)?
When you mentioned headless, I remembered that if no monitors are plugged to Windows, the OS will disable the GPUs and tons of problems appear. You could be running on full SW emulation.

I've found this very dependent on the map in question and possibly the specs of the PC. It can range from 1 minute to 10-15 minutes with a map like tunnel_circuit_01. Should I open up a separate issue regarding EGL processing headless being slower than the normal run through with fortress?

Is that on Linux or on Windows (or Windows via WSL)?
When you mentioned headless, I remembered that if no monitors are plugged to Windows, the OS will disable the GPUs and tons of problems appear. You could be running on full SW emulation.

Thanks so much for the feedback, this is a bit of a headscratcher! It is on native Linux 20.04 with ROS Noetic and Ignition Fortress and a monitor plugged in. I am running headless via the following launch script using the "headless:=true" option: https://github.com/osrf/subt/blob/26fd5da5cc0d7dbbcd269b30752ca305d2bba3d5/subt_ign/launch/competition.ign#L387C13-L387C14
I've tested the headless on different run throughs using 1, 3 and 5 robots for 1 hour worth of elapsed time (real time, rather than sim time) and the RTF for the headless run throughs are slower than the normal run with the GUI in every case. I believe it indicates 1 of 3 things:

The port of gzrendering6 from Ogre2.1 and Ogre2.2 was implemented with a bug which makes headless slower
The setup using that particular launch file and the SubT simulator is configured wrong
Ogre2.2 renders things less effectively in headless mode

I believe it is likely the first result given the replicated error we are encountering with loading materials in the gazeborendering log. Any help would be much appreciated as solving this bug around headless being slower is really important to moving forward with my PhD work.

AFAIK the "headless:=true" option through ROS launch script just disables GUI window but does not actually enable EGL (a little confusing because both are sometimes referred to as headless).

the RTF for the headless run throughs are slower than the normal run with the GUI in every case

This is really weird. I haven't seen this issue before.
Are you able to share your ogre2.log?

The simplest way to address this is to debug it yourself:

Build gazebo from sources in Debug mode. To do so run colcon build --cmake-args -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Debug --merge-install when running the colcon step (I disabled tests to speed up compilation since they shouldn't be needed).
Install QtCreator
Start a terminal.
Just like in the documentation, run the command (with the period at the beginning) . ~/workspace/install/setup.bash so that environment variables are set.
Launch QtCreator FROM WITHIN THIS TERMINAL (so that QtCreator inherits the environment variables from the previous step).
Go to Debug -> Start and Debug external application.
Enter gazebo's executable and parameters as in this picture:

Launch it

Once it launched, start doing what triggers this bug (assuming it requires further interaction).
When it starts taking too long (i.e. the bug finally manifests), hit "Pause":

Once paused it may look like this:

What's relevant is the call stack and the threads enumeration.
This is the callstack, please Right Click -> "Copy contents to Clipboard" and paste it here:

The other thing is the Threads button:

In this example we have very few threads, but Gazebo has A LOT of threads. Go one by one (you can use the mouse wheel to scroll through the Threads very quickly) and see if there is something suspicious that looks stuck. Each time you change threads, the call stack changes. Anything that looks like relevant or "stuck" to you, please paste it here.
Then you can click on the Pause button again to unpause it; and repeat this step to see if it's stuck in the same place or somewhere else. It is relevant to know if the app is stuck in the same place or keeps jumping between different locations.


Suspicious code in Lambertian prefiltering compute

https://github.com/stride3d/stride/blob/5f3542d08b701b90a5b1544e01e42a4d628b2105/sources/engine/Stride.Rendering/Rendering/ComputeEffect/LambertianPrefiltering/LambertianPrefilteringSH.cs#L104
Been reading the code to get to really know those light probes, when I stumbled on something that doesn't seem right. Looks like the order's switched, was it intended to assign groupSizeX instead before trying to decrease it?
                var groupCountX = 1;
                var groupCountY = sumsToPerfomRemaining;
                while (groupCountX >= short.MaxValue)
                {
                    groupCountX <<= 1;
                    groupCountY >>= 1;
                }

That does look suspicious indeed, haven't looked through the logic but could be related to issue #1524

was it intended to assign groupSizeX instead before trying to decrease it?

A bit shift to the left will increase the value. this will basically just move the bit that is set up one place. but the condition in the while loop doesn't really makes sense together with this bit shift.


(maint) Bump bundled modules to latest versions

Closes #1661

I tried to rerun the job (it just timed out, seemed like a network failure) and it made it so much worse :grimacing: Sorry!

Ya, something changed in actions where you can't re-trigger tests without pushing a new commit. :(


feat(search): s2 migration

Description
I believe this is blocked until we get the S2 icons.
S2 migration of Search to align with design specs. On top of the migration work, this PR includes:

Removal of /themes
Removal of quiet variant
Increased Chromatic coverage
Minor mod adjustments
Updated migration guide notes

How and where has this been tested?
Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.
Validation steps

[ ] Storybook testing preview shows all variants (except for hover as we cant show that without adding a class)
[ ] Test WHCM in light and dark mode
[ ] Be sure to test hover while focused since there are specific tokens applied for this
[ ] Design validation

Regression testing
Validate:

The documentation pages for at least two other components are still loading, including:

[ ] The pages render correctly, are accessible, and are responsive.

If components have been modified, VRTs have been run on this branch:

[ ] VRTs have been run and looked at.
[ ] Any VRT changes have been accepted (by reviewer and/or PR author), or there are no changes.

To-do list

[x] I have read the contribution guidelines.
[x] I have updated relevant storybook stories and templates.
[x] I have tested these changes in Windows High Contrast mode.
[x] If my change impacts documentation, I have updated the documentation accordingly.
[ ] ✨ This pull request is ready to merge. ✨

Thanks for the feedback! Some responses for Rise:

Disabled border color - Great callout. I've updated Textfield to improve this which will probably just be a patch change.
.is-keyboardFocused:hover - I've also added this, good catch.
Help text - Yeah totally! I added some help text sections to our Chromatic coverage, and you should see a control to show the help text and also the ability to change the text now.
Clear button - I went down a bit of a rabbit hole with this one trying to use useArgs() to only show this button when there's an input value. I wasn't able to get it working within a reasonable timebox and came to the same conclusion you did about the spacing.
WHCM placeholder color - I noticed this too. I think that using the disabled color for the placeholder text can help communicate that its placeholder text, so that seemed ok to me. Let me know if you have a different value you think would work better!

And a response for Josh:

Clear button focus - This feels like it's in that gray area of whether we would handle this or if it's an implementation detail 🤔 Seems like removing the focus on our end would be a Storybook-only adjustment and would look something like adding an arg to ClearButton to adjust aria-hidden and tab-index, is that what you were thinking? I can add a commit for that and see what you think.


Dataset cannot be downloaded anymore?

i cannot seem to find the 3DFAW dataset anywhere?
which renders the whole project obsolete, so any idea where to find it

Hi,
It seems like the original URL we provided for 3DFAW has changed, and it seems to no longer contain the request form for 3DFAW. Are you able to contact the lab here (http://mhug.disi.unitn.it/workshop/3dfaw/#/contacts) and ask for it?
The dataset is not publicly available and has to be requested, unfortunately. Otherwise, @SinaHonari do you know if there is an alternative that can be used for the project that can be publicly downloaded?
Thanks.

Alternative, if you know of a dataset that is instead 68 keypoints (rather than the 66 of 3DFAW), you can use this util method to convert it from 66 to 68 keypoints:
https://github.com/joelmoniz/DepthNets/blob/2faca1a12836d27b8e773ce4ca51d3e8ff86d83d/depthnet-pytorch/util.py#L137-L148
An example dataset I found is here: https://www.kaggle.com/tarunkr/facial-keypoints-68-dataset/version/1
Again, @SinaHonari if you know of more ideal datasets, please let us know. Sorry it's been such a long time since we did this project (2018), so my memory is quite rusty.
Cheers


Client Allocation Request for: Ipfsapp

Client Allocation Questions
Core Information

Name: Ipfsapp
Website / Social Media: http://ipfsapp.io
Region: Greater China
DataCap Requested: 500TiB
Addresses to be Notarized: f3vmurhy4tne6wykeaqzi75g745kpyaxmwmnzpeltgt4wpv4bgew4tx2jnxmbouvihrt6v7pihd2nrbqbkssaq
Notary Requested: ozhtdong

So, what's the next? Which miners should I write in the trusted list to commit CIDs?
For further communication, please contact email<EMAIL_ADDRESS>Thanks.

@ipfslab - @ozhtdong is currently out of DataCap to allocate. Would recommend you reach out to another notary that still has DataCap available or wait 2-3 weeks till the next round of notary elections is completed. Thank you!


setDisabledButtons util function buttonList is null at some point

Describe the bug
The setDisabledButtons util function buttonList is null at some point. Due to this i get this error while trying to implement the readOnly mode. Cannot read property 'length' of null. I think the buttonList argument must be an array by default.
Here is the defintion.
https://github.com/JiHong88/SunEditor/blob/4d4397281a07c95e93f78b5dbd3f6e293c04ce87/src/lib/util.js#L1183
I think this is where it would be an array for the first time. But up to that point it might be too late if the readOnly method is called
https://github.com/JiHong88/SunEditor/blob/4d4397281a07c95e93f78b5dbd3f6e293c04ce87/src/lib/core.js#L5214-L5217
Here is where the resizingDisabledButtons is defined initially. I think it must be an array instead
https://github.com/JiHong88/SunEditor/blob/4d4397281a07c95e93f78b5dbd3f6e293c04ce87/src/lib/core.js#L210

@mkhstar Thank you.
I'll update the version.


change links from original home to new huggingface location.

This PR updates the links and import statement on the transformers-js page.  It fixes some broken links and better reflects its new locations. Originally, Transformer.js was located on a separate repo and now it is included within the huggingface community.
I'd appreciate any feedback, questions or suggestions you may have.
Thank you

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Thanks @SeanGallen!

Anytime, Thanks everyone.


feature: AndroidTV-Remote navigation

hi all,
I've added AndroidTV Remote navigation to pressKey()

Remote Dpad Up
Remote Dpad Down
Remote Dpad Left
Remote Dpad Right
Remote Dpad Center
Remote Media Play Pause
Remote Media Stop
Remote Media Next
Remote Media Previous
Remote Media Rewind
Remote Media Fast Forward

please let me know if I miss anything 🙇🏻

Thank you for the submission - you are almost there, just need to update the test

hi @dmitry-zaitsev
thanks for the review, I've updated on https://github.com/mobile-dev-inc/maestro/pull/148/commits/ac69848e3abc60483c02da9e84ee7d1c6017d5d5
please let me know if I miss anything 🙇🏻


Red test in StochasticAcceptanceProportionalSelectionTest

There is some problem in StochasticAcceptanceProportionalSelection, the StochasticAcceptanceProportionalSelectionTest>>testSampleReturnOneValueLessOrEqualsThanSize is sometimes red and even worse there is an infinite loop sometimes.

fixed


Footer Component Sketch Visual Spec | Background Color Fix

Detailed description

Describe in detail the issue you're having.

The Footer Sketch component file latest has some of the backgrounds set at #252525, while others are set at #262626 (Gray90), and am pretty sure this is the correct one, looking at Storybook.

Is this a feature request (new component, new icon), a bug, or a general
issue?

Bug

Is this issue related to a specific component?

Footer

What did you expect to happen? What happened instead? What would you like to
see changed?

I expected all the backgrounds for Gray90 and Gray100 to be Gray90 (#262626), based on at latest Storybook:
http://ibmdotcom-web-components.mybluemix.net/?path=/story/components-footer--default
Steps to reproduce the issue

Open Footer Sketch visual spec file
https://ibm.ent.box.com/folder/101562989787?s=nsbccv6jigfw78uwq3r0242qks1x1f87
Select background for various versions of the footer in the file. Some of them will be #252525, others will be #262626

I've checked the file and adjusted the objects with no connection to the library.
@oliviaflory could you help me with a quick overview? Thank you!


PDF to Bitmap

Is there any way to render pdf pages as bitmap ? I am working on Unreal Engine 5 android pdf reader. I developed one with PDFium but on Android, it works only with 2018 PDFium without crash. So, if it supports pdf to bitmap feature, I can integrate it.

Sorry, PDFio is just for reading and writing PDF files, not for rendering them...


cuda out of memory issue on a single A100-80GB

Hello. I can run the ipynb very well but if the output context is a little more, it always meet something like this: "torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 79.19 GiB total capacity; 78.10 GiB already allocated; 8.56 MiB free; 78.23 GiB reserved" It Seems the GPU requirement is just a little more for  80GB VRAM.  This problem prevents it from outputting a longer context.

thanks for the info ❤


Creation of a wrapper for bluster

Here is a first version of the wrapper for bluster's clusterRows.
To see the start of the discussion, check out #363.
The code is fairly straightforward. The wrapper uses parameters to know on which assay the clustering should be done, and using the MARGIN parameter, it also does the clustering on the features or samples.
The result of the function is stored in colData or rowData and additional information can be found in metadata.
Please tell me if you have any remarks!

A possibility to address the fact that we can cluster on assays, altExps, ... is that I can create functions (one for each object). Or I can keep one function with a parameter indicating what kind of object should be handled.

I encountered an issue while working on OMA. With Kmeans, we are supposed to use the distance matrix to do the clustering. But this wrapper will use an assay or an altExp.
So we might need to reference another object for the clustering. I was thinking of the metadata but I wanted to hear your opinion. The possibilities I can think of are the following:

Referencing an object in the metadata: cluster(tse, metadata = "diss", Kmeans(centers = 3)).
Passing a x parameter to reference the object: cluster(tse, x = diss, Kmeans(centers = 3)). That object would then be the one where the clustering is done.
Not addressing the issue to avoid the over-complexification of the function. The user would then have to user clusterRows with the distance matrix as a parameter and then add the result in colData or rowData:

x <- clusterRows(assay(tse, "counts"), Kmeans(centers = 3))
colData(tse)$clusters <- x

I believe kmeans is not commonly used with dissimilarity matrix; at least I haven't heard. In kmeans clustering, means of some features are calculated. If the input is dissimilarity matrix, what are the features? --> I guess it results to unmeaningful results?
(sample 1 and sample 2 might be similar to each other [their similarity is 1] and sample 4 might be similar to sample 9. --> if means are calculated in this feature space, these all aforementioned samples are clustered together even though they are not similar necessarily.
--> so I guess this particular issue is ok. (hierarchical clustering already has dissimilarity parameter)

What original function are speaking about, exactly?
Is it possible to implement similarly to hierarchical clustering, in case distance matrix is required?
Distance matrices can be slow to compute, it is a good feature if clustering function can utilize previously calculated distances. This might be possible in some K-means implementations, I should check and refresh my memories.

I don't see to which hierarchical clustering function you are referring to, but I haven't encountered one with a dissimilarity parameter.
As for the fact that Kmeans doesn't use distance matrix often, I encountered this problem in the OMA book, this is why I'm wondering if we need this. For now, in the book, there's an example that uses a distance matrix but when I wanted to change the Kmeans example to use cluster, the output wasn't the same as before since the clustering is done on the relabundance matrix and not the distance matrix.
I hope that clarifies things a bit.

In principle, I would be ready to leave out K-means for now if this would require more thinking and work. This method is used very little in microbiome analyses, and hierarchical clustering is sufficient for most of the basic use cases. More can be added later but I do not see immediate need, unless it is very easy to add.
The clustering methods that are specifically used in microbiome context - in particular DMM and PAM/CST approach - are essential to have.

Okay so is the wrapper ready to be merged?

Couple things that I forgot:

update NEWS file
update pkgdown/_pkgdown.yml file (add the function there)

Looks good


Support for react 16

I have the following error. How to fix it?
Can't resolve 'create-react-class' in

I ran into the same issue and I'm fixing it by installing create-react-class manually for now:
npm install --save create-react-class

Looks like information about peer dependencies is missing in readme.

#131 Fixes this right?

#131 is not a automatic fix. create-react-class is declared as peer dependency, therefore it is required to install the same manually in the project.
May be in the favour of ES6, this dependency can be dropped in future by @mpowaga.

Fixed with #147


Erorr

Raise PhotoNotUpload(response.text, response=response, **last_json)
instagrapi.exceptions.PhotoNotUpload: {"message":"checkpoint_required","checkpoint_url":"https://i.instagram.com/privacy/checks/?privacy_flow=1\u0026next=instagram://checkpoint/dismiss","lock":false,"flow_render_type":0,"status":"fail"}

@yekayee  I don't know how to fix it now, so i advise to use https://lamadava.com/
Or fix it yourself and send PR to instagrapi


Refactoring MainActivity::onBackPressed

As per #1 , the goal is to reduce the MainActivity CCN.
Requirement: As a developer, I would like to decrease the CCN of classes.

Cyclomatic Complexity Number as per Lizard before refactoring:

Class CNN (average across all functions): 2.11
onBackPressed CNN: 9


Can this tweet out images randomly in addition to the normal tweets?

Like can it pull images that have already been tweeted by the account that it's pulling tweets from? Or does it have any functionality for tweeting images at all?

It has no special functionality for it, but you can always use bot.twitter.update http://stackoverflow.com/a/26239076


Generate container doesn't use proper reducer names everywhere

When using yarn generate to create a container, it appears to wrongly generate the name of the reducer in injectReducer and injectSaga.
Steps to reproduce:

run yarn generate
container
Stateless Function
name: TestContainer
Yes to all questions

At this point in the TestContainer folder, the selectors use testContainer (proper camelCase), whereas the injectReducer from index.js uses testcontainer (all lowerCase).
This causes the component to crash on render with the following (horrible) error:
ReactCompositeComponent.js:744 Uncaught TypeError: Cannot read property '_currentElement' of null
    at ReactCompositeComponentWrapper._updateRenderedComponent (ReactCompositeComponent.js:744)
    at ReactCompositeComponentWrapper._performComponentUpdate (ReactCompositeComponent.js:723)
    at ReactCompositeComponentWrapper.updateComponent (ReactCompositeComponent.js:644)
    at ReactCompositeComponentWrapper.receiveComponent (ReactCompositeComponent.js:546)
    at Object.receiveComponent (ReactReconciler.js:124)
    at ReactCompositeComponentWrapper._updateRenderedComponent (ReactCompositeComponent.js:753)
    at ReactCompositeComponentWrapper._performComponentUpdate (ReactCompositeComponent.js:723)
    at ReactCompositeComponentWrapper.updateComponent (ReactCompositeComponent.js:644)
    at ReactCompositeComponentWrapper.receiveComponent (ReactCompositeComponent.js:546)
    at Object.receiveComponent (ReactReconciler.js:124)

Edit: I think these are the offending lines that should have a matching case:

https://github.com/react-boilerplate/react-boilerplate/blob/5b58dd97d0e9dc39799c345f1bcbf1333bde92b1/internals/generators/container/stateless.js.hbs#L71
https://github.com/react-boilerplate/react-boilerplate/blob/5b58dd97d0e9dc39799c345f1bcbf1333bde92b1/internals/generators/container/selectors.js.hbs#L6

Thanks for reporting! This was already fixed in #2055 though. It will be released to master in v3.6 so, in the meantime, you can make the changes directly to the generator files in your project.


Update README.md

Fixed the instruction for running the application.

Dear SayantaniDeb,
Thanks for your attention, I just accept pull request about bugs and issues.
Have a great day


Stuck on "Waiting for game to open..."

It is just stuck on "Waiting for game to open..."