./lodestar: line 7: 2710 Illegal instruction (core dumped)

Describe the bug
My lodestar v1.21.0/ae1f9d5 fails to run after an upgrade.
Sep-09 11:58:43.501[]                 info: Lodestar network=mainnet, version=v1.21.0/ae1f9d5, commit=ae1f9d5d8896cf8e5e1dc42cfeea5fbb4b69e99a
Sep-09 11:58:45.801[]                 info: Connected to LevelDB database path=/home/user/.local/share/lodestar/mainnet/chain-db
Sep-09 11:59:21.984[]                 info: Initializing beacon from a valid db state slot=9920736, epoch=310023, stateRoot=0xace5ae1e69658be542e301a6ef019f0da248da32cce3cfe7406340459e0a7401, isWithinWeakSubjectivityPeriod=true
Sep-09 11:59:24.654[monitoring]       info: Started monitoring service remote=beaconcha.in, machine=ireco, interval=60000
Sep-09 11:59:25.085[chain]            info: Historical state worker started
Sep-09 11:59:25.113[eth1]             info: Eth1 provider urls=http://<IP_ADDRESS>:8551,http://<IP_ADDRESS>:8551
Sep-09 11:59:25.124[execution]        info: Execution client urls=http://<IP_ADDRESS>:8551,http://<IP_ADDRESS>:8551
./lodestar: line 7:  2710 Illegal instruction     (core dumped) node --trace-deprecation --max-old-space-size=8192 ./packages/cli/bin/lodestar.js "$@"

Expected behavior
No illegal instruction.

Sep-09 12:06:35.103[]                 info: Lodestar network=mainnet, version=v1.21.0/ae1f9d5, commit=ae1f9d5d8896cf8e5e1dc42cfeea5fbb4b69e99a
Sep-09 12:06:35.106[]                 info: Connecting to LevelDB database path=/home/user/.local/share/lodestar/mainnet/validator-db
./lodestar: line 7:  1471 Illegal instruction     (core dumped) node --trace-deprecation --max-old-space-size=8192 ./packages/cli/bin/lodestar.js "$@"

~ user@draco
❯ node --version
v20.17.0

~ user@draco
❯ nvm list | tail -n1
lts/iron -> v20.17.0

Do you happen to have debug: logs with this too?

@q9f what's the machine's cpu arch?

Are you running in docker or bare metal?  What version did you upgrade from to help narrow the search.

Do you happen to have debug: logs with this too?

No, I can turn it on though, it won't go further than this.

@q9f what's the machine's cpu arch?

x64 (Intel® Celeron® Processor N5105 )

Are you running in docker or bare metal? What version did you upgrade from to help narrow the search.

Bare metal, managing node through nvm and building from git tag's source. I upgraded from 1.20.1 to 1.21.0.

Do you happen to have debug: logs with this too?

Debug logs seem to be useless here.
~/lodestar tags/v1.21.0* user@franz
❯ ./lodestar validator --network mainnet --logLevel trace
Sep-10 13:20:41.392[]                 info: Lodestar network=mainnet, version=v1.21.0/ae1f9d5, commit=ae1f9d5d8896cf8e5e1dc42cfeea5fbb4b69e99a
Sep-10 13:20:41.395[]                 info: Connecting to LevelDB database path=/home/user/.local/share/lodestar/mainnet/validator-db
./lodestar: line 7:  3540 Illegal instruction     (core dumped) node --trace-deprecation --max-old-space-size=8192 ./packages/cli/bin/lodestar.js "$@"

~/lodestar tags/v1.21.0* user@merak
❯ ./lodestar beacon --network mainnet --logLevel trace
Sep-10 13:22:19.806[]                 info: Lodestar network=mainnet, version=v1.21.0/ae1f9d5, commit=ae1f9d5d8896cf8e5e1dc42cfeea5fbb4b69e99a
Sep-10 13:22:20.874[]                 info: Connected to LevelDB database path=/home/user/.local/share/lodestar/mainnet/chain-db
Sep-10 13:22:57.257[]                 info: Initializing beacon from a valid db state slot=9920768, epoch=310024, stateRoot=0xc479c2156d85d7c49b499a9e05bf06e3724af7f62817622066a29bf97c88ef4f, isWithinWeakSubjectivityPeriod=true
Sep-10 13:22:59.718[chain]            info: Historical state worker started
Sep-10 13:22:59.738[eth1]             info: Eth1 provider urls=http://localhost:8551
Sep-10 13:22:59.749[execution]        info: Execution client urls=http://localhost:8551
./lodestar: line 7:  3329 Illegal instruction     (core dumped) node --trace-deprecation --max-old-space-size=8192 ./packages/cli/bin/lodestar.js "$@"

Let me try to find the core dump.

Running lodestar through node directly without args says "illegal hardware instruction"
~/lodestar tags/v1.21.0* user@franz
❯ node ./packages/cli/bin/lodestar.js validator
Sep-10 13:27:00.060[]                 info: Lodestar network=mainnet, version=v1.21.0/ae1f9d5, commit=ae1f9d5d8896cf8e5e1dc42cfeea5fbb4b69e99a
Sep-10 13:27:00.063[]                 info: Connecting to LevelDB database path=/home/user/.local/share/lodestar/mainnet/validator-db
zsh: illegal hardware instruction (core dumped)  node ./packages/cli/bin/lodestar.js validator

Core dump:
           PID: 4566 (node)
           UID: 1000 (user)
           GID: 984 (users)
        Signal: 4 (ILL)
     Timestamp: Tue 2024-09-10 13:27:00 CEST (5min ago)
  Command Line: node ./packages/cli/bin/lodestar.js validator
    Executable: /home/user/.nvm/versions/node/v20.17.0/bin/node
 Control Group<EMAIL_ADDRESS>
          Unit<EMAIL_ADDRESS>
     User Unit: tmux-spawn-21a9b3c8-0af0-4cf9-a7e9-7776c462912b.scope
         Slice: user-1000.slice
     Owner UID: 1000 (user)
       Boot ID: 9b894083e30f41ab9b50d433d4354f3f
    Machine ID: 8358b82579f94b58aa3b6a47b5cd2806
      Hostname: franz
       Storage: /var/lib/systemd/coredump/core.node.1000.9b894083e30f41ab9b50d433d4354f3f.4566.1725967620000000.zst (present)
  Size on Disk: 22.3M
       Message: Process 4566 (node) of user 1000 dumped core.

                Module<EMAIL_ADDRESS>without build-id.
                Module<EMAIL_ADDRESS>
                Module<EMAIL_ADDRESS>without build-id.
                Module<EMAIL_ADDRESS>
                Module<EMAIL_ADDRESS>without build-id.
                Module<EMAIL_ADDRESS>
                Stack trace of thread 4566:
                #0  0x00007ae38cd569a1 n/a<EMAIL_ADDRESS>+ 0xa29a1)                                                                                ELF object binary architecture: AMD x86-64

GNU gdb (GDB) 15.1
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/user/.nvm/versions/node/v20.17.0/bin/node...
[New LWP 4566]
[New LWP 4570]
[New LWP 4567]
[New LWP 4575]
[New LWP 4576]
[New LWP 4568]
[New LWP 4569]
[New LWP 4573]
[New LWP 4571]
[New LWP 4574]
[New LWP 4572]

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n])
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `node ./packages/cli/bin/lodestar.js validator'.
Program terminated with signal SIGILL, Illegal instruction.
#0  0x00007ae38cd569a1 in ?? () from<EMAIL_ADDRESS>[Current thread is 1 (Thread 0x7ae38dc88840 (LWP 4566))]

(gdb) bt
#0  0x00007ae38cd569a1 in ?? () from<EMAIL_ADDRESS>#1  0x00007ae38cd3d218 in ?? () from<EMAIL_ADDRESS>#2  0x00007ae38cd4b6e9 in ?? () from<EMAIL_ADDRESS>#3  0x00007ae38cd3de13 in ?? () from<EMAIL_ADDRESS>#4  0x00007ae38cd3d4f6 in ?? () from<EMAIL_ADDRESS>#5  0x00007ae38cd3d5cf in ?? () from<EMAIL_ADDRESS>#6  0x00007ae38cce5ace in ?? () from<EMAIL_ADDRESS>#7  0x0000000000c55a69 in v8impl::(anonymous namespace)::FunctionCallbackWrapper::Invoke(v8::FunctionCallbackInfo<v8::Value> const&) ()
#8  0x0000000000f5f8ff in v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) ()
#9  0x0000000000f6016d in v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, unsigned long*, int) ()
#10 0x0000000000f60635 in v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) ()
#11 0x000000000196adf6 in Builtins_CEntry_Return1_ArgvOnStack_BuiltinExit ()
#12 0x00000000018dcd1c in Builtins_InterpreterEntryTrampoline ()
#13 0x00000b5c19ac04e9 in ?? ()
#14 0x000016129046c499 in ?? ()
#15 0x0000000500000000 in ?? ()
#16 0x00000b5c19ac05b9 in ?? ()
#17 0x00002a5f14d88879 in ?? ()
#18 0x00000b5c19ac04e9 in ?? ()
#19 0x00000b5c19ac04e9 in ?? ()
#20 0x000016721c6996d1 in ?? ()
#21 0x000019f99b197a31 in ?? ()
#22 0x00000b5c19ac05b9 in ?? ()
#23 0xffffffff00000000 in ?? ()
#24 0x0000002000000000 in ?? ()
#25 0x0000000000000000 in ?? ()

(gdb) thread apply all backtrace full

Thread 11 (Thread 0x7ae38d6506c0 (LWP 4572)):
#0  0x00007ae38d782a19 in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x00007ae38d78e858 in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#2  0x00000000018c806a in uv__sem_wait (sem=<optimized out>) at ../deps/uv/src/unix/thread.c:639
        r = <optimized out>
#3  uv_sem_wait (sem=0x55f1400 <node::inspector::(anonymous namespace)::start_io_thread_semaphore>) at ../deps/uv/src/unix/thread.c:695
No locals.
#4  0x0000000000e05445 in node::inspector::(anonymous namespace)::StartIoThreadMain(void*) ()
No symbol table info available.
#5  0x00007ae38d78639d in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#6  0x00007ae38d80b49c in ?? () from /usr/lib/libc.so.6
No symbol table info available.

Thread 10 (Thread 0x7ae3654006c0 (LWP 4574)):
#0  0x00007ae38d782a19 in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x00007ae38d785479 in pthread_cond_wait () from /usr/lib/libc.so.6
No symbol table info available.
#2  0x00000000018c8239 in uv_cond_wait (cond=cond@entry=0x5601b00 <cond>, mutex=mutex@entry=0x5601ac0 <mutex>) at ../deps/uv/src/unix/thread.c:793
No locals.
#3  0x00000000018b496c in worker (arg=0x0) at ../deps/uv/src/threadpool.c:76
        w = <optimized out>
        q = <optimized out>
        is_slow_work = <optimized out>
#4  0x00007ae38d78639d in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#5  0x00007ae38d80b49c in ?? () from /usr/lib/libc.so.6
No symbol table info available.

Thread 9 (Thread 0x7ae386a006c0 (LWP 4571)):
#0  0x00007ae38d782a19 in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x00007ae38d785479 in pthread_cond_wait () from /usr/lib/libc.so.6
No symbol table info available.
#2  0x00000000018c8239 in uv_cond_wait (cond=<optimized out>, mutex=<optimized out>) at ../deps/uv/src/unix/thread.c:793
No locals.
#3  0x0000000000d3f72b in node::(anonymous namespace)::PlatformWorkerThread(void*) ()
No symbol table info available.
#4  0x00007ae38d78639d in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#5  0x00007ae38d80b49c in ?? () from /usr/lib/libc.so.6
No symbol table info available.

Thread 8 (Thread 0x7ae365e006c0 (LWP 4573)):
#0  0x00007ae38d782a19 in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x00007ae38d785479 in pthread_cond_wait () from /usr/lib/libc.so.6
No symbol table info available.
#2  0x00000000018c8239 in uv_cond_wait (cond=cond@entry=0x5601b00 <cond>, mutex=mutex@entry=0x5601ac0 <mutex>) at ../deps/uv/src/unix/thread.c:793
No locals.
#3  0x00000000018b496c in worker (arg=0x0) at ../deps/uv/src/threadpool.c:76
        w = <optimized out>
        q = <optimized out>
        is_slow_work = <optimized out>
#4  0x00007ae38d78639d in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#5  0x00007ae38d80b49c in ?? () from /usr/lib/libc.so.6
No symbol table info available.

Thread 7 (Thread 0x7ae387e006c0 (LWP 4569)):
#0  0x00007ae38d782a19 in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x00007ae38d785479 in pthread_cond_wait () from /usr/lib/libc.so.6
No symbol table info available.
#2  0x00000000018c8239 in uv_cond_wait (cond=<optimized out>, mutex=<optimized out>) at ../deps/uv/src/unix/thread.c:793
No locals.
#3  0x0000000000d3f72b in node::(anonymous namespace)::PlatformWorkerThread(void*) ()
No symbol table info available.
#4  0x00007ae38d78639d in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#5  0x00007ae38d80b49c in ?? () from /usr/lib/libc.so.6
No symbol table info available.

Thread 6 (Thread 0x7ae38cc006c0 (LWP 4568)):
#0  0x00007ae38d782a19 in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x00007ae38d785479 in pthread_cond_wait () from /usr/lib/libc.so.6
No symbol table info available.
#2  0x00000000018c8239 in uv_cond_wait (cond=<optimized out>, mutex=<optimized out>) at ../deps/uv/src/unix/thread.c:793
No locals.
#3  0x0000000000d3f72b in node::(anonymous namespace)::PlatformWorkerThread(void*) ()
No symbol table info available.
#4  0x00007ae38d78639d in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#5  0x00007ae38d80b49c in ?? () from /usr/lib/libc.so.6
No symbol table info available.

Thread 5 (Thread 0x7ae3640006c0 (LWP 4576)):
#0  0x00007ae38d782a19 in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x00007ae38d785479 in pthread_cond_wait () from /usr/lib/libc.so.6
No symbol table info available.
#2  0x00000000018c8239 in uv_cond_wait (cond=cond@entry=0x5601b00 <cond>, mutex=mutex@entry=0x5601ac0 <mutex>) at ../deps/uv/src/unix/thread.c:793
No locals.
#3  0x00000000018b496c in worker (arg=0x0) at ../deps/uv/src/threadpool.c:76
        w = <optimized out>
        q = <optimized out>
        is_slow_work = <optimized out>
#4  0x00007ae38d78639d in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#5  0x00007ae38d80b49c in ?? () from /usr/lib/libc.so.6
No symbol table info available.

Thread 4 (Thread 0x7ae364a006c0 (LWP 4575)):
#0  0x00007ae38d782a19 in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x00007ae38d785479 in pthread_cond_wait () from /usr/lib/libc.so.6
No symbol table info available.
#2  0x00000000018c8239 in uv_cond_wait (cond=cond@entry=0x5601b00 <cond>, mutex=mutex@entry=0x5601ac0 <mutex>) at ../deps/uv/src/unix/thread.c:793
No locals.
#3  0x00000000018b496c in worker (arg=0x0) at ../deps/uv/src/threadpool.c:76
        w = <optimized out>
        q = <optimized out>
        is_slow_work = <optimized out>
#4  0x00007ae38d78639d in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#5  0x00007ae38d80b49c in ?? () from /usr/lib/libc.so.6
No symbol table info available.

Thread 3 (Thread 0x7ae38d6006c0 (LWP 4567)):
#0  0x00007ae38d80b750 in epoll_pwait () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x00000000018cd0f6 in uv__io_poll (loop=loop@entry=0x71c87d8, timeout=2797) at ../deps/uv/src/unix/linux.c:1368
        lfields = 0x7ae388000b70
        events = {{events = 1, data = {ptr = 0xc, fd = 12, u32 = 12, u64 = 12}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}} <repeats 883 times>, {events = 0, data = {ptr = 0x8d74b5f900000000, fd = 0, u32 = 0, u64 =<PHONE_NUMBER>7697759232}}, {events = 31459, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events =<PHONE_NUMBER>, data = {ptr = 0x8d5ffc9000007ae3, fd = 31459, u32 = 31459, u64 =<PHONE_NUMBER>7540872931}}, {events = 31459, data = {ptr = 0x7ae38d5ffbc0, fd = -1923089472, u32 =<PHONE_NUMBER>, u64 =<PHONE_NUMBER>42688}}, {events =<PHONE_NUMBER>, data = {ptr = 0x8d75454c00007ae3, fd = 31459, u32 = 31459, u64 =<PHONE_NUMBER>4342848227}}, {events = 31459, data = {ptr = 0xffffffffffffffff, fd = -1, u32 =<PHONE_NUMBER>, u64 =<PHONE_NUMBER>3709551615}}, {events = 0, data = {ptr = 0x8d8a2db700000000, fd = 0, u32 = 0, u64 =<PHONE_NUMBER>0136174592}}, {events = 31459, data = {ptr = 0x7ae38d8a2da0, fd = -1920324192, u32 =<PHONE_NUMBER>, u64 =<PHONE_NUMBER>07968}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 1, data = {ptr = 0x75, fd = 117, u32 = 117, u64 = 117}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x7ae38d5ffb74, fd = -1923089548, u32 =<PHONE_NUMBER>, u64 =<PHONE_NUMBER>42612}}, {events =<PHONE_NUMBER>, data = {ptr = 0x400007ae3, fd = 31459, u32 = 31459, u64 =<PHONE_NUMBER>3}}, {events = 0, data = {ptr = 0x4, fd = 4, u32 = 4, u64 = 4}}, {events = 10, data = {ptr = 0x100000000, fd = 0, u32 = 0, u64 =<PHONE_NUMBER>}}, {events = 32, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x3000000018, fd = 24, u32 = 24, u64 =<PHONE_NUMBER>32}}, {events =<PHONE_NUMBER>, data = {ptr = 0x8d5ffcb000007ae3, fd = 31459, u32 = 31459, u64 =<PHONE_NUMBER>4979826403}}, {events = 31459, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}} <repeats 83 times>, {events = 0, data = {ptr = 0x3736353400000000, fd = 0, u32 = 0, u64 =<PHONE_NUMBER>282983424}}, {events =<PHONE_NUMBER>, data = {ptr = 0xc5b1693c, fd = -978228932, u32 =<PHONE_NUMBER>, u64 =<PHONE_NUMBER>}}, {events = 0, data = {ptr = 0x7ae38d5ffbc0, fd = -1923089472, u32 =<PHONE_NUMBER>, u64 =<PHONE_NUMBER>42688}}, {events =<PHONE_NUMBER>, data = {ptr = 0x8d5ffd7000007ae3, fd = 31459, u32 = 31459, u64 =<PHONE_NUMBER>9613547235}}, {events = 31459, data = {ptr = 0x9, fd = 9, u32 = 9, u64 = 9}}, {events =<PHONE_NUMBER>, data = {ptr = 0x8d5ffc8000007ffd, fd = 32765, u32 = 32765, u64 =<PHONE_NUMBER>8821397501}}, {events = 31459, data = {ptr = 0x7ae38d796435, fd = -1921424331, u32 =<PHONE_NUMBER>, u64 =<PHONE_NUMBER>07829}}, {events =<PHONE_NUMBER>, data = {ptr = 0x700007ae3, fd = 31459, u32 = 31459, u64 =<PHONE_NUMBER>1}}, {events = 0, data = {ptr = 0x7ae38d5ffd93, fd = -1923089005, u32 =<PHONE_NUMBER>, u64 =<PHONE_NUMBER>43155}}, {events =<PHONE_NUMBER>, data = {ptr = 0x200007ae3, fd = 31459, u32 = 31459, u64 =<PHONE_NUMBER>}}, {events = 0, data = {ptr = 0x80, fd = 128, u32 = 128, u64 = 128}}, {events =<PHONE_NUMBER>, data = {ptr = 0xfffffe9800007ae3, fd = 31459, u32 = 31459, u64 =<PHONE_NUMBER>7521356515}}, {events =<PHONE_NUMBER>, data = {ptr = 0x71c87d8, fd = 119310296, u32 = 119310296, u64 = 119310296}}, {events = 14, data = {ptr = 0x8d5ffc5000000000, fd = 0, u32 = 0, u64 =<PHONE_NUMBER>2662934528}}, {events = 31459, data = {ptr = 0x7ae38d796ef4 <malloc+164>, fd = -1921421580, u32 =<PHONE_NUMBER>, u64 =<PHONE_NUMBER>10580}}, {events = 0, data = {ptr = 0xf00000000, fd = 0, u32 = 0, u64 =<PHONE_NUMBER>0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 15, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x71c8a08, fd = 119310856, u32 = 119310856, u64 = 119310856}}, {events =<PHONE_NUMBER>, data = {ptr = 0x18b5e2900007ae3, fd = 31459, u32 = 31459, u64 =<PHONE_NUMBER>87410659}}, {events = 0, data = {ptr = 0xf, fd = 15, u32 = 15, u64 = 15}}, {events = 119310296, data = {ptr = 0x71c8a0800000000, fd = 0, u32 = 0, u64 =<PHONE_NUMBER>77765376}}, {events = 0, data = {ptr = 0x71c87d8, fd = 119310296, u32 = 119310296, u64 = 119310296}}, {events =<PHONE_NUMBER>, data = {ptr = 0x18ba20900007ae3, fd = 31459, u32 = 31459, u64 =<PHONE_NUMBER>39145955}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x8d5ffcd000000000, fd = 0, u32 = 0, u64 =<PHONE_NUMBER>2418748416}}, {events = 31459, data = {ptr = 0x71c8a40, fd = 119310912, u32 = 119310912, u64 = 119310912}}, {events = 119310296, data = {ptr = 0x71c8a0800000000, fd = 0, u32 = 0, u64 =<PHONE_NUMBER>77765376}}, {events = 0, data = {ptr = 0x71c87d8, fd = 119310296, u32 = 119310296, u64 = 119310296}}, {events = 1, data = {ptr = 0x8d5ffce000000000, fd = 0, u32 = 0, u64 =<PHONE_NUMBER>1138225152}}, {events = 31459, data = {ptr = 0x7ae38d7d361d <clock_gettime+29>, fd = -1921173987, u32 =<PHONE_NUMBER>, u64 =<PHONE_NUMBER>58173}}}
        prep = {{events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}} <repeats 256 times>}
        inv = {prep = 0x7ae38d5fc0e0, events = 0x7ae38d5fcce0, nfds = -1}
        pe = <optimized out>
        e = {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}
        ctl = 0x7ae388000c38
        iou = 0x7ae388000cc0
        real_timeout = 2797
        q = <optimized out>
        w = <optimized out>
        sigmask = <optimized out>
        sigset = {__val = {0 <repeats 16 times>}}
        base = <optimized out>
        have_iou_events = <optimized out>
        have_signals = <optimized out>
        nevents = <optimized out>
        epollfd = <optimized out>
        count = 48
        nfds = <optimized out>
        fd = <optimized out>
        op = <optimized out>
        i = <optimized out>
        user_timeout = <optimized out>
        reset_timeout = 0
        __PRETTY_FUNCTION__ = "uv__io_poll"
#2  0x00000000018b9637 in uv_run (loop=0x71c87d8, mode=UV_RUN_DEFAULT) at ../deps/uv/src/unix/core.c:447
        timeout = <optimized out>
        r = <optimized out>
        can_sleep = <optimized out>
#3  0x0000000000d446c0 in node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start()::{lambda(void*)#1}::_FUN(void*) ()
No symbol table info available.
#4  0x00007ae38d78639d in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#5  0x00007ae38d80b49c in ?? () from /usr/lib/libc.so.6
No symbol table info available.

Thread 2 (Thread 0x7ae3874006c0 (LWP 4570)):
#0  0x00007ae38d782a19 in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x00007ae38d785479 in pthread_cond_wait () from /usr/lib/libc.so.6
No symbol table info available.
#2  0x00000000018c8239 in uv_cond_wait (cond=<optimized out>, mutex=<optimized out>) at ../deps/uv/src/unix/thread.c:793
No locals.
#3  0x0000000000d3f72b in node::(anonymous namespace)::PlatformWorkerThread(void*) ()
No symbol table info available.
#4  0x00007ae38d78639d in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#5  0x00007ae38d80b49c in ?? () from /usr/lib/libc.so.6
No symbol table info available.

Thread 1 (Thread 0x7ae38dc88840 (LWP 4566)):
#0  0x00007ae38cd569a1 in ?? () from<EMAIL_ADDRESS>No symbol table info available.
#1  0x00007ae38cd3d218 in ?? () from<EMAIL_ADDRESS>No symbol table info available.
#2  0x00007ae38cd4b6e9 in ?? () from<EMAIL_ADDRESS>No symbol table info available.
#3  0x00007ae38cd3de13 in ?? () from<EMAIL_ADDRESS>No symbol table info available.
#4  0x00007ae38cd3d4f6 in ?? () from<EMAIL_ADDRESS>No symbol table info available.
#5  0x00007ae38cd3d5cf in ?? () from<EMAIL_ADDRESS>No symbol table info available.
#6  0x00007ae38cce5ace in ?? () from<EMAIL_ADDRESS>No symbol table info available.
#7  0x0000000000c55a69 in v8impl::(anonymous namespace)::FunctionCallbackWrapper::Invoke(v8::FunctionCallbackInfo<v8::Value> const&) ()
No symbol table info available.
#8  0x0000000000f5f8ff in v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) ()
No symbol table info available.
#9  0x0000000000f6016d in v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, unsigned long*, int) ()
No symbol table info available.
#10 0x0000000000f60635 in v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) ()
No symbol table info available.
#11 0x000000000196adf6 in Builtins_CEntry_Return1_ArgvOnStack_BuiltinExit ()
No symbol table info available.
#12 0x00000000018dcd1c in Builtins_InterpreterEntryTrampoline ()
No symbol table info available.
#13 0x00000b5c19ac04e9 in ?? ()
No symbol table info available.
#14 0x000016129046c499 in ?? ()
No symbol table info available.
#15 0x0000000500000000 in ?? ()
No symbol table info available.
#16 0x00000b5c19ac05b9 in ?? ()
No symbol table info available.
#17 0x00002a5f14d88879 in ?? ()
No symbol table info available.
#18 0x00000b5c19ac04e9 in ?? ()
No symbol table info available.
#19 0x00000b5c19ac04e9 in ?? ()
No symbol table info available.
#20 0x000016721c6996d1 in ?? ()
No symbol table info available.
#21 0x000019f99b197a31 in ?? ()
No symbol table info available.
#22 0x00000b5c19ac05b9 in ?? ()
No symbol table info available.
#23 0xffffffff00000000 in ?? ()
No symbol table info available.
#24 0x0000002000000000 in ?? ()
No symbol table info available.
#25 0x0000000000000000 in ?? ()
No symbol table info available.

Looks like a blst wrapper issue (or blst itself?)

Yeah, 1.21.0 introduced a new blst wrapper (a rewrite of the wrapper using napi-rs) and an updated version of blst (from a Sept 2022 version to the most recent release).

See https://github.com/ChainSafe/lodestar/pull/6894

Will take some deeper investigation to see where the problem lies (whether in the newer version of blst, or in the wrapper).

you rock for the stack trace!!! amazing!!!  Not sure which layer its coming from though from that info.  We rewrote in rust recently so it adds a bit more complexity to that answer.  I am putting together a branch for you that will allow a debug build of the bindings to get built locally on your box.  Will fill out the function names of the first 6 lines on the back trace to narrow down where the illegal instruction is coming from

Just to be sane I did remove everything and built a fresh lodestar on both the affected machine and my workstation. I can confirm that this can not be reproduced on a modern Intel Core i9 - so I suspect something is off with the Celeron SoC.
I'm wondering if there is an easy way to debug the blst library directly as I don't think this stems from lodestar or the wrapper even.

@q9f I pushed a branch that will run the debug build of the blst lib, the rust bindings in supranational/blst and our chainsafe/blst-ts bindings that wrap those.   I added flags to optimize for GDB so the stack traces should be fully expressive.   If you get a minute, please pull the branch and install/build/start as normal (like you did when it threw the error).  It should dump a much more thorough stack trace.  Thanks!
branch name is mkeil/afri-debug

That is both wonderful and concerning because of the couple modifications I made when testing the debug build.  What OS are you running?

Yes, I always maintain a Rust toolchain. The OS is Archlinux, by the way.

I've narrowed down the issue but an not sure why your system is reporting to not use std and I had to force it.
CARGO_CFG_TARGET_OS
CARGO_CFG_TARGET_ENV
CARGO_CFG_TARGET_ARCH
CARGO_CFG_TARGET_FAMILY
I am trying to sort out the why so I can put up a PR in the supranational/blst repo as that is where the problem originates.  Here is an excerpt of the build.rs that selects whether to conditionally apply the feature="std" that I overrode.  There are some other segments below this snippet that also rely on those env vars that apply some other features which could also be where the issue is hidden but they seem less likely as manually forcing the std feature doesn't change their behavior.
    // account for cross-compilation [by examining environment variables]
    let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap();
    let target_env = env::var("CARGO_CFG_TARGET_ENV").unwrap();
    let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
    let target_family = env::var("CARGO_CFG_TARGET_FAMILY").unwrap_or_default();

    let target_no_std = target_os.eq("none")
        || (target_os.eq("unknown") && target_arch.eq("wasm32"))
        || target_os.eq("uefi")
        || env::var("BLST_TEST_NO_STD").is_ok();

    if !target_no_std {
        println!("cargo:rustc-cfg=feature=\"std\"");         // this is the line I manually overrode
        if target_arch.eq("wasm32") || target_os.eq("unknown") {
            println!("cargo:rustc-cfg=feature=\"no-threads\"");
        }
    }

~/lodestar-debug unstable user@irena
❯ rustc --version
rustc 1.81.0 (eeb90cda1 2024-09-04)

~/lodestar-debug unstable user@irena
❯ rustc --print cfg
debug_assertions
panic="unwind"
target_abi=""
target_arch="x86_64"
target_endian="little"
target_env="gnu"
target_family="unix"
target_feature="fxsr"
target_feature="sse"
target_feature="sse2"
target_has_atomic="16"
target_has_atomic="32"
target_has_atomic="64"
target_has_atomic="8"
target_has_atomic="ptr"
target_os="linux"
target_pointer_width="64"
target_vendor="unknown"
unix

Hey folks, I had a user run into this on my side and can reproduce it easily too. Running v1.22.0 on a CPU without the following:

adx
avx
avx2
bmi1
bmi2

New versions of BLST are supposed to dynamically detect CPU features at runtime; older versions had them fixed during compilation which is why Prysm and Lighthouse used to have "modern" vs. "portable" builds (and more importantly, Docker containers). Either option would probably resolve this issue.

It's strange that this is happening since we're using a fairly recent version of blst (post 0.3.12,  only 3 months old) which seems to have the runtime detection.

@jclapis I posted the container info to Discord.  Please feel free to drop results here when you get a chance to run them on the machine that was having issues.  Thanks!

Forwarded from @jclapis on Discord.  Using the same fix from @q9f solved his issue as well.  Both are running Celeron processors so there is a common thread.  Also got the info below as reference.
$ cat /proc/cpuinfo
processor: 0
vendor_id: GenuineIntel
cpu family: 6
model: 156
model name: Intel(R) Celeron(R) N5105 @ 2.00GHz
$
$
$ hyperdrive s ccf

Your CPU is missing support for the following features:
  - adx
  - avx
  - avx2
  - bmi1
  - bmi2

You must use the 'portable' image.

Added "portable" feature to bindings and perf tested results.  Hopefully we get best of both worlds, as its faster and should be compatible.  Building a test lodestar branch now with the change.

@q9f I updated your branch mkeil/afri-debug with the bindings built with the portable feature.  When you get a second please pull the changes and see if it resolved the issue.
cd /to/root/of/lodestar
rm -rf temp-deps/blst-ts
yarn clean && yarn clean:nm && yarn && yarn build

# start as you normally would

That works and does not fail with illegal instruction.

That works and does not fail with illegal instruction.

Awesome news @q9f! Thanks for checking that!  Will PR the change in today and try to release with 1.23

PR in blst-ts
https://github.com/ChainSafe/blst-ts/pull/154
PR in lodestar
https://github.com/ChainSafe/lodestar/pull/7164


Table Sort by not being saved

Click sort by in table header, works visually.
Click Save and continue / Save, see the old table.

Resolved in v1.0.2


Get semantic_tokens from input text

Hi,
How can I get semantic_tokens from input text? Thank you in advance.

You can train a transformer to generate semantic tokens from input text like what audiolm/spear-tts do


Request for running Firestore emulator in cloud build

We've been having a heck of a time trying to get the Firestore emulator running in the cloud to run our integration tests for CI/CD using google cloud build. We've tried just about everything and there isn't much information on the web. If there is a solution, I'd love to know. It would be a huge asset to the list.

Hi @blainegarrett , I was wondering if you could make use of the npm builder to install firebase-emulator globally on your workspace then run your tests?
Installation for Firebase Emulator: https://firebase.google.com/docs/rules/emulator-setup
NPM Cloud Builder: https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/npm
I would be super happy to help test this approach out.


Apps: Device Authorization Flow for OAuth

Summary
OAuth Apps and GitHub Apps now support OAuth 2.0 Device Authorization Grant flows, in addition to the existing Web Application Flow.
Intended Outcome
Certain environments do not have a supported web browser or are headless with no user interface. Adding this authorization flow support allows these applications to make authorized calls to the GitHub API.
How will it work?
In the case of a developer tool like a CLI, the tool asks the user to navigate to https://github.com/login/device on a computer with a desktop browser and enter a code like ABCD-EFGH. In the background, the CLI tool polls GitHub every few seconds to see if it has been granted a token or been given an error. After this procedure is complete and the OAuth user grant flow is authorized, the CLI tool receives a token.

https://github.blog/changelog/2020-12-04-oauth-2-0-device-authorization-flow-now-ga/


Rewrite [GitHubLicense]

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @paulmelnikow!

  Generated by :no_entry_sign: dangerJS against 2e0924c038a34760e0dbdb691fb74da83783f685


Custom return classes does not display objects in logentry table

I am having a problem with the audit log for classes that have a customised return. For example I have this code:
          class Adress(models.Model):
            type_id= models.ForeignKey(AddressType)
            street = models.CharField(max_length=256, null=True)
            number = models.CharField(max_length=16, null=True)
            zip_code= models.CharField(max_length=16, null=True)
            city = models.CharField(max_length=64, null=True)
            country = models.CharField(max_length=64, null=True)

          def __str__(self):
             return self.city

          auditlog.register(Adress)

My database records everything nicely, however, the object that changed is not logged because I have a custom return.
See printscreen example subnets and networks:

If I remove the returns I get the object notation properly. But I have a lot of forms where the foreign key needs to be displayed the return I give it, for example "city" for class address. But if I change something with that class, it only returns the city in the table where I would like to see "Address Object".
Hope you can help me out!
Best,
Dylienne

Hi,
What I mean is that as an example, I have a class address, with a custom return “city”. Instead of city, it should return “address object”. As noted in my post, the screenshot is merely an example of how my database looks like. The ip addresses are returned instead of a “… object”.
Except for subnet, I have no return of the class in the model, then, I can see “subnet object” in de column of the database.
I hope it is clearer now, if I can aid with some information let me know.
Best,

On 11 Sep 2017, at 15:17, Ryan Castner<EMAIL_ADDRESS>wrote:
Hey, sorry but I am confused about your question, what is the custom return that you are speaking of? Which columns are you trying to view, perhaps a reproducible example? You are showing a Subnet object in your png example and stuff with IP Addresses and then an Address model which has no field for ip_address so I am not sure what I am looking at.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/jjkester/django-auditlog/issues/139#issuecomment-328523860, or mute the thread https://github.com/notifications/unsubscribe-auth/AZajuuH-A6VuT-FcksB0I2kxoFKlxmsUks5shTEJgaJpZM4PS5rR.

The __str__ method is a contract for the string representation of that model object. If you want it to say Address object: New York City then make your __str__ method

def __str__():
    return "Address object: {}".format(self.city)

django-auditlog is grabbing the object representation, aka the contract you defined, if you don't like that contract then change your string representation of your object. object_repr is a char field that holds the string representation as defined by you, nothing more.

Hello Audiolion,
I understand, thank you.
However, the returns are very much alike as all are ipv4 addresses. I would like to make a distinction between subnets, networks, ip's, pub.ip's etc. In the logentry column, they all return ipv4 notations where it then is not to be distinguished at what object the object_repr belongs to.
Your solution is okay for this project.
Thank you.
Best,

You can write your own get_additional_data method to return additional information about the object in a json format that will be tracked by auditlog
https://github.com/jjkester/django-auditlog/blob/v0.4.3/src/auditlog_tests/models.py#L87


Added canvas and landing popup asking for dimensions

Related Issue

There was no canvas for drawing

Closes: #64
Describe the changes you've made
I added the drawing section (canvas) and a pop-up as a landing page for dimensions
Type of change
What sort of change have you made:

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Code style update (formatting, local variables)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Mention any unusual behaviour of your code (Write NA if not)
Any unusual behaviour of your code
NA
Additional Info (optional)
Any additional information you want to give
NA
Checklist:

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly wherever it was hard to understand.
[x] My changes generate no new warnings.
[x] Any dependent changes have been merged and published in downstream modules.

Hello @AtharvaKamble, thanks for your PR, here are some of the problems you need to fix.

the Reset Button is not working
Grid size remains the same no matter what size we choose
There is no option to close the grid


generateLabels failing reporting undefined labels

Expected behavior
When calling generateLabels and passing the current Chart object as a parameter I would expect the generateLabels function to run.
Current behavior
When running generateLabels with the Chart object passed as a parameter it fails with TypeError: Cannot read properties of undefined (reading 'labels').
When debugging the Doughnut controller overrides generateLabels function I can see the chart object and it's 'data' property Object which contains the labels property. However when it gets to the next line where it assigns that data to a const the data property and the resultant data constant show up as undefined, not sure why.

Reproducible sample
none
Optional extra steps/info to reproduce
No response
Possible solution
No response
Context
No response
chart.js version
^3.8.0
Browser name and version
No response
Link to your project
No response

Interestingly enough the data property doesn't show up when looking at the debugging in edge

As stated in the issue template a reproducible sample is required, please add one

@LeeLenaleee Thats a little difficult as I would have to build my use case up in codesandbox from scratch as it's not easy to just pull out from my application.
I was just hoping somebody might know why the data property wouldn't be accessible...

@LeeLenaleee I have attempted to replicate it now in codesandbox ( https://codesandbox.io/s/react-chartjs-2-chart-js-issue-template-v4-forked-mp9h2o ) However this works... so I'm a bit stumped as to why this one piece of functionality isn't working inside my React app

Hi, I am experiencing the exact same issue with chart.js version 4.2.1.

@jbjanot do you have a reproducible sample of this?

Closing this because of a lack of test case, if someone is able to reproduce this feel free to re-open the issue again

@matt-gribben @jbjanot were either of you able to resolve this? I am running into the same issue.

Same problem and very strange. Tomorrow i will put a github repo with a sample. Is very strange.


MimeType == null for Virtual Directory

I failed to do a pull request on the Angel Static Plugin.
So I'll put my suggestion here.
In the file virtual_directory.dart line 290 about.
lookupMimeType(file.path) sometimes returns a mime of null, this in turn, causes non-critical error logs when writting the header in dart:io -> http_headers.dart
I added a default value of 'text/plain'.
String type = lookupMimeType(file.path) ?? 'text/plain';
_ensureContentTypeAllowed(type, req);
res.headers[HttpHeaders.CONTENT_TYPE] = type;

if (streamToIO == true) {
  res
    ..io.headers.set(HttpHeaders.CONTENT_TYPE, type)
    ..io.headers.set(HttpHeaders.CONTENT_ENCODING, 'gzip')
    ..end()
    ..willCloseItself = true;

  await file.openRead().transform(GZIP.encoder).pipe(res.io);
} else {
  await res.sendFile(file);
}

Thanks. I'll fix this up later today. Out of curiosity, which file extensions have you found that cause the MIME type lookup to return null?

I am using the swagger-ui-dist  to document the api.
This makes use of minified js & css files, which makes request to *.map files. These are not found in the
mimeType library.

Thanks.

Note to self: only encode the file as GZIP if the client accepts it...

Okay, this should be patched up via<EMAIL_ADDRESS>https://github.com/angel-dart/static/blob/master/CHANGELOG.md


Getting formatted logs in file and on cmd

Hi all. In my go based application I have cmd part where user can follow the process. So I need to have 2 backand parts for loging -> cmd and file. So here is my code part
var file, _ = os.OpenFile("./access.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)

	defer file.Close()

	var format = logging.MustStringFormatter(
		`%{color}%{time:15:04:05.000} %{shortfunc} ▶ %{level:.4s} %{id:03x}%{color:reset} %{message}`,
	)

	backend1 := logging.NewLogBackend(file, "", 0)
	backend2 := logging.NewLogBackend(os.Stderr, "", 0)

	// For messages written to backend2 we want to add some additional
	// information to the output, including the used log level and the name of
	// the function.
	backend2Formatter := logging.NewBackendFormatter(backend2, format)

	// Only errors and more severe messages should be sent to backend1
	backend1Leveled := logging.AddModuleLevel(backend1)
	backend1Leveled.SetLevel(logging.ERROR, "")

	// Set the backends to be used.
	logging.SetBackend(backend1Leveled, backend2Formatter)

So on cmd I am getting formated log but in file only the error message. How can I solve this problem to get formated logs in both backands?

The example shows how to do leveling and formatting, but not both together.  To modify the example:

Instantiate a backend1Formatter, the same as for backend2Formatter.
When "leveling" backend1, give the new backend1formatter as an argument to AddModuleLevel().

The new example would like this:
var format = logging.MustStringFormatter(
	`%{color}%{time:15:04:05.000} %{shortfunc} ▶ %{level:.4s} %{id:03x}%{color:reset} %{message}`,
)

backend1 := logging.NewLogBackend(file, "", 0)
backend2 := logging.NewLogBackend(os.Stderr, "", 0)

// For messages written to backend2 we want to add some additional
// information to the output, including the used log level and the name of
// the function.
backend2Formatter := logging.NewBackendFormatter(backend2, format)

// Colors for backend1
backend1Formatter := logging.NewBackendFormatter(backend1, format)

// Only errors and more severe messages should be sent to backend1
backend1Leveled := logging.AddModuleLevel(backend1Formatter)
backend1Leveled.SetLevel(logging.ERROR, "")

// Set the backends to be used.
logging.SetBackend(backend1Leveled, backend2Formatter)


Merges Master to Live. See commits for details.

OPS Build status updates of commit 62447d9:
:clock10: Preparing: average preparing time is 1 min(s) 13 sec(s)

OPS Build status updates of commit 62447d9:
:clock10: Incremental building: average incremental building time is 12 min(s) 23 sec(s)

OPS Build status updates of commit 62447d9:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

skype/skype-ps/skype/Set-CsTeamsCallingPolicy.md
:white_check_mark:Succeeded
View (skype-ps)

skype/skype-ps/skype/skype.md
:white_check_mark:Succeeded
View (skype-ps)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Github CI: deploy preview for histoire

workflow to preview histoire component with netlify

Do you have any instructions for this?
Built this folder for deployment?

https://github.com/kodadot/nft-gallery/tree/main/libs

if there is a file change in libs/ui then run a new netlify deploy preview with story:build


Sundhar dev

AB#19 - Budget filter using the slider bar
Added webjet styling to the slider bar. Looks and works just like webjet's slider now. Please check if everything's okay. (Also canceled changes made to index.html and imported urls within scss files).

almost,
NO changes in index.html must be made + styles should be imported in .tsx files, not in other styles unless some style functions or variables used

still NO changes in index.html must be made

still NO changes in index.html must be made


verify_binaries_codesigned  failing cloning repo: Host key verification failed. fatal: Could not read from remote repository.

Cherry-pick https://github.com/flutter/flutter/pull/111759 verify_binaries_codesigned is failing
13:31:21.219299 git.c:460               trace: built-in: git clone --origin upstream -- git@github.com:flutter/flutter.git /opt/s/w/ir/x/w/flutter_conductor_checkouts/framework
Cloning into '/opt/s/w/ir/x/w/flutter_conductor_checkouts/framework'...
13:31:21.234344 run-command.c:654       trace: run_command: unset GIT_DIR; GIT_PROTOCOL=version=2 ssh -o SendEnv=GIT_PROTOCOL<EMAIL_ADDRESS>'git-upload-pack '\''flutter/flutter.git'\'''
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8802834422048794577/+/u/Verify_binaries_codesigned/verify_binaries_codesigned/test_stderr

Related https://github.com/flutter/flutter/issues/95297

cc @XilaiZhang I think you should fix this when fixing https://github.com/flutter/flutter/issues/95297

Based on this, marking as duplicate of https://github.com/flutter/flutter/issues/95297.


Can you turn this feature off？

After this update，The iterating images are displayed in real time on the website page，this increases the consumption speed of internet traffic，could you add a button to turn this feature off？Anyway，thank you for all your work！

In the webui settings tab, interface settings, turn set the slider to 0

roger，thank you so much，have a good rest

This also disturbed and confused me. I think it would be cool if it was disabled by default. But I am sure, some people really appreciate the feature.


Add 'kill' command to SIGKILL a node.

For testing, it is useful to be able to send a SIGKILL to a node to have
it uncleanly terminate.  In this case the OS will send TCP RST messages to
clients which may cause them to behave in unpredictable ways.

I think #45's --not-gently may cover my use case, so this PR may not be needed...testing.

Looks like --not-gently does the job.   Closing this PR but feel free to reopen if you find 'kill' useful.


Text alignment removes text completely

Expected Behavior
Text should be aligned to center
Current Behavior
Text is not visible
Failure Information (for bugs)

image.print(font, 100, 100, text) works as intended, but if i use image.print(font, 100, 100, {                             text: text,                             alignmentX: Jimp.HORIZONTAL_ALIGN_CENTER                           }) the text is not visible on the image. There is no error in the console.
Here is a link to the exact code i'm using: https://pastebin.com/3VDSNLjw
Unedited image: https://imgur.com/SzVAm32
Image after editing without text alignment: https://imgur.com/4aB8SaZ
Image after editing with text alignment: https://imgur.com/iTViXxz
Steps to Reproduce
image.print(font, 100, 100, {                             text: text,                             alignmentX: Jimp.HORIZONTAL_ALIGN_CENTER                           })
Context

Jimp Version: 0.6.0
Operating System: Ubuntu 18.04 LTS
Node version: 8.11.4

Sorry guys for writing on a closed issue, but I'm trying to implement this and I found a little bit strange that @booo is actually not using alignment constants to position the text.
Its code sample calculates propers value for x and y coordinates instead of using Jimp constants, which are actually commented out.
I tried to rely on Jimp alignment constants only to position the text, but the result is the same of @Xenorio (text is not displayed at all).
So does it mean that those alignment constants don't works? In that case, shouldn't this issue  opened again?

This is another example that works for me.
      image
        .print(
          font,
          20,
          0,
          //w/2 - textWidth/2,
          //h/2 - textHight/2,
          {
            text: text,
            alignmentX: Jimp.HORIZONTAL_ALIGN_CENTER,
            alignmentY: Jimp.VERTICAL_ALIGN_MIDDLE
          },
          400,
          //textWidth,
          220
        );

For alignment to work properly you need to specify maxWidth and maxHeigh in your call to print().
https://github.com/oliver-moran/jimp/blob/master/packages/plugin-print/src/index.js#L295
The code is sometimes the source of enlightenment.

Thanks @booo, specifying maxWidth and maxHeight actually does the job.
Honestly I was a little bit confused about alignment constants, because If I specify
{
   text: text,
   alignmentX: Jimp.HORIZONTAL_ALIGN_CENTER,
   alignmentY: Jimp.VERTICAL_ALIGN_MIDDLE
}

I would expect that Jimp will position the text in the center of the image, regardless of the value I passed on x and y coordinates and even if I would not set maxWidth/maxHeight (because they are implicitly equal to the image size).
Anyway as I said by calling print() in the following way the result is as expected:
.print(
   font,
   0,
   0,
   {
      text: text,
      alignmentX: Jimp.HORIZONTAL_ALIGN_CENTER,
      alignmentY: Jimp.VERTICAL_ALIGN_MIDDLE
   },
   IMAGE_SIZE_X,
   IMAGE_SIZE_Y,
)

Feel free to make PRs for the docs to be more thorough!

@hipstersmoothie I did it, let me know if it is fine for you.

.print(font, 0, 0, // this should work but its aligning to 0, 0 not the center
{
text: imageCaption,
alignmentX: jimp.HORIZONTAL_ALIGN_CENTER,
alignmentY: jimp.VERTICAL_ALIGN_MIDDLE,
}, textWidth, textHight)
.write(pathTwo); // save
});
I did this and it places the text at 0, 0. Are the constants no longer supported?
jimp.read(path, (err, image) => {
if (err) throw err;
jimp.loadFont(jimp.FONT_SANS_64_WHITE, (err, font) => {
var w = image.bitmap.width;
var h = image.bitmap.height;
let text = "foo"
var textWidth = jimp.measureText(font, text);
var textHight = jimp.measureTextHeight(font, text);
image
.print(font, w/2 - textWidth/2, h/2 - textHight/2,
{
text: imageCaption,
//alignmentX: Jimp.HORIZONTAL_ALIGN_CENTER,
//alignmentY: Jimp.VERTICAL_ALIGN_MIDDLE,
}, textWidth, textHight)
.write(pathTwo); // save
});
//.resize(256, 256) // resize
//.quality(60) // set JPEG quality
});
This works a bit better but only for one word, if I put a whole sentence it gets pushed down, any idea where i'm going wrong? Any help is greatly appreciated.

thanks <3 but... text no not go bellow

can you solve this issue?


Fix 1262: Get prediction data for sim

Fixes #1262.

I commented out one of the test because I couldn't find a solution for it, working on local but fails inside github actions.
Will come back to it inside the base branch, let's merge this PR so we can move things forward

LGTM, we can look at the issue at the epic branch


keepCstNodes was useful; consider restoring it

Is your feature request related to a problem? Please describe.
In 2.0.0-3, I could use the high-level Node API with keepCstNodes to easily inspect the document and select part of it to edit, then use the low-level CST API to edit that part and re-serialize the document without making unnecessary formatting changes to the other parts. However, in 2.0.0-4, the keepCstNodes option was removed, so this is no longer possible.
import { parseDocument } from "yaml";

const yaml = `\
a: b
c:
    d: [e, f, g]
    h:
        {
            i: j,
            k: l,
        }
    m: n
o: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
`;

const doc = parseDocument(yaml, { keepCstNodes: true });
doc.contents.get("c").get("m", true).cstNode.value = "edited";
console.log(doc.cstNode.toString());

/*
a: b
c:
    d: [e, f, g]
    h:
        {
            i: j,
            k: l,
        }
    m: edited
o: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
*/

Describe the solution you'd like
Restore the keepCstNodes option.
Describe alternatives you've considered

Both doc.toString() and stringify(doc) make formatting changes to unrelated parts of the document.
doc.contents.get("c").set("m", "edited");
console.log(doc.toString());

/*
a: b
c:
  d: [ e, f, g ]
  h: { i: j, k: l }
  m: edited
o: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
  tempor incididunt ut labore et dolore magna aliqua.
*/

I could use Parser.parse and do the entire process using CST from start to finish, but that would require much more code for locating the part of the document I want to edit.

I could use both parseDocument and Parser.parse and use techniques like the findScalarAtOffset example in the documentation to correspond AST nodes to CST nodes, but that would also require much more code.

Okay, that use case is entirely valid and should be supported. I added #309 for this, but I'm not sure if that's the right choice. As I mention there, that approch mostly works, but has some corner cases that aren't much fun.
One possible alternative would be adding a utility function like this:
import { CST } from 'yaml'

function findItem (
  cst: Document | CollectionItem,
  path: (string | number)[]
) {
  let item: CST.CollectionItem | undefined = cst
  for (const key of path) {
    if (!item || !CST.isCollection(item.value)) return undefined
    if (typeof key === 'number') item = item.value.items[key]
    else {
      item = item.value.items.find(
        it => CST.isScalar(it.key) && CST.resolveAsScalar(it.key).value === key
      )
    }
  }
  return item
}

That could then be used with your example code like this:
import { CST, Parser } from 'yaml'

const yaml = ...
const cst = Array.from(new Parser().parse(yaml))
const token = findItem(cst[0], ['c', 'm']).value
CST.setScalarValue(token, 'edited')

cst.map(CST.stringify).join('')

I'm undecided about whether to add one or both of these interfaces to the library. Thoughts?

If we want to make the CST API as capable as the Node API, I think there’s a lot of functionality that would need to be added. For example, that findItem implementation gives the wrong result on this case:
true: a
"true": b

because only the Node API knows which plain tokens should really be parsed as strings rather than some other type. This particular case might be rare because YAML is usually used in a JSON-compatible way—but the same API gap might come up in other ways (e.g. in some list of maps, I want to increment the number value at key foo in every map where the boolean value at key bar is true).
Another API gap that might be important in some cases is alias node resolution.
The keepSourceTokens approach might have its trip hazards, but it seems like a simple way to enable a range of uses that aren’t currently possible, so I think it’s worthwhile.

Achieving feature parity between the CST and Document/Node APIs is not a design goal. People want to do all sorts of things with YAML, and the intent with yaml is to make those things possible with the most user-friendly API.
At the CST level of processing, there is no concept of schema, i.e. the mapping that YAML uses to determine that a plain scalar true ought to be considered to have a boolean value. Instead, all scalar values are strings. If you're really working with a data structure that may mix boolean and string keys, then you do need the schema to disambiguate them and need to work in the Document world. I would, however, challenge that this issue actually shows up much in the real world.

We are using keepCstNodes to get nice contextual error messages for our yaml based processing engine. Each processing class has a reference to the underlying Node. Now, using keepCstNodes that's all we need to figure out the source yaml and using that we can construct a useful error message inserted on the relevant line of the yaml source.
Not sure how to do that now when cstNode is removed.
item: An example
   process: Foobar
   input: [my_var1, my_var2]  <-- Error resolving my_var1

@reimund Have you looked yet at the error output of yaml@2? It might already provide everything that you need:
YAML.parse(`\
item:
   process: Foobar
   input: [@my_var1, my_var2]
`)

YAMLParseError: Plain value cannot start with reserved character @ at line 3, column 12:

   input: [@my_var1, my_var2]
           ^

    at Composer.onError (/Users/eemeli/code/yaml/dist/compose/composer.js:71:34)
    at _onError (/Users/eemeli/code/yaml/dist/compose/resolve-flow-scalar.js:10:42)
    at plainValue (/Users/eemeli/code/yaml/dist/compose/resolve-flow-scalar.js:68:9)
    [...] {
  code: 'BAD_SCALAR_START',
  pos: [ 36, 37 ],
  linePos: [ { line: 3, col: 12 }, { line: 3, col: 13 } ]
}

@eemeli I’m not 100% sure I understand what you mean.
To be clear, we are not checking for syntax errors in yaml but rather errors due how the user defined their processing so that our processing engine can do its job. Surely the yaml module knows nothing about how our engine works and cannot give errors about that.
But perhaps you are suggesting that we inject syntax error in the yaml in order to get the ‘linePos’ from the error message?

Aaah, I'd misunderstood. So you're associating errors outside of the YAML parsing on specific nodes, yes? And then getting their source ranges so that you can build pretty errors for the user? If this is so, then something like this may be of interest:
import { LineCounter, parseDocument } from 'yaml'

const src = `item:
   process: Foobar
   input: [my_var1, my_var2]
`

const lineCounter = new LineCounter()
const doc = parseDocument(src, { lineCounter })

const node = doc.getIn(['item', 'input', 0], true)
assert.equal(node.value, 'my_var1')

lineCounter.linePos(node.range[0]) // { line: 3, col: 12 }
lineCounter.linePos(node.range[1]) // { line: 3, col: 19 }

@eemeli Looks like all I needed was the range property of the Node. I didn't realize it was there all along. Thanks!


:root - add introductory documentation?

https://github.com/MadLittleMods/postcss-css-variables#defining-custom-properties-with--- has :root nicely spelled out. Because happy follow-up search results can't be guaranteed, perhaps useful to add similar information here.
Also, is there ever a reason to define m-s at a restricted scope, lower than :root? If not, is it possible to initialize m-s without specifying :root in the first place?

Using :root is the onky guaranteed way for this plugin to work. It is documented as such.


Feat/pupil 833/pupil unit filter

How to review this PR
Leave this text block for the reviewer

Check component hierarchy is followed correctly
Check the design Heuristics have been followed
Check naming conventions have been applied
Check for these gotchyas:

Missing exports for Oak components
Accidental export of Internal components
Snapshots of unexpected components have been modified
Circular dependencies
Code duplication (via not using base components)
Non-functional storybook for this or related components
Sensitve files changed eg. atoms, or style tokens
Relative imports
Default exports

Add your PR description below
Job Story
As a pupil squad engineer,
I want to see the filter units component in storybook
So that [I / user] can test it and use it easily in the pupil journey
Implementation details
https://www.figma.com/design/zqpeecgzMGKRli2gUdJOLp/Pupil-Browse?node-id=5536-197291&m=dev
Create an Oak component that represents the above with the following props
menuItems={[{text:”All”,id:”0”}, {text:”Biology”,id:”1”}, {text:”Chemistry”,id:”2”}, {text:”Physics”,id:”3”}]}
selected={2}
onSelected={(menuItemId) ⇒ {}}

It must also overflow link this -
https://www.figma.com/design/zqpeecgzMGKRli2gUdJOLp/Pupil-Browse?node-id=5646-7477&m=dev
On mobile there is an additional feature where the menu becomes expandable (via an Accordion, see below). It will be closed on mobile by default. The accordion should push/pull content down/up on the page.
Link to the design doc
A link to the component in the deployment preview
Testing instructions
ACs

https://deploy-preview-228--lively-meringue-8ebd43.netlify.app/?path=/docs/components-organisms-pupil-pupiljourneyunitsfilter--docs
@RBrownsett fyi

The chevron accordion icon looks a bit small, can the size be increased:

The chevron accordion icon looks a bit small, can the size be increased:

good spot; thats done


mfcj470dw: init at 3.0.0-1

Works locally over WiFi and usb cable.

Looks good! I spotted a typo in the description, so I'll merge and fix that up after. It would be good if you can add yourself as the maintainer too.


about half the amount of fea_seg are zero

Hi there,
thank you for your works. i have git clone your code, and i have cancel the comment of line 16, 18, 23, 25 in 'util/fa_loss.py' and run 'train.py' with cityscapes. Then, i get NaN or Inf caused by feature of deeplabv3. About half amount of it are zero. What should i do for preparation?
Thank you.

Hi there,
thank you for your works. i have git clone your code, and i have cancel the comment of line 16, 18, 23, 25 in 'util/fa_loss.py' and run 'train.py' with cityscapes. Then, i get NaN or Inf caused by feature of deeplabv3. About half amount of it are zero. What should i do for preparation?
Thank you.

Hi there, thank you for your question. I have also encountered NaN at the beginning of this experiment and I found it may be caused by the normalization in FA module, so as you can see this repo doesn't use normalization by default. I'd like to know that does this problem still exist when you are not using normalization or when you switch to using subpixel branch?

Hi there,
thank you for your works. i have git clone your code, and i have cancel the comment of line 16, 18, 23, 25 in 'util/fa_loss.py' and run 'train.py' with cityscapes. Then, i get NaN or Inf caused by feature of deeplabv3. About half amount of it are zero. What should i do for preparation?
Thank you.

Hi there, thank you for your question. I have also encountered NaN at the beginning of this experiment and I found it may be caused by the normalization in FA module, so as you can see this repo doesn't use normalization by default. I'd like to know that does this problem still exist when you are not using normalization or when you switch to using subpixel branch?

Thank you for your help!
Sorry, I misunderstood that to cancel the comment of that lines required to use FA module. When I do not use normalization, I could run your code.

Thank you for your help!
Sorry, I misunderstood that to cancel the comment of that lines required to use FA module. When I do not use normalization, I could run your code.


Portus not working the same using docker-compose or vagrantfile ?

hy all,
it seems Portus isn't working the same way using Vagrantfile or docker-compose, am i wrong ?
is this some kind of a bug or did i miss something relevant ? :)

this looks like a duplicate of https://github.com/SUSE/Portus/issues/304.

absolutely not a duplicate :)
i've just figured out that registry is reachable using http :80 using the vagrantfile whereas for docker-compose it is reachable using http :5000
am i wrong ?

Please provide more details next time.
You are not wrong. The setup produced by the Vagrantfile is different from the one produced by docker-compose.
The first one (vagrant) is meant for developers, there's a small private network where portus, registry and a docker client are operating. The only resource accessible from the outside of this private network is the UI of portus; however the registry is not accessible from the outside. This is almost useless for someone who wants to play a bit with ports (play == have a portus and registry instance accessible from all the computers on his network).
When using docker-compose all the services (portus and registry) are running on the same docker host, hence their port must be mapped to different ones to make them accessible to the network segment on which the docker host is connected.

got it :)
thanks for answer.
i'll give more details next time , i promise :)


{Test} CI test

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/MyronFanQiu/azure-cli-extensions.git@ci-test#subdirectory=src/$EXT&egg=$EXT"

Test


error status 200

Since today I have the following error in the places Adapter. Do you know what it means?
The Google Maps API key seems to be valid.
`

places.0
2020-11-11 09:43:14.210
error
(26587) Error while requesting route: {"status":200,"headers":{"content-type":"application/json; charset=UTF-8","date":"Wed, 11 Nov 2020 08:43:14 GMT","pragma":"no-cache","expires":"Fri, 01 Jan 1990

places.0
2020-11-11 09:43:14.127
error
(26587) Error while requesting elevation: {"status":200,"headers":{"content-type":"application/json; charset=UTF-8","date":"Wed, 11 Nov 2020 08:43:14 GMT","pragma":"no-cache","expires":"Fri, 01 Jan 1

places.0
2020-11-11 09:43:14.041
error
(26587) Error while requesting address: {"status":200,"headers":{"content-type":"application/json; charset=UTF-8","date":"Wed, 11 Nov 2020 08:43:14 GMT","pragma":"no-cache","expires":"Fri, 01 Jan 199

places.0
2020-11-11 09:43:05.714
error
(26587) Error while requesting route: {"status":200,"headers":{"content-type":"application/json; charset=UTF-8","date":"Wed, 11 Nov 2020 08:43:05 GMT","pragma":"no-cache","expires":"Fri, 01 Jan 1990

places.0
2020-11-11 09:43:05.634
error
(26587) Error while requesting elevation: {"status":200,"headers":{"content-type":"application/json; charset=UTF-8","date":"Wed, 11 Nov 2020 08:43:05 GMT","pragma":"no-cache","expires":"Fri, 01 Jan 1

places.0
2020-11-11 09:43:05.551
error
(26587) Error while requesting address: {"status":200,"headers":{"content-type":"application/json; charset=UTF-8","date":"Wed, 11 Nov 2020 08:43:05 GMT","pragma":"no-cache","expires":"Fri, 01 Jan 199

places.0
2020-11-11 09:42:58.642
error
(26587) Error while requesting route: {"status":200,"headers":{"content-type":"application/json; charset=UTF-8","date":"Wed, 11 Nov 2020 08:42:58 GMT","pragma":"no-cache","expires":"Fri, 01 Jan 1990

places.0
2020-11-11 09:42:58.549
error
(26587) Error while requesting elevation: {"status":200,"headers":{"content-type":"application/json; charset=UTF-8","date":"Wed, 11 Nov 2020 08:42:58 GMT","pragma":"no-cache","expires":"Fri, 01 Jan 1

`

Do you have any additional information (f.e. the error message itself)?

Is this not the error message itself?

It's just the beginning of the error message, the complete message should look like:
Error while requesting address: {"status":200,"headers":{"content-type":"application/json; charset=UTF-8","date":"Wed, 11 Nov 2020 09:11:39 GMT","pragma":"no-cache","expires":"Fri, 01 Jan 1990 00:00:00 GMT","cache-control":"no-cache, must-revalidate","access-control-allow-origin":"*","server":"mafe","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","server-timing":"gfet4t7; dur=31","alt-svc":"h3-Q050=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-T050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","vary":"Accept-Encoding","connection":"close","transfer-encoding":"chunked"},"json":{"error_message":"This API key is not authorized to use this service or API.","results":[],"status":"REQUEST_DENIED"},"requestUrl":"https://maps.googleapis.com/maps/api/geocode/json?language=de&latlng=51.xxxxxx%2C7.xxxxxxx&key=THE_KEY","query":{"language":"de","latlng":"51.xxxxxx,7.xxxxxxx","key":"THE_KEY"}}

Thank you. You have already helped me. Seeing the whole error message I found the concerning part:
"error_message":"You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable
I have added a second object in places. Perhaps it is too much traffic now and not for free anymore.
I will close this issue.


The questions about tables in your main paper.

I saw AP with ped and cyc in the table 5 are much lower than in the table 1 on the main paper, why? Some differences about metric over these tables?

In Table 1, we use exps/dair-v2x/bev_height_lss_r50_864_1536_128x128.py, while in Table 5, we utilize exps/dair-v2x/bev_height_lss_r101_864_1536_256x256.py


(tests) Make ProgramTest work on Windows

Also, convert this test to Fluent Assertions.

Initially includes #257 until CI has executed; I need the Windows CI test to validate this change before merging it. Once this is is in master, we should then be able to rebase #257 and get a clean CI run on that one as well. :tada:

Initially includes #257 until CI has executed; I need the Windows CI test to validate this change before merging it.

Seemed to work fine. Auto-merge enabled now.


ExpoGo & Expo dev client error

`Error: The package 'react-native-ssl-public-key-pinning' doesn't seem to be linked. Make sure:

You have run 'pod install'
You rebuilt the app after installing the package
You are not using Expo Go`

Hi, i am using expo go & expo dev-client, getting error like this.
"react-native": "0.71.8"
Expo 48

As mentioned in the error message, you cannot use Expo Go when using this library.
You will need to create a development build to test out the pinning as Expo Go won't have this library included. You can do this by building a development build locally (https://docs.expo.dev/develop/development-builds/development-workflows/#build-locally-with-android-studio-and-xcode), or you can use Expo EAS to create a development build (https://docs.expo.dev/develop/development-builds/create-a-build/).
You can still use Expo Go for development if you'd like, but you'll need to make sure that the SSL pinning library is available using isSslPinningAvailable before calling initializeSslPinning(https://github.com/frw/react-native-ssl-public-key-pinning#api-reference). Otherwise there'll be an exception, as you have found above, when calling initializeSslPinning in Expo Go.

Thanks for reply;
it is working good when i run with npx expo run:ios or in dev-client with eas development. Thanks for reply


add h3 spatial index

@MarcoGorelli your PR looks ready, any reason it is still in draft?

I probably just forgot 😄

Thanks @MarcoGorelli 🙏


README inconsistency

README gives example
$directus = new Directus();
but Directus.php declares class as DirectusSDK()

Hi there,
Thanks for brining it to my attention, the class was quickly changed from Directus to DirectusSDK to match the JS SDK. I will update the Documentation.
Regards,
Alan.


How can I make the v3 work?

> heroku -v
heroku-cli: Installing Toolbelt v4...
> heroku logs
heroku-cli: Installing Toolbelt v4...
> heroku login
heroku-cli: Installing Toolbelt v4...

heroku-cli: Installing Toolbelt v4... !    Heroku client internal error.
 !    Search for help at: https://help.heroku.com
 !    Or report a bug at: https://github.com/heroku/heroku/issues/new

    Error:       end of file reached (EOFError) (Excon::Errors::SocketError)
    Command:     heroku -v
    Version:     heroku-toolbelt/3.42.22 (x86_64-darwin10.8.0) ruby/1.9.3
    Error ID:    9ce00299b82b47ab9ecdc57ae8279ddb

I don't wanna install v4 now

is XDG_DATA_HOME set by chance?

How can I get this var?
On Mon, Nov 23, 2015 at 2:21 AM, Jeff Dickey<EMAIL_ADDRESS>wrote:

is XDG_DATA_HOME set by chance?
—
Reply to this email directly or view it on GitHub
https://github.com/heroku/heroku/issues/1834#issuecomment-158785266.

It's an environment variable, you can see them with set. Also does it not show any output after heroku-cli: Installing Toolbelt v4... and just stop? Or are you canceling it? Can you see the exit status with $??

This seems to only be an issue on OSX Mountain Lion. Maybe it's because you have an old openssl bindings. You could try using the homebrew version brew install heroku.

Finally brew install heroku works. Thanks, jeff!
On Tue, Nov 24, 2015 at 4:23 AM, Jeff Dickey<EMAIL_ADDRESS>wrote:

This seems to only be an issue on OSX Mountain Lion. Maybe it's because
you have an old openssl bindings. You could try using the homebrew version brew
install heroku.
—
Reply to this email directly or view it on GitHub
https://github.com/heroku/heroku/issues/1834#issuecomment-159053294.


Add profile for sharks at Oilrig

Create an example profile which adds shark spawn points to oilrig monuments.

I have sharks on rigs  - 2 on large, 1 on small. I'll clean it up and share in PR

Below is a profile I was working on before, which has 5 sharks at large Oil Rig. Fee free to reuse any of it for the profile you are making.
Some things to keep in mind:

In practice, I found that multiple spawn points were needed to ensure it was likely that a player would run into a shark when swimming below Oil Rig
The reward for killing sharks may be significant, especially on modded servers, so we don't want to go overboard with the shark respawn frequency
It's much easier for a server owner to remove a spawn point from a profile that they installed than it is to add their own spawn point, so we should probably bias toward having more points than needed by default
Sharks may be tough on server performance, so we probably want to keep the list of spawns relatively small, but note that sharks should sleep when players are not nearby to partially mitigate performance issues
The shark patrol path is vanilla generated, but you can visualize it with plugins (just loop shark.patrolPath and use ddraw to plot some spheres and indices as text)
Once #14 is done, we should be able to give people the ability to designate the shark patrol path

{
  "Name": "OilrigSharks",
  "Author": "WhiteThunder",
  "SchemaVersion": 2.0,
  "MonumentData": {
    "OilrigAI": {
      "SpawnGroups": [
        {
          "Id": "b8c55194-6bbf-4245-8ceb-0763f804784c",
          "Name": "Sharks",
          "MaxPopulation": 5,
          "SpawnPerTickMin": 5,
          "SpawnPerTickMax": 5,
          "RespawnDelayMin": 1500.0,
          "RespawnDelayMax": 2100.0,
          "PreventDuplicates": false,
          "Prefabs": [
            {
              "PrefabName": "assets/rust.ai/agents/fish/simpleshark.prefab",
              "Weight": 100
            }
          ],
          "SpawnPoints": [
            {
              "Id": "efe3c661-2387-4ec7-aa02-f6ec2dd7f1eb",
              "Position": {
                "x": -10.0,
                "y": 0.0,
                "z": -17.0
              },
              "RotationAngles": {
                "x": 0.0,
                "y": 90.0,
                "z": 0.0
              },
              "Exclusive": true,
              "DropToGround": true
            },
            {
              "Id": "de248f4e-07bd-49fd-beb0-2706c199eced",
              "Position": {
                "x": 13.75,
                "y": 0.0,
                "z": 10.0
              },
              "Exclusive": true,
              "DropToGround": true
            },
            {
              "Id": "dd55b8e1-d6a1-408e-aff8-cdad51864b26",
              "Position": {
                "x": 35.0,
                "y": 0.0,
                "z": -16.0
              },
              "Exclusive": true,
              "DropToGround": true
            },
            {
              "Id": "2a9ef1c9-dd90-44ba-ab48-0e4ab8c01b7f",
              "Position": {
                "x": 13.75,
                "y": 0.0,
                "z": -40.0
              },
              "Exclusive": true,
              "DropToGround": true
            },
            {
              "Id": "296d6193-d25c-4d1e-b08e-fdcfb290e17a",
              "Position": {
                "x": 15.0,
                "y": 0.0,
                "z": -16.0
              },
              "Exclusive": true,
              "DropToGround": true
            }
          ]
        }
      ]
    }
  }
}

Sounds good to me! Thanks for thinking it through.
I tested those example profiles and I like how evenly they are covering the area, as seen in the below screenshots.

Resolved in #34.


adds JSON/Py file loaders

The following change adds JSON and Python Script File loaders to EvaDB.

Hi @Omanshb, thanks for add json and py file support. Is PR ready? Could you add some testcases and documentations? Thanks!

Is this up for review?

FAILED test/integration_tests/long/test_model_train.py::ModelTrainTests::test_xgboost_regression - evadb.executor.executor_utils.ExecutorError: 'EvaDBDatabase' object has no attribute 'config' -- @jineetd any idea?


Laravel 9 support

Hi!
Can you add Laravel 9 support? When I try to install it says:
 Problem 1     - Root composer.json requires genealabs/laravel-mixpanel ^0.11.1 -> satisfiable by genealabs/laravel-mixpanel[0.11.1].     - genealabs/laravel-mixpanel 0.11.1 requires illuminate/auth ^8.0 -> found illuminate/auth[v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.

Thanks for the prompt. Will get that done right now.


Variable type narrowing in the form x == E1, does not get narrowed

Description:
function errorFunction(int x) {
    _ = x == -1 ? 1 : (x == -1 ? 2 : 3); // @error at falsity expr x should be narrowed as not -1

From the spec https://ballerina.io/spec/lang/2021R1/#conditional_variable_type_narrowing

If E has the form x == E1 or E1 == x where the static type of E1 is an expression whose static type is a singleton simple type T1, then
the narrowed type for x implied by truth of E is the intersection of Tx and T1
the narrowed type for x implied by falsity of E is Tx −ro T1

Steps to reproduce:
Affected Versions:
SL Beta 3
OS, DB, other environment details and versions:
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

Related issue #30598. Same reason as described above.

When fixing this issue we need to clean up the comments added in PR #34964 for the following files.
TernaryExpressionTest.java
ternary_expr_type_narrow.bal
TypeGuardTest.java
test_type_guard_type_narrow_1.bal
test_type_guard_type_narrow_2.bal


Feature request: list inference engines

You know... llama.cpp, exllama, vLLM, TGI

Sure!

close as complete. All mentioned projects have been included in the LLM Deployment section.


Fast and Cheap Level shifter 5V -> 3.3V

Hello friends, thanks a lot for the initiative to create this library (really useful), I only want to share a different way to communicate your arduino 5V Pro-mini/UNO/Mega/etc with the 3,3V DWM1000 module.
It's really simple if you need to communicate your module with your 5V system, but you don't have a level shifter (Chip or module) and you can't get it or need a fast solution you can use the next voltage divider on each ARDUINO_OUTPUT_PIN and connect the output of the voltage divider to the DWM1000_INPUT_PINS, and connect the DWM1000_OUTPUT_PINS(3.3V) directly to your arduino board.

is not forced to use these exact values the only condition that you need to satisfy is:

5V_(R2/(R1+R2))=3.3V  or R1=0.5151_R2

Example , for the next diagram this is te I/O configuration

DWM1000     ||   Arduino
3 (RSTn)               Pin 9 Reset (OUT)
13 (SPICSn)    Pin 10 SPI chip select (OUT)
14 (SPIMOSI)       Pin 11 MOSI (OUT)
15 (SPIMISO)       Pin 12 MISO (IN)
16 (SPICLK)    Pin 12 SPI clock (OUT)
17 (GPIO8)     Pin 2   interrupt asserted line  (IN)

Works really well !!!

Potential dividers are a simple way to make a single-direction level shifter. Can I suggest that hardware advice be kept to the wiki rather than the issues page?
I created a page here where everyone can list hardware that they have used successfully.

I think your configuration is wrong, because in all the pictures there's a wire (pin 12 on arduino) that is attached directly and the voltage is not shifted.
Maybe I'm wrong eh. I tried your configuration and i'm not able to connect and read the DW.

16 (SPICLK) Pin D13 SPI clock (OUT)

How exactly that works?
On Aug 10, 2016 8:09 AM, "R2D2RU"<EMAIL_ADDRESS>wrote:

16 (SPICLK) Pin D13 SPI clock (OUT)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/thotro/arduino-dw1000/issues/67#issuecomment-238847477,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AExz3dDZVbyKvrL7VS__IgNqjUDyhKA2ks5qeb9kgaJpZM4He4Fv
.

@maxicastle Hi, please move your idea to the wiki. Thanks for your help:) !


Release main 2022-03-21

Any known stoppers for releasing zenith main now?

@cicdteam github says that there some conflicts preventing merging the main into release. I see that you pushed some hotfix into release. It seems that it should be pushed into main as well, isn't it?


✨ add stream event types

What this PR does / why we need it:
Right now in streaming APIs, we only sent in the data but not the type of event.
data: {
data:   "greeting": "Hello world stream"
data: }

We could not determine whether an event was an error or a message.
This PR adds a event type to the messages, so that they look like:
event: message
data: {"greeting": "Hello world stream"}

Special notes for your reviewer:
(Also note the to_json part has been added to return the result in a single line, thanks Gabe)
If applicable:

[ ] this PR contains documentation
[ ] this PR contains unit tests
[ ] this PR has been tested for backwards compatibility

Have you vetted this with current stream users?

We got a request from an internal team for something similar. Their issue was that they could not determine whether an event was an error or a message without a separate type.


rockcraft: actually use sources for 1.7.0, add passthru.tests.version

Not sure what went wrong here, but automatic updates were broken for this package: https://github.com/NixOS/nixpkgs/pull/368735. Maybe patching sources with the version messed up version checks? Anyway, fixed the derivation to use appropriate sources and added a passthru.tests.version.
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Good catch, thank you!


Extract descriptions from @return doc comments if method has no summary?

e.g. some short methods may contain a description in the return tag, but not a description of the method itself. (to avoid redundancy).
Doing this would extract more methods, but they may be of lower quality if incorrectly parsed or automatically generated. I'd expect a description such as @return bool STARTDESCRIPTION true if this is a float to be extracted (I'm not familiar with how the data representation works)

Some libraries/applications are strict about always having a summary in their coding standards, others aren't.
e.g. I've seen @return the description without a type for php
Could try to annotate the fact that the fallback was used and this is a non-official summary

    /**
     * @return bool true if this is a float
     */
    public function isFloat()

It would be nice to account for code such as @return HasTemplate<string, stdClass>, etc. Making sure that <([{ in the first token are matched up may be useful as a basic approach (and give up if that fails). (There's no official standard and different static analyzers have their own extensions to the type syntax)
An example implementation for PHP is https://github.com/phan/phan/blob/2.2.12/src/Phan/Language/Element/MarkupDescription.php - examples of what it generates as descriptions are https://github.com/phan/phan/blob/2.2.12/tests/Phan/Language/Element/MarkupDescriptionTest.php#L132-L155

@TysonAndre thanks again for your helpful insight.  For reasons discussed in https://github.com/github/CodeSearchNet/pull/46 we are not making changes regarding improvements to the model or preprocessing to this repository but are really interested in your results if you try this out yourself benchmarks might look like.
I suspect you might beat the benchmarks for PHP :)

Thanks for the reply. I suppose CONTRIBUTING could be clearer about what parts of the code accept minor improvements unless it's on a case-by-case basis. Something along the below lines:

Therefore, we are accepting pull requests for the following items:

Bug fixes
Updates to documentation, including links to your project(s) where improvements to the baseline have been made
Minor improvements to the code (generally excluding changes regarding improvements to the model or preprocessing to this repository - file an issue to discuss ideas)

@TysonAndre Thank you very much for your thoughtful suggestion.  I apologize that our CONTRIBUTING.md was not clearer and I apologize.  Thanks for bringing this to our attention -- I'll make an ammendment right now.
Thanks again for contributing to this project!  We really appreciate it!

@TysonAndre we amended our CONTRIBUTING to allow for these kinds of changes, now.  We have to setup better CI/CD etc. to allow for these contributions so we may be slow to merge these kinds of things in the interim

@TysonAndre you are welcome to try to make a PR with these changes if you are so inclined.  We have amended our CONTRIBUTING rules to allow for these changes

Please feel free to submit a PR to fix ... closing this issue as it has become stale


PackML code generation wrong

Hi
I notice that the PackML ObjectType  PackMLBaseObjectType as defined in  https://reference.opcfoundation.org/PackML/v101/docs/6.3.2 in incorrectly generated by the model compiler when taking the official PackML NodeSet2 as input.
All the Mandatory objects Admin, Status, BaseStateMachine are missing as well as the Methods defined on this object.
The generated object type by the Model Compiler is
<UAObjectType NodeId="ns=1;i=6" BrowseName="1:PackMLBaseObjectType">     <DisplayName>PackMLBaseObjectType</DisplayName>     <References>       <Reference ReferenceType="HasProperty">ns=1;i=221</Reference>       <Reference ReferenceType="HasProperty">ns=1;i=218</Reference>       <Reference ReferenceType="HasSubtype" IsForward="false">i=58</Reference>     </References>   </UAObjectType>
while the NodeSet2 input of  the model compiler is
 <UAObjectType NodeId="ns=1;i=6" BrowseName="1:PackMLBaseObjectType">     <DisplayName>PackMLBaseObjectType</DisplayName>     <Documentation>https://reference.opcfoundation.org/v104/PackML/v101/docs/6.3.2</Documentation>     <References>       <Reference ReferenceType="HasComponent">ns=1;i=73</Reference>       <Reference ReferenceType="HasComponent">ns=1;i=88</Reference>       <Reference ReferenceType="HasSubtype" IsForward="false">i=58</Reference>       <Reference ReferenceType="HasProperty">ns=1;i=221</Reference>       <Reference ReferenceType="HasComponent">ns=1;i=403</Reference>       <Reference ReferenceType="HasComponent">ns=1;i=404</Reference>       <Reference ReferenceType="HasComponent">ns=1;i=400</Reference>       <Reference ReferenceType="HasComponent">ns=1;i=402</Reference>       <Reference ReferenceType="HasComponent">ns=1;i=401</Reference>       <Reference ReferenceType="HasComponent">ns=1;i=362</Reference>       <Reference ReferenceType="HasComponent">ns=1;i=87</Reference>       <Reference ReferenceType="HasProperty">ns=1;i=218</Reference>     </References>   </UAObjectType>
The problem is that the C# is also wrong. The point is that the Create method  which creates an instance of the PackMLBaseObjectType  is creating an incomplete instance albeit the type PackMLBaseObjectType  in the Types hierarchy looks ok with UaExpert.
Regards

The PackML has many Nodes without an absolute SymbolicName or a ParentNodeId.  As a result, it can't be used as an input to the ModelCompiler.  A mantis issue has been created: https://mantis.opcfoundation.org/view.php?id=8882
I am not sure how you got any output at all but I suspect it is because of a bug in the public version that has been fixed in the member-only version.

@opcfoundation-org thanks. I must admit I had to add some symbolic names in the source nodeset in order to generate something. This is another issue. The problem here is the structure with the HasComponent reference which refer to an Object not a Variable or property. Agree with that?

I fixed the NodeSet (added all of the missing ParentNodeIds).
Opc.Ua.PackML.NodeSet2.xml.txt

Added fix to member-only version that handles missing ParentNodeIds if reverse references exist on the child.

Thanks @randy-armstrong  It works perfectly with the member-only model compiler. Last point is  who is maintaining the PackML NodeSet?
It should be updated since PackML is one of the CS which is really used for batch manufacturing. I agree this is what is described in the Mantis issue.

See https://profiles.opcfoundation.org/workinggroup/38


Update php and fix multi plural rules

The following packages are updated with this pull request:

php to 8

psr/log to 3

monolog/monolog to 3

phpunit/phpunit to 10

The issue 4 (https://github.com/alpakaio/i18next-php/issues/4) is solved here.
Also the multi plural rules were corrected. The problem was that the rules returned wrong values because of wrong parentheses. The rules have been rewritten and return the correct value now.


Handle load dependencies errors

[x] tests and linter show no problems (npm t)
[x] code is properly formatted (npm run fmt)
[x] description of changes is added in CHANGELOG.md

Landed in https://github.com/metarhia/impress/commit/5b21eb41fe978b679ba4c3959e556fb6ce8524ac and https://github.com/metarhia/impress/commit/3199bc7ccaf3480b4e5a8cb086d2d2d4065d57c7


Site Update

There was a major update to the KHInsider site recently that broke most of the scrapers.

Fixed in v1.0.1.


Unable to terraform snowflake data warehouse

Hi i did as per the instructions here https://guides.snowflake.com/guide/terraforming_snowflake/index.html?index=..%2F..index#3
but I couldn't terraform. Got a
error creating warehouse: Post "https://xxxxx.AWS_AP_SOUTHEAST_1.snowflakecomputing.com:443/session/v1/login-request?requestId=4c4c47c8-05b4-488f-be6a-4f98ae3cef7c&request_guid=9dd11f11-69d1-4412-8f40-6b7c030185cc&roleName=SYSADMIN": x509: certificate is valid for *.us-west-2.snowflakecomputing.com, *.snowflakecomputing.com, *.global.snowflakecomputing.com, *.prod1.us-west-2.aws.snowflakecomputing.com, *.prod2.us-west-2.aws.snowflakecomputing.com, *.us-west-2.aws.snowflakecomputing.com, not xxxxx.AWS_AP_SOUTHEAST_1.snowflakecomputing.com
Any help please?

The account and/or region is not set correctly

If anyone else has this problem, I found that the region had to be set to "us-west-2".  Then it started working.  The tutorial says to use the output of "SELECT current_region();" which is "AWS_US_WEST_2"... but that does not work.


Topic: EXTRA SPACES PRESENT IN CONTENT OF ABOUT SECTION.

Describe the types of DevOps topics you'd add in HelpOps-Hub Resource pages
THE " What is HelpOps-Hub? " SECTION HAS EXTRA SPACES ADDED.
How many and what types of DevOps tools are you adding?
space reduction. Documentation problem.
How many years of experience do you have in the DevOps field?
beginner
Could you share some screenshots or a video of your previous DevOps work?
No response
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSoC'24-Extd contributor
[X] I'm a Hacktoberfest'24 contributor
[X] Soon, I'll complete it and create a Pull Request.
[X] I'm a beginner in DevOps, but I'll try to contribute the best resources with hands-on experience.

PLEASE ASSIGN THIS ISSUE TO ME AND ALSO ADD THE LABELS OF hacktoberfest-accepted and gssoc-extd.

Hey @ABHISIKTAcommits, please describe it clearly. I guess your issue is not being raised on the correct issue template. Please choose the correct one and share a screenshot of what you exactly want to contribute. Thank you!


Admin doesn't check for valid users

When you log into the admin with a user that doesn't have valid permissions, nothing happens.
You get 403's when you attempt to carry out operations - the interface needs to be reactive to the roles on the token and need to enable/disable bits of functionality before you attempt to use them.

Corrected in a5d2bdfd4473e38604fe3dc8f34212a24f5fb2fb