Build failed in android

Specify the sample to which the issue belongs (use [x]):
[] Chat sample
[x] P2P Call sample
[] Conference Call sample
Platform (use [x])
[x] Android
[] iOS
[] macOS
[] Windows
[] Web
Device info
Manufacturer: Google
Model: Pixel 4
OS version: Android 12
Describe the bug:
The build bailed when running the app in the emulator. My flutter version is 2.10.5.

Steps to Reproduce:

Clone the repo
cd P2P Call sample
flutter run

Logs:
[+3798 ms] FAILURE: Build failed with an exception.
[   +1 ms] * What went wrong:
[        ] A problem occurred configuring root project 'android'.
[        ] > Could not resolve all artifacts for configuration ':classpath'.
[        ]    > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10.
[        ]      Required by:
[        ]          project :
[        ]       > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.6.10/kotlin-gradle-plugin-1.6.10.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.6.10/kotlin-gradle-plugin-1.6.10.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:aaptcompiler:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.lint:lint-gradle-api:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:gradle-api:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > androidx.databinding:databinding-compiler-common:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdk-common:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:common:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools.build:manifest-merger:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 >
com.android.tools.analytics-library:tracker:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdklib:27.0.1 >
com.android.tools:repository:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdk-common:27.0.1 >
com.android.tools.analytics-library:shared:27.0.1
[        ]       > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.72/kotlin-stdlib-jdk8-1.3.72.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.72/kotlin-stdlib-jdk8-1.3.72.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.ow2.asm:asm:7.0.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
[        ]       > Could not resolve org.ow2.asm:asm:7.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm/7.0/asm-7.0.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm/7.0/asm-7.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[   +1 ms]    > Could not resolve org.ow2.asm:asm-analysis:7.0.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1
[        ]       > Could not resolve org.ow2.asm:asm-analysis:7.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-analysis/7.0/asm-analysis-7.0.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm-analysis/7.0/asm-analysis-7.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.ow2.asm:asm-commons:7.0.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
[        ]       > Could not resolve org.ow2.asm:asm-commons:7.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-commons/7.0/asm-commons-7.0.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm-commons/7.0/asm-commons-7.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.ow2.asm:asm-util:7.0.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
[        ]       > Could not resolve org.ow2.asm:asm-util:7.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-util/7.0/asm-util-7.0.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm-util/7.0/asm-util-7.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve net.sf.jopt-simple:jopt-simple:4.9.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
[        ]       > Could not resolve net.sf.jopt-simple:jopt-simple:4.9.
[        ]          > Could not get resource 'https://jcenter.bintray.com/net/sf/jopt-simple/jopt-simple/4.9/jopt-simple-4.9.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/net/sf/jopt-simple/jopt-simple/4.9/jopt-simple-4.9.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve net.sf.proguard:proguard-gradle:6.0.3.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1
[        ]       > Could not resolve net.sf.proguard:proguard-gradle:6.0.3.
[        ]          > Could not get resource 'https://jcenter.bintray.com/net/sf/proguard/proguard-gradle/6.0.3/proguard-gradle-6.0.3.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/net/sf/proguard/proguard-gradle/6.0.3/proguard-gradle-6.0.3.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.google.protobuf:protobuf-java:3.10.0.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdk-common:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 >
com.android.tools.analytics-library:protos:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 >
com.android.tools.analytics-library:tracker:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:aaptcompiler:4.0.1 >
com.android.tools.build:aapt2-proto:4.0.1-6197926
[        ]       > Could not resolve com.google.protobuf:protobuf-java:3.10.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.10.0/protobuf-java-3.10.0.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.10.0/protobuf-java-3.10.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.google.protobuf:protobuf-java-util:3.10.0.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1
[        ]       > Could not resolve com.google.protobuf:protobuf-java-util:3.10.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/com/google/protobuf/protobuf-java-util/3.10.0/protobuf-java-util-3.10.0.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/google/protobuf/protobuf-java-util/3.10.0/protobuf-java-util-3.10.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.google.crypto.tink:tink:1.3.0-rc2.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1
[        ]       > Could not resolve com.google.crypto.tink:tink:1.3.0-rc2.
[        ]          > Could not get resource 'https://jcenter.bintray.com/com/google/crypto/tink/tink/1.3.0-rc2/tink-1.3.0-rc2.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/google/crypto/tink/tink/1.3.0-rc2/tink-1.3.0-rc2.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.google.code.gson:gson:2.8.5.
[        ]      Required by:
[        ]          project : > com.google.gms:google-services:4.3.3
[        ]          project : > com.android.tools.build:gradle:4.0.1 > androidx.databinding:databinding-compiler-common:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdklib:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools.build:manifest-merger:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdk-common:27.0.1 >
com.android.tools.analytics-library:shared:27.0.1
[        ]       > Could not resolve com.google.code.gson:gson:2.8.5.
[        ]          > Could not get resource 'https://jcenter.bintray.com/com/google/code/gson/gson/2.8.5/gson-2.8.5.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/google/code/gson/gson/2.8.5/gson-2.8.5.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.google.guava:guava:28.1-jre.
[        ]      Required by:
[   +2 ms]          project : > com.google.gms:google-services:4.3.3
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:bundletool:0.13.2
[        ]          project : > com.google.gms:google-services:4.3.3 > com.google.android.gms:strict-version-matcher-plugin:1.2.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android:zipflinger:4.0.1
[        ]       > Could not resolve com.google.guava:guava:28.1-jre.
[        ]          > Could not get resource 'https://jcenter.bintray.com/com/google/guava/guava/28.1-jre/guava-28.1-jre.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/google/guava/guava/28.1-jre/guava-28.1-jre.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.squareup:javawriter:2.5.0.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
[        ]       > Could not resolve com.squareup:javawriter:2.5.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/com/squareup/javawriter/2.5.0/javawriter-2.5.0.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/squareup/javawriter/2.5.0/javawriter-2.5.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.bouncycastle:bcpkix-jdk15on:1.56.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdk-common:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools.build:apkzlib:4.0.1
[        ]       > Could not resolve org.bouncycastle:bcpkix-jdk15on:1.56.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1.56.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1.56.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.bouncycastle:bcprov-jdk15on:1.56.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdk-common:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools.build:apkzlib:4.0.1
[        ]       > Could not resolve org.bouncycastle:bcprov-jdk15on:1.56.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.pom'.
[   +2 ms]             > Could not GET 'https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.ow2.asm:asm-tree:7.0.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
[        ]       > Could not resolve org.ow2.asm:asm-tree:7.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-tree/7.0/asm-tree-7.0.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm-tree/7.0/asm-tree-7.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve javax.inject:javax.inject:1.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdk-common:27.0.1
[        ]       > Could not resolve javax.inject:javax.inject:1.
[        ]          > Could not get resource 'https://jcenter.bintray.com/javax/inject/javax.inject/1/javax.inject-1.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/javax/inject/javax.inject/1/javax.inject-1.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve it.unimi.dsi:fastutil:7.2.0.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
[        ]       > Could not resolve it.unimi.dsi:fastutil:7.2.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.googlecode.json-simple:json-simple:1.1.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
[        ]       > Could not resolve com.googlecode.json-simple:json-simple:1.1.
[        ]          > Could not get resource 'https://jcenter.bintray.com/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.google.guava:guava:28.1-jre.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:aaptcompiler:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.analytics-library:crash:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.lint:lint-gradle-api:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:gradle-api:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > androidx.databinding:databinding-compiler-common:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:common:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 >
com.android.tools.analytics-library:tracker:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdk-common:27.0.1 >
com.android.tools.analytics-library:shared:27.0.1
[        ]       > Could not resolve com.google.guava:guava:28.1-jre.
[        ]          > Could not get resource 'https://jcenter.bintray.com/com/google/guava/guava/28.1-jre/guava-28.1-jre.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/google/guava/guava/28.1-jre/guava-28.1-jre.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.apache.httpcomponents:httpmime:4.5.6.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.analytics-library:crash:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdklib:27.0.1
[        ]       > Could not resolve org.apache.httpcomponents:httpmime:4.5.6.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.5.6/httpmime-4.5.6.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.5.6/httpmime-4.5.6.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.apache.httpcomponents:httpcore:4.4.10.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.analytics-library:crash:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdklib:27.0.1
[        ]       > Could not resolve org.apache.httpcomponents:httpcore:4.4.10.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.4.10/httpcore-4.4.10.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.4.10/httpcore-4.4.10.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.apache.httpcomponents:httpclient:4.5.6.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.analytics-library:crash:27.0.1
[        ]       > Could not resolve org.apache.httpcomponents:httpclient:4.5.6.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.5.6/httpclient-4.5.6.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.5.6/httpclient-4.5.6.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.3.72.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.lint:lint-gradle-api:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdk-common:27.0.1
[        ]       > Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.3.72.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.3.72/kotlin-reflect-1.3.72.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.3.72/kotlin-reflect-1.3.72.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.antlr:antlr4:4.5.3.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > androidx.databinding:databinding-compiler-common:4.0.1
[        ]       > Could not resolve org.antlr:antlr4:4.5.3.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/antlr/antlr4/4.5.3/antlr4-4.5.3.pom'.
[   +1 ms]             > Could not GET 'https://jcenter.bintray.com/org/antlr/antlr4/4.5.3/antlr4-4.5.3.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve commons-io:commons-io:2.4.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > androidx.databinding:databinding-compiler-common:4.0.1
[        ]       > Could not resolve commons-io:commons-io:2.4.
[        ]          > Could not get resource 'https://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.googlecode.juniversalchardet:juniversalchardet:1.0.3.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > androidx.databinding:databinding-compiler-common:4.0.1
[   +2 ms]       > Could not resolve com.googlecode.juniversalchardet:juniversalchardet:1.0.3.
[        ]          > Could not get resource
'https://jcenter.bintray.com/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.squareup:javapoet:1.10.0.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > androidx.databinding:databinding-compiler-common:4.0.1
[        ]       > Could not resolve com.squareup:javapoet:1.10.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/com/squareup/javapoet/1.10.0/javapoet-1.10.0.pom'.
[   +1 ms]             > Could not GET 'https://jcenter.bintray.com/com/squareup/javapoet/1.10.0/javapoet-1.10.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.glassfish.jaxb:jaxb-runtime:2.3.1.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > androidx.databinding:databinding-compiler-common:4.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdklib:27.0.1 >
com.android.tools:repository:27.0.1
[        ]       > Could not resolve org.glassfish.jaxb:jaxb-runtime:2.3.1.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/glassfish/jaxb/jaxb-runtime/2.3.1/jaxb-runtime-2.3.1.pom'.
[   +1 ms]             > Could not GET 'https://jcenter.bintray.com/org/glassfish/jaxb/jaxb-runtime/2.3.1/jaxb-runtime-2.3.1.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.google.auto.value:auto-value-annotations:1.6.2.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:bundletool:0.13.2
[        ]       > Could not resolve com.google.auto.value:auto-value-annotations:1.6.2.
[        ]          > Could not get resource
'https://jcenter.bintray.com/com/google/auto/value/auto-value-annotations/1.6.2/auto-value-annotations-1.6.2.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/google/auto/value/auto-value-annotations/1.6.2/auto-value-annotations-1.6.2.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.google.errorprone:error_prone_annotations:2.3.1.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:bundletool:0.13.2
[        ]       > Could not resolve com.google.errorprone:error_prone_annotations:2.3.1.
[        ]          > Could not get resource
'https://jcenter.bintray.com/com/google/errorprone/error_prone_annotations/2.3.1/error_prone_annotations-2.3.1.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/google/errorprone/error_prone_annotations/2.3.1/error_prone_annotations-2.3.1.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.google.protobuf:protobuf-java:3.10.0.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:bundletool:0.13.2
[        ]       > Could not resolve com.google.protobuf:protobuf-java:3.10.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.10.0/protobuf-java-3.10.0.pom'.
[   +1 ms]             > Could not GET 'https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.10.0/protobuf-java-3.10.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.google.protobuf:protobuf-java-util:3.10.0.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:bundletool:0.13.2
[        ]       > Could not resolve com.google.protobuf:protobuf-java-util:3.10.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/com/google/protobuf/protobuf-java-util/3.10.0/protobuf-java-util-3.10.0.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/google/protobuf/protobuf-java-util/3.10.0/protobuf-java-util-3.10.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.google.code.gson:gson:2.8.5.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build.jetifier:jetifier-core:1.0.0-beta09
[        ]       > Could not resolve com.google.code.gson:gson:2.8.5.
[        ]          > Could not get resource 'https://jcenter.bintray.com/com/google/code/gson/gson/2.8.5/gson-2.8.5.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/google/code/gson/gson/2.8.5/gson-2.8.5.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.jetbrains.kotlin:kotlin-stdlib:1.3.60.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build.jetifier:jetifier-core:1.0.0-beta09
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09
[        ]       > Could not resolve org.jetbrains.kotlin:kotlin-stdlib:1.3.60.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.3.60/kotlin-stdlib-1.3.60.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.3.60/kotlin-stdlib-1.3.60.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.ow2.asm:asm:7.0.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09
[        ]       > Could not resolve org.ow2.asm:asm:7.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm/7.0/asm-7.0.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm/7.0/asm-7.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.ow2.asm:asm-util:7.0.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09
[        ]       > Could not resolve org.ow2.asm:asm-util:7.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-util/7.0/asm-util-7.0.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm-util/7.0/asm-util-7.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.ow2.asm:asm-commons:7.0.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09
[        ]       > Could not resolve org.ow2.asm:asm-commons:7.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-commons/7.0/asm-commons-7.0.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm-commons/7.0/asm-commons-7.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.jdom:jdom2:2.0.6.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09
[        ]       > Could not resolve org.jdom:jdom2:2.0.6.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/jdom/jdom2/2.0.6/jdom2-2.0.6.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/jdom/jdom2/2.0.6/jdom2-2.0.6.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.google.code.findbugs:jsr305:3.0.2.
[        ]      Required by:
[        ]          project : > com.google.gms:google-services:4.3.3 > com.google.android.gms:strict-version-matcher-plugin:1.2.1
[        ]       > Could not resolve com.google.code.findbugs:jsr305:3.0.2.
[        ]          > Could not get resource 'https://jcenter.bintray.com/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72.
[        ]      Required by:
[        ]          project : > com.google.gms:google-services:4.3.3 > com.google.android.gms:strict-version-matcher-plugin:1.2.1
[        ]       > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.72/kotlin-stdlib-jdk8-1.3.72.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.72/kotlin-stdlib-jdk8-1.3.72.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.apache.commons:commons-compress:1.12.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdklib:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdklib:27.0.1 >
com.android.tools:repository:27.0.1
[        ]       > Could not resolve org.apache.commons:commons-compress:1.12.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/apache/commons/commons-compress/1.12/commons-compress-1.12.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/apache/commons/commons-compress/1.12/commons-compress-1.12.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.jetbrains.trove4j:trove4j:20160824.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdk-common:27.0.1
[   +1 ms]       > Could not resolve org.jetbrains.trove4j:trove4j:20160824.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve net.sf.kxml:kxml2:2.3.0.
[        ]      Required by:
[  +49 ms]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools.build:manifest-merger:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools.ddms:ddmlib:27.0.1
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:aaptcompiler:4.0.1 >
com.android.tools.layoutlib:layoutlib-api:27.0.1
[        ]       > Could not resolve net.sf.kxml:kxml2:2.3.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.google.code.findbugs:jsr305:3.0.2.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools.build:apkzlib:4.0.1
[        ]       > Could not resolve com.google.code.findbugs:jsr305:3.0.2.
[        ]          > Could not get resource 'https://jcenter.bintray.com/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.google.guava:guava:28.1-jre.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools.build:apkzlib:4.0.1
[        ]       > Could not resolve com.google.guava:guava:28.1-jre.
[        ]          > Could not get resource 'https://jcenter.bintray.com/com/google/guava/guava/28.1-jre/guava-28.1-jre.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/google/guava/guava/28.1-jre/guava-28.1-jre.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve org.jetbrains:annotations:13.0.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:aaptcompiler:4.0.1 >
com.android.tools.layoutlib:layoutlib-api:27.0.1
[        ]       > Could not resolve org.jetbrains:annotations:13.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/annotations/13.0/annotations-13.0.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/org/jetbrains/annotations/13.0/annotations-13.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.sun.activation:javax.activation:1.2.0.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdklib:27.0.1 >
com.android.tools:repository:27.0.1
[        ]       > Could not resolve com.sun.activation:javax.activation:1.2.0.
[        ]          > Could not get resource 'https://jcenter.bintray.com/com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ]    > Could not resolve com.google.jimfs:jimfs:1.1.
[        ]      Required by:
[        ]          project : > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdklib:27.0.1 >
com.android.tools:repository:27.0.1
[        ]       > Could not resolve com.google.jimfs:jimfs:1.1.
[        ]          > Could not get resource 'https://jcenter.bintray.com/com/google/jimfs/jimfs/1.1/jimfs-1.1.pom'.
[        ]             > Could not GET 'https://jcenter.bintray.com/com/google/jimfs/jimfs/1.1/jimfs-1.1.pom'.
[        ]                > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[        ] * Try:
[        ] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full
insights.
[        ] * Get more help at https://help.gradle.org
[        ] BUILD FAILED in 11s
[ +586 ms] Running Gradle task 'assembleDebug'... (completed in 12.1s)
[   +1 ms] [!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
[ +700 ms] Exception: Gradle task assembleDebug failed with exit code 1
[   +1 ms] "flutter run" took 44,755ms.
[   +7 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:687:9)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:94:3)
           <asynchronous suspension>

[   +8 ms] ensureAnalyticsSent: 3ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[   +1 ms] exiting with code 1

Actual result:
Build failed
Expected behavior:
Need to be run on the device
Additional info
Flutter version

is 2.10.5

It's working now, closing this.


Masonry

use masonry layoutSubViews ,the scales of controls are not same on 6s and 6plus, how  to solve the problem with masonry, Thank you

use masonry layoutSubViews ,the scales of controls are not same on 6s and 6plus, how to solve the problem with masonry, Thank you


there is issue with new version of chrome with RTCMulticonnection

Hi Khan
i found that RTCMulticonnection is not working anymore with new version of chrome
maybe you can find us a solution or trick or we can push users to use turn server instead of peers
waiting your suggestion
Thanks

I still works like a charm. Maybe you have an issue in the way you implemented Chrome.

Hi Khan
when the new chrome version is release and my chrome browser is updated on all my devices to Version 75.0.3770.100
chrome stop send stream to any browser but still receive stream
i was thinking in flag (like everything related to webrtc and experimental-web-platform-features) and i have enabled some but i could not fix the problem
could you help
Thanks

@webleb please include https://webrtchacks.github.io/adapter/adapter-latest.js.
Please verify this: (even if you're already using adapter.js)

Are you able to receive onstream event with event.type===local?
Are you able to receive onstream event with event.type===remote?

Please share console-logs as well.

Hi Khan
Thanks for reply
i can receive peer to peer video  on chrome on Local and on different network
but i cant send video from chrome to other browser after last chrome update
i have attach here 2 files one for chrome console and the other for firefox console
Thanks
console chrome.log
console firefox.txt

and please let me know which folder i should change the adaper.js file
because i change in 2 folder
1.webrtc-adapter--->out
2.rtcmulticonnection-->dev

and when url start with socket. it is direct to my  socket server

@muaz-khan
Hi , waiting your reply

@muaz-khan
Hi Khan
please dont forget me

@muaz-khan
can you kindly return to me concerning this issue
thank you


In some case Helm doesn't provide error for pod name longer than 63 characters

In certain scenario Helm "install" succeeds with no error message for the release_name + app_name string being greater than 63 characters.  The pod name is derived from the "release" & "app" names. So helm should validate for the max length and failed the install itself.
Instead the current behavior is Kubernetes pod creation fails with the length of pod name error:
Mar 21 18:28:57 localhost journal: E0321 18:28:57.833546       1 stateful_set.go:399] Error syncing StatefulSet deploytestcode-ns/spider-app-deploytestcode-ns1-pm-prometheus-server-instance, requeuing: Pod "spider-app-deploytestcode-ns1-pm-prometheus-server-instance-0" is invalid: metadata.labels: Invalid value: "spider-app-deploytestcode-ns1-pm-prometheus-server-instance-55b6d84c46": must be no more than 63 characters
Mar 21 18:28:57 localhost journal: I0321 18:28:57.833795       1 event.go:218] Event(v1.ObjectReference{Kind:"StatefulSet", Namespace:"deploytestcode-ns", Name:"spider-app-deploytestcode-ns1-pm-prometheus-server-instance", UID:"df7e0ea0-2d34-11e8-8f71-525400daa710", APIVersion:"apps", ResourceVersion:"116672", FieldPath:""}): type: 'Warning' reason: 'FailedCreate' create Pod spider-app-deploytestcode-ns1-pm-prometheus-server-instance-0 in StatefulSet spider-app-deploytestcode-ns1-pm-prometheus-server-instance failed error: Pod "spider-app-deploytestcode-ns1-pm-prometheus-server-instance-0" is invalid: metadata.labels: Invalid value: "spider-app-deploytestcode-ns1-pm-prometheus-server-instance-55b6d84c46": must be no more than 63 characters

No error in Helm after the install:
 helm install --name spider-app-deploytestcode-ns1 pm-prometheus-1.0.0-5.tgz --namespace deploytestcode-ns --debug --set influxdb.ext.apiAccessHostname=influxdb-service.deploytestcode-ns.********* --set influxdb.service.type=LoadBalancer --set pm-prometheus-server.server.ingress.hosts[0]=pm-prometheus-server.deploytestcode-********** --set pm-prometheus-server.server.ingress.enabled=true --debug
[debug] Created tunnel using local port: '36607'

[debug] SERVER: "localhost:36607"

[debug] CHART PATH: /home/vagrant/pm-prometheus-1.0.0-5.tgz

NAME:   spider-app-deploytestcode-ns1
REVISION: 1
RELEASED: Wed Mar 21 18:22:54 2018
CHART: pm-prometheus-server-1.0.0-5

Helm "history", "status" also did not displayed any error
master-1 ~]$ helm history spider-app-deploytestcode-ns1
REVISION	UPDATED                 	STATUS  	CHART                       	DESCRIPTION
1       	Wed Mar 21 18:22:54 2018	DEPLOYED	pm-prometheus-server-1.0.0-5	Install complete

Helm status doesn't show any error message
helm status spider-app-deploytestcode-ns1
LAST DEPLOYED: Wed Mar 21 18:22:54 2018
NAMESPACE: deploytestcode-ns
STATUS: DEPLOYED

RESOURCES:
==> v1beta1/ClusterRole
NAME                                                         AGE
spider-app-deploytestcode-ns1-pm-prometheus-server-instance  1m

==> v1beta1/ClusterRoleBinding
NAME                                                         AGE
spider-app-deploytestcode-ns1-pm-prometheus-server-instance  1m

==> v1/Service
NAME                                                         TYPE       CLUSTER-IP      EXTERNAL-IP  PORT(S)  AGE
spider-app-deploytestcode-ns1-pm-prometheus-server-instance  ClusterIP  <IP_ADDRESS>  <none>       80/TCP   1m

==> v1beta1/StatefulSet
NAME                                                         DESIRED  CURRENT  AGE
spider-app-deploytestcode-ns1-pm-prometheus-server-instance  1        0        1m

Get the Prometheus server URL by running these commands in the same shell:
  export POD_NAME=$(kubectl get pods --namespace deploytestcode-ns -l "app=pm-prometheus-server,component=instance" -o jsonpath="{.items[0].metadata.name}")
  kubectl --namespace deploytestcode-ns port-forward $POD_NAME 9090

For more information on running Prometheus, visit:
https://prometheus.io/

Kubectl doesn't not show the pod which indicates some issue and makes user to check the error message:
master-1 ~]$ kubectl get pods --namespace deploytestcode-ns
No resources found.

Output of helm version:
master-1 log]$ helm version
Client: &version.Version{SemVer:"v2.4.1", GitCommit:"46d9ea82e2c925186e1fc620a8320ce1314cbb02", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.8.1", GitCommit:"6af75a8fd72e2aa18a2b278cfe5c7a1c5feca7f2", GitTreeState:"clean"}

Output of kubectl version:
master-1 log]$ kubectl version
Client Version: version.Info{Major:"", Minor:"", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeState:"", BuildDate:"2018-02-16T13:14:00Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"", Minor:"", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeState:"", BuildDate:"2018-02-16T13:09:05Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}

Hi @samsanthana,
Thanks for the report. Your Helm client version is about a year old. Would you be able to re-test with a newer client?

@jascott1 the issue remains the same for latest version too. Please find the logs.
ar 29 01:21:59 localhost journal: 2018-03-29 01:21:59.373 [INFO][64] health.go 150: Overall health summary=&health.HealthReport{Live:true, Ready:true}
Mar 29 01:22:02 localhost journal: E0329 01:22:02.063075       1 stateful_set.go:399] Error syncing StatefulSet deploytestcode-ns/spider-app-deploytestcode-ns1-pm-prometheus-server-instance, requeuing: Pod "spider-app-deploytestcode-ns1-pm-prometheus-server-instance-0" is invalid: metadata.labels: Invalid value: "spider-app-deploytestcode-ns1-pm-prometheus-server-instance-55b6d84c46": must be no more than 63 characters
Mar 29 01:22:02 localhost journal: I0329 01:22:02.063318       1 event.go:218] Event(v1.ObjectReference{Kind:"StatefulSet", Namespace:"deploytestcode-ns", Name:"spider-app-deploytestcode-ns1-pm-prometheus-server-instance", UID:"612140e3-32ef-11e8-885a-525400daa710", APIVersion:"apps", ResourceVersion:"32591", FieldPath:""}): type: 'Warning' reason: 'FailedCreate' create Pod spider-app-deploytestcode-ns1-pm-prometheus-server-instance-0 in StatefulSet spider-app-deploytestcode-ns1-pm-prometheus-server-instance failed error: Pod "spider-app-deploytestcode-ns1-pm-prometheus-server-instance-0" is invalid: metadata.labels: Invalid value: "spider-app-deploytestcode-ns1-pm-prometheus-server-instance-55b6d84c46": must be no more than 63 characters
Mar 29 01:22:03 localhost journal: 2018-03-29 01:22:03.236 [INFO][64] int_dataplane.go 690: Applying dataplane updates

Output of helm version:
helm version
Client: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"}

@samsanthana we'd happily accept PRs to fix this bug, but probably won't come around to it any time in the near future. Right now we're focusing our efforts on vetting the current proposals for Helm 3 and as such haven't been working on Helm 2 as much as we normally do.

closing as inactive.


Using s3proxy with shaded guava

Using s3proxy with shaded jclouds and guava
Removed hive-exec (the uberjar) in favor of hive-exec-core (the non uberjar with just the hive classes)
lowered guava so hadoop can use it again.

s3Proxy dep blocked by new s3Proxy release, PR with changes is here: https://github.com/gaul/s3proxy/pull/273
Long story short, some users reported failing integration tests after some digging it looks like we had a classpath ordering problem with guava and either guava-20.0 or guava packaged in hive-exec.jar was used. After sorting that out I got consistent errors either due to s3proxy/jcloud needing guava 18.0 or higher or hadoop-common needed guava 17.0 or lower. Since we can't have to version on the classpath we need to shade which is was the PR for s3proxy tries to do.
UPDATE:
Went for different approach where we do the shading ourselves.

Coverage decreased (-1.4%) to 73.534% when pulling 844a8ff1513b6a67522fca98fdcd7e16dc1b6dc6 on s3proxy-guava-shading into 11c18074cc68bd7e316a49e25fdf98a3f21c0fbf on master.

On hold waiting for s3proxy release

What is the failure? If its something to do with the metrics then this is a known issue and probably unrelated to these changes.

fixes  #60


Listing sessions

Is there any conventional way to list all active sessions/session keys? As far as i can say looking into the sources, there is no external access to session keys. Is this by desing or there was no such needs before?
The usecase for that could be enumerating currently online users or forcefully logging off particular user or many other options.
Should I implement such functionality and offer a pull request?

AFAIK the Identity & Authentication middleware is the best choice for your case, I'm not sure if there's a proper reason to list the active session(s)
/cc @Tracher

This is by design, the keys contain no meaningful information and we haven't heard any relevant use cases yet.
Remember that browser sessions != users. Users should be tracked by auth cookies (See UseCookieAuthentication in Security). There is a single-sign-out feature that can invalidate auth cookies, see CookieAuthenticationEvents.ValidatePrincipal. The Identity framework hooks into this API to expose the feature.


fix: Custom usernames are possible

Description
It's possible to use a custom username by utilizing the browser dev tools.
Steps To Reproduce

Open Dev Tools
Go to Application
Go to Local Storage
Edit value of flutter.__nickname_collection_key__ such that the new custom name replaces the old one

Expected Behavior
Detection of tampering, maybe assigning a new random name?
Screenshots

Good catch, thanks for reporting! I have plans to move all data to firebase after the competition anyway, which will put a stop to this hack.


[Hero System 6e Heroic] Bug fixes, set defaults, and minor edits

Changes / Comments
Fixed missing variable bug introduced during recent addition of the hit location system.
Set minimum STUN variable to zero as needed for automaton and daemon characters.
Fixed attribute names from MOCV and MDCV to OMCV and DMCV.
Fixed OMCV and DMCV costs.
Added default values to weapon, shield, and encumbrance attributes.
Set default checkboxes for speed indicators.
Uploaded screenshots with correct attribute names.
Minor styling adjustments.
Roll20 Requests
Comments are very helpful for reviewing the code changes. Please answer the relevant questions below in your comment.

[X] Does the pull request title have the sheet name(s)? Include each sheet name.
[X] Is this a bug fix?
[ ] Does this add functional enhancements (new features or extending existing features) ?
[ ] Does this add or change functional aesthetics (such as layout or color scheme) ?
[ ] If changing or removing attributes, what steps have you taken, if any, to preserve player data ?
[ ] If this is a new sheet, did you follow Building Character Sheets standards ?

If you do not know English. Please leave a comment in your native language.

Hi Villain1nGlasses,
a few of us working on other sheets(maybe more) are having issues with the repo due to a couple image files included in the HeroSystem6eHeroic\images folder.  Two images are named the same but with different case.  This is fine on a case-sensitive system like Linux, but on windows-based computers which are case-insensitive by default, you can only have one file of the same name in the same directory.  There are ways to enable case-sensitive file handling on a per-folder basis in windows 10 using command line, but this is a bit cumbersome...
I've submitted an issue here: #9358 with more details, but I think this could easily be handled if you were able to simply rename one of the files and update any reference within the sheet accordingly.
On behalf of us poor windows users, that would be much appreciated.
Thank you.

Hi @vince-roll20, I deleted the offending file and made a pull request that seems to have worked this time.

Sweet.  Much appreciated.


Iambic Import not working successfully

Describe the bug
We are implementing the open-source solution into our Gitlab environment and re-engineering the setup to work through its CI/CD Pipeline.   we have had a lot of testing success, and have been interested incorporating the import process into a workflow.  We are running into issues when the command runs through.
Error Message:
2024/06/26 14:12:59 [error    ] Unhandled Exception
error=ValidationError(model='ServiceControlPolicyItem', errors=[{'loc': ('Description',), 'msg': 'field required', 'type': 'value_error.missing'}])
exception=ValidationError

Wondering if a AWS SCP is configured wrong from the expected formatting or what I might be missing.
Community Engagement
Your vote counts! Please support this bug report by adding a 👍 reaction to the original issue, which will aid the community and maintainers in addressing this problem.
Please refrain from adding "+1" or "me too" comments, as these create unnecessary noise for issue followers and do not help in prioritizing the issue. If you wish to contribute to solving this issue or have submitted a pull request, please leave a comment.

Sorry for the delayed response, taking a look now

Could you provide a redacted version of the SCP template you're attempting to apply? It looks like maybe the Description wasn't being provided. I double checked the boto3 docs and it is a required field.


java.lang.NoSuchFieldException: length

Hello, I have a problem with JSONAPI: http://pastebin.com/cid71a8q .
I tried with builds #111 and #119 (1.7.10)
I use Cauldron (1.7.10-1.1231.04.209), ProtocolLib (3.4.0), Vault (1.4.1)
Thank in advance for your help !

I thought I would need it, but if I need it, so I reopen the ticket.
Thank you in advance for your solutions

For use in Cauldron, change this in the file methods.json;
this.onlinePlayerCount()
to
Server.getOnlinePlayers().size()


ARROW-15545: [Python][C++] Support casting to extension type

Fixes ARROW-15545, fixes ARROW-14500

I think ideally we handle this on the C++ side, so that it for example also works within a Acero query / dataset scan.

This would indeed be useful in c++ too. Reading scalar_cast_numeric.cc and scalar_cast_test.cc might be a good way to get familiar with casting there.

Thanks @rok, just saw your comment, I'll take a deeper look at that. Now in https://github.com/apache/arrow/pull/14106/commits/b9d8cb6747fb496f70e64c89378d62717b7e7d9c I loop over id or storage id. This creates the same result as the Python casting in https://github.com/apache/arrow/pull/14106/commits/e4db00b8aa90d5a1f329aeae8238797cccb878a2 which fixes the reported issue. However, when casting the test's IntegerType it comes back as Int64Array instead of extension array.. (maybe that's okay?)

@milesgranger My guess is you will want to instantiate an ExtensionArray from a 'regular' Array by passing the underlaying buffers, kind of like what CastFromExtension does and then add c++ test like this one.

@pitrou (and others already subscribed), this is ready for a look now. Couple things I'm not sure about is if I'm adding the supported types in GetCastToExtension correctly and if I should better the C++ tests to cover more type varieties like the Python tests do.

Also cc @lidavidm for potential opinions.

@milesgranger this will now also resolve https://issues.apache.org/jira/browse/ARROW-14500 ?

@jorisvandenbossche Indeed it also resolves ARROW-14500.
As for ARROW-17813, just quickly running the example with the PR as-is, results in the same error. I can have a deeper look at it later though.

You bet, @changhiskhan, my pleasure! Below are some examples. Let me know if you had any specific in mind. :)
list<extension>:
import pyarrow as pa
from pyarrow.tests.test_extension_type import IntegerType

a = pa.array([[1, 2, 3]])
a.type
# ListType(list<item: int64>)

b = a.cast(pa.list_(IntegerType()))
b.type
# ListType(list<item: extension<arrow.py_extension_type<IntegerType>>>)

struct<extension>
a = pa.array([{"foo": 1}])
a.type
# StructType(struct<foo: int64>)

b = a.cast(pa.struct([('foo', IntegerType())]))
b.type
# StructType(struct<foo: extension<arrow.py_extension_type<IntegerType>>>)

list<struct<extension>>
a = pa.array([[{"foo": 1}]])
a.type
# ListType(list<item: struct<foo: int64>>)

b = a.cast(pa.list_(pa.struct([('foo', IntegerType())])))
b.type
# ListType(list<item: struct<foo: extension<arrow.py_extension_type<IntegerType>>>>)

struct<list<extension>>
a = pa.array([{"foo": [1, 2, 3]}])
a.type
# StructType(struct<foo: list<item: int64>>)

b = a.cast(pa.struct([('foo', pa.list_(IntegerType()))]))
b.type
# StructType(struct<foo: list<item: extension<arrow.py_extension_type<IntegerType>>>>)

@milesgranger cool, that are indeed the cases we are thinking of. It's good that those work now, I think you can add all those examples as tests (in python is fine IMO).

I think the main unresolved issue is whether we want to allow extension->extension casts: #14106 (comment)
Personally, I think this would be useful, although I certainly agree that the cast will often not make much sense (depending on the extension type that is being used). But, I think that is just as true for any other cast to/from extension type in case it is not casting from/to the exact storage type (for example, we allow casting timestamp to int, but that doesn't mean that a cast from timestamp to extension-type-with-int-storage would make sense).

Continuing on this myself: We could also restrict it (by default) to only casts from/to exactly the storage type? And allow the other casts behind a flag (like allow_non_storage_extension_casts ..., not sure I like that myself though)
@pitrou you mentioned(https://github.com/apache/arrow/pull/14106#discussion_r977666643):

Being able to register extension-specific casts would be another separate possibility.

In general that sounds interesting. Especially if that would also allow to change the behaviour of a specific cast (and not just allowing a pre-defined cast to/from the storage type). For example casting to string could give some actual string representation instead of just the string representation of the storage.
But at the same time this also sounds quite complicated for a maybe limited use case?

In general that sounds interesting. Especially if that would also allow to change the behaviour of a specific cast (and not just allowing a pre-defined cast to/from the storage type). For example casting to string could give some actual string representation instead of just the string representation of the storage.
But at the same time this also sounds quite complicated for a maybe limited use case?

Cast-to-string is how things like the CSV writer work, right? So maybe the use case isn't all that limited?

Glad to see this being worked on!
I'm currently running in the not-yet-implemented error, per https://issues.apache.org/jira/browse/ARROW-17839, where I have a nested struct with an extension type.

I opened a follow-up JIRA about allowing more casts / ability to register casts -> https://issues.apache.org/jira/browse/ARROW-17890

Thanks @milesgranger !

FWIW the regressions all seems to be flaky runs (they didn't continue to be slower on the subsequent merged commits)


List of websites using Lozad.js

Will be adding list of such websites in README.

this should be better be added in README directly, and people should be encouraged to share about the same instead of commenting in issues section


Pre-defined Google/Youtube Account/Channel to be used

Hello there! Thank you for a very great work here. May I ask if it is possible to make use of a predefined youtube account in the code rather than letting the user sign-in?

Let's look at request which you are sending to get all streams:
https://www.googleapis.com/youtube/v3/liveStreams?key=[YOUR_API_KEY]'
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]'
--header 'Accept: application/json'
--compressed
As you can see you have to provide  YOUR_API_KEY and YOUR_ACCESS_TOKEN.
YOUR_API_KEY you can find on your app console credentials tab (or create one if needed).
And YOUR_ACCESS_TOKEN you can get from your local server. I think you need organize oauth2 on your server, and send to user by request. Try it.

Sorry, I don't know if I understand you correctly, But I am looking to put the Google credentials in the code itself so the user does not have to select an account or sign in on a separate screen. I saw this code on Stackoverflow:
googleCredential = new GoogleCredential.Builder().
                                setJsonFactory(jsonFactory).setTransport(transport).
                                setClientSecrets("clientid", "secretkey")
                                .build();
                        googleCredential.setAccessToken("*********");
                        googleCredential.setRefreshToken("*****");

However, I do not know how to integrate it on this project. Thank you!


[FLINK-36525] Support for AI Model Integration for Data Processing

The goal is to extend flink-cdc with the capability to invoke AI models during the data stream processing workflow, with a particular focus on supporting array data structures. This feature will allow users to easily integrate embedding models to handle array-based data, such as lists of text, numeric data, or other multi-dimensional arrays, within their Flink jobs.

Provided by #3753 . Close this PR.


Add a function to Get the fully-assembled operator in a single SparseMatrix

This PR adds a function to get a single SparseMatrix corresponding to the fully-assembled operator:
BilinearForm b;
...
b.SetAssemblyLevel(AssemblyLevel::FULL);
SparseMatrix &A = b.SpMat();

ping: @artv3

PR
Author
Editor
Reviewers
Assignment
Approval
Merge

#1732
@YohannDudouit
@v-dobrev
@artv3 + @acfisher
12/09/20
01/19/21
⌛due 01/26/21

@artv3 I think it works in parallel now. I noticed a difference between what I return and what SpMat() returns, I have more rows, i.e. I have rows for interior + shared dofs, whereas SpMat() has only columns for interior + shared dofs, but only interior dofs rows.

@v-dobrev Do you have a preference in term of design for this SparseMatrix GetFullAssemblySparseMatrix(BilinearForm &a) function, we can change everything about it, the name, the file location, etc...

@artv3 I think it works in parallel now. I noticed a difference between what I return and what SpMat() returns, I have more rows, i.e. I have rows for interior + shared dofs, whereas SpMat() has only columns for interior + shared dofs, and only interior dofs rows.

Thanks @YohannDudouit! Will try this out. I'm not sure I understand your comment, could it be the matrix is transposed?

@artv3 I think it works in parallel now. I noticed a difference between what I return and what SpMat() returns, I have more rows, i.e. I have rows for interior + shared dofs, whereas SpMat() has only columns for interior + shared dofs, and only interior dofs rows.

Thanks @YohannDudouit! Will try this out. I'm not sure I understand your comment, could it be the matrix is transposed?

@artv3 I just did what you asked me, you said you wanted the blocks associated with the shared dofs, this is what this is.

@artv3 I think it works in parallel now. I noticed a difference between what I return and what SpMat() returns, I have more rows, i.e. I have rows for interior + shared dofs, whereas SpMat() has only columns for interior + shared dofs, and only interior dofs rows.

Thanks @YohannDudouit! Will try this out. I'm not sure I understand your comment, could it be the matrix is transposed?

@artv3 I just did what you asked me, you said you wanted the blocks associated with the shared dofs, this is what this is.

Ah I see, gotcha. thanks.

@artv3 I changed GetFullAssemblySparseMatrix to return a rectangular SparseMatrix according to what we discussed.

There is an ongoing discussion on this topic, so the PR is not ready for a formal review yet... (@YohannDudouit, correct me if I'm wrong)

make style :)

I hit a couple of errors when building with MPI + CUDA:
fem/bilinearform_ext.cpp(955): error: The enclosing parent function ("DGMult") for an extended __device__ lambda cannot have private or protected access within its class

fem/bilinearform_ext.cpp(961): error: The enclosing parent function ("DGMult") for an extended __device__ lambda cannot have private or protected access within its class

fem/bilinearform_ext.cpp(972): error: The enclosing parent function ("DGMult") for an extended __device__ lambda cannot have private or protected access within its class

fem/bilinearform_ext.cpp(1016): error: The enclosing parent function ("DGMultTranspose") for an extended __device__ lambda cannot have private or protected access within its class

fem/bilinearform_ext.cpp(1022): error: The enclosing parent function ("DGMultTranspose") for an extended __device__ lambda cannot have private or protected access within its class

fem/bilinearform_ext.cpp(1033): error: The enclosing parent function ("DGMultTranspose") for an extended __device__ lambda cannot have private or protected access within its class

@artv3 Sorry, I forgot that we can't use private methods...

Is this PR ready?

@artv3 This PR is ready for review. Supporting Bernstein basis had some consequences on mesh and pmesh.

Just to add a note here, this PR also fixes a bug with PA and Bernstein basis.

@acfisher -- a reminder that the review for this PR is due this week.

Merged in next for testing...

Merged in next for testing...

LGTM

LGTM

Hi all just wanted to follow up on this PR. Is this next up to be merged into master?

Hi all just wanted to follow up on this PR. Is this next up to be merged into master?


The top level padding/margin/gutter is not editable.

The margin of the topmost container in launcher is not editable.

Tracked in here: https://github.com/Juicy/juicy-tile-editor/issues/115, point 2.


[labs/react] add react wrapper examples to the playground

This PR creates three examples to demonstrate how to use the react wrapper:

A basic hello world
Using react events with web components
Using custom events / dom events with react
Slotting react components into web components

A demonstration using slots will be included in a branching PR, will update this description with a link to branch.

@augustjk i love the idea of a complex object passed as a prop. I think that could qualify for its own example. Maybe a useReducer with a state of certain complexity

Thanks for the comments everyone!

The only lingering issue with these react examples is where we are importing from and types. That feels like a separate issue to me.
https://github.com/lit/lit.dev/issues/885

oh lol the syntax highlighting was not working on my machine. but it built online! must be some chached something.

Added a bug to track TSX <--> JSX support


Gost faces

This bug occurred when using three-d to render to an egui canvas according to the example in the egui repo here but as far as I can see the issue originates in three-d.
The bug in question is that three-d seems to render missing faces, but only if "seen  through" another missing face as seen in this image

I can't seem to figure out why this happens so any insight would be valuable.
Full Code
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release

use eframe::egui;

fn main() {
    let options = eframe::NativeOptions {
        initial_window_size: Some(egui::vec2(550.0, 610.0)),
        multisampling: 8,
        renderer: eframe::Renderer::Glow,
        ..Default::default()
    };
    eframe::run_native(
        "Custom 3D painting in eframe!",
        options,
        Box::new(|cc| Box::new(MyApp::new(cc))),
    );
}

struct MyApp {
    angle: f32,
}

impl MyApp {
    fn new(_cc: &eframe::CreationContext<'_>) -> Self {
        Self { angle: 0.2 }
    }
}

impl eframe::App for MyApp {
    fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
        egui::CentralPanel::default().show(ctx, |ui| {
            egui::widgets::global_dark_light_mode_buttons(ui);

            ui.horizontal(|ui| {
                ui.spacing_mut().item_spacing.x = 0.0;
                ui.label("The triangle is being painted using ");
                ui.hyperlink_to("three-d", "https://github.com/asny/three-d");
                ui.label(".");
            });

            egui::ScrollArea::both().show(ui, |ui| {
                egui::Frame::canvas(ui.style()).show(ui, |ui| {
                    self.custom_painting(ui);
                });
                ui.label("Drag to rotate!");
            });
        });
    }
}

impl MyApp {
    fn custom_painting(&mut self, ui: &mut egui::Ui) {
        let (rect, response) =
            ui.allocate_exact_size(egui::Vec2::splat(512.0), egui::Sense::drag());

        self.angle += response.drag_delta().x * 0.01;

        // Clone locals so we can move them into the paint callback:
        let angle = self.angle;

        let callback = egui::PaintCallback {
            rect,
            callback: std::sync::Arc::new(egui_glow::CallbackFn::new(move |info, painter| {
                with_three_d_context(painter.gl(), |three_d| {
                    paint_with_three_d(three_d, &info, angle);
                });
            })),
        };
        ui.painter().add(callback);
    }
}

/// We get a [`glow::Context`] from `eframe`, but we want a [`three_d::Context`].
///
/// Sadly we can't just create a [`three_d::Context`] in [`MyApp::new`] and pass it
/// to the [`egui::PaintCallback`] because [`three_d::Context`] isn't `Send+Sync`, which
/// [`egui::PaintCallback`] is.
fn with_three_d_context<R>(
    gl: &std::sync::Arc<glow::Context>,
    f: impl FnOnce(&three_d::Context) -> R,
) -> R {
    use std::cell::RefCell;
    thread_local! {
        pub static THREE_D: RefCell<Option<three_d::Context>> = RefCell::new(None);
    }

    // If you are using the depth buffer you need to do this:
    #[allow(unsafe_code)]
    unsafe {
        use glow::HasContext as _;
        gl.enable(glow::DEPTH_TEST);
        if !cfg!(target_arch = "wasm32") {
            gl.disable(glow::FRAMEBUFFER_SRGB);
        }
        gl.clear(glow::DEPTH_BUFFER_BIT);
    }

    THREE_D.with(|three_d| {
        let mut three_d = three_d.borrow_mut();
        let three_d =
            three_d.get_or_insert_with(|| three_d::Context::from_gl_context(gl.clone()).unwrap());
        f(three_d)
    })
}

fn paint_with_three_d(three_d: &three_d::Context, info: &egui::PaintCallbackInfo, angle: f32) {
    // Based on https://github.com/asny/three-d/blob/master/examples/triangle/src/main.rs
    use three_d::*;

    // Set where to paint
    let viewport = info.viewport_in_pixels();
    let viewport = Viewport {
        x: viewport.left_px.round() as _,
        y: viewport.from_bottom_px.round() as _,
        width: viewport.width_px.round() as _,
        height: viewport.height_px.round() as _,
    };

    // Respect the egui clip region (e.g. if we are inside an `egui::ScrollArea`).
    let clip_rect = info.clip_rect_in_pixels();
    three_d.set_scissor(ScissorBox {
        x: clip_rect.left_px.round() as _,
        y: clip_rect.from_bottom_px.round() as _,
        width: clip_rect.width_px.round() as _,
        height: clip_rect.height_px.round() as _,
    });

    let mut model = Gm::new(
        Mesh::new(three_d, &CpuMesh::cube()).unwrap(),
        PhysicalMaterial::new_opaque(
            three_d,
            &CpuMaterial {
                ..Default::default()
            },
        )
        .unwrap(),
    );

    let ambient = AmbientLight::new(three_d, 0.6, Color::WHITE).unwrap();
    let point_light =
        DirectionalLight::new(three_d, 10.0, Color::WHITE, &vec3(0.0, 0.0, -1.0)).unwrap();
    let camera = Camera::new_perspective(
        three_d,
        viewport,
        vec3(0.0, 0.0, 2.0),
        vec3(0.0, 0.0, 0.0),
        vec3(0.0, 1.0, 0.0),
        degrees(90.0),
        0.01,
        1000.0,
    )
    .unwrap();

    // Set the current transformation of the triangle
    model.set_transformation(Mat4::from_angle_y(radians(angle)));

    // Render the triangle with the color material which uses the per vertex colors defined at construction
    model.render(&camera, &[&ambient, &point_light]).unwrap();
}

It's difficult to say exactly what goes wrong but I can give you a few suggestions to try out:

Move the camera a bit further away from the cube.
Render with another material, for example ColorMaterial::default() or NormalMaterial:: default (). If that works then it might be that the cull mode on the material is set to remove back facing triangles.

Thanks for testing 👍 I'm on vacation, so I don't really have the option to test it myself. Will look more into it in a week or two from now when I'm back. However, I have an idea that there is no depth buffer or that the depth buffer is not configured correctly. That means that the sides of the cubes will overlap each other based on the order that they are rendered, not based on the distance from the camera. So I think this is very much related to https://github.com/emilk/egui/issues/1744 . Which platform and OS are you using?

No worries 😄 I'm actually on vacation myself so no pressure. I'll look into the issue you linked to see if it provides any insight.
I'm running macOs 12.3.1 (Monterey) on an m1 pro

Back from vacation, so I had some time to look into it. It actually makes a lot of sense. In the original example, only a triangle is rendered, which means that you don't need a depth buffer (nothing is overlapping something else and egui does not need it either). Therefore, the window is initialised with
let options = eframe::NativeOptions {
        initial_window_size: Some(egui::vec2(550.0, 610.0)),
        multisampling: 8,
        renderer: eframe::Renderer::Glow,
        ..Default::default()
    };

But when we have a more complex scene, we need the depth buffer and have to specify it when constructing the window like this
let options = eframe::NativeOptions {
        initial_window_size: Some(egui::vec2(550.0, 610.0)),
        multisampling: 8,
        renderer: eframe::Renderer::Glow,
        depth_buffer: 32,
        ..Default::default()
    };

I think it should be the default for a 3D example to be initialised with a depth buffer, will try to make the change in egui 💪

Wow, I feel really silly now. I should have noticed that when debugging and reading the docs. Thank you for your help!

Don't feel silly, I suggested that there was no depth buffer as the reason and, when I actually looked at the code, it still took me a while to figure out that there actually was no depth buffer 😆 No problem 👍


Gem won't install because certificate has expired

$ gem install --user-install multi_json -P LowSecurity
WARNING:  You don't have /Users/mspoonauer/.gem/ruby/2.2.0/bin in your PATH,
	  gem executables will not run.
ERROR:  While executing gem ... (Gem::Security::Exception)
    certificate /CN=pavel/DC=pravosud/DC=com not valid after 2017-04-24 22:09:51 UTC

$ gem install --user-install multi_json -P NoSecurity
WARNING:  You don't have /Users/mspoonauer/.gem/ruby/2.2.0/bin in your PATH,
	  gem executables will not run.
WARNING<EMAIL_ADDRESS>is not trusted for multi_json-1.12.1
ERROR:  While executing gem ... (Gem::Security::Exception)
    missing digest for metadata.gz

Renewed the cert and release 1.12.2
Thanks for reporting this