SBT compile fails on compiler-bridge_2.13 for scala 2.13.10

steps

on sbt version 1.8.2:
ubuntu@primary:~/deltalake-upsert$ sbt --version
sbt version in this project: 1.8.2
sbt script version: 1.8.2

launch sbt and compile:
ubuntu@primary:~/deltalake-upsert$ sbt
[info] welcome to sbt 1.8.2 (Ubuntu Java 11.0.17)
[info] loading project definition from /home/ubuntu/deltalake-upsert/project
[info] loading settings for project root from build.sbt ...
[info] set current project to deltalake-upsert (in build file:/home/ubuntu/deltalake-upsert/)
[info] sbt server started at local:///home/ubuntu/.sbt/1.0/server/27b68d4459f8a7d33c93/sock
[info] started sbt server
sbt:deltalake-upsert> compile
[info] compiling 1 Scala source to /home/ubuntu/deltalake-upsert/target/scala-2.13/classes ...
[info] Non-compiled module 'compiler-bridge_2.13' for Scala 2.13.10. Compiling...
Killed
ubuntu@primary:~/deltalake-upsert$ emental 6s

problem

sbt is killed, with a truncated error message hanging on the next command line, and compilation is incomplete
expectation

compile completes successfully; sbt doesn't get killed
notes

It looks like output is being truncated, and all I see is 'emental 6s'. I am using bash, and there is nothing peculiar in my shell setup
My code consists of a single hello world program:

object HelloWorld {
  def main(args: Array[String]) = println("Hello, world!")
}

my build file is pretty minimal:

ThisBuild / version := "0.1.0-SNAPSHOT"

ThisBuild / scalaVersion := "2.13.10"

lazy val root = (project in file("."))
  .settings(
    name := "deltalake-upsert"
  )

superficially, this looks similar to #5250, but it looks like that has a PR for resolving the issue, and I don't get exactly the same output

@PisoMojado  Thanks for the report.
sbt:hello> run
[info] running example.Hello
hello
[success] Total time: 0 s, completed Jan 14, 2023 12:52:28 AM
sbt:hello> console
[info] Starting scala interpreter...
Welcome to Scala 2.13.10 (OpenJDK 64-Bit Server VM, Java 1.8.0_352).
Type in expressions for evaluation. Or try :help.

Worked for me on my Ubuntu machine.

hi @eed3si9n thanks very much for looking at this.
I am able to reproduce on new ubuntu VMs with 100% reproduction (i.e. no successes)
I'll describe what I'm doing to reproduce. Please note I'm using canonical's multipass software to provision local Ubuntu VMs. This is the uname output for the latest one:
ubuntu@refreshed-kookaburra:~/hello$ uname -a
Linux refreshed-kookaburra 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

steps
provision a brand new VM:
multipass launch
on the VM, install OpenJDK:
sudo apt install default-jre
follow these directions to setup sbt installation
create a project folder 'hello', and a file ./hello/src/main/scala/HelloWorld.scala with the following code:
object HelloWorld {
  def main(args: Array[String]) = println("Hello, world!")
}

write the build file ./hello/build.sbt with these contents:
ThisBuild / version := "0.1.0-SNAPSHOT"

ThisBuild / scalaVersion := "2.13.10"

lazy val root = (project in file("."))
  .settings(
    name := "hello"
  )

enter 'hello' and try to compile:
ubuntu@refreshed-kookaburra:~/hello$ sbt
downloading sbt launcher 1.8.2
copying runtime jar...
[info] [launcher] getting org.scala-sbt sbt 1.8.2  (this may take some time)...
[info] [launcher] getting Scala 2.12.17 (for sbt)...
[info] Updated file /home/ubuntu/hello/project/build.properties: set sbt.version to 1.8.2
[info] welcome to sbt 1.8.2 (Ubuntu Java 11.0.17)
[info] loading project definition from /home/ubuntu/hello/project
[info] Updating
[info] Resolved  dependencies
[info] Fetching artifacts of
[info] Fetched artifacts of
[info] loading settings for project root from build.sbt ...
[info] set current project to hello (in build file:/home/ubuntu/hello/)
[info] sbt server started at local:///home/ubuntu/.sbt/1.0/server/5f30963ee6ed41819a5a/sock
[info] started sbt server
sbt:hello> run
[info] Updating
[info] Resolved  dependencies
[info] Updating
https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.13.10/scala-compiler-2.13.10.pom
  100.0% [##########] 2.5 KiB (66.7 KiB / s)
https://repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.13.10/scala-reflect-2.13.10.pom
  100.0% [##########] 1.8 KiB (149.1 KiB / s)
https://repo1.maven.org/maven2/net/java/dev/jna/jna/5.9.0/jna-5.9.0.pom
  100.0% [##########] 2.0 KiB (116.6 KiB / s)
https://repo1.maven.org/maven2/io/github/java-diff-utils/java-diff-utils/4.12/java-diff-utils-4.12.pom
  100.0% [##########] 2.6 KiB (52.1 KiB / s)
https://repo1.maven.org/maven2/org/jline/jline/3.21.0/jline-3.21.0.pom
  100.0% [##########] 17.3 KiB (352.5 KiB / s)
https://repo1.maven.org/maven2/io/github/java-diff-utils/java-diff-utils-parent/4.12/java-diff-utils-parent-4.12.pom
  100.0% [##########] 9.9 KiB (616.1 KiB / s)
https://repo1.maven.org/maven2/org/jline/jline-parent/3.21.0/jline-parent-3.21.0.pom
  100.0% [##########] 23.2 KiB (774.9 KiB / s)
[info] Resolved  dependencies
[info] Fetching artifacts of
https://repo1.maven.org/maven2/io/github/java-diff-utils/java-diff-utils/4.12/java-diff-utils-4.12.jar
  100.0% [##########] 70.6 KiB (2.0 MiB / s)
https://repo1.maven.org/maven2/net/java/dev/jna/jna/5.9.0/jna-5.9.0.jar
  100.0% [##########] 1.6 MiB (2.5 MiB / s)
https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar
  100.0% [##########] 5.7 MiB (4.7 MiB / s)
https://repo1.maven.org/maven2/org/jline/jline/3.21.0/jline-3.21.0.jar
  100.0% [##########] 971.4 KiB (659.9 KiB / s)
https://repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.13.10/scala-reflect-2.13.10.jar
  100.0% [##########] 3.6 MiB (2.4 MiB / s)
https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.13.10/scala-compiler-2.13.10.jar
  100.0% [##########] 11.5 MiB (5.0 MiB / s)
[info] Fetched artifacts of
[info] compiling 1 Scala source to /home/ubuntu/hello/target/scala-2.13/classes ...
https://repo1.maven.org/maven2/org/scala-sbt/compiler-bridge_2.13/1.8.0/compiler-bridge_2.13-1.8.0.pom
  100.0% [##########] 2.7 KiB (160.7 KiB / s)
https://repo1.maven.org/maven2/org/scala-sbt/compiler-bridge_2.13/1.8.0/compiler-bridge_2.13-1.8.0-sources.jar
  100.0% [##########] 51.2 KiB (3.3 MiB / s)
[info] Non-compiled module 'compiler-bridge_2.13' for Scala 2.13.10. Compiling...
Killed

notes
Your java build number is different from mine? This is my java version
ubuntu@refreshed-kookaburra:~/hello$ java -version
openjdk version "11.0.17" 2022-10-18
OpenJDK Runtime Environment (build 11.0.17+8-post-Ubuntu-1ubuntu222.04)
OpenJDK 64-Bit Server VM (build 11.0.17+8-post-Ubuntu-1ubuntu222.04, mixed mode, sharing)

All of my VMs are Ubuntu 22.04 LTS

I personally started using Ubuntu 22.04 LTS, and I think GitHub Actions as well.
sudo apt install default-jre

JRE stands for Java Runtime Environment, and you need Java Development Kit (JDK), not JRE. In general, also I don't know if I would trust Ubuntu or Debian packaged JDK or JREs (see Mystery meat OpenJDK builds strike again).
The most well tested OpenJDK distribution for Scala is Eclipse Temurin (formerly known as AdoptOpenJDK) available via different package managers, including Coursier and apt (https://askubuntu.com/questions/1375383/how-to-properly-install-temurin-jdk-with-update-alternatives).

Hey @eed3si9n thanks again for looking at it.
Apologies about the JRE/JDK mixup. For what it's worth, I repeated my VM setup, and replaced the JRE step I mention above with the temurin apt package setup here, which appears equivalent to the accepted answer in the askubuntu link you shared, and it is Temurin's official documentation.
Alas, I continue to have my problem. I do see some differences in the output, but the problem appears identical: compiler-bridge_2.13 fails to compile in compileIncremental:
ubuntu@sensitive-sandpiper:~/hello$ sbt
downloading sbt launcher 1.8.2
copying runtime jar...
[info] [launcher] getting org.scala-sbt sbt 1.8.2  (this may take some time)...
[info] [launcher] getting Scala 2.12.17 (for sbt)...
[info] Updated file /home/ubuntu/hello/project/build.properties: set sbt.version to 1.8.2
[info] welcome to sbt 1.8.2 (Eclipse Adoptium Java 17.0.5)
[info] loading project definition from /home/ubuntu/hello/project
[info] Updating
https://repo1.maven.org/maven2/jline/jline/2.14.6/jline-2.14.6.pom
  100.0% [##########] 19.4 KiB (218.3 KiB / s)
[info] Resolved  dependencies
[info] Fetching artifacts of
https://repo1.maven.org/maven2/jline/jline/2.14.6/jline-2.14.6.jar
  100.0% [##########] 262.5 KiB (3.7 MiB / s)
[info] Fetched artifacts of
[info] loading settings for project root from build.sbt ...
[info] set current project to hello (in build file:/home/ubuntu/hello/)
[info] sbt server started at local:///home/ubuntu/.sbt/1.0/server/5f30963ee6ed41819a5a/sock
[info] started sbt server
sbt:hello> run
[info] Updating
[info] Resolved  dependencies
[info] Updating
https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.13.10/scala-compiler-2.13.10.pom
  100.0% [##########] 2.5 KiB (129.9 KiB / s)
https://repo1.maven.org/maven2/org/jline/jline/3.21.0/jline-3.21.0.pom
  100.0% [##########] 17.3 KiB (785.1 KiB / s)
https://repo1.maven.org/maven2/io/github/java-diff-utils/java-diff-utils/4.12/java-diff-utils-4.12.pom
  100.0% [##########] 2.6 KiB (70.3 KiB / s)
https://repo1.maven.org/maven2/net/java/dev/jna/jna/5.9.0/jna-5.9.0.pom
  100.0% [##########] 2.0 KiB (56.6 KiB / s)
https://repo1.maven.org/maven2/org/jline/jline-parent/3.21.0/jline-parent-3.21.0.pom
  100.0% [##########] 23.2 KiB (1.7 MiB / s)
https://repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.13.10/scala-reflect-2.13.10.pom
  100.0% [##########] 1.8 KiB (28.9 KiB / s)
https://repo1.maven.org/maven2/io/github/java-diff-utils/java-diff-utils-parent/4.12/java-diff-utils-parent-4.12.pom
  100.0% [##########] 9.9 KiB (318.0 KiB / s)
[info] Resolved  dependencies
[info] Fetching artifacts of
https://repo1.maven.org/maven2/io/github/java-diff-utils/java-diff-utils/4.12/java-diff-utils-4.12.jar
  100.0% [##########] 70.6 KiB (1.8 MiB / s)
https://repo1.maven.org/maven2/org/jline/jline/3.21.0/jline-3.21.0.jar
  100.0% [##########] 971.4 KiB (2.6 MiB / s)
https://repo1.maven.org/maven2/net/java/dev/jna/jna/5.9.0/jna-5.9.0.jar
  100.0% [##########] 1.6 MiB (1.4 MiB / s)
https://repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.13.10/scala-reflect-2.13.10.jar
  100.0% [##########] 3.6 MiB (2.5 MiB / s)
https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar
  100.0% [##########] 5.7 MiB (3.3 MiB / s)
https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.13.10/scala-compiler-2.13.10.jar
  100.0% [##########] 11.5 MiB (5.4 MiB / s)
[info] Fetched artifacts of
[info] compiling 1 Scala source to /home/ubuntu/hello/target/scala-2.13/classes ...
https://repo1.maven.org/maven2/org/scala-sbt/compiler-bridge_2.13/1.8.0/compiler-bridge_2.13-1.8.0.pom
  100.0% [##########] 2.7 KiB (136.6 KiB / s)
[info] Non-compiled module 'compiler-bridge_2.13' for Scala 2.13.10. Compiling...
Killed
ubuntu@sensitive-sandpiper:~/hello$ mental 44s

Zinc probably needs write right to your home directory.

I created a new VM, and this time after installing java, scala, and sbt via coursier, I put read write and execute on my home directory, and on everything within the project:
ubuntu@relative-whistler:/home$ chmod a+w ubuntu/
ubuntu@relative-whistler:/home$ chmod a+r ubuntu/
ubuntu@relative-whistler:/home$ chmod a+x ubuntu/
ubuntu@relative-whistler:/home$ cd ubuntu/
ubuntu@relative-whistler:~$ chmod 777 -R hello/

Unfortunately, the same issue occurs:
ubuntu@relative-whistler:~/hello$ sbt
[info] [launcher] getting org.scala-sbt sbt 1.8.2  (this may take some time)...
[info] [launcher] getting Scala 2.12.17 (for sbt)...
[info] Updated file /home/ubuntu/hello/project/build.properties: set sbt.version to 1.8.2
[info] welcome to sbt 1.8.2 (AdoptOpenJDK Java 1.8.0_292)
[info] loading project definition from /home/ubuntu/hello/project
[info] Updating
https://repo1.maven.org/maven2/jline/jline/2.14.6/jline-2.14.6.pom
  100.0% [##########] 19.4 KiB (228.5 KiB / s)
[info] Resolved  dependencies
[info] Fetching artifacts of
[info] Fetched artifacts of
[info] loading settings for project root from build.sbt ...
[info] set current project to hello (in build file:/home/ubuntu/hello/)
[info] sbt server started at local:///home/ubuntu/.sbt/1.0/server/5f30963ee6ed41819a5a/sock
[info] started sbt server
sbt:hello> run
[info] Updating
https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.13.10/scala-compiler-2.13.10.pom
  100.0% [##########] 2.5 KiB (32.5 KiB / s)
[info] Resolved  dependencies
[info] Fetching artifacts of
https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.13.10/scala-compiler-2.13.10.jar
  100.0% [##########] 11.5 MiB (11.8 MiB / s)
[info] Fetched artifacts of
[info] compiling 1 Scala source to /home/ubuntu/hello/target/scala-2.13/classes ...
https://repo1.maven.org/maven2/org/scala-sbt/compiler-bridge_2.13/1.8.0/compiler-bridge_2.13-1.8.0.pom
  100.0% [##########] 2.7 KiB (170.7 KiB / s)
https://repo1.maven.org/maven2/org/scala-sbt/compiler-bridge_2.13/1.8.0/compiler-bridge_2.13-1.8.0-sources.jar
  100.0% [##########] 51.2 KiB (3.6 MiB / s)
[info] Non-compiled module 'compiler-bridge_2.13' for Scala 2.13.10. Compiling...
Killed
ubuntu@relative-whistler:~/hello$

a few (more) notes
I don't think it matters, but just in case: I noticed that sbt downloads scala 2.12 for itself
[info] [launcher] getting Scala 2.12.17 (for sbt)...
and my project is targeting 2.13.10. Changing my project does not resolve the issue, and I suspect 2.12 is just for sbt internally, but still wanted to bring it up.
Also, I should have clarified that, before my latest attempt described by this comment, I had been setting up the JDK and sbt via the debian packages for each project, as it is my personal preference for managing software. I do see in the docs that coursier is encouraged, so I used that this time, hoping that compiler-bridge_2.13 would come pre-compiled, but it did not change my experience.
I'm just curious, how do you setup scala and sbt, @eed3si9n ? Should I try the SDKMAN installation?

I'm just curious, how do you setup scala and sbt? Should I try the SDKMAN installation?

On Mac I use SDKMAN or Coursier, and on Ubuntu I use apt. GitHub Actions also installs sbt by default. I think it's grabbing our binary tarball - https://github.com/actions/runner-images/blob/main/images/linux/scripts/installers/sbt.sh.
My guess is that something that sbt is doing is somehow hitting the limitation or default setup of Multipass?
Either way, I would suggest opening a ticket with them instead.

I can confirm that the issue appears limited to multipass. I created a debian VM and sbt works from the debian package.
But, one last thing: I took your suggestion seriously, and while drafting my ticket to canonical about the strange issues, here, I decided to run sbt on one of my VMs in both debug and verbose mode, and the problem disappeared:
ubuntu@sensitive-sandpiper:~/hello$ sbt -v -d
[addSbt] arg = '-debug'
[sbt_options] declare -a sbt_options=()
[process_args] java_version = '17'
[addMemory] arg = '1024'
[addJava] arg = '-Xms1024m'
[addJava] arg = '-Xmx1024m'
[addJava] arg = '-Xss4M'
[addJava] arg = '-XX:ReservedCodeCacheSize=128m'
[addJava] arg = '-Dsbt.script=/usr/bin/sbt'
[copyRt] java9_rt = '/home/ubuntu/.sbt/1.0/java9-rt-ext-eclipse_adoptium_17_0_5/rt.jar'
[addJava] arg = '-Dscala.ext.dirs=/home/ubuntu/.sbt/1.0/java9-rt-ext-eclipse_adoptium_17_0_5'
# Executing command line:
java
-Dfile.encoding=UTF-8
-Xms1024m
-Xmx1024m
-Xss4M
-XX:ReservedCodeCacheSize=128m
-Dsbt.script=/usr/bin/sbt
-Dscala.ext.dirs=/home/ubuntu/.sbt/1.0/java9-rt-ext-eclipse_adoptium_17_0_5
-jar
/home/ubuntu/.cache/sbt/boot/sbt-launch/1.8.2/sbt-launch-1.8.2.jar
-debug

[debug] not up to date. inChanged = true, force = false
[debug] Updating ProjectRef(uri("file:/home/ubuntu/hello/project/"), "hello-build")...
[debug] Done updating ProjectRef(uri("file:/home/ubuntu/hello/project/"), "hello-build")
[debug] [zinc] IncrementalCompile -----------
[debug] IncrementalCompile.incrementalCompile
[debug] previous = Stamps for: 0 products, 0 sources, 0 libraries
[debug] current source = Set()
[debug] > initialChanges = InitialChanges(Changes(added = Set(), removed = Set(), changed = Set(), unmodified = ...),Set(),Set(),API Changes: Set())
[debug] Full compilation, no sources in previous analysis.
[debug] Created transactional ClassFileManager with tempDir = /home/ubuntu/hello/project/target/scala-2.12/sbt-1.0/classes.bak
[debug] Removing the temporary directory used for backing up class files: /home/ubuntu/hello/project/target/scala-2.12/sbt-1.0/classes.bak
[debug] Copy resource mappings:
[debug]
sbt:hello> run
[debug] Copy resource mappings:
[debug]
[debug] not up to date. inChanged = true, force = false
[debug] Updating ...
[debug] Done updating
[debug] [zinc] IncrementalCompile -----------
[debug] IncrementalCompile.incrementalCompile
[debug] previous = Stamps for: 0 products, 0 sources, 0 libraries
[debug] current source = Set(${BASE}/src/main/scala/HelloWorld.scala)
[debug] > initialChanges = InitialChanges(Changes(added = Set(${BASE}/src/main/scala/HelloWorld.scala), removed = Set(), changed = Set(), unmodified = ...),Set(),Set(),API Changes: Set())
[debug] Full compilation, no sources in previous analysis.
[debug] all 1 sources are invalidated
[debug] Created transactional ClassFileManager with tempDir = /home/ubuntu/hello/target/scala-2.13/classes.bak
[debug] Initial set of included nodes:
[debug] Recompiling all sources: number of invalidated sources > 50.0 percent of all sources
[debug] About to delete class files:
[debug] We backup class files:
[debug] compilation cycle 1
[info] compiling 1 Scala source to /home/ubuntu/hello/target/scala-2.13/classes ...
[debug] Getting org.scala-sbt:compiler-bridge_2.13:1.8.0:compile for Scala 2.13.10
[debug] [zinc] Running cached compiler 70d0e33e for Scala compiler version 2.13.10
[debug] [zinc] The Scala compiler is invoked with:
[debug]         -bootclasspath
[debug]         /home/ubuntu/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar
[debug]         -classpath
[debug]         /home/ubuntu/hello/target/scala-2.13/classes
[debug] Scala compilation took 2.372998625 s
[debug] done compiling
[debug] Registering generated classes:
[debug]         HelloWorld$.class
[debug]         HelloWorld.class
[debug] Removing the temporary directory used for backing up class files: /home/ubuntu/hello/target/scala-2.13/classes.bak
[debug] Packaging /home/ubuntu/hello/target/scala-2.13/hello_2.13-0.1.0-SNAPSHOT.jar ...
[debug] Input file mappings:
[debug]         HelloWorld.class
[debug]           /home/ubuntu/hello/target/scala-2.13/classes/HelloWorld.class
[debug]         HelloWorld$.class
[debug]           /home/ubuntu/hello/target/scala-2.13/classes/HelloWorld$.class
[debug] Done packaging.
[info] running HelloWorld
[debug]   Classpath:
[debug]         /home/ubuntu/hello/target/bg-jobs/sbt_31efc46b/job-1/target/0c79d5e6/bcde8c9c/hello_2.13-0.1.0-SNAPSHOT.jar
[debug]         /home/ubuntu/hello/target/bg-jobs/sbt_31efc46b/target/d2e27205/06ac27ae/scala-library-2.13.10.jar
Hello, world!
[success] Total time: 3 s, completed Jan 18, 2023, 5:45:54 PM

This is me running it in just verbose mode 1 minute before that:
ubuntu@sensitive-sandpiper:~/hello$ sbt -v
[sbt_options] declare -a sbt_options=()
[process_args] java_version = '17'
[copyRt] java9_rt = '/home/ubuntu/.sbt/1.0/java9-rt-ext-eclipse_adoptium_17_0_5/rt.jar'
# Executing command line:
java
-Dfile.encoding=UTF-8
-Xms1024m
-Xmx1024m
-Xss4M
-XX:ReservedCodeCacheSize=128m
-Dsbt.script=/usr/bin/sbt
-Dscala.ext.dirs=/home/ubuntu/.sbt/1.0/java9-rt-ext-eclipse_adoptium_17_0_5
-jar
/home/ubuntu/.cache/sbt/boot/sbt-launch/1.8.2/sbt-launch-1.8.2.jar

[info] welcome to sbt 1.8.2 (Eclipse Adoptium Java 17.0.5)
[info] loading project definition from /home/ubuntu/hello/project
[info] loading settings for project root from build.sbt ...
[info] set current project to hello (in build file:/home/ubuntu/hello/)
[info] sbt server started at local:///home/ubuntu/.sbt/1.0/server/5f30963ee6ed41819a5a/sock
[info] started sbt server
sbt:hello> run
[info] compiling 1 Scala source to /home/ubuntu/hello/target/scala-2.13/classes ...
[info] Non-compiled module 'compiler-bridge_2.13' for Scala 2.13.10. Compiling...
[info]   Compilation completed in 10.408s.
Killed

Same host, still a multipass VM, but notice that not only does running in debug mode succeed, and it doesn't mention the compiler-bridge_2.13 at all.
I do think it's strange that the behavior of sbt is being changed by debug mode. Maybe that is expected? I didn't expect it.
I know this ticket is a bit long in the tooth for what ultimately amounts to you helping me set up my dev environment (@eed3si9n thank you again very much for all of your help), but I can't shake the suspicion that something really strange is going on here? Inside SBT? Like 1) I can't build on what is allegedly an ordinary Ubuntu 22.04 LTS image (it probably isn't, I agree with you something is wrong, here) and 2) I can't even look closer at the problem because it disappears when I run debug output.

On a Mac machine I have the same problem today Dec 7th 2023.
OpenJDK 21 ; October release and sbt 1.9.7.
For what it's worth I tried with a supposedly working setup ie https://github.com/databricks/LearningSparkV2/tree/master/chapter2/scala
I managed to make it work by moving the directory main from src to the same folder as the build.sbt file.
Any idea?

Similar problem (error compiling compiler-bridge_2.13) but with different output.  Steps to reproduce:
$ sbt new vmunier/play-scalajs.g8
$ cd play-scalajs
$ sbt
sbt:root> project server
[server] run

This is on a Mac Sonoma 14.2.1
openjdk version "21.0.1" 2023-10-17
OpenJDK Runtime Environment Homebrew (build 21.0.1)
OpenJDK 64-Bit Server VM Homebrew (build 21.0.1, mixed mode, sharing)
sbt.version=1.9.7
output:
[server] $ run
[info] compiling 1 Scala source to /Users/bwbecker/temp/playSeeds/play-scalajs/shared/.jvm/target/scala-2.13/classes ...
[info] Non-compiled module 'compiler-bridge_2.13' for Scala 2.13.5. Compiling...
error:
  bad constant pool index: 0 at pos: 48445ental 0s
     while compiling: <no file>
        during phase: globalPhase=<no phase>, enteringPhase=<some phase>
     library version: version 2.13.5
    compiler version: version 2.13.5
  reconstructed args: -bootclasspath /Users/bwbecker/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.5/scala-library-2.13.5.jar -nowarn -classpath /Users/bwbecker/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/compiler-interface/1.9.5/compiler-interface-1.9.5.jar:/Users/bwbecker/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/util-interface/1.9.4/util-interface-1.9.4.jar:/Users/bwbecker/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/compiler-bridge_2.13/1.9.5/compiler-bridge_2.13-1.9.5-sources.jar:/Users/bwbecker/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.13.5/scala-compiler-2.13.5.jar:/Users/bwbecker/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.13.5/scala-reflect-2.13.5.jar:/Users/bwbecker/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/jline/jline/3.19.0/jline-3.19.0.jar:/Users/bwbecker/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/net/java/dev/jna/jna/5.3.1/jna-5.3.1.jar -d /var/folders/p2/4838qx_158l5870qq4xyw7800000gn/T/sbt_f4eac186 -Xmaxwarns 0

  last tree to typer: EmptyTree
       tree position: <unknown>
            tree tpe: <notype>
              symbol: null
           call site: <none> in <none>

== Source file context for tree position ==

error: scala.reflect.internal.FatalError:
  bad constant pool index: 0 at pos: 48445
     while compiling: <no file>
        during phase: globalPhase=<no phase>, enteringPhase=<some phase>
     library version: version 2.13.5
    compiler version: version 2.13.5
  reconstructed args: -bootclasspath /Users/bwbecker/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.5/scala-library-2.13.5.jar -nowarn -classpath /Users/bwbecker/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/compiler-interface/1.9.5/compiler-interface-1.9.5.jar:/Users/bwbecker/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/util-interface/1.9.4/util-interface-1.9.4.jar:/Users/bwbecker/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/compiler-bridge_2.13/1.9.5/compiler-bridge_2.13-1.9.5-sources.jar:/Users/bwbecker/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.13.5/scala-compiler-2.13.5.jar:/Users/bwbecker/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.13.5/scala-reflect-2.13.5.jar:/Users/bwbecker/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/jline/jline/3.19.0/jline-3.19.0.jar:/Users/bwbecker/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/net/java/dev/jna/jna/5.3.1/jna-5.3.1.jar -d /var/folders/p2/4838qx_158l5870qq4xyw7800000gn/T/sbt_f4eac186 -Xmaxwarns 0

etc...

@bwbecker Scala 2.13.5 doesn't work on JDK 21, as per https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html — try 2.13.11 (minimum) or 2.13.12 (recommended)

@SethTisue Thanks for the reply.  I just verified that and was about to reply to my own post.  Thanks for beating me to it!

@bwbecker Great!
I've also opened https://github.com/vmunier/play-scalajs.g8/issues/189 so the maintainers of that template are aware.

Indeed with Java 8 it works fine!
JDK 21 was the problem...
Cheers,

Same here, JDK 21 was incompatible with sbt compile. Are there any plans to make sbt compatible with jdk-21?

@kaiji123 if you are using a current sbt and a current Scala, it works
on the sbt side, check your project/build.properties, that's how the sbt version is determined, it's not by determined by what's installed systemwide

Indeed with Java 8 it works fine! JDK 21 was the problem... Cheers,

No, the problem is sbt. At the very least it should give a sensible error about trying a different version instead of pointing you at compiler-bridge. Java 8 is horrifically outdated - nobody should be using it anymore, and any dependencies keeping you on it should be replaced.


General Issue: Follow Deprecate Strategy for function from 0.7, 0.8, 0.9

Background Information
We missed deprecating functions from our last release.  Just putting this as a placeholder so we don't forget!!
Definition of Done
Functions from 0.7 and 0.8 that were deprecated are removed.
Functions deprecated with warning in 0.9 are set to error.
https://pharmaverse.github.io/admiraldev/devel/articles/programming_strategy.html#deprecation

Starting to think that this should be an auto-generated issue when a release is done so we keep line of sight.

@bms63 , it seems we miss this frequently. I would suggest implementing https://github.com/pharmaverse/admiraldev/issues/36.
Maybe @zdz2101 is interested in implementing https://github.com/pharmaverse/admiraldev/issues/36.

I'll have a look!

Already addressing this in issue #1723


Miscellaneous documentation improvements

Signed-off-by: Cary Phillips<EMAIL_ADDRESS>

Also addresses #396 and #393.

lgtm


Upgrade action to use node20

https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/

Node 16 has reached its end of life, prompting us to initiate its deprecation process for GitHub Actions. Our plan is to transition all actions to run on Node 20 by Spring 2024. We will actively monitor the migration's progress and gather community feedback before finalizing the transition date. Starting October 23rd, workflows containing actions running on Node 16 will display a warning to alert users about the upcoming migration.
What you need to do
For Actions maintainers
Modify your actions to run on Node 20 instead of Node 16. For guidance, refer to the Actions configuration settings .

@davidgamero Please create a github release to accompany this update.

done


More fidelity tests

I added the rest of the khronos fidelity tests, with the exception of Cameras (since we don't support glTF cameras yet) and WaterBottle, which seems to be a duplicate of SpecGlossVsMetalRough. I ended up having to refactor updateCamera a little to change the way we were clamping radius and near/far because it was not working well for arbitrary values / scenes. If we're concerned about destabilizing 0.7, this can easily wait till 0.8. I found some new Filament bugs with these tests as well.

@cdata, hold off on reviewing this one; I'm already half-way to solving #835 here, so I'm just going to take it the rest of the way. Should be ready later today.


Ability to zoom to given element(s)

As per the discussion during the meeting, we'd like to feel out the ability to zoom to a given element on a drawing. Possibly via some multi-element dropdown list - whatever elements are highlighted, the drawing will reset the zoom extents to the extents of the selected element(s).

This is still a priority for Phase 2. This is also related to #42 . Will become a priority after trimesh enhancements #283


Pin the policy component versions

Recent unreleased changes to the main branch change the installation instructions, which motivated this change.

/cc @dhaiducek


Possible problem in zero output

Currently, blocks where blockIdx.z = 0 will set the output to zero here. However, due to the absence of synchronization between blocks, is it possible that other blocks
with different blockIdx.z  might complete their calculations and update the output before it's zeroed out？

Conventional wisdom would say yes, it's possible for blocks to launch in any order. In practice (and I tested this a lot) I've never seen block (x, y, 0) launch after (x, y, 1). There's some discussion of it here and some tests of the correlation between launch time and blockIdx, which turns out to be very strong.
Of course, relying on it is still a little hacky since there are no actual guarantees from NVIDIA. I definitely want to find a better solution, and I'm trying to rework the kernel to do FP32 accumulation anyway, which may make it a non-issue soon.

Actually the concern is, modern GPU have enough SMs that block (x, y, 0) and (x, y, 1) are launched concurrently, it's hard to guarantee block 0 will finish the zero-fill first.


tensorflow:Saver not created because there are no variables in the graph to restore

I am a new bee trying to learn Tensorflow from this site .
After all installation when I run:
(tensorflow1) C:\tensorflow1\models\research\object_detection> jupyter notebook object_detection_tutorial.ipynb
I got this message: "tensorflow:Saver not created because there are no variables in the graph to restore"

System information

Have I written custom code: NO
**OS Platform and Distribution: Windows 10_64
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:N/A
TensorFlow installed from (source or binary): conda install
TensorFlow version (use command below): 2.1.0
Python version: 3.7.6
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source):N/A
CUDA/cuDNN version: cudatoolkit =v10.1.243   cudnn  =v7.6.5
GPU model and memory: GeForce 920MX  2GB

Problem:
I get the message

model_name = 'ssd_mobilenet_v1_coco_2017_11_17'
detection_model = load_model(model_name)
INFO:tensorflow:Saver not created because there are no variables in the graph to restore
tensorflow:Saver not created because there are no variables in the graph to restore
and

finally end up with

###Final error logs:
ResourceExhaustedError                    Traceback (most recent call last)
 in
1 for image_path in TEST_IMAGE_PATHS:
----> 2   show_inference(masking_model, image_path)
 in show_inference(model, image_path)
4   image_np = np.array(Image.open(image_path))
5   # Actual detection.
----> 6   output_dict = run_inference_for_single_image(model, image_np)
7   # Visualization of the results of a detection.
8   vis_util.visualize_boxes_and_labels_on_image_array(
 in run_inference_for_single_image(model, image)
7
8   # Run inference
----> 9   output_dict = model(input_tensor)
10
11   # All outputs are batches tensors.
~\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow_core\python\eager\function.py in call(self, *args, **kwargs)
1549       TypeError: For invalid positional/keyword argument combinations.
1550     """
-> 1551     return self._call_impl(args, kwargs)
1552
1553   def _call_impl(self, args, kwargs, cancellation_manager=None):
~\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow_core\python\eager\function.py in _call_impl(self, args, kwargs, cancellation_manager)
1589       raise TypeError("Keyword arguments {} unknown. Expected {}.".format(
1590           list(kwargs.keys()), list(self._arg_keywords)))
-> 1591     return self._call_flat(args, self.captured_inputs, cancellation_manager)
1592
1593   def _filtered_call(self, args, kwargs):
~\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow_core\python\eager\function.py in _call_flat(self, args, captured_inputs, cancellation_manager)
1690       # No tape is watching; skip to running the function.
1691       return self._build_call_outputs(self._inference_function.call(
-> 1692           ctx, args, cancellation_manager=cancellation_manager))
1693     forward_backward = self._select_forward_and_backward_functions(
1694         args,
~\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow_core\python\eager\function.py in call(self, ctx, args, cancellation_manager)
543               inputs=args,
544               attrs=("executor_type", executor_type, "config_proto", config),
--> 545               ctx=ctx)
546         else:
547           outputs = execute.execute_with_cancellation(
~\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow_core\python\eager\execute.py in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name)
65     else:
66       message = e.message
---> 67     six.raise_from(core._status_to_exception(e.code, message), None)
68   except TypeError as e:
69     keras_symbolic_tensors = [
~\Anaconda3\envs\tensorflow1\lib\site-packages\six.py in raise_from(value, from_value)
ResourceExhaustedError: 2 root error(s) found.
(0) Resource exhausted:  OOM when allocating tensor with shape[1166541600] and type int32 on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
[[node BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/non_max_suppression/NonMaxSuppressionV2 (defined at :11) ]]
Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
 [[BatchMultiClassNonMaxSuppression/map/while/strided_slice/_170]]

Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
(1) Resource exhausted:  OOM when allocating tensor with shape[1166541600] and type int32 on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
[[node BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/non_max_suppression/NonMaxSuppressionV2 (defined at :11) ]]
Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
0 successful operations.
0 derived errors ignored. [Op:__inference_pruned_65677]
Function call stack:
pruned -> pruned

@masumkmu,
The link you have provided does not have the code
model_name = 'ssd_mobilenet_v1_coco_2017_11_17'
detection_model = load_model(model_name)

anywhere in the tutorial.
Also, I see that the tutorial is using TensorFlow 1.9, whereas you have TensorFlow 2.1 installed.
Could you please check out this official tutorial from TensorFlow, which uses TensorFlow 2.x for object detection. Thanks!

I think thats more of the memory problem can you show us the output of nvidia-smi before runnnig the code and also the cudnn version

@masumkmu,
Any updates regarding this issue? Thanks!

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

INFO:tensorflow:Saver not created because there are no variables in the graph to restore
I don`t know why? who can tell me where the problem has been occurred..Thanks

Same issue here on "ssd_mobilenet_v1_coco_2017_11_17" and "ssd_mobilenet_v2_coco_2018_03_29" Does anyone find the solution? Does anyone knows the reason why it is not working? Using the frozen graphs is the best option for now?

I'm having the same issue as op from "research/object_detection/object_detection_tutorial.ipynb".

I'm having the same issue as op from "research/object_detection/object_detection_tutorial.ipynb".

@marued,
Could you please submit a new issue from this link and fill in the issue template, so that we can track it there. Thanks!

I'm having the same issue as op from "research/object_detection/object_detection_tutorial.ipynb".
There is no answer about "ssd_mobilenet_v2_coco_2018_03_29" or other saved model.

I use ML.NET and have the same issue:
Saver not created because there are no variables in the graph to restore

@kwijik,
Could you please submit a new issue from this link and fill in the issue template, so that we can track it there. Thanks!

sorry,
https://github.com/tensorflow/tensorflow/issues/37262#issuecomment-594477332

Could you please check out this official tutorial from TensorFlow, which uses TensorFlow 2.x for object detection. Thanks!

at 2020-06-26 the link seems broken...where is the 2.x correct ipython notebook for objectdetection?

@ozett,
Looks like the file has been removed. Could you please submit a new issue from this link and fill in the template, so that we can track the issue there. Thanks!

new issue here: https://github.com/tensorflow/models/issues/8736

any update ?

Hi guys, here are my two cents about those people facing this kind  issues like Saver not created because there are no variables in the graph to restore

I believe you are trying to import frozen model that trained with tensorflow 1 by using tensorflow 2.

check the version of the tensorflow you have installed in your system.

if the model is trained with tensorflow 2, under the folder saved_model u will find while called variable and assets. try to load the model using tensorflow 2 as well.
try to import your full path full path i mean you have to import absolute path to the file that you want to import.

Hope this will help.

I am using
bert-tensorflow==1.0.1
keras - 2.4.3
We use the case model here
BERT_MODEL_HUB = "https://tfhub.dev/google/bert_cased_L-12_H-768_A-12/1"
def create_tokenizer_from_hub_module():
"""Get the vocab file and casing info from the Hub module."""
with tf.Graph().as_default():
bert_module = hub.Module(BERT_MODEL_HUB)
tokenization_info = bert_module(signature="tokenization_info", as_dict=True)
with tf.Session() as sess:
vocab_file, do_lower_case = sess.run([tokenization_info["vocab_file"],
tokenization_info["do_lower_case"]])
return bert.tokenization.FullTokenizer(
vocab_file=vocab_file, do_lower_case=do_lower_case)
tokenizer = create_tokenizer_from_hub_module()
After running above cell in Colab I'm getting the following msg
INFO:tensorflow:Saver not created because there are no variables in the graph to restore
INFO:tensorflow:Saver not created because there are no variables in the graph to restore

@knightperfectionist Have you solved this problem?

I removed this line and it worked
tf.compat.v1.disable_eager_execution()

这是来自QQ邮箱的假期自动回复邮件。你好，现在我不在线。我在看到后，尽快给你回复。

@masumkmu,
The link you have provided does not have the code
model_name = 'ssd_mobilenet_v1_coco_2017_11_17'
detection_model = load_model(model_name)

anywhere in the tutorial.
Also, I see that the tutorial is using TensorFlow 1.9, whereas you have TensorFlow 2.1 installed.
Could you please check out this official tutorial from TensorFlow, which uses TensorFlow 2.x for object detection. Thanks!

switching always to the neweste version , isnt the solution...

这是来自QQ邮箱的假期自动回复邮件。你好，现在我不在线。我在看到后，尽快给你回复。

Hi guys, here are my two cents about those people facing this kind issues like Saver not created because there are no variables in the graph to restore

I believe you are trying to import frozen model that trained with tensorflow 1 by using tensorflow 2.

check the version of the tensorflow you have installed in your system.

if the model is trained with tensorflow 2, under the folder saved_model u will find while called variable and assets. try to load the model using tensorflow 2 as well.
try to import your full path full path i mean you have to import absolute path to the file that you want to import.

Hope this will help.

Can you help further?

I removed this line and it worked
tf.compat.v1.disable_eager_execution()

You use the TF1 version or 2?


add a path randomizer for the mouse movement

Pretty sure thats a good way of securing the botting accounts, adding a humanized path for mouse movement, so it doesn't move the mouse in the same path all the time

That has been experimented with since 2021 and was left out with no plans to implement in the future. But since this is fully open-source, anyone is welcome to make their own variant.
If Jagex starts using mouse-movement for bans again I will reconsider, but at the moment nothing points to mouse-movement being an issue overall.


fs.write is note working in phantomjs-node

I am trying to modify a phantomjs script to a phantomjs-node script for production scaling, and I am not able to grab and save the HTML content with fs.write(). Does phantomjs-node support this feature or any alternative for this?

fs.write should work. In fact, I use it in one of my tests. So I don't think this is related to this module.

Thanks For the reply, I got the page workaround for fs.write as fs.writeFile in node.js, but I am not able to find a way to wait for all the ajax request get complete before dumping the content. Does Phantom support page.onCallback mthod like Phantomjs

In angular application, I add the line window.callPhantom() once the data are bind with DOM. Apparently, I can get callback, but I cannot pass the content of page.
page.property('onCallback', () => {
	console.log('Angular DOM Ready');
	console.log(sitepage.property('content'));

	// respond final html
	res.send(sitepage.property('content'));

	// create snapshot of current page
	sitepage.render('page.png');

	// close
	sitepage.close();
	phInstance.exit();
});

I can see the output
Angular DOM Ready
But next output never shown.
I think the callback function might be in difference process. Is there any work around to make the callback function able to access sitepage and res object?
Thank you very much.

As you have guessed it, onCallback does work but it won't tricker code back in NodeJs. This is because there are two different processes. There is no way that I know to fix this. You could use #createOutObject() and sleep for 1sec. That seems to have worked a few folks.

Thank you very much. I would appreciate your time.


Windows: uv_exepath does not return resolved symbolic link

//cc: @piscisaureus
[Redirected from: https://github.com/iojs/io.js/issues/851]
I think the solution is to replace the usage of GetModuleFileNameW at util.c#L132 with either GetFinalPathNameByHandle, GetFinalPathNameByHandleA (ANSI variant of the previous) or (if required) even the low-level IOCTRL struct: DeviceIoControl.
Also See:

https://msdn.microsoft.com/en-us/library/windows/hardware/ff552012.aspx
http://www.opensource.apple.com/source/tcl/tcl-87/tcl84/tcl/win/tclWinFile.c (search for 'symbolic' and 'symlink')
https://msdn.microsoft.com/en-us/library/cc232006.aspx
http://stackoverflow.com/a/18792477

References:

http://www.microsoft-questions.com/microsoft/Win32-Kernel/35464990/how-to-read-a-symbolic-link-is-there-a-posix-readlink-equivalent.aspx
http://svn.python.org/projects/external/tcl-<IP_ADDRESS>/win/tclWinFile.c

Closing in favor of the PR in #293.


Dekstop: Add keywords for easier discovery

With a few keywords like these, it would be easier for end-users to find what they're looking for on the desktop.

Thanks!


Codeac.io

Adding an awesome new service I came across recently.

Heh, you actually figured out how to read the CI output. Thanks for that. 😊 I have to make that a little bit more digestible for the rest of us at some point.
Thanks for the PR. The tool looks nice. 🚀


Try CoreBinder on M3 processor

Hello,
I tried to apply mac os corebinder on Apple M3 platform, MacOS version is 14.5. I tried three compilation flags, -DT6000, -DT6020, -DT8112, none of which worked. Applying -DT6000 caused the OS to crash.
For the other two compilation flags, since the successful examples in the README are lost, I tried to use coremark load and check the binding phenomenon through htop. I found that coremark still switches between cores.
$ ./MacOS_CoreBinder/commandline_tool/pin -c 1 coremark/coremark.exe
core: 1
argv[0]: coremark/coremark.exe
ret: 0
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 26805
Total time (secs): 26.805000
Iterations/Sec   : 37306.472673
Iterations       : 1000000
Compiler version : Apple LLVM 15.0.0 (clang-15<IP_ADDRESS>)
Compiler flags   : -O2 -DPERFORMANCE_RUN=1
Memory location  : Please put data memory location here
			(e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x988c
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 37306.472673 / Apple LLVM 15.0.0 (clang-15<IP_ADDRESS>) -O2 -DPERFORMANCE_RUN=1   / Heap

May I ask if there is any additional function to run on the M3 platform?

Hi, can you try to embedde sysctlbyname("kern.pin_core", NULL, NULL, &core, sizeof(core)) directly into the code? Due to some wired issues it seems that the execve() doesn't inherit the bound_processor value in thread struct.

Thanks for your reply!!!!!!!
But embedding that system call in the code doesn't seem to work either.
I embedded the system call at the beginning of the main function.
main(int argc, char *argv[])
{
    int core = 6;
    sysctlbyname("kern.pin_core", NULL, NULL, &core, sizeof(core));
    ee_printf("sysctl pin to core:%d\n", core);
    ......
}

The execution results are as follows:
$ ./coremark.exe
sysctl pin to core:6
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 51684
Total time (secs): 51.684000
Iterations/Sec   : 38696.695302
Iterations       : 2000000
Compiler version : Apple LLVM 15.0.0 (clang-15<IP_ADDRESS>)
Compiler flags   : -O2 -DPERFORMANCE_RUN=1
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x382f
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 38696.695302 / Apple LLVM 15.0.0 (clang-15<IP_ADDRESS>) -O2 -DPERFORMANCE_RUN=1   / Heap

Observe through htop that coremark is still switching between different cores.
In addition, I have observed that if the binding is successful through corebinder, there will be some print information prompts. During my execution, the terminal does not have this print information, does it mean that the binding failed?


Value of User-Agent header is lost in http:Request

Description:
In the example below the value of User-Agent header is unexpectedly lost in the resource function though the value is available in the interceptor.
I'm also expecting User-Agent to be in the list of the headers even http:Request provides special accessor for the value.
Steps to reproduce:
The code:
import ballerina/http;
import ballerina/io;

service class RequestInterceptor1 {
    *http:RequestInterceptor;

    resource function 'default [string... path](
        http:RequestContext ctx,
        http:Request req
    ) returns http:NextService|error? {
        req.setHeader("X-Correlation-Id", "1234");
        // expected value is printed:
        io:println("userAgent: ", req.userAgent);
        return ctx.next();
    }
}
RequestInterceptor1 requestInterceptor1 = new;

@http:ServiceConfig {
    interceptors: [ requestInterceptor1 ]
}
service / on new http:Listener(9090) {
    resource function get . (http:Request r) returns string{
        io:println("---");
        string[] headers = r.getHeaderNames();
        foreach var header in headers {
            io:println(header);
        }
        io:println("---");
        // unexpectedly nothing is printed:
        io:println("userAgent: ", r.userAgent);
        return "hello";
    }
}

The client:
$ curl -v http://localhost:9090/hello
*   Trying ::1:9090...
* TCP_NODELAY set
* Connected to localhost (::1) port 9090 (#0)
> GET /hello HTTP/1.1
> Host: localhost:9090
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< content-type: text/plain
< content-length: 5
< server: ballerina
< date: Fri, 29 Jul 2022 13:03:18 +0300
<
* Connection #0 to host localhost left intact
hello

As you can see the second userAgent: print is empty. Also User-Agent is not available in the header list.
$ bal run issue.bal
Compiling source
	issue.bal

Running executable

userAgent: curl/7.68.0
---
Accept
Host
X-Correlation-Id
---
userAgent:

Affected Versions:
I'm using
$ bal version
Ballerina 2201.1.0 (Swan Lake Update 1)
Language specification 2022R2
Update Tool 1.3.9

Note that if the interceptor is removed then the resource function prints:
---
Accept
Host
---
userAgent: curl/7.68.0

as expected.


Vague error message with async functions

async function foo() {
    return "hi";
}

First thing I get is An async function must have a valid awaitable return type.
From a UX perspective, this is very confusing. If you add es2015.promise to your lib, it goes away.

Yea, I got confused by this in the past https://github.com/Microsoft/TypeScript/issues/10805
Especially that in one project it worked fine (that used older types for Bluebird) and in new project with latest Bluebird typings (which stopped exporting global definition for Promise) it was throwing this error with example taken from docs. Some more info for users in this error would be beneficial.

So how can I solve this problem in my code now?

Is there another way to solve this problem now?


draw_mouse 0 not working

Hi,
I would like to hide the mouse, but this seems "hard".
"draw_mouse 0" doesn't work as an option
any idea?
ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 5.2.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-shared --enable-version3 --enable-x11grab
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, x11grab, from ':99':
  Duration: N/A, start:<PHONE_NUMBER>.218890, bitrate: N/A
    Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1280x1024, 30 fps, 30 tbr, 1000k tbn, 30 tbc
[NULL @ 0x55ebccdeff20] Unable to find a suitable output format for 'draw_mouse'
draw_mouse: Invalid argument

found the error, this extra option should be provided as an option for the
-i
working example: https://github.com/atzorvas/headless/commit/9da26bd30f710596117642c33fc966a5fb7605d6
after I'll finish my task, I'll change this in order to be programmed right and I'll try a PR :)

So the extra options are misplaced? Maybe it's enough to move them to someplace earlier in the command line?

it's not enought, we need different extra options
for example :extra_i = [...], that will be placed right after -i command
or more easily/generaly,
:extra = { i: [...] }

Fixed in version 2.3.0


Provide a way to scroll to top when route query changed

Describe the feature
On nuxt v3.8.0, vue-router doesn't scroll to top when route query changed even scrollToTop is set true.
e.g. navigated /users?page=2 to /users?page=3
definePageMeta({
  key: (r) => r.fullPath,
  scrollToTop: true,
})

This is because _isDifferentRoute does not consider route query.
https://github.com/nuxt/nuxt/blob/d7b11164434e5ae318cd8cf85417362fddb99d71/packages/nuxt/src/pages/runtime/router.options.ts#L66
Additional information

[ ] Would you be willing to help implement this feature?
[ ] Could this feature be implemented as a module?

Final checks

[X] Read the contribution guide.
[X] Check existing discussions and issues.

Usually scrollBehavior is not affected by changing query parameters
I suggest you do it manually
const route = useRoute();
const scrollToTop = useScrollToTop(); // window.scrollTo(0, 0)
watch(
    () => route.query,
    scrollToTop,
);

Though maybe either set up your own scrollBehavior or create a PR + unit-test

You can also provide your own within the page in question:
definePageMeta({
  scrollToTop(to, from) {
  }
})

Or create your own scrollBehavior: https://nuxt.com/docs/guide/going-further/custom-routing#using-approuteroptions.
Often query changes are used for things like filter selections and shouldn't result in a page scrolling to the top, so I wouldn't like to change the default behaviour on this one.


css for tabs section

css for Tabs section

designed for mobile first
flexboxes added
created 'tabs' class to overwrite button features from elsewhere on the homepage.
created 'selected' class to show which tab is selected.
design elements taken from design brief
swapped flex direction at large screen size
swapped tab position for larger s creen size, including border radius and border line as appropriate.

loooks amazing Jo!
amazing work!

Looks great, thanks for taking care of that. Only thing is that the buttons growing is causing the images to shift about. Do we need these ones to grow?

Hover states for Nico's tabs edited

Yep, looks good to me


help

i injected dll and its working
but when i enabled the aimbot its not working
can anyone tell me hoe to use them
i can open the menu but is there any settings we need to do

Increase FOV to something like 5 6 and smoothness to 1 or 2. Hop into AimBotz workshop map and check if working

Increase FOV to something like 5 6 and smoothness to 1 or 2. Hop into AimBotz workshop map and check if working

thanks alot


fix Pool.Put(nil)

Interfaces are compound types consisting of a runtime type and a value.
Only if both components are nil is the interface value itself nil. So as
soon as a concrete value is converted into an interface value that
interface value is != nil.
https://play.golang.org/p/UTcCNFawpm
    package main

    import (
            "fmt"
            "net/url"
    )

    func main() {
            var c *url.URL         // c is a concrete value
            var i fmt.Stringer = c // i is an interface value

            fmt.Println(c, c == nil)
            fmt.Println(i, i == nil)
    }

    # Output:
    # <nil> true
    # <nil> false

This happened in Pool.Put, where a *Disque was converted into a
"github.com/youtube/vitess/go/pools".Resource. Vitesses ResourcePool
then did not recognize this as a nil value and would eventually return
it from a Get call. Pool.Get converts the nil back into a
value of type *Disque just waiting to produce a nil pointer panic.

Great find, thank you once again for the thoughtful contribution!


Can't Stay Logged In

I'm having an issue with a user staying logged in. For example, after they get the join leage invite URL, they create an account and login. After login session data doesn't seem to persist.
Any tips or suggestions greatly appreciated!

I moved to Ion Auth in the development branch, expect these changes to make their way to the master branch before the 2018 season starts. I can't say for sure that it will resolve your issues, you can create a new issue if it's still not fixed.


try djv as an alternative to ajv

maintained alternative to ajv:
https://github.com/korzio/djv

Have you also considered Zod? It is definitely one of the most popular schema validation libraries right now!

It’s cool, but AFAIK it doesn’t use JSON Schema as an input. 🤔 I wonder if I should ditch the JSON Schema and go all-in on Zod, though.


Parameters for calling Data Classes

We need to consider adding more parameters for calling a data class.
I was going to say data type, but those already have separate methods to call
Example: TDData.get_historic_stock_data
For the historical data:

Output: output stream, csv, excel, others?? (default: output stream)

I see the API for TDA also has a start and end parameter, so we should consider that as then it will align with the YFData

I have changed the output of YFData to json, so we can keep that for consistency between platforms and then the calling program can change to dataframe, csv, excel or whatever.


issue-62 Fixes to columns and info-card styling for admin-portal page

Fixed styling for columns found on features/admin-portal page, and for the "info-card" cards found on that page and the main unified-communications page.
Fix #62
Test URLs:

Before: https://main--vonage--hlxsites.hlx.page/unified-communications/
Before: https://main--vonage--hlxsites.hlx.page/unified-communications/features/admin-portal
After: https://issue-62-admin-portal--vonage--hlxsites.hlx.page/unified-communications/
After: https://issue-62-admin-portal--vonage--hlxsites.hlx.page/unified-communications/features/admin-portal

@dkuntze, I noticed the misalignment of the info card. This wasn't one of the components that I was fixing with this PR. I created https://github.com/hlxsites/Vonage/issues/64 last week to track that and can work on it next, but that would be a different PR.


fix hcledit brew install command

Put an x into the box if that apply:

[ ] This PR introduces breaking change.
[x] This PR fixes a bug.
[ ] This PR adds new functionality.
[ ] This PR enhances existing functionality.

Description of your changes
It seems the brew install instructions for mac are out of date when it comes to hcledit. This fixes it.
How can we test changes
See: https://github.com/minamijoyo/hcledit/blob/master/README.md#homebrew

Ops. A bit too quick (wrong pr title).

This PR is included in version 1.72.0 :tada:


Roll Engine from d3427ddb8546 to 4ce831e469de (6 revisions)

https://github.com/flutter/engine/compare/d3427ddb8546...4ce831e469de
2020-06-04<EMAIL_ADDRESS>null-annotate semantics.dart (flutter/engine#18791)
2020-06-04<EMAIL_ADDRESS>Roll Fuchsia Linux SDK from VXyRo... to 9-PNW... (flutter/engine#18796)
2020-06-04<EMAIL_ADDRESS>Minimize child DOM node moves in many-to-many update (flutter/engine#18648)
2020-06-04<EMAIL_ADDRESS>Roll Dart SDK from ac45f23134f2 to f92a7d2669b1 (4 revisions) (flutter/engine#18824)
2020-06-04<EMAIL_ADDRESS>Revert "onDisplayPlatformView JNI (#18786)" (flutter/engine#18826)
2020-06-04<EMAIL_ADDRESS>onDisplayPlatformView JNI (flutter/engine#18786)
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from VXyRoGOoKGdn to 9-PNWG9xulId
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/master/autoroll/README.md

Commit queue failed; closing this roll.


Support remote adapter failures in AdapterFailure

Depending on failure case, enrich emits either AdapterFailure.InputData or AdapterFailure.NotJson bad row when there is a failure of remote adapters.
It'd be nice to be able to distinguish these failures as a subtype of AdapterFailure at type level. e.g. Bad Row Aggregator can't understand if a bad row of AdapterFailure type was created due to a remote adapter failure or not.

Similar to remote adapter, we have around 20 other adapters as well


Trying to spawn remoteDefenders with body of 0 when no defender is needed.

All rooms besides the keeper in this are my remotes or communes except the keeper (obviously), and the room directly below it. Yet I see this in the console while there are no enemies in any of my rooms. This was after a breaking upgrade, is the code possibly seeing there should be active remoteHarvesters and they haven't been spawned yet?

I can't seem to reproduce this :/

This seems to have been fixed


Data type in c

Description 📜

Domain of Contribution 📊

[ ] Backend Dev (Java, .NET, Python)
[ ] Android Dev (Flutter, Java, Kotlin)
[ ] C/CPP
[ ] Competitive Programming
[ ] Cyber Security
[ ] DSA
[ ] Database
[ ] Datascience with Python
[ ] Datascience with R
[ ] Frontend Dev (HTML, CSS, JS)
[ ] Frontend Dev (React, Angular, Vue)
[ ] Golang
[ ] Interview Prep
[ ] Java
[ ] JavaScript
[ ] MERN
[ ] Machine Learning
[ ] Open Source
[ ] Python
[ ] Rust
[ ] Statistics
[ ] UI/UX

Hello! Please tell me how to contribute this?

/assign

/assign

/assign

/assign

Please open issues properly.


Fix disable and deprecate reasons

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you written new tests for your changes? Here's an example.

[ ] Have you successfully run brew tests with your changes locally?

Follow up to #8512
This PR does several things:

Fixes an issue where brew style would interpret because: as date:
Extends date checking to disable! in addition to deprecate
Check the because: string to make sure that:

The string does not start with it
The string does not end in ., ! or ?

Changes the message when installing a deprecated or disabled formula to add it before the reason
Allows the use of symbols for common reasons in disable! and deprecate!

Now, both of the following are supported:
disable! because: :no_license

disable! because: "has been replaced by foo"

Here is the list of symbols and their corresponding strings that I added in this PR (of course, these can be changed as needed):

:does_not_build: does not build
:no_license: has no license
:repo_archived: has an archived upstream repository
:repo_removed: has a removed upstream repository
:unmaintained: is not maintained upstream
:unsupported: is not supported upstream
:deprecated_upstream: is deprecated upstream
:versioned_formula: is a versioned formula

This PR is blocked by #8533. Once #8533 has been merged, this can be rebased on to master (and will need to drop f2b02487dc705762899468700094e4a276b23015).
This will still need to wait on https://github.com/Homebrew/homebrew-core/pull/60321 and https://github.com/Homebrew/homebrew-core/pull/60336 to be merged into homebrew-core and linuxbrew-core before this will be good to go, though.

Thanks again @Rylan12!

Oops, you're right, @SeekingMeaning. Good catch! (could have sworn I tested it...). I'll get a fix up soon


Add multiple RM controllers feasibility

Is it possible to add multiple RM products in config.json? such as:
{
"bridge": {
"name": "Homebridge",
"username": "CD:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-156"
},
"description": "Homebridge",

"platforms": [],

"accessories": [{
	"accessory": "Broadlink RM Learner",
		"name": "Learn IR",
		"host": "<IP_ADDRESS>"
	},
	{
		"accessory": "Broadlink RM",
		"name": "Broadlink RM Pro 3",
		"host": "<IP_ADDRESS>",
		"data": [
			{
			  "name": "TV",
			  "type": "on",
				"on": "260054005211291217XXXX",
				"off": "260054005211291216XXX"
			},
                            ]
              },
              {
		"accessory": "Broadlink RM",
		"name": "Broadlink RM Pro 3",
		"host": "<IP_ADDRESS>",
		"data": [
			{
			  "name": "TV",
			  "type": "on",
				"on": "260054005211291217XXXX",
				"off": "260054005211291216XXX"
			},
                             ]
              }
             ]

}

There's nothing that I can think of that would stop that from working - have you tried already?
If you're thinking about buying a second one then I'm happy to work with you to fix any issues around using two.
Thanks
Luke
On 20 Mar 2017, 1:31 PM +1100, leonardolau<EMAIL_ADDRESS>wrote:

Is it possible to add multiple RM products in config.json? such as:
{
"bridge": {
"name": "Homebridge",
"username": "CD:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-156 (tel:031-45-156)"
},
"description": "Homebridge", "platforms": [], "accessories": [{ "accessory": "Broadlink RM Learner", "name": "Learn IR", "host": "<IP_ADDRESS>" }, { "accessory": "Broadlink RM", "name": "Broadlink RM Pro 3", "host": "<IP_ADDRESS>", "data": [ { "name": "TV", "type": "on", "on": "260054005211291217XXXX", "off": "260054005211291216XXX" }, ] }, { "accessory": "Broadlink RM", "name": "Broadlink RM Pro 3", "host": "<IP_ADDRESS>", "data": [ { "name": "TV", "type": "on", "on": "260054005211291217XXXX", "off": "260054005211291216XXX" }, ] } ]
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub (https://github.com/lprhodes/homebridge-broadlink-rm/issues/7), or mute the thread (https://github.com/notifications/unsubscribe-auth/AAJ8recgpytFUAA_8xIUBPZIHQUFzhBrks5rneT-gaJpZM4Mh-e1).

I just think about it on my way to work. I have 2 RM pro and a mini 3, wanna control them by one config. Let me try it tonight.

It works with 3 devices without issue. thanks.


File data.yml not updating

i noticed that we have this file
https://github.com/processing/p5.js-website/blob/main/src/data/data.yml
which hasn't been updated in 7 months,
and i don't know if we still need it, or if it could be linked to
the new feature introduced by
https://github.com/processing/p5.js/pull/5107
or if we should get rid of it?
so many questions :)

The file is used in template renderings to set the p5.js version used for embeded code, for example here. It should be updated when the site builds here, though I'm not sure it's working properly.
The version key doesn't need to be included in the file but title still needs to. Some improvements will probably be needed here, maybe along the lines of just extracting the version number from data.json and remove the update-version step.


How can I process a WAV file instead of a stream?

Thank you for the great library.
I want to create a WebM file by combining a non-streaming WAV file with consecutive frames from a canvas.
I suspect that I should use addAudioChunkRaw, but how should I determine the chunk size and timestamp to pass to it? I think these might be related to the WAV file's header, but is there a general example?
If you know, I would appreciate it if you could share it.
Here is an image of the code I have in mind:
fetch("./output.wav").then(async (res) => {
  const buffer = await res.arrayBuffer();
  const data = new Uint8Array(buffer, 44, buffer.byteLength - 44);
  const chunkSize = "?";
  for (let i = 0; i < data.length; i += chunkSize) {
    const block = data.slice(i, i + chunkSize);
    const timestamp = "?";
    muxer.addAudioChunkRaw(block, "key", timestamp);
  }
});

The audio chunks added to the muxer are expected to be short (something like 1024 samples per chunk) and frequent - this makes it easy for players to perform random access. So, if you wanted to add the WAV file directly, you'd pick some chunk size yourself (like 1024), then chunk the audio file and then add each chunk to the muxer. Additionally, you'll need to parse certain metadata like bit depth, channel count and sample rate from the WAV header. You can look into the makeup of the WAV header here: https://docs.fileformat.com/audio/wav/
All of this assumes your intention is to add the WAV data directly to the muxer. This would imply that you use the appropriate codec string as well, such as A_PCM/INT/LIT. If you are fine with lossless audio instead, you can pipe the wave file through an AudioEncoder which gives you the chunks directly. For this, you'd load the WAV file using an AudioContext into an AudioBuffer, then construct an AudioData from that buffer, and then pipe that AudioData into the encoder. The encoder could use any supported codec, such as Opus. AudioDecoder also supports raw codecs such as pcm-s16 by the spec, but they aren't actually supported in any browser right now (but will be soon).

Thank you for your response. I tried using AudioContext and AudioEncoder, and it worked to some extent. However, the output audio data seems to have some noise, resulting in lower quality.
Here is the repository and source code where I conducted the tests.
https://github.com/toshusai/webm-muxer-test/blob/main/src/main.ts#L112
I apologize for not being very familiar with the internal workings of media files, but if there's anything I did wrong, I would appreciate it if you could let me know.

The section where you create the AudioData is incorrect. The format used by AudioBuffers is f32, so you'll need to use that instead of s16. Additionally, you're only using the data from one channel even though your audio might have multiple channels. There are two ways to pack multiple channels into one array buffer: interleaved or planar. Interleaved is the default, where it's a sample from channel 1, then from channel 2, then from channel 1 again and so on. The simpler option is planar (f32-planar is the format), where it's all data from channel 1 followed by all data from channel 2. So you'll wanna create a Float32Array of length sampleCount*numOfChannels, and then copy all channel data into there in a planar fashion. Can you try that out?
Something like this:
fetch("./output.wav").then(async (res) => {
    const audioEncoder = new AudioEncoder({
        output: (chunk, meta) => {
            muxer.addAudioChunk(chunk, meta);
        },
        error: console.error,
    });

    const buffer = await res.arrayBuffer();
    const audioContext = new AudioContext();
    const audioBuffer = await audioContext.decodeAudioData(buffer);

    const numberOfChannels = audioBuffer.numberOfChannels;
    const length = audioBuffer.length;
    const sampleRate = audioBuffer.sampleRate;

    audioEncoder.configure({
        codec: "opus",
        sampleRate: sampleRate,
        numberOfChannels: numberOfChannels,
        bitrate: sampleRate * numberOfChannels * 16,
    });

    // Create a Float32Array to hold the planar data
    const planarData = new Float32Array(length * numberOfChannels);

    // Copy channel data into planarData in a planar fashion
    for (let channel = 0; channel < numberOfChannels; channel++) {
        const channelData = audioBuffer.getChannelData(channel);
        planarData.set(channelData, channel * length);
    }

    const audioData = new AudioData({
        format: "f32-planar",
        sampleRate: sampleRate,
        numberOfFrames: length,
        numberOfChannels: numberOfChannels,
        timestamp: 0,
        data: planarData,
    });

    audioEncoder.encode(audioData);
});

Thank you for your confirmation. It seems to have worked well after making the corrections as you pointed out! I sincerely appreciate your response to my question and the detailed code examples.


Add "Set URL query and hash" page

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

@timqian Thanks! Updated.

let's get this merged? cc @jbilcke-hf too

@whitphx is this PR still in process?


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-main" workflow

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: e3a113ceb7e0071610e310d398a7f208a9b2e9f2
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: e14a031b9557dc8afe01ee69417de2ed8994e1fa
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: a8b4d6daf97ca38f9af2940aa45f638f412fab91
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: abbce3324042639e063491d206120c02478c35b3
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: 73cbdfdec849a37aa8e64cee0b920085901e5c52
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: 62aaa119ab5522a6c83a2edc6d848f368fe63bdd
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: fae9905f8b63607ec85eeaa866632ebed620c759
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: fbea5afcb78085e10fdac46b22739237dad3c136
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: 8ef6c38f3899f1d74ee83e3744c59b965ed235e2
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: 36a01fac0aeeb2762f6b762d218b9d18ac3fdad7
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: 366819192fcd6834a8178db679830650fe450b35
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Kasa KD110 unexpected EOF, exec: exit status 1 using kasa: protocol

I'm trying to get a KD110 doorbell camera stream working but after some troubleshooting this is as far as I've managed to get
The go2rtc logs in Frigate are showing
Using the kasa protocol
go2rtc:
  streams:
    doorcam:
      - "kasa://<IP_ADDRESS>:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd#header=Authorization: Basic ***[Base 64 encoded password the rebase64 encoded email]***"
      - "ffmpeg:doorcam#video=h264#audio=opus"

Logs from Frigate go2rtc panel
2023-10-03 07:27:04.704917922  [INFO] Preparing go2rtc config...
2023-10-03 07:27:04.862217433  [WARN] Using go2rtc binary from '/config/go2rtc' instead of the embedded one
2023-10-03 07:27:04.862221591  [INFO] Starting go2rtc...
2023-10-03 07:27:04.920456907  07:27:04.920 INF go2rtc version 1.7.1 linux/amd64
2023-10-03 07:27:04.920614674  07:27:04.920 INF [api] listen addr=<IP_ADDRESS>:1984
2023-10-03 07:27:04.920803279  07:27:04.920 INF [rtsp] listen addr=<IP_ADDRESS>:8554
2023-10-03 07:27:04.920898017  07:27:04.920 INF [webrtc] listen addr=<IP_ADDRESS>:8555/tcp
2023-10-03 07:27:11.058046652  07:27:11.057 WRN [rtsp] error="streams: unexpected EOF, exec: exit status 1" stream=doorcam
2023-10-03 07:27:14.705443818  [INFO] Starting go2rtc healthcheck service...
2023-10-03 07:27:16.171171378  07:27:16.171 WRN [rtsp] error="streams: unexpected EOF, exec: exit status 1" stream=doorcam
2023-10-03 07:30:55.918648675  07:30:55.918 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp <IP_ADDRESS>:8554-><IP_ADDRESS>:55400: write: broken pipe"

Using httpx protocol
go2rtc:
  streams:
    doorcam:
      - "httpx://<IP_ADDRESS>:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd#header=Authorization: Basic ***[Base 64 encoded password the rebase64 encoded email]***"
      - "ffmpeg:doorcam#video=h264#audio=opus"

Logs from Frigate go2rtc panel
2023-10-03 11:01:00.637870061  [INFO] Preparing go2rtc config...
2023-10-03 11:01:00.787348335  [WARN] Using go2rtc binary from '/config/go2rtc' instead of the embedded one
2023-10-03 11:01:00.787352763  [INFO] Starting go2rtc...
2023-10-03 11:01:00.842915217  11:01:00.842 INF go2rtc version 1.7.1 linux/amd64
2023-10-03 11:01:00.843092070  11:01:00.843 INF [api] listen addr=<IP_ADDRESS>:1984
2023-10-03 11:01:00.843282649  11:01:00.843 INF [rtsp] listen addr=<IP_ADDRESS>:8554
2023-10-03 11:01:00.843390602  11:01:00.843 INF [webrtc] listen addr=<IP_ADDRESS>:8555/tcp
2023-10-03 11:01:10.637929906  [INFO] Starting go2rtc healthcheck service...
2023-10-03 11:01:17.207386753  11:01:17.207 WRN [rtsp] error="streams: 503 Service Unavailable, exec: exit status 1" stream=doorcam
2023-10-03 11:01:27.426669962  11:01:27.426 WRN [rtsp] error="streams: 503 Service Unavailable, exec: exit status 1" stream=doorcam
2023-10-03 11:01:47.869354151  11:01:47.869 WRN [rtsp] error="streams: 503 Service Unavailable, exec: exit status 1" stream=doorcam
2023-10-03 11:02:08.310245649  11:02:08.310 WRN [rtsp] error="streams: 503 Service Unavailable, exec: exit status 1" stream=doorcam
2023-10-03 11:02:18.529978830  11:02:18.529 WRN [rtsp] error="streams: 503 Service Unavailable, exec: exit status 1" stream=doorcam
2023-10-03 11:02:33.861532181  11:02:33.861 WRN [rtsp] error="streams: 503 Service Unavailable, exec: exit status 1" stream=doorcam
2023-10-03 11:02:33.861601962  11:02:33.861 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp <IP_ADDRESS>:8554-><IP_ADDRESS>:60722: write: broken pipe"
2023-10-03 11:02:54.311966193  11:02:54.311 WRN [rtsp] error="streams: 503 Service Unavailable, exec: exit status 1" stream=doorcam

I originally was trying to resolve this on the Frigate github with this issue https://github.com/blakeblackshear/frigate/issues/8020
theres more details there, the camera stream works correctly if I use scrypted in home assistant with ffmpeg camera plugin with this command
-headers "Authorization: Basic ***[Base 64 encoded password the rebase64 encoded email]***" -f h264 -i https://<IP_ADDRESS>:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd
I've tried to not use the audio config by removing it but that didn't help unfortunately

I need access to stream (19443 port)
https://github.com/AlexxIT/go2rtc/wiki/Tunnel-RTSP-camera-to-Intenet

Hi @AlexxIT I sent you a message on telegram so i could securely send you the link, not sure if its you yet as you didnt respond yet :)

Haven't seen any messages. Maybe you sent to someone else

Resolved by @AlexxIT looks like it was not happy with the authentication header and Alex was able to have it working correctly using username:base64encodedpassword in the url
Its now working in Frigate correctly, ty

@duindain So would this be the correct syntax for the Kasa doorbell? I have the Kasa KD110 and trying to get this thing to work with Frigate. Curious what your's ended up looking like in the end.
go2rtc:
  streams:
    doorbell:
      kasa: kasa://user:passwordbase64@xxx.xxx.xxx.xxx:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd

My current config for that camera is
go2rtc:
  streams:
    doorcam:
      - "kasa://user%40hotmail.com:base64encodedapppassword@<IP_ADDRESS>:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd"
      - "ffmpeg:doorcam#video=h264#audio=copy"

Camera config

cameras:
  doorcam:
    ffmpeg:
      inputs:
        - path: rtsp://<IP_ADDRESS>:8554/doorcam?video=copy&audio=copy
          roles:
            - detect
            - record
    detect:
      width: 1920
      height: 1080

Its working well for the stream, the audio doesn't work, I've tried a few combinations for that so far without luck
I also needed to add the override for updated go2rtc in my docker-compose.yml another volume

/home/user/Software/Scripts/docker/frigate/config/go2rtc:/config/go2rtc
And that file is the latest go2rtc which i can see in the logs in frigate and docker is being applied for the kasa protocol to work

You don't need video in second (ffmpeg) line

Yep
"ffmpeg:doorcam#audio=copy"
seems to not affect the stream

Not sure I am doing this correctly. Going off of @duindain 's example the error log is reporting an unsupported scheme. I have tried setting my email to use both<EMAIL_ADDRESS>and "user%40gmail.com" with the same results.
2023-10-14 06:38:06.182969452  [2023-10-14 06:38:06] frigate.app                    INFO    : Camera processor started for doorcam: 1216 2023-10-14 06:38:06.182972424  [2023-10-14 06:38:06] frigate.app                    INFO    : Capture process started for doorcam: 1218 2023-10-14 06:38:06.200064733  [2023-10-14 06:38:06] detector.coral                 INFO    : Starting detection process: 1213 2023-10-14 06:38:06.200276474  [2023-10-14 06:38:06] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as pci:0 2023-10-14 06:38:06.200367366  [2023-10-14 06:38:06] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found 2023-10-14 06:38:06.206809509  06:38:06.206 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="unsupported scheme: kasa://user%40gmail.com:base64password@<IP_ADDRESS>:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd" url=kasa://user%40gmail.com:base64password@<IP_ADDRESS>:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd 2023-10-14 06:38:06.211272346  06:38:06.211 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="unsupported scheme: kasa://user%40gmail.com:base64password@<IP_ADDRESS>:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd" url=kasa://user%40gmail.com:base64password@<IP_ADDRESS>:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd 2023-10-14 06:38:11.317079239  [2023-10-14 06:38:11] frigate.video                  ERROR   : doorcam: Unable to read frames from ffmpeg process. 2023-10-14 06:38:11.317088678  [2023-10-14 06:38:11] frigate.video                  ERROR   : doorcam: ffmpeg process is not running. exiting capture thread... 2023-10-14 06:38:11.320394019  06:38:11.320 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="exec: exit status 1" url=ffmpeg:doorcam#video=h264#audio=copy 2023-10-14 06:38:11.320535166  06:38:11.320 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="unsupported scheme: kasa://user%40gmail.com:base64password@<IP_ADDRESS>:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd" url=kasa://user%40gmail.com:base64password@<IP_ADDRESS>:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd 2023-10-14 06:38:11.325823765  06:38:11.325 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="unsupported scheme: kasa://user%40gmail.com:base64password@<IP_ADDRESS>:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd" url=kasa://user%40gmail.com:base64password@<IP_ADDRESS>:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd
Below is my config.yml
`mqtt:
enabled: False
timestamp_style:
format: "%Y/%m/%d %H:%M:%S"
detectors:
coral:
type: edgetpu
device: pci:0
objects:
track:
- person
record:
enabled: True
snapshots:
enabled: True
rtmp:
enabled: False
go2rtc:
streams:
doorcam:
- "kasa://user%40gmail.com:base64password@<IP_ADDRESS>:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd"
- "ffmpeg:doorcam#video=h264#audio=copy"
cameras:
doorcam:
ffmpeg:
inputs:
- path: rtsp://<IP_ADDRESS>:8554/doorcam?video=copy&audio=copy
roles:
- detect
- record
detect:
width: 1920
height: 1080`

I'll open up another issue as this seems like a different issue that then original.

Unsupported scheme is about old version go2rtc without this source support


lxd/storage/zfs: Fix snapshot restore on project

Closes #5773
Signed-off-by: Stéphane Graber<EMAIL_ADDRESS>

Hmm I am not a programmer, but if I read your changes, does restore still work for the default project?
Looks to me like now it needs a project. With zfs backend the default project isn't mentioned in its datasets.
Just to be sure... ;)

@idef1x yes, projectPrefix handles that, otherwise our code would be a nightmare if we had to special case default everywhere

Was just checking and would be your nightmare :P
Thanks again for fixing.


Allow SendToCosmos to use module accounts

An attempt at adding module accounts to SendToCosmos. Not sure what the best approach would be for handling bridging in the opposite direction back to Ethereum from a module account.

Codecov Report

Merging #369 (5296681) into main (9bf8d5d) will decrease coverage by 0.01%.
The diff coverage is 44.44%.

@@            Coverage Diff             @@
##             main     #369      +/-   ##
==========================================
- Coverage   30.79%   30.78%   -0.02%
==========================================
  Files          38       38
  Lines        5302     5318      +16
==========================================
+ Hits         1633     1637       +4
- Misses       3532     3544      +12
  Partials      137      137

Impacted Files
Coverage Δ

module/app/app.go
0.66% <0.00%> (-0.02%)
:arrow_down:

module/x/gravity/keeper/ethereum_event_handler.go
5.08% <0.00%> (-0.23%)
:arrow_down:

module/x/gravity/keeper/keeper.go
75.86% <100.00%> (+0.06%)
:arrow_up:

module/x/gravity/keeper/test_common.go
64.53% <100.00%> (+0.28%)
:arrow_up:

Seems like I upset the proto handling generating these new ones, will look into it.

Seems like the "Protobuf / breakage" test will always fail the way it is currently written and is only executing because of the updated protos in the PR. make proto-check-breaking fails on main with the same error.

A thought: since SenderModuleAccounts and ReceiverModuleAccounts affect whether transactions are processed or not, do they belong as params rather than being passed into the keeper/AppModule? Otherwise it seems like they'd usually only mutable during a breaking upgrade.

Do we have any client tooling to generate the community spend proposals?

Do we have any client tooling to generate the community spend proposals?

This is an excellent point, I will have to add this.


Filterbanks to classes

Which issue(s) are closed by this pull request?

Changes proposed in this pull request:

Fractional octave filter banks as class
Inherit from FilterFIR or FilterSOS
2 seperate classes for either energy or amplitude preservation
Docs and examples updated accordingly

Labels
enhancement:
documentation:
dsp:
filter:
Project
Do not assign your issue to a project. This is done automatically.

btw, flake8 and pytest failed for files which were not related to my enhancements and are of very low priority, e.g. an assertion fails for 1 == 0.99999999999 and flake8 complains about an unused variable. Let me know if i should add any infos.

Due to me syncing my fork after not contributing for about 3 months, there are now merge conflicts within test_filter.py. Should I resolve that? Let me know.


Clean up logic in socketRecvDataPrefix

In function
https://github.com/FreeRTOS/FreeRTOS-Cellular-Interface-Reference-Quectel-BG96/blob/c33a3628e015f88df24b21160ba9dbdabc781da1/source/cellular_bg96_api.c#L1690-L1694
Pointer to stack allocated buffer is reused to point to caller provided buffer

https://github.com/FreeRTOS/FreeRTOS-Cellular-Interface-Reference-Quectel-BG96/blob/c33a3628e015f88df24b21160ba9dbdabc781da1/source/cellular_bg96_api.c#L1702
https://github.com/FreeRTOS/FreeRTOS-Cellular-Interface-Reference-Quectel-BG96/blob/c33a3628e015f88df24b21160ba9dbdabc781da1/source/cellular_bg96_api.c#L1696
https://github.com/FreeRTOS/FreeRTOS-Cellular-Interface-Reference-Quectel-BG96/blob/c33a3628e015f88df24b21160ba9dbdabc781da1/source/cellular_bg96_api.c#L1718
https://github.com/FreeRTOS/FreeRTOS-Cellular-Interface-Reference-Quectel-BG96/blob/c33a3628e015f88df24b21160ba9dbdabc781da1/source/cellular_bg96_api.c#L1754-L1756
https://github.com/FreeRTOS/FreeRTOS-Cellular-Interface-Reference-Quectel-BG96/blob/c33a3628e015f88df24b21160ba9dbdabc781da1/source/cellular_bg96_api.c#L1770

While the logic covers all cases and thus manages to avoid passing the stack buffer back to caller, it's non-trivial and might be error prone, particularly if this port is used as a reference for other devices.

On a related note, in _Cellular_RecvFuncData callback, the dataLen is abused to refer to target buffer length (Cellular_SocketRecv()'s bufferLength), instead of the length of pData
https://github.com/FreeRTOS/FreeRTOS-Cellular-Interface-Reference-Quectel-BG96/blob/c33a3628e015f88df24b21160ba9dbdabc781da1/source/cellular_bg96_api.c#L1277-L1280
https://github.com/FreeRTOS/FreeRTOS-Cellular-Interface-Reference-Quectel-BG96/blob/c33a3628e015f88df24b21160ba9dbdabc781da1/source/cellular_bg96_api.c#L2526-L2534
Constructs like these make this particular implementation hard to understand.

This PR is addressed in #13 with more comments and clean up the logic in this function. Thank you for your feedback.


Dark Mode

Expected behavior
It would be very nice to have Dark Mode added to Kitematic.
Actual behavior
Information about the Issue
Steps to reproduce the behavior

...
...

i m working on it in my Fork. https://github.com/Trackhe/kitematic

there are at least two forks with dark mode added, that I found within 3 Minutes, why isn't this added to the main application, has someone made a PR for this?

Unfortunately, not. and they don't seem to add any new features either. my version is just a quick fix. not a perfect solution. but it works.


Feature/new-custom-model

A new class between BaseModel and WrapperModel:

BaseModel don't have model as attribute.
WrapperModel have model, data_preprocessing_function and model_postprocessing_function.

We need a new class that:

takes only model as attribute in additional to all attributes of BaseModel.
detects model library and uses the correct serialization methods

This new class will be used by the user similar to CustomModel but with an automatic inference on the method of serialisation.

todo:

[ ] Refactor: model_predict -> predict_proba
[ ] Find better naming for AutoSerializableModel and change the abstract models name if necessary:

BaseModel
WrapperModel
MLFlowBasedModel
CustomModel

[ ] Create a unit-test based on this notebook: https://colab.research.google.com/drive/1rAwTUqCrgaKrw9FblCr5KViI8mYv9rOq?usp=sharing
[ ] Add it to the documentation.

@andreybavt, I know have only one global class called Model which automatically infer the model library and uses:

the correct save_model and load_model (which, most importantly, can be overriden).
the correct model_predict (which, most importantly, can be overriden).

I've put should_save_model_class=True by default, so we don't need to have another class called CustomModel.
Since no need for wrap_X, I also refactored the Dataset class to the way we had it, making symmetrical to Model.

@andreybavt I just realised that in order for the default model_predict to work:
    def model_predict(self, df: pd.DataFrame):
        giskard_class = getattr(importlib.import_module(self.meta.loader_module), self.meta.loader_class)
        return giskard_class.model_predict(df)

I need to pass additional meta information as attributes:

when it's pytorch

            torch_dtype: TorchDType = "float32",
            device="cpu",

when it's huggingface:

huggingface_module
pipeline_task


Pack registration does not fetch local changes of a pack that has a repository (with .git folder inside)

SUMMARY
When you try to remove and install a pack from a local copy of a git repository st2 will fetch the remote version of the copy and not the local version. I have also tried to edit the version number from local copy in 'pack.yaml',  but nothing has changed. It seems that everytime that i need to reload a pack I have to make a forced commit.
STACKSTORM VERSION
docker version with python3 added:
st2 3.1.0, on Python 2.7.6
OS, environment, install method
git clone of st2-docker on Ubuntu + installation of python 3 by using this script:
if [ ! -f /usr/bin/python3.6 ]; then

    # Install PPA repo and python3.6
    apt-get update && apt-get install -y software-properties-common
    add-apt-repository -y ppa:jonathonf/python-3.6
    apt-get update && apt-get install -y python3.6 nano # comment this in production

    # Update bindings for python3
    update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.4 1
    update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2

fi

Steps to reproduce the problem

Take a pack with .git folder inside
Run st2 pack remove <name of pack > && st2 pack install file:///<path of local copy> --python3

Expected Results
I expect that changes will be installed on the pack and I expect that st2 will fetch them from the local copy of repository.
Actual Results
Apparently it seems that st2 takes the remote copy everytime. It may be usefull to know that i was working not in master branch on my repository when i encountered this bug.
I order to fix that behaviour for myself I had to make a commit everytime i make changes in repository.

Are you trying to install from the local copy in /opt/stackstorm/packs?
st2 pack install file:///opt/stackstorm/packs/...
If so, don't. Leave everything in /opt/stackstorm/packs/ alone, that should all be managed only by StackStorm itself.
ST2 copies local packs into /opt/stackstorm/packs as part of the installation process. So if you need to keep a pack on the ST2 filesystem, you'll need to keep it outside of /opt/stackstorm/packs, but still accessible to the stanley user.
Finally, regarding being forced to make a git commit, please see the warning in this section of our pack documentation. That same section also has information for how to install a pack from a specific version, branch, tag, or commit.

st2 will fetch the remote version of the copy and not the local version

In your case, from where st2 tried to fetch content of the pack? git remote?

Are you trying to install from the local copy in /opt/stackstorm/packs?

No, I am trying to install from an external volume linked inside docker which is located in the / folder of the container.
To be more clear this is the situation inside the docker container
.
├── bin
├── boot
├── dev
├── dumb-init
├── etc
├── home
├── install.sh
├── lib
├── lib64
├── media
├── mnt
├── pack_updated  # this has a git folder inside
├── opt
├── proc
├── root
├── run
├── sbin
├── srv
├── st2-docker
├── st2-manifest.txt
├── sys
├── tmp
├── usr
└── var

What i am doing is st2 pack install file:///pack_updated

In your case, from where st2 tried to fetch content of the pack? git remote?
Apparently it has taken the latest commit  of the remote copy of the repository from a private gitlab server of the organization.

Thanks for the report.
Definitely sounds like a bug as it shouldn't be fetching remote one, but getting latest commits from the local file:///. This indeed could be improved.
And as @blag noted, st2 pack under the hood heavily relies on pack to be a git repo with committed changes.

Are there any remotes configured in the installed pack? I suspect that there's a private gitlab server as a remote.
$ cd /opt/stackstorm/packs/pack_updated
$ git remote -v

If there are, that might be confusing things. Can you remove (or simply comment out) any remotes from that config file and try st2 pack install again?

Are there any remotes configured in the installed pack? I suspect that there's a private gitlab server as a remote.

Result of the commands:
root@9bcdde787221:/opt/stackstorm/packs/pack_updated# git remote -v
origin	file:///<path of local copy>  (fetch)
origin	file:///<path of local copy>  (push)

I think that this is the expected output, but by inspecting /opt/stackstorm/packs/pack_updated/.git/config I found something strange:
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        url = file:///<path of local copy>
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "juniper"]
        remote = origin
        merge = refs/heads/juniper

I am working on juniper branch but it seems that until the changes are not committed st2 will not fetch them. This is an odd behaviour because it forces me to commit everytime I need to make changes to the code and in this way I simply lose the comfort of working in local.

Can you remove (or simply comment out) any remotes from that config file and try st2 pack install again?

I never touched a git config file before, can you show me how i have to comment the file please? Is the same of git commit messages (#) ?

I just reproduced the issue.
To answer the question from @blag
Removing / commenting out the remote does not help to fix the issue.