Can't compile v1.x from source with CUDA 11.2 support

I can successfully compile from master branch, but it provides mxnet==2.0.0
Why
I want 1.8.x or 1.x mxnet version with CUDA 11.2 support
v1.x branch and steps
I checked that the last stable build
was on commit 9a2a50229d49586dfde8caa708b17c72a90b9727

my config.cmake: https://gist.github.com/lgg/4f0028e47034310eed596ffec2132ebe#file-config_v1-x-cmake

also, check this issue: https://github.com/apache/incubator-mxnet/issues/19991

git checkout --recurse-submodules 9a2a50229d4
mkdir build && cd build
cmake ..
cmake --build . > build.log 2>&1

Error output:

build_v1.x.log: https://gist.github.com/lgg/4f0028e47034310eed596ffec2132ebe#file-build_9a2a50229d4-log

Environment
uname -a
Linux ml-dev 5.8.0-44-generic #50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
user@ml-dev:~/cudnn$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.2 LTS
Release:	20.04
Codename:	focal
user@ml-dev:~/cudnn$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Thu_Jan_28_19:32:09_PST_2021
Cuda compilation tools, release 11.2, V11.2.142
Build cuda_11.2.r11.2/compiler.29558016_0

----------Python Info----------
Version      : 3.8.5
Compiler     : GCC 9.3.0
Build        : ('default', 'Jan 27 2021 15:41:15')
Arch         : ('64bit', 'ELF')
------------Pip Info-----------
Version      : 20.0.2
Directory    : /usr/lib/python3/dist-packages/pip
----------MXNet Info-----------
Version      : 2.0.0
Directory    : /home/user/.local/lib/python3.8/site-packages/mxnet-2.0.0-py3.8.egg/mxnet
Commit hash file "/home/user/.local/lib/python3.8/site-packages/mxnet-2.0.0-py3.8.egg/mxnet/COMMIT_HASH" not found. Not installed from pre-built package or built from source.
Library      : ['/home/user/.local/lib/python3.8/site-packages/mxnet-2.0.0-py3.8.egg/mxnet/libmxnet.so']
Build features:
✔ CUDA
✖ CUDNN
✖ NCCL
✖ TENSORRT
✖ CUTENSOR
✔ CPU_SSE
✔ CPU_SSE2
✔ CPU_SSE3
✔ CPU_SSE4_1
✔ CPU_SSE4_2
✖ CPU_SSE4A
✔ CPU_AVX
✖ CPU_AVX2
✔ OPENMP
✖ SSE
✔ F16C
✖ JEMALLOC
✔ BLAS_OPEN
✖ BLAS_ATLAS
✖ BLAS_MKL
✖ BLAS_APPLE
✔ LAPACK
✔ MKLDNN
✔ OPENCV
✖ DIST_KVSTORE
✔ INT64_TENSOR_SIZE
✔ SIGNAL_HANDLER
✖ DEBUG
✖ TVM_OP
----------System Info----------
Platform     : Linux-5.8.0-44-generic-x86_64-with-glibc2.29
system       : Linux
node         : ml-dev
release      : 5.8.0-44-generic
version      : #50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021
----------Hardware Info----------
machine      : x86_64
processor    : x86_64
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   39 bits physical, 48 bits virtual
CPU(s):                          12
On-line CPU(s) list:             0-11
Thread(s) per core:              2
Core(s) per socket:              6
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       GenuineIntel
CPU family:                      6
Model:                           158
Model name:                      Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
Stepping:                        10
CPU MHz:                         4313.191
CPU max MHz:                     4700,0000
CPU min MHz:                     800,0000
BogoMIPS:                        7399.70
Virtualization:                  VT-x
L1d cache:                       192 KiB
L1i cache:                       192 KiB
L2 cache:                        1,5 MiB
L3 cache:                        12 MiB
NUMA node0 CPU(s):               0-11
Vulnerability Itlb multihit:     KVM: Mitigation: VMX disabled
Vulnerability L1tf:              Mitigation; PTE Inversion; VMX conditional cache flushes, SMT vulnerable
Vulnerability Mds:               Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Meltdown:          Mitigation; PTI
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Full generic retpoline, IBPB conditional, IBRS_FW, STIBP conditional, RSB filling
Vulnerability Srbds:             Mitigation; Microcode
Vulnerability Tsx async abort:   Mitigation; Clear CPU buffers; SMT vulnerable
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2
                                 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology no
                                 nstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdc
                                 m pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowpref
                                 etch cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsb
                                 ase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xs
                                 avec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
----------Network Test----------
Setting timeout: 10
Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0024 sec, LOAD: 0.4733 sec.
Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.1401 sec, LOAD: 0.3012 sec.
Error open Gluon Tutorial(cn): https://zh.gluon.ai, <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1123)>, DNS finished in 0.08941888809204102 sec.
Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0665 sec, LOAD: 0.3682 sec.
Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0349 sec, LOAD: 0.6479 sec.
Error open Conda: https://repo.continuum.io/pkgs/free/, HTTP Error 403: Forbidden, DNS finished in 0.05992579460144043 sec.
----------Environment----------

I also tried:

git checkout --recurse-submodules 1.8.0
git checkout --recurse-submodules v1.8.x

every time i cleared build folder with rm -rf
But its also failed on on the same step as above:

[ 39%] Building CXX object CMakeFiles/mxnet_static.dir/src/nnvm/tvm_bridge.cc.o

Also, 1.8.0 and v1.8.x didn't support https://github.com/apache/incubator-mxnet/blob/v1.x/config/distribution/linux_cu112.cmake
but differences is only in cuda(nvcc) version (and path) and CUDA_ARCH.
For 1.8.0 and v1.8.x I removed 8.6 cuda_arch in my config.cmake

The errors are in tvm source code. Which version of gcc or llvm did you use to build the MXNet?

@TristonC no llvm was used.
user@ml-dev:~$ gcc --version
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

user@ml-dev:~$ cmake --version
cmake version 3.16.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).
user@ml-dev:~$ g++ --version
g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@lgg Could you try to set the cxx with 14 or 17 standard? The 11 standard is current set in the CMakelists.txt.
project(mxnet C CXX)
set(CMAKE_CXX_STANDARD 11)

@TristonC thank you! Now i have this strange error:

git checkout --recurse-submodules 9a2a50229d4

I also tried:
git checkout --recurse-submodules 1.8.0
git checkout --recurse-submodules v1.8.x
it provides the same error with missing nnvm

mkdir build && cd build
cmake ..
cmake --build . --parallel 10 > build.log 2>&1

https://gist.github.com/lgg/4f0028e47034310eed596ffec2132ebe#file-build_1-8-0_after_fix-log
https://gist.githubusercontent.com/lgg/4f0028e47034310eed596ffec2132ebe/raw/50f6289cc6e416249a8e24256ffa5994cac3695e/build_1.8.0_after_fix.log
[ 40%] Building CXX object 3rdparty/mkldnn/src/cpu/x64/CMakeFiles/dnnl_cpu_x64.dir/shuffle/jit_uni_shuffle.cpp.o
[ 40%] Built target dnnl_cpu_x64
Scanning dependencies of target dnnl
[ 40%] Linking CXX static library libdnnl.a
[ 40%] Built target dnnl
Scanning dependencies of target compat_libs
[ 40%] Generating libmkldnn.a
[ 40%] Built target compat_libs
Scanning dependencies of target mxnet_static
[ 40%] Building CXX object CMakeFiles/mxnet_static.dir/src/api/_api_internal/_api_internal.cc.o
[ 40%] Building CXX object CMakeFiles/mxnet_static.dir/src/api/operator/numpy/np_init_op.cc.o
[ 41%] Building CXX object CMakeFiles/mxnet_static.dir/src/api/operator/numpy/np_tensordot_op.cc.o
[ 41%] Building CXX object CMakeFiles/mxnet_static.dir/src/api/operator/utils.cc.o
[ 41%] Building CXX object CMakeFiles/mxnet_static.dir/src/base.cc.o
[ 41%] Building CXX object CMakeFiles/mxnet_static.dir/src/c_api/c_api_error.cc.o
[ 41%] Building CXX object CMakeFiles/mxnet_static.dir/src/c_api/c_api.cc.o
[ 41%] Building CXX object CMakeFiles/mxnet_static.dir/src/c_api/c_api_executor.cc.o
[ 41%] Building CXX object CMakeFiles/mxnet_static.dir/src/c_api/c_api_function.cc.o
[ 41%] Building CXX object CMakeFiles/mxnet_static.dir/src/c_api/c_api_ndarray.cc.o
/home/user/mxnet1.8/mxnet1.8_real/src/c_api/c_api_error.cc:25:10: fatal error: nnvm/c_api.h: No such file or directory
   25 | #include <nnvm/c_api.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/mxnet_static.dir/build.make:141: CMakeFiles/mxnet_static.dir/src/c_api/c_api_error.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/user/mxnet1.8/mxnet1.8_real/include/mxnet/runtime/packed_func.h:37,
                 from /home/user/mxnet1.8/mxnet1.8_real/include/mxnet/runtime/registry.h:49,
                 from /home/user/mxnet1.8/mxnet1.8_real/include/mxnet/api_registry.h:31,
                 from /home/user/mxnet1.8/mxnet1.8_real/src/api/_api_internal/_api_internal.cc:25:
/home/user/mxnet1.8/mxnet1.8_real/include/mxnet/ndarray.h:33:10: fatal error: nnvm/node.h: No such file or directory
   33 | #include <nnvm/node.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/mxnet_static.dir/build.make:63: CMakeFiles/mxnet_static.dir/src/api/_api_internal/_api_internal.cc.o] Error 1
In file included from /home/user/mxnet1.8/mxnet1.8_real/include/mxnet/runtime/packed_func.h:37,
                 from /home/user/mxnet1.8/mxnet1.8_real/src/api/operator/numpy/../utils.h:29,
                 from /home/user/mxnet1.8/mxnet1.8_real/src/api/operator/numpy/np_tensordot_op.cc:24:
/home/user/mxnet1.8/mxnet1.8_real/include/mxnet/ndarray.h:33:10: fatal error: nnvm/node.h: No such file or directory
   33 | #include <nnvm/node.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/mxnet_static.dir/build.make:89: CMakeFiles/mxnet_static.dir/src/api/operator/numpy/np_tensordot_op.cc.o] Error 1
In file included from /home/user/mxnet1.8/mxnet1.8_real/include/mxnet/runtime/packed_func.h:37,
                 from /home/user/mxnet1.8/mxnet1.8_real/src/api/operator/numpy/../utils.h:29,
                 from /home/user/mxnet1.8/mxnet1.8_real/src/api/operator/numpy/np_init_op.cc:24:
/home/user/mxnet1.8/mxnet1.8_real/include/mxnet/ndarray.h:33:10: fatal error: nnvm/node.h: No such file or directory
   33 | #include <nnvm/node.h>
      |          ^~~~~~~~~~~~~
In file included from /home/user/mxnet1.8/mxnet1.8_real/include/mxnet/runtime/packed_func.h:37,
                 from /home/user/mxnet1.8/mxnet1.8_real/src/api/operator/utils.h:29,
                 from /home/user/mxnet1.8/mxnet1.8_real/src/api/operator/utils.cc:24:
/home/user/mxnet1.8/mxnet1.8_real/include/mxnet/ndarray.h:33:10: fatal error: nnvm/node.h: No such file or directory
   33 | #include <nnvm/node.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
compilation terminated.
make[2]: *** [CMakeFiles/mxnet_static.dir/build.make:102: CMakeFiles/mxnet_static.dir/src/api/operator/utils.cc.o] Error 1
make[2]: *** [CMakeFiles/mxnet_static.dir/build.make:76: CMakeFiles/mxnet_static.dir/src/api/operator/numpy/np_init_op.cc.o] Error 1
In file included from /home/user/mxnet1.8/mxnet1.8_real/src/c_api/c_api_executor.cc:25:
/home/user/mxnet1.8/mxnet1.8_real/include/mxnet/base.h:35:10: fatal error: nnvm/op.h: No such file or directory
   35 | #include "nnvm/op.h"
      |          ^~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/mxnet_static.dir/build.make:154: CMakeFiles/mxnet_static.dir/src/c_api/c_api_executor.cc.o] Error 1
In file included from /home/user/mxnet1.8/mxnet1.8_real/src/base.cc:25:
/home/user/mxnet1.8/mxnet1.8_real/include/mxnet/base.h:35:10: fatal error: nnvm/op.h: No such file or directory
   35 | #include "nnvm/op.h"
      |          ^~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/mxnet_static.dir/build.make:115: CMakeFiles/mxnet_static.dir/src/base.cc.o] Error 1
In file included from /home/user/mxnet1.8/mxnet1.8_real/src/c_api/c_api_ndarray.cc:26:
/home/user/mxnet1.8/mxnet1.8_real/include/mxnet/base.h:35:10: fatal error: nnvm/op.h: No such file or directory
   35 | #include "nnvm/op.h"
      |          ^~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/mxnet_static.dir/build.make:180: CMakeFiles/mxnet_static.dir/src/c_api/c_api_ndarray.cc.o] Error 1
In file included from /home/user/mxnet1.8/mxnet1.8_real/src/c_api/c_api.cc:39:
/home/user/mxnet1.8/mxnet1.8_real/include/mxnet/base.h:35:10: fatal error: nnvm/op.h: No such file or directory
   35 | #include "nnvm/op.h"
      |          ^~~~~~~~~~~
compilation terminated.
In file included from /home/user/mxnet1.8/mxnet1.8_real/src/c_api/c_api_function.cc:26:
/home/user/mxnet1.8/mxnet1.8_real/include/mxnet/base.h:35:10: fatal error: nnvm/op.h: No such file or directory
   35 | #include "nnvm/op.h"
      |          ^~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/mxnet_static.dir/build.make:128: CMakeFiles/mxnet_static.dir/src/c_api/c_api.cc.o] Error 1
make[2]: *** [CMakeFiles/mxnet_static.dir/build.make:167: CMakeFiles/mxnet_static.dir/src/c_api/c_api_function.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:469: CMakeFiles/mxnet_static.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

@lgg  Did you git clone with --recursive? It seems some code file is missing your local repo.

@TristonC yes. I will try now again from scratch.
In my folder from previous try:
f.golovin@ml-dev:~/mxnet1.8/mxnet1.8_real$ git status
On branch v1.8.x
Your branch is up to date with 'origin/v1.8.x'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
	modified:   .gitmodules
	modified:   3rdparty/openmp

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
  (commit or discard the untracked or modified content in submodules)
	modified:   3rdparty/ps-lite (new commits, modified content)
	modified:   3rdparty/tvm (new commits, modified content)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	include/mkldnn/oneapi/

@TristonC thank you! Your answer helped!


Volunteer's not scheduled if timezone missing

If a volunteer shift does not have a timezone set it causes all volunteer shifts to fail. This can be visually seen in the schedule and calling results in no transfer to any volunteer
What version are you running?
v4.3.5
What PHP version are you running?
8.2.22
Did this happen on prior versions to the one you are running (if so what version)?
Initial install
To Reproduce
Steps to reproduce the behavior:

Go to Volunteers
Create a test volunteer, properly fill out all info except timezone
Enable volunteer and click save volunteers
Schedule will be empty and incoming calls won't be transfered to volunteers

Expected behavior
Should not allow saving if timezone not set

How did you make it so that there is no time zone set?

It's not a required field so if you leave it blank it will save without a timezone chosen

Yeah I could even figure out how you were able to set it as a blank value.
Get Outlook for iOShttps://aka.ms/o0ukef

From: Kevin Grimley @.>
Sent: Monday, August 26, 2024 8:46:01 AM
To: bmlt-enabled/yap @.>
Cc: Danny Gershman @.>; Comment @.>
Subject: Re: [bmlt-enabled/yap] Volunteer's not scheduled if timezone missing (Issue #1121)
It's not a required field so if you leave it blank it will save without a timezone chosen
—
Reply to this email directly, view it on GitHubhttps://github.com/bmlt-enabled/yap/issues/1121#issuecomment-2310127338, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAOD3O6W5UZQT7XGERUHQ2LZTMPQTAVCNFSM6AAAAABM5APDKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJQGEZDOMZTHA.
You are receiving this because you commented.Message ID: @.***>

At least for us the placeholder/default option is blank. Guessing that passes null or empty when saved.

Weird.  Does it happen just for you?  Or for other people?
Get Outlook for iOShttps://aka.ms/o0ukef

From: Kevin Grimley @.>
Sent: Monday, August 26, 2024 8:48:52 AM
To: bmlt-enabled/yap @.>
Cc: Danny Gershman @.>; Comment @.>
Subject: Re: [bmlt-enabled/yap] Volunteer's not scheduled if timezone missing (Issue #1121)
At least for us the placeholder/default option is blank. Guessing that passes null or empty when saved.
Screenshot.2024-08-26.at.8.48.20.AM.png (view on web)https://github.com/user-attachments/assets/47d7cadd-9c31-4c91-99cf-b7beb59b1417
—
Reply to this email directly, view it on GitHubhttps://github.com/bmlt-enabled/yap/issues/1121#issuecomment-2310132838, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAOD3O5ZCDPBNLEZK2OBN33ZTMP3JAVCNFSM6AAAAABM5APDKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJQGEZTEOBTHA.
You are receiving this because you commented.Message ID: @.***>

Looking at the rendered markup that's actually kind of interesting I would expect <option value="Africa/Abidjan">Africa/Abidjan</option> to be the default option

Both myself and one of our Area PR chairs have this happen. It was actually one of the shifts that she entered that brought it to my attention

Any browser and/or OS in particular?  The same result regardless or browser?  Its supposed to use your computer time to determine the time zone you are in.
Get Outlook for iOShttps://aka.ms/o0ukef

From: Kevin Grimley @.>
Sent: Monday, August 26, 2024 8:51:50 AM
To: bmlt-enabled/yap @.>
Cc: Danny Gershman @.>; Comment @.>
Subject: Re: [bmlt-enabled/yap] Volunteer's not scheduled if timezone missing (Issue #1121)
Both myself and one of our Area PR chairs have this happen. It was actually one of the shifts that she entered that brought it to my attention
—
Reply to this email directly, view it on GitHubhttps://github.com/bmlt-enabled/yap/issues/1121#issuecomment-2310139158, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAOD3OYRDXGWSEX3FS5YYLDZTMQGNAVCNFSM6AAAAABM5APDKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJQGEZTSMJVHA.
You are receiving this because you commented.Message ID: @.***>

I'm mac. Happens on both my intel pro and M2 air. Both using chrome. I've asked the Area person what she was using and will let you know.
When using firefox it does populate with my timezone

Brave and Safari also do not populate. I saw Africa/Abidjan for a second in each of them before it turning blank. Assuming that's what I saw. It was so quick I couldn't really read it
https://github.com/user-attachments/assets/7c7967c9-d9e6-469d-b273-711a23acbce1

The Area PR chair is using an Android phone. She said her browser is Google so guessing that means Chrome. Could this be a browser engine issue?

Ok cool this is helpful.
Get Outlook for iOShttps://aka.ms/o0ukef

From: Kevin Grimley @.>
Sent: Monday, August 26, 2024 9:13:31 AM
To: bmlt-enabled/yap @.>
Cc: Danny Gershman @.>; Comment @.>
Subject: Re: [bmlt-enabled/yap] Volunteer's not scheduled if timezone missing (Issue #1121)
Brave and Safari also do not populate. I saw Africa/Abidjan for a second in each of them before it turning blank. Assuming that's what I saw. It was so quick I couldn't really read it
https://github.com/user-attachments/assets/7c7967c9-d9e6-469d-b273-711a23acbce1
—
Reply to this email directly, view it on GitHubhttps://github.com/bmlt-enabled/yap/issues/1121#issuecomment-2310186850, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAOD3O6G2TYMKRHFHB3TDM3ZTMSXXAVCNFSM6AAAAABM5APDKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJQGE4DMOBVGA.
You are receiving this because you commented.Message ID: @.***>

Let me know if there's any other info I can provide

Fix will be in Yap 4.4.0

Can you give this a try?  https://github.com/bmlt-enabled/yap/releases/download/4.4.0-beta1/yap-4.4.0-beta1.zip


Add descriptions for plugins

Add descriptions for plugins

@djyasin with all the changes back and forth, Codecov seems to be confused. Could you rebase to see if that'll fix the problem?

I just  rebased and squashed, let me know if that looks better!

@djyasin perfect! Codecov no longer reports 0% patch coverage. The commit description could be cleaned up, but that's not a hard blocker. So let's not delay merging any further.

@djyasin post-merge instructions:

Click Run workflow @ https://github.com/ansible/awx-plugins/actions/workflows/ci-cd.yml, entering 0.0.1a7 precisely in the version field. Don't enter anything else, and submit the form.
Wait until the newly created workflow run completes tests and pauses, then approve releasing on the workflow run summary page.
Wait until the workflow run completes fully.
Make sure awx gets the new version. Make a PR bumping the dependency over there if necessary.


请问bev+occ的模型在哪下载

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.
System information

OS Platform and Distribution (e.g., Linux Ubuntu 18.04):
Apollo installed from (source or binary):
Apollo version (3.5, 5.0, 5.5, 6.0):apollo 10.0
Output of apollo.sh config if on master branch:

Steps to reproduce the issue:

Please use bullet points and include as much details as possible:
请问bev+occ的模型在哪下载，我在讨论里没有找到相关的onnx下载地址

Supporting materials (screenshots, command lines, code/script snippets):

https://apollo.baidu.com/docs/apollo/10.x/md_docs_2_xE5_xBA_x94_xE7_x94_xA8_xE5_xAE_x9E_xE8_xB7_xB5_2_xE5_xBC_x80_xE5_x8F_x91_xE8_xB0_x83_a60005757a7675d3a07ad7f96960ee2c.html#autotoc_md257


Auto pause and Stop video preload issue

Chrome 113.0.5672.127, Windows 10 with latest builds and updates, NOVA script 0.42.0+9ad24c4
Hello, i have one problem, the auto pause and stop video preload not work, at least for me.
I Re-installed tampermonkey and this script but when i open any video in youtube, the auto pause function and the stop video preload function works but if i click in any place of the screen the video starts to play automatically and sometimes, this happened just one time, when i scroll down the page the video starts to play automatically.
Auto pause and stop video preload works only if i don't click nothing, even if i click in the scroll bar in the right side of the screen the video starts to play without i touch e in the video itself.

for me not work, i clicked in the youtube page and the video started to play automatically
https://github.com/raingart/Nova-YouTube-extension/assets/20147128/360f1f2e-5d12-413d-8799-cf0f94890cb7
ally

https://github.com/raingart/Nova-YouTube-extension/assets/20147128/2213dcaf-f95f-4585-8b5e-49616bc4a05c
i tested the beta you send me but not works for me, or i have the enable the normal and the beta version?

ignore the out of memory, its because of the obs recording the screen

the config page do not open and nothing works and the nova button in the youtube page not appears


CommentsAnalyzer - before static call

Coverage increased (+0.006%) to 92.102% when pulling e03250a8247c3383e042f567af37938dd8c69cda on SpacePossum:master_CommentsAnalyzer_before_static_call into 52b69d10e3b28ecc301f9fb3efba821b1389eebf on FriendsOfPHP:master.


Incorrect Markdown Syntax Highlighting after inline html

Does this issue occur when all extensions are disabled?: Yes

VS Code Version:

1.67.2
c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
x64

OS Version: Arch Linux

Steps to Reproduce:
Open a Markdown file with the following contents:
word
```

```

# Heading

Heading should be syntax-highlighted, but it is not:

Duplicate of #85


Feature: placement of the cursor after inserting text at a specific position

Description
After inserting a block of text, the cursor is automatically set to the end of this inserted text. I would need to be able to set the cursor e.g. in the middle or x chars back of the inserted text.
Reason: I am inserting text that is actually a shortcode, e.g. "{text}{/text}cursor here" and I want to write in the tags of this shortcode "{text}cursor here{/text}"
If there is some functionality that knows this, I don't know about it. I will be happy for advice. If it doesn't exist, is it possible to create something like that?
Well thank you

solved using selection.setTextNodeRange(anchorNode, anchorPosition, focusNode, focusPosition)


Diagnostics for import module shown in problems tab

Description:
If you try the go-to-definition feature; all diagnostic errors/warnings appear under the Problems tab for the import module and it does not get cleared after closing the navigated tab.

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

Suggested Labels (optional):

Suggested Assignees (optional):

This particular behaviour has been resolved with the project API changes and the respective LS changes. This can no longer observed when we go to a standard library source. Hence closing this issue. If the issue can be observed further, please feel free to reopen the issue.


[GLUTEN-2961][VL][FOLLOWUP] Fix issue on macOS

What changes were proposed in this pull request?
This pr is a followup of https://github.com/oap-project/gluten/pull/3341 to fix the issue on macOS.
How was this patch tested?
manually test

cc @rui-mo @zhouyuan  @PHILO-HE  thank you

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query
log/native_3455_time.csv
log/native_master_10_19_2023_a9324e620_time.csv
difference
percentage

q1
40.62
40.32
-0.301
99.26%

q2
24.34
24.36
0.016
100.06%

q3
41.13
40.92
-0.210
99.49%

q4
35.14
33.60
-1.537
95.63%

q5
67.84
70.38
2.538
103.74%

q6
8.94
8.94
0.005
100.06%

q7
107.49
102.14
-5.350
95.02%

q8
108.31
104.41
-3.902
96.40%

q9
149.70
156.04
6.332
104.23%

q10
69.25
72.84
3.592
105.19%

q11
22.15
22.07
-0.086
99.61%

q12
34.76
34.28
-0.485
98.61%

q13
66.65
72.13
5.479
108.22%

q14
22.91
25.22
2.314
110.10%

q15
46.53
40.39
-6.148
86.79%

q16
22.70
18.59
-4.112
81.89%

q17
110.56
105.84
-4.712
95.74%

q18
216.94
217.17
0.230
100.11%

q19
25.68
27.16
1.478
105.76%

q20
40.72
40.56
-0.156
99.62%

q21
339.62
335.44
-4.179
98.77%

q22
17.04
17.06
0.023
100.14%

total
1619.04
1609.87
-9.171
99.43%


feat(dashmate): check for DKG before stopping node

Issue being fixed or feature implemented

https://github.com/dashpay/platform/issues/1648
When node is participating in DKG exchange process, it is dangerous to restart the node, because it can result to the PoSe ban.
Recently, Dash Core v20.1 was released that include a quorum dkginfo RPC call, that shows if nodes is exchanging DKG or will in the upcoming blocks.
This PR adds a check for that before stopping node.
What was done?

Added a check for masternodes for a potential DKG exchange happen soon during dashmate stop command (reduce PoSE bans)
Implemented an --safe flag for dashmate stop command, that will wait until DKG window passes and flawlessly stops your node

How Has This Been Tested?

Locally with dashmate in testnet and local setups
Breaking Changes

No
Checklist:

[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added or updated relevant unit/integration/functional/e2e tests
[ ] I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
[ ] I have made corresponding changes to the documentation if needed

For repository code-owners and collaborators only

[x] I have assigned this pull request to a milestone

Nice job.


Create an intro

Add an intro about yourself: who are you, what is your strength, why are you here.

Hi everyone! My name is Andrew Bertash and I'm a 1C software engineer with more than 6 years of commercial experience. I have organizational and problem-solving skills with a high level of self-motivation for work. I am easy and fast learn new technologies, frameworks, tools, etc.
I am an adaptable person. I have worked with different customers. They had disparate requirements and expectations of me. I have been able to adjust my possibilities and skills to meet each of their needs.
I am good at producing quality work in a team environment. In addition, I am very comfortable with public speaking.
I am tired to be unrecognized developer and it is a reason why I want to switch to .NET technologies stack and become a part of the "true developers" community.


File system needs research

Subject requires researching before documenting the module can continue.

How files and directories are handled in Android, Windows Phone and iOS
How to construct file and directory wrapper
How to read and write files on all systems
Permissions?

Implemented i guess


Feature: Add plugins support

Idea:
To make RiotKit Do possible to use for example in non-officially supported languages, to allow to add progress bars, slack notifiers and more we can add plugins support.
Plugins support could be introduced pretty easily using some kind of event bus.
Implementation:

Use event bus
In Python syntax and in YAML syntax import plugins via imports section. The difference is that the def imports() could take also PluginDeclaration, not only TaskDeclaration

https://zopeevent.readthedocs.io/en/latest/classhandler.html
https://pypubsub.readthedocs.io/en/latest/usage/usage_basic.html
https://github.com/seanpar203/event-bus

Implement example plugin: Progress bar

Implement example plugin: Progress bar

All events emmited by RKD MUST BE properly documented. Each event needs to be a class object.

All events emmited by RKD MUST BE properly documented. Each event needs to be a class object.


[SPARK-32471][SQL][DOCS][TESTS][PYTHON][SS] Describe JSON option allowNonNumericNumbers

What changes were proposed in this pull request?

Describe the JSON option allowNonNumericNumbers which is used in read
Add new test cases for allowed JSON field values: NaN, +INF, +Infinity, Infinity, -INF and -Infinity

Why are the changes needed?
To improve UX with Spark SQL and to provide users full info about the supported option.
Does this PR introduce any user-facing change?
Yes, in PySpark.
How was this patch tested?
Added new test to JsonParsingOptionsSuite

ping @HyukjinKwon

Test build #126734 has started for PR 29275 at commit 7403abb.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/31358/
Test PASSed.

Test build #126734 has finished for PR 29275 at commit 7403abb.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/126734/
Test PASSed.

Merged to master.


docs: ✏ Add READMEs to folders

Adding in the start of documentation that will live in the same location as the code.
I'm not as happy with the location of items in this one, so I'm open to suggestions.
You can take a look at what it will look/feel like from the branch: https://github.com/SelectQuoteLabs/SQForm/tree/add-documentation

Closing this to re-work some of the READMEs to take the folder updates into account.


[Info Request] Anvil Gui

What GUI class is invoked when renaming something in an anvil with this mod? I use the blur mod and I need to add the class for the anvil GUI to it's blacklist.

The GUI class is de.mineformers.vanillaimmersion.client.gui.AnvilGui.
I might see about integrating with Blur myself, then users won't have to manually add it to the blacklist.

Thank you very much :)

Using a J VisualVM heap dump I was able to find the correct class: de.mineformers.vanillaimmersion.client.gui.AnvilTextGui
Issue resolved, closing.


MorphOneOfMany Relationship Building Query Improperly with Select

Package
filament/filament
Package Version
v3.2.92
Laravel Version
v11.15.0
Livewire Version
No response
PHP Version
PHP 8.2.21 | PHP 8.3.9
Problem description
Models with MorphOneOfMany (and probably all OneOfMany) relationships do not build the query correctly and cause an error when loading the forms. Essentially, what appears to be happening is that Filament sees the MorphOne relation returned and doesn't account for their being a pivot table, looking for the morph_id on the related models table instead.
I've given as much detail as is feasible below, as well as a reproduction repo. Instructions on how to use the repo to reproduce are included below, as well as in the repo's Readme.
Expected behavior
For the query to be a working query, and for the select box to populate options that are relevant to the morphOne without using modifyQueryUsing.
Steps to reproduce
General Instructions

Set up a morph one to many relationship on a model that has a Filament resource/form.
Create a select field attached to relationship on resource/form.
Navigate to resource and attempt to create or edit.

Using the repo linked below
Note: I moved the panel to the root directory and removed the auth gate to simplify access to the resources for testing.

Clone repo
composer install
php artisan migrate --seed
Navigate to rooms resource in filament, and attempt to create or edit. Rooms resource is incredibly barebones for the sake of simplified testing.

Don't see a better place to note this: My logs below are from the linked test repository, using SQLite, but I was originally seeing this with MySQL, confirming that it not RDBMS platform dependent.
 We receive the money once the issue is completed & confirmed by you.
100% of the funding will be distributed between the Filament core team to run all aspects of the project.
Thank you in advance for helping us make maintenance sustainable!

That Github Action is a bit overbearing I think. I don't need 25 steps to explain how to reproduce this given that it boils down to "Use this Eloquent feature and try to add a field for it. Watch the fireworks."

I feel like my original instructions are going to be better than what I have to do to make this action not auto-discard the issue, so I'm including them here:

Set up a morph one to many relationship on a model that has a Filament resource/form.
Create a select field attached to relationship on resource/form.
Navigate to resource and attempt to create or edit.

The GH Action didn't like my headers :( The Regex thought the header inside the repro steps was the beginning of a new answer and that nothing was included.

And now the action that auto-closed my issue is broken and not reopening. That's fun.
https://github.com/filamentphp/filament/actions/runs/9912310217

In case anyone comes across this before there's a proper upstream fix, there is a workaround utilizing the form events.
Your Eloquent model with the MorphOneOfMany will need a traditional MorphMany on it for the relationship.
...
// You need this in addition to the MorphOneOfMany relations
public function products(): MorphToMany
{
    return $this->morphToMany(Product::class, 'productable');
}

public function oneWeekProduct()
{
    return $this->morphToMany(Product::class, 'productable')
        ->where('duration', 7)
        ->latestOfMany();
}
...

Your resource will then use the MorphMany as it's relationship.
...
Select::make('oneWeekProduct')
    ->rules('exists:products,id')
    ->label('One Week Product')
    ->createOptionForm(ProductResource::getSchemaFields())
    ->relationship(
        name: 'products',
        titleAttribute: 'name',
        modifyQueryUsing: fn (Builder $query) => $query->where('duration', 7)),
...

Then, you'll utilize Filament's Lifecycle hooks and mutateFormBeforeSave/mutateFormBeforeCreate to manipulate the data the way you need.
...
protected function mutateFormDataBeforeCreate(array $data): array
{
    // I have more than one here, just showing you one for simplicity's sake
    $this->product_ids = collect($data)->only([
        'oneWeekProduct',
    ]);

    unset(
        $data['oneWeekProduct']
    );

    return parent::mutateFormDataBeforeCreate($data);
}

protected function afterCreate(): void
{
    $this->record->products()->sync($this->product_ids);
}

Major caveat to this, if you edit the resource without changing anything, it will return an array instead of a single value, so you'll need to account for that as well:
...
protected function mutateFormDataBeforeSave(array $data): array
{
    $this->product_ids = collect($data)->only([
        'oneWeekProduct',
    ]);

    $this->product_ids = $this->product_ids
        ->mapWithKeys(
            fn ($value, $key) => is_iterable($value)
                ? [$key => collect($value)->first()]
                : [$key => $value]
        );

    unset(
        $data['oneWeekProduct']
    );

    return parent::mutateFormDataBeforeSave($data);
}
...

Hopefully this helps if someone else finds theirself having to work around this for now. I caught it because I was code reviewing for one of my teammates and couldn't figure out why he was adding extra stuff to get this to work.


Automatic updates made by cve-rsus-validate-submit Github Action

Autmatic PR by https://github.com/DIVD-NL/cve-rsus-validate-submit\n\nI autmatically expired some reservations for you. If you don't want that to happend, create an reservations.lock file anywhere in the reservations directory and add the CVE ID of reservations you don't want me to expire to it. You can use # style comments in this file.

Test, closed.


Update samples to work with 2.8.0

On #61, it's mentioned that the samples work with 2.5.2 which Google released in September of last year. Can you update the samples so they work with 2.8.0?

I would accept a pull request to update this. Maybe @MKuckert or @bspinner can help out?

@martijn00 Looks like you've made some changes already. Is this still an issue?

@bspinner yes, the samples are still not up to date. The other things compile fine now.


React-Leaflet is not compatible with Server-Side Rendering

Just noticed this in the React-Leaflet documentation:
https://github.com/PaulLeCam/react-leaflet#technical-considerations

We can't render leaflet maps on the server anyway. No biggie, esp. for SEO. I'm going to close this, but if I missed something please reopen.

What does that even mean?
"Server-side rendering" of Leaflet maps should mean "adds a map div and references to Leaflet's JS and CSS", right?

Yeah I'm confused by this as well @mojodna
@ericsoco but do we still want to use it then? Will Leaflet break if a page that is using React-Leaflet is rendered server side?

@clhenrick I don't believe so. But I could be wrong...
Let's cross that bridge when we come to it. If we end up server-rendering and run into a problem with react-leaflet, we can address it then. In the meantime, it's a frequent enough dependency (Leaflet) that we should leave it in, IMO.

@ericsoco cool. One thing I'm uncertain about is how CartoDB.JS can be used with React-Leaflet (need to research it more) and I feel like I may end up using that a quite a bit, but that is a separate issue.


swernli/version-update

This switches to a newer QDK beta package that has name fixes in the QIR generation for target packages (see https://github.com/microsoft/qsharp-runtime/pull/789). It includes the corresponding updates to the README.md and .ll files.

Converting to draft while we work on #1122, which should probably go in first.

Closing this since the update was pulled into the other PR by @troelsfr


What type of update are you requesting?
A new version of an existing package
Current Package Identifier
Graphviz.Graphviz
Package Version
8.1.0
Please describe the changes you would like to see
Release: https://gitlab.com/graphviz/graphviz/-/releases/8.1.0
Changelog: https://gitlab.com/graphviz/graphviz/raw/main/CHANGELOG.md

I created a PR #116905

Close with reason: Resolved by above PR;


Constant crashes in Release build (current beta in Google Play Store)

When generating a signed APK with the ProdRelease build, I get these errors:
C:\Code\GitHub\apps-android-commons\app\build.gradle
Error:Error: commons-logging defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar. [DuplicatePlatformClasses]
Error:Error: httpclient defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar. [DuplicatePlatformClasses]

I was able to carry on and generate the APK regardless, but we should still probably look into them so that we don't keep getting errors in future versions.
Update: Currently, it seems that in order to release any of the new features post-2.5.0, we will need to:

[ ] Fix conflicts between Dagger and commons-logging and httpclient, or else not use Dagger
[ ] Fix error with kaptProdReleaseKotlin
[ ] Re-test ProdRelease build (I am hoping we can find a way for other devs to test release builds as well, see #988

Wow. So it said APK build successful and I was able to upload to Google Play beta - but the app crashes for me on the Google Play version. I sent logs, but can't access them until they go through to the server.

Will try to deploy the fixes mentioned at https://stackoverflow.com/questions/46989310/commons-logging-defines-classes-that-conflict-with-classes-now-provided-by-andro

Huh. Well, that didn't solve the problem for me. :/

Ran logcat:
11-27 22:31:35.631 25616-25616/? E/AndroidRuntime: FATAL EXCEPTION: main
                                                   Process: fr.free.nrw.commons, PID: 25616
                                                   java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.free.nrw.commons/fr.free.nrw.commons.contributions.ContributionsActivity}: java.lang.NullPointerException: fr.free.nrw.commons.CommonsApplication.activityInjector() returned null
                                                       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2924)
                                                       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2985)
                                                       at android.app.ActivityThread.-wrap14(ActivityThread.java)
                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1635)
                                                       at android.os.Handler.dispatchMessage(Handler.java:102)
                                                       at android.os.Looper.loop(Looper.java:154)
                                                       at android.app.ActivityThread.main(ActivityThread.java:6692)
                                                       at java.lang.reflect.Method.invoke(Native Method)
                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
                                                    Caused by: java.lang.NullPointerException: fr.free.nrw.commons.CommonsApplication.activityInjector() returned null
                                                       at dagger.internal.Preconditions.checkNotNull(Preconditions.java:79)
                                                       at dagger.android.AndroidInjection.inject(AndroidInjection.java:56)
                                                       at fr.free.nrw.commons.contributions.ContributionsActivity.onCreate(ContributionsActivity.java:142)
                                                       at android.app.Activity.performCreate(Activity.java:6912)
                                                       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126)
                                                       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2877)
                                                       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2985)
                                                       at android.app.ActivityThread.-wrap14(ActivityThread.java)
                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1635)
                                                       at android.os.Handler.dispatchMessage(Handler.java:102)
                                                       at android.os.Looper.loop(Looper.java:154)
                                                       at android.app.ActivityThread.main(ActivityThread.java:6692)
                                                       at java.lang.reflect.Method.invoke(Native Method)
                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)

11-27 22:31:40.509 25646-25646/? E/AndroidRuntime: FATAL EXCEPTION: main
                                                   Process: fr.free.nrw.commons, PID: 25646
                                                   java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.free.nrw.commons/fr.free.nrw.commons.contributions.ContributionsActivity}: java.lang.NullPointerException: fr.free.nrw.commons.CommonsApplication.activityInjector() returned null
                                                       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2924)
                                                       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2985)
                                                       at android.app.ActivityThread.-wrap14(ActivityThread.java)
                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1635)
                                                       at android.os.Handler.dispatchMessage(Handler.java:102)
                                                       at android.os.Looper.loop(Looper.java:154)
                                                       at android.app.ActivityThread.main(ActivityThread.java:6692)
                                                       at java.lang.reflect.Method.invoke(Native Method)
                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
                                                    Caused by: java.lang.NullPointerException: fr.free.nrw.commons.CommonsApplication.activityInjector() returned null
                                                       at dagger.internal.Preconditions.checkNotNull(Preconditions.java:79)
                                                       at dagger.android.AndroidInjection.inject(AndroidInjection.java:56)
                                                       at fr.free.nrw.commons.contributions.ContributionsActivity.onCreate(ContributionsActivity.java:142)
                                                       at android.app.Activity.performCreate(Activity.java:6912)
                                                       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126)
                                                       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2877)
                                                       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2985)
                                                       at android.app.ActivityThread.-wrap14(ActivityThread.java)
                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1635)
                                                       at android.os.Handler.dispatchMessage(Handler.java:102)
                                                       at android.os.Looper.loop(Looper.java:154)
                                                       at android.app.ActivityThread.main(ActivityThread.java:6692)
                                                       at java.lang.reflect.Method.invoke(Native Method)
                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
11-27 22:31:41.343 3698-4045/? E/OpenGLRenderer: Error:glDeleteShader::<shader> is not a value generated by OpenGL
11-27 22:31:41.343 3698-4045/? E/OpenGLRenderer: Error:glDeleteShader::<shader> is not a value generated by OpenGL
11-27 22:31:41.343 3698-4045/? E/OpenGLRenderer: Error:glDeleteShader::<shader> is not a value generated by OpenGL
11-27 22:31:41.343 3698-4045/? E/OpenGLRenderer: Error:glDeleteShader::<shader> is not a value generated by OpenGL
11-27 22:31:41.343 3698-4045/? E/OpenGLRenderer: Error:glDeleteShader::<shader> is not a value generated by OpenGL
11-27 22:31:41.343 3698-4045/? E/OpenGLRenderer: Error:glDeleteShader::<shader> is not a value generated by OpenGL
11-27 22:31:41.356 3698-3786/? E/ViewRootImpl: sendUserActionEvent() mView == null
11-27 22:31:41.390 25666-25666/? E/Zygote: v2
11-27 22:31:41.391 25666-25666/? E/Zygote: accessInfo : 0
11-27 22:31:41.943 8461-8461/? E/SKBD KeyboardInfoUtils: getInstance start
11-27 22:31:41.944 8461-8461/? E/SKBD KeyboardInfoUtils: sendSIPInformation state:6  isAbstractKeyboardView : true
11-27 22:31:41.946 8461-25714/? E/SKBD KeyboardInfoUtils: sending null keyboardInfo as SIP is closed
11-27 22:31:41.982 8461-8461/? E/SamsungIME: <AbstractKeyboardView> - onDraw() called
11-27 22:31:42.629 8461-8461/? E/SKBD KeyboardInfoUtils: getInstance start
11-27 22:31:42.629 8461-8461/? E/SKBD KeyboardInfoUtils: sendSIPInformation state:6  isAbstractKeyboardView : true
11-27 22:31:42.630 8461-25715/? E/SKBD KeyboardInfoUtils: sending null keyboardInfo as SIP is closed
11-27 22:31:42.800 8461-25717/? E/SamsungIME: updateShiftState() : 2
11-27 22:31:42.907 8461-8461/? E/SamsungIME: <AbstractKeyboardView> - onDraw() called
11-27 22:31:42.997 8461-8461/? E/SamsungIME: <AbstractKeyboardView> - onDraw() called
11-27 22:31:44.239 3698-3794/? E/BatteryStatsService: no controller energy info supplied
11-27 22:31:44.257 3698-3794/? E/BatteryStatsService: modem info is invalid: ModemActivityInfo{ mTimestamp=0 mSleepTimeMs=0 mIdleTimeMs=0 mTxTimeMs[]=[0, 0, 0, 0, 0] mRxTimeMs=0 mEnergyUsed=0}

From the result of 'gradle app:dependencies', it looks like the old dependencies are via in.yuvi:http.fluent (which is unmaintained). Not sure if we have to remove (replace) it or there are easier workarounds.
prodReleaseCompileClasspath - Resolved configuration for compilation for variant: prodRelease
+--- com.github.nicolas-raoul:Quadtree:ac16ea8035bf07
+--- fr.avianey.com.viewpagerindicator:library:<IP_ADDRESS>
+--- in.yuvi:http.fluent:1.3
|    +--- org.apache.httpcomponents:httpclient:4.2.2
|    |    +--- org.apache.httpcomponents:httpcore:4.2.2
|    |    +--- commons-logging:commons-logging:1.1.1
|    |    --- commons-codec:commons-codec:1.6 -> 1.10
|    --- org.apache.httpcomponents:httpmime:4.2.2
|         --- org.apache.httpcomponents:httpcore:4.2.2
+--- com.android.volley:volley:1.0.0
+--- ch.acra:acra:4.7.0
|    --- com.android.support:support-v4:23.0.1 -> 26.1.0
|         +--- com.android.support:support-compat:26.1.0
|         |    +--- com.android.support:support-annotations:26.1.0 -> 25.2.0
|         |    --- android.arch.lifecycle:runtime:1.0.0
|         |         +--- android.arch.lifecycle:common:1.0.0
|         |         --- android.arch.core:common:1.0.0
|         +--- com.android.support:support-media-compat:26.1.0
|         |    +--- com.android.support:support-annotations:26.1.0 -> 25.2.0
|         |    --- com.android.support:support-compat:26.1.0 ()
|         +--- com.android.support:support-core-utils:26.1.0
|         |    +--- com.android.support:support-annotations:26.1.0 -> 25.2.0
|         |    --- com.android.support:support-compat:26.1.0 ()
|         +--- com.android.support:support-core-ui:26.1.0
|         |    +--- com.android.support:support-annotations:26.1.0 -> 25.2.0
|         |    --- com.android.support:support-compat:26.1.0 ()
|         --- com.android.support:support-fragment:26.1.0
|              +--- com.android.support:support-compat:26.1.0 ()
|              +--- com.android.support:support-core-ui:26.1.0 ()
|              --- com.android.support:support-core-utils:26.1.0 ()
+--- org.mediawiki:api:1.3
|    --- in.yuvi:http.fluent:1.3 ()
+--- commons-codec:commons-codec:1.10
+--- com.github.pedrovgs:renderers:3.3.3
|    --- com.android.support:recyclerview-v7:25.3.1 -> 26.1.0
|         +--- com.android.support:support-annotations:26.1.0 -> 25.2.0
|         +--- com.android.support:support-compat:26.1.0 ()
|         --- com.android.support:support-core-ui:26.1.0 ()
+--- com.google.code.gson:gson:2.8.1
+--- com.jakewharton.timber:timber:4.5.1
+--- info.debatty:java-string-similarity:0.24
|    --- net.jcip:jcip-annotations:1.0
+--- com.mapbox.mapboxsdk:mapbox-android-sdk:5.1.0
|    +--- com.android.support:support-annotations:25.3.1 -> 25.2.0
|    +--- com.android.support:support-v4:25.3.1 -> 26.1.0 ()
|    +--- com.android.support:design:25.3.1 -> 26.1.0
|    |    +--- com.android.support:support-v4:26.1.0 ()
|    |    +--- com.android.support:appcompat-v7:26.1.0
|    |    |    +--- com.android.support:support-annotations:26.1.0 -> 25.2.0
|    |    |    +--- com.android.support:support-v4:26.1.0 ()
|    |    |    +--- com.android.support:support-vector-drawable:26.1.0
|    |    |    |    +--- com.android.support:support-annotations:26.1.0 -> 25.2.0
|    |    |    |    --- com.android.support:support-compat:26.1.0 ()
|    |    |    --- com.android.support:animated-vector-drawable:26.1.0
|    |    |         +--- com.android.support:support-vector-drawable:26.1.0 ()
|    |    |         --- com.android.support:support-core-ui:26.1.0 ()
|    |    +--- com.android.support:recyclerview-v7:26.1.0 ()
|    |    --- com.android.support:transition:26.1.0
|    |         +--- com.android.support:support-annotations:26.1.0 -> 25.2.0
|    |         --- com.android.support:support-v4:26.1.0 ()
|    +--- com.jakewharton.timber:timber:4.5.1
|    +--- com.squareup.okhttp3:okhttp:3.7.0 -> 3.8.1
|    |    --- com.squareup.okio:okio:1.13.0
|    +--- com.mapzen.android:lost:1.1.1
|    |    +--- com.android.support:appcompat-v7:22.2.0 -> 26.1.0 ()
|    |    --- com.android.support:support-v4:22.2.0 -> 26.1.0 ()
|    +--- com.mapbox.mapboxsdk:mapbox-java-geojson:2.1.3
|    |    +--- com.mapbox.mapboxsdk:mapbox-java-core:2.1.3
|    |    --- com.google.code.gson:gson:2.8.0 -> 2.8.1
|    --- com.mapbox.mapboxsdk:mapbox-android-telemetry:2.1.3
|         +--- com.android.support:appcompat-v7:25.1.0 -> 26.1.0 ()
|         --- com.squareup.okhttp3:okhttp:3.6.0 -> 3.8.1 ()
+--- com.android.support:support-v4:26.1.0 ()
+--- com.android.support:appcompat-v7:26.1.0 ()
+--- com.android.support:design:26.1.0 ()
+--- com.android.support:cardview-v7:26.1.0
|    --- com.android.support:support-annotations:26.1.0 -> 25.2.0
+--- com.jakewharton:butterknife:8.6.0
|    +--- com.jakewharton:butterknife-annotations:8.6.0
|    |    --- com.android.support:support-annotations:25.1.0 -> 25.2.0
|    +--- com.android.support:support-annotations:25.1.0 -> 25.2.0
|    --- com.android.support:support-compat:25.1.0 -> 26.1.0 ()
+--- com.squareup.okhttp3:okhttp:3.8.1 ()
+--- com.squareup.okio:okio:1.13.0
+--- io.reactivex.rxjava2:rxandroid:2.0.1
|    --- io.reactivex.rxjava2:rxjava:2.0.1 -> 2.1.2
|         --- org.reactivestreams:reactive-streams:1.0.0
+--- io.reactivex.rxjava2:rxjava:2.1.2 ()
+--- com.jakewharton.rxbinding2:rxbinding:2.0.0
|    +--- io.reactivex.rxjava2:rxjava:2.0.2 -> 2.1.2 ()
|    +--- io.reactivex.rxjava2:rxandroid:2.0.0 -> 2.0.1 ()
|    --- com.android.support:support-annotations:25.1.1 -> 25.2.0
+--- com.jakewharton.rxbinding2:rxbinding-support-v4:2.0.0
|    +--- com.jakewharton.rxbinding2:rxbinding:2.0.0 ()
|    --- com.android.support:support-core-ui:25.1.1 -> 26.1.0 ()
+--- com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.0.0
|    +--- com.jakewharton.rxbinding2:rxbinding:2.0.0 ()
|    --- com.android.support:appcompat-v7:25.1.1 -> 26.1.0 ()
+--- com.jakewharton.rxbinding2:rxbinding-design:2.0.0
|    +--- com.jakewharton.rxbinding2:rxbinding:2.0.0 ()
|    --- com.android.support:design:25.1.1 -> 26.1.0 ()
+--- com.facebook.fresco:fresco:1.3.0
|    +--- com.facebook.fresco:drawee:1.3.0
|    |    --- com.facebook.fresco:fbcore:1.3.0
|    +--- com.facebook.fresco:fbcore:1.3.0
|    --- com.facebook.fresco:imagepipeline:1.3.0
|         +--- com.parse.bolts:bolts-tasks:1.4.0
|         +--- com.facebook.fresco:fbcore:1.3.0
|         --- com.facebook.fresco:imagepipeline-base:1.3.0
|              +--- com.parse.bolts:bolts-tasks:1.4.0
|              --- com.facebook.fresco:fbcore:1.3.0
+--- com.facebook.stetho:stetho:1.5.0
|    +--- commons-cli:commons-cli:1.2
|    --- com.google.code.findbugs:jsr305:2.0.1 -> 3.0.1
+--- com.google.dagger:dagger:2.11
|    --- javax.inject:javax.inject:1
+--- com.google.dagger:dagger-android-support:2.11
|    +--- com.google.dagger:dagger:2.11 ()
|    +--- com.google.dagger:dagger-android:2.11
|    |    +--- com.google.dagger:dagger:2.11 ()
|    |    +--- com.android.support:support-annotations:25.0.0 -> 25.2.0
|    |    +--- com.google.code.findbugs:jsr305:3.0.1
|    |    --- javax.inject:javax.inject:1
|    +--- com.android.support:appcompat-v7:25.0.0 -> 26.1.0 ()
|    +--- com.android.support:support-annotations:25.0.0 -> 25.2.0
|    +--- com.android.support:support-v4:25.0.0 -> 26.1.0 (*)
|    +--- com.google.code.findbugs:jsr305:3.0.1
|    --- javax.inject:javax.inject:1
--- com.squareup.leakcanary:leakcanary-android-no-op:1.5.1

Possibly worth noting that even with Dagger reverted (on my fork), the ProdRelease build fails with
Error:Execution failed for task ':app:kaptProdReleaseKotlin'.
> Internal compiler error. See log for more details

I reverted the beta: https://github.com/misaochan/apps-android-commons/tree/D-commit
Currently, it seems that in order to release any of the new features post-2.5.0, we will need to:

Fix conflicts between Dagger and commons-logging and httpclient, or else not use Dagger
Fix error with kaptProdReleaseKotlin
Re-test ProdRelease build (I am hoping we can find a way for other devs to test release builds as well)

Did you post any question on StackOverflow about this? If yes, please post the URL here so that I can bounty it :-)

@nicolas-raoul Do you know if it's OK for us to link to our GitHub repo on StackOverflow? The issue is quite specific and there's too much relevant code for me to copy to StackOverflow.

The kapt failure looks like the build.gradle dependency was removed but there are other commits that needed to come out as well.
One of the changes back in Android 6.0 was to remove the Apache HTTP Client API

Android 6.0 release removes support for the Apache HTTP client. If your app is using this client and targets Android 2.3 (API level 9) or higher, use the HttpURLConnection class instead. This API is more efficient because it reduces network use through transparent compression and response caching, and minimizes power consumption. To continue using the Apache HTTP APIs, you must first declare the following compile-time dependency in your build.gradle file:
android {
useLibrary 'org.apache.http.legacy'
}

Is this what we're seeing?

@psh Thanks for the suggestion. We already do have useLibrary 'org.apache.http.legacy' in our current build.gradle file, though... or do you mean we should find a way to remove dependency on it?

@misaochan Yes the question should include all relevant elements, answerers should not have to click any link. It can be a good opportunity to check everything and make clear what the problem is with all of the minimum conditions.

Checking out with detached HEAD at https://github.com/commons-app/apps-android-commons/commit/75496388ce96eb532334f5f7efe59fb3a3d05e20 yields no such issues when tested. So the issue would lie with commits made after that point, most likely #932 is my guess. @maskaravivek , could you please take a look at this, as you made most of the recent changes to Gradle?
Interestingly, checking out the detached HEAD at https://github.com/commons-app/apps-android-commons/commit/061bb75ab835b7178aa1359589cbffa8f83b7efa still causes the errors with commons-logging and httpclient (described in my first post)... so it seems Dagger might not be at fault after all. However we cannot discount the possibility of both being at fault.
@nicolas-raoul I am trying to think of how to describe this in SO, but I think it is really difficult to explain to someone who has no familiarity with our repo. Hopefully after we do further investigation we can write a better summary if still needed.

I can confirm that #932 is a contributing factor. Checking out the merge of #929 (the PR merged directly before 932) produces no errors, but checking out the merge of #932 does.

The source of crash is definitely dagger but am not sure why it is happening just on release builds. I tried disabling prodguard and minification on release build(just for finding the root cause) but that too didnt help.
This is the stacktrace.
FATAL EXCEPTION: main
Process: fr.free.nrw.commons, PID: 5632
java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.free.nrw.commons/fr.free.nrw.commons.contributions.ContributionsActivity}: java.lang.NullPointerException: fr.free.nrw.commons.CommonsApplication.activityInjector() returned null
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3160)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3275)
at android.app.ActivityThread.access$1000(ActivityThread.java:218)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1744)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:7007)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
Caused by: java.lang.NullPointerException: fr.free.nrw.commons.CommonsApplication.activityInjector() returned null
at dagger.internal.Preconditions.checkNotNull(Preconditions.java:79)
at dagger.android.AndroidInjection.inject(AndroidInjection.java:56)
at fr.free.nrw.commons.contributions.ContributionsActivity.onCreate(ContributionsActivity.java:142)
at android.app.Activity.performCreate(Activity.java:6609)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1134)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3113)

@whym @psh Do you guys have any insights on it?

To recap my conversation with Vivek, it seems that there are two separate issues here:

Dagger causing crashes in release build. We are trying to find a solution for this (because ideally we would like to keep using Dagger instead of wasting time reverting many scattered commits), but if we are unable to find one within the week, we may have to revert in order to get the release out to users.

The errors with httpclient and commons-logging that existed after merging #932 but prior to Dagger implementation. Hopefully the exclude solution mentioned above will suffice for fixing those.

After investigating a bit, i found that there seems to be some issue with fresco initialisations that is causing the crashes.
FATAL EXCEPTION: main
                                                 Process: fr.free.nrw.commons, PID: 3772
                                                 android.view.InflateException: Binary XML file line #21: Error inflating class fr.free.nrw.commons.MediaWikiImageView
                                                     at android.view.LayoutInflater.createView(LayoutInflater.java:640)
                                                     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:750)
                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:813)
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:511)
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:415)
                                                     at fr.free.nrw.commons.contributions.ContributionsListAdapter.newView(ContributionsListAdapter.java:21)
                                                     at android.support.v4.widget.CursorAdapter.getView(CursorAdapter.java:269)
                                                     at android.widget.AbsListView.obtainView(AbsListView.java:2828)
                                                     at android.widget.GridView.onMeasure(GridView.java:1064)
                                                     at android.view.View.measure(View.java:18926)
                                                     at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:728)
                                                     at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:464)
                                                     at android.view.View.measure(View.java:18926)
                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5908)
                                                     at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
                                                     at android.view.View.measure(View.java:18926)
                                                     at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:728)
                                                     at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:464)
                                                     at android.view.View.measure(View.java:18926)
                                                     at android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:1060)
                                                     at android.view.View.measure(View.java:18926)
                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5908)
                                                     at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
                                                     at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:139)
                                                     at android.view.View.measure(View.java:18926)
                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5908)
                                                     at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1435)
                                                     at android.widget.LinearLayout.measureVertical(LinearLayout.java:721)
                                                     at android.widget.LinearLayout.onMeasure(LinearLayout.java:612)
                                                     at android.view.View.measure(View.java:18926)
                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5908)
                                                     at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
                                                     at android.view.View.measure(View.java:18926)
                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5908)
                                                     at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1435)
                                                     at android.widget.LinearLayout.measureVertical(LinearLayout.java:721)
                                                     at android.widget.LinearLayout.onMeasure(LinearLayout.java:612)
                                                     at android.view.View.measure(View.java:18926)
                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5908)
                                                     at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
                                                     at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:3076)
                                                     at android.view.View.measure(View.java:18926)
                                                     at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2411)
                                                     at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1429)
                                                     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1677)
                                                     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1314)
                                                     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7057)
                                                     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:829)
                                                     at android.view.Choreographer.doCallbacks(Choreographer.java:606)
                                                     at android.view.Choreographer.doFrame(Choreographer.java:576)
                                                     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:815)
                                                     at android.os.Handler.handleCallback(Handler.java:739)
                                                     at android.os.Handler.dispatchMessage(Handler.java:95)
                                                     at android.os.Looper.loop(Looper.java:145)
                                                     at android.app.ActivityThread.main(ActivityThread.java:7007)
                                                     at java.lang.reflect.Method.invoke(Native Method)
                                                     at java.lang.reflect.Method.invoke(Method.java:372)
                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
                                                 	at com.android.internal.os.ZygoteInit.

Fixing the fresco init issue on master wasn't helping as master still has a public constructor in CommonsApplication that provides an instance of application.
I observed that this approach was now giving trouble with a mix of dagger and non dagger usage of CommonApplication.
So I tried working upon @psh's PR. Running a release version of his PR was also giving the same error. But putting my fix over his PR apparently solves the issue.

Here's a reference to the Fresco init issue.
So to fix the issue, am doing two things,

Merging @psh's PR
Submitting my PR for the release fix.


JUnit Tests fails if default locale has a different number represenation as US locale

I've checked out the repository and I've tried to run mvn clean install -P pre-release. Then some BigDecimal test fails, because my default locale is "de_DE" and the method convertToBigDecimal is using the default locale.
I've created a fix https://github.com/orisvogel/karate/commit/892ffe621254b3ac2c48a14dedaac8687524de03 for this problem so that the conversion no longer depends on the default locale.
Can I create an PR for this Problem?

@orisvogel thanks for the PR !

1.0 released


Feature: Text sequences maxlenghts taken into account for building

The text representations learn from all words and chars from full-length texts but then trims to sequence max length, which may change the distribution. To learn the most accurate distribution corpuses should be trimmed too.

Solved in #16


[Bug]: when i installed spu, it output warning

Issue Type
Build/Install
Modules Involved
Others
Have you reproduced the bug with SPU HEAD?
Yes
Have you searched existing issues?
Yes
SPU Version
0.9.3.dev20241013
OS Platform and Distribution
Ubuntu 18.04.6 LTS
Python Version
3.9.20
Compiler Version
GCC11.2.0
Current Behavior?
dear teachers, when i installed spu by guideline and run example gpt2, it output warning as follow. will this affect the runtime? could you please give me some advice. Thank you!!
[2024-10-18 10:20:59.247] [warning] [openssl_factory.cc:83] Yacl has been configured to use Yacl's entropy source, but unable to find one. Fallback to use openssl's default entropy srouce
Standalone code to reproduce the issue
print("A bug")

Relevant log output
No response

Issue Type
Build/Install
Modules Involved
Others
Have you reproduced the bug with SPU HEAD?
Yes
Have you searched existing issues?
Yes
SPU Version
0.9.3.dev20241013
OS Platform and Distribution
Ubuntu 18.04.6 LTS
Python Version
3.9.20
Compiler Version
GCC11.2.0
Current Behavior?
dear teachers, when i installed spu by guideline and run example gpt2, it output warning as follow.
[2024-10-18 10:20:59.247] [warning] [openssl_factory.cc:83] Yacl has been configured to use Yacl's entropy source, but unable to find one. Fallback to use openssl's default entropy srouce

There is a observatiion: i did not install yacl, but i can still run example gpt2 successfully. A question is : In many files, yacl is imported, but the example still run successfully.
So i am curious about when the yacl didnot install successfully, the system will use openssl and overlook yacl?
And i wanna know how the example run when yacl didnot be installed?
could you please give me some advice. Thanks very much!!

Standalone code to reproduce the issue
print("A bug")

Relevant log output
No response

I don't get your point. YACL is a C++ crypto lib used by SPU, not a Python package.

I don't get your point. YACL is a C++ crypto lib used by SPU, not a Python package.

thanks very much!!  since i didnot install lib yacl, spu output "Yacl has been configured to use Yacl's entropy source, but unable to find one. Fallback to use openssl's default entropy srouce".
Though warning above, the spu example still run successfully. But in spu, many python code include yacl.
For example, in protocol.h:
#pragma once
#include "yacl/link/link.h"
#include "libspu/core/context.h"
So I'm a little confused, because the spu recognizes that yacl is not installed, so the python program's yacl function has been replaced with an openssl implementation?
Thanks very much!!!


listen to changes from isAlwaysOnTop

is there any way to detect when the state of this changes?
for example when another application also sets its state to setAlwaysOnTop

On Windows, when multiple applications are set to always on top, they won't affect each other. Both will be topmost simultaneously. At least that's what I get from my test.

I don't think this is necessary. The system allows multiple applications to set AlwaysOnTop. I think it may be necessary to listen to the blur event and do something when the window is focused.


Re-run failures only

Is it possible to re-run the tests limited to those that failed on the last execution?

@gap777 I use rspec --only-failures for that. Currently, this is not supported with turbo_tests.
I expect that passing the extra options to RSpec will be enough to support this feature (https://github.com/serpapi/turbo_tests/issues/14#issuecomment-898405912).

I work with @gap777.
I realized that rspec --only-failures couldn't find failed examples reliably because the parallel runners invoked by turbo_tests were writing to the same status file and clobbering each other's output. I changed our spec/spec_helper.rb to use a different file name per runner:
  config.example_status_persistence_file_path = "spec/examples#{ENV['TEST_ENV_NUMBER']}.txt"

We already use a shell script to invoke turbo_tests, so I added a liine to consolidate those files at the end:
cat spec/examples?*.txt > spec/examples.txt

So for now, we can at least run (non-parallel) rspec --only-failures after turbo_tests.

@douglasshuang Thanks to your feedback!
Please note that combining multiple examples*.txt may lead to the RSpec failure. RSpec status persistence files have a header which is expected to be present once (ref: ExampleStatusParser#initialize).
# Concatenate multiple files with the same header
# https://unix.stackexchange.com/a/170692/33308
$ (head -2 spec/examples1.txt && tail -n +3 -q spec/examples?*.txt) > spec/examples.txt

# Checking it worked
$ wc -l spec/examples*.txt
   73015 spec/examples.txt
   46467 spec/examples1.txt
   26550 spec/examples2.txt
  146032 total

# Header is present only once
$ grep example_id spec/examples*.txt
spec/examples.txt:example_id                                                                                | status  | run_time               |
spec/examples1.txt:example_id                                                                                | status  | run_time               |
spec/examples2.txt:example_id                                                                                | status  | run_time               |

@ilyazub Thank you very much for the refinement!

@douglasshuang Hey, what was your final solution to run the failed specs in nonparallel?
I would like to talk to you about your parallel process suit. We can do it via email, discord, or whatever you find best
Really appreciate, thanks

@santigolucass Hi, here is the complete solution:
First, we configure RSpec to use a different status persistence file per test runner.
spec/spec_helper.rb:
RSpec.configure do |config|
  ...
  config.example_status_persistence_file_path = "spec/examples#{ENV['TEST_ENV_NUMBER']}.txt"
  ...
end

This produces files named as follows when running turbo_tests:

spec/examples1.txt
spec/examples2.txt
...

Then, after we run turbo_tests, we combine the files, keeping only one header line.
bin/turbo_tests:
#!/bin/bash

bundle exec turbo_tests $*
(head -n 2 spec/examples1.txt && tail -n +3 -q spec/examples?*.txt) > spec/examples.txt

Since ENV['TEST_ENV_NUMBER'] is not set when running rspec normally, it will use spec/examples.txt:
$ bundle exec rspec --only-failures # This should work as expected now


Fix: misaligned GitHub link on profile page issue 686

Hi @mkst @marijnvdwerf
Fixed #686
I have added classes "justify-center md:justify-start" to the div holding github icon and the user name in span tag
This fixed the issue

Thanks for the PR i can see the issue is fixed - just for my understanding, could you explain what the md:justify-start" class does? And why it's also needed (i.e. why doesn't tailwind's justify-center` class do enough)?

Yes Sure
The 'justify-center' class is utilized to horizontally center the content within its container along the main axis.
The 'md:justify-start' class is specifically targeting medium-sized screens (md stands for medium) and larger to horizontally align the content to the start of the container's main axis.
In short we can say that,
The justify-center class ensures default alignment of contents at center, while md:justify-start is applied for medium and larger screens to ensure alignment at the start. This approach maintains consistency across various screen sizes.

Aha, thanks for the explanation - I see that this file doesn't use any external css,hence having to be done via classes. Makes sense!


Fix GameInfo

It was printing the instance instead of resolved value

FormatTag is the better solution here. master is mostly untested right now since I just rewrote the entire API. I actually already caught this on my own but haven't fixed it yet. Thanks for the contribution tho!


image urls with GET data

Browsers like to cache files, and sometimes websites need to force them not to. One popular method is to append "?{random-string}" to the end of the file URL. This makes it look like "GET" data, and the browser realizes that it should grab a fresh copy of the file rather than use the cached copy.
However, there are (possibly?) some browser-specific issues with this:

At one time, some browsers would refuse to load "http://example.com/image.gif?12345" as an image because the URL doesn't end in ".gif". This was a while ago... 10 years maybe? Have they fixed this?
If the file in question has not changed, you usually DO want it to be cached. So the "random number" used after the "?" is usually the file's "last-modified" timestamp. If that number doesn't change, the browser uses the cached copy. However, I read somewhere (and I can't find where now - sorry) that some browsers will load a fresh copy of a file every single time if they see a "?" in the url. So, the question is: Which browsers do that?

If any browsers still care about the exact filename rather than the image's mime type that would have been a loooong time ago so not worth tracking. There's also multiple ways of telling browsers how to cache files, don't think I've heard of them loading fresh copies of files just because of the question mark. Closing this issue unless anyone can indicate otherwise.


Add CLI support

First of all, thank you for building this gem! I've been using it a lot.
I'm working with multiple JSON Schemas and its correspondent examples. In my opinion, it would be really great to add CLI support to validate payloads.
If you think this is a reasonable feature request, let me know and I can work on a PR.

Hey @joaopfernandesc—sounds good to me! Let me know if I can help. I'm thinking something simple like this?
bin/json_schemer --schema /path/to/schema.json /path/to/data.json


Fix writing of desc tag for version 2.4 profiles

The bug can be seen in Argyll's collink tool with version 2.3 profiles
from lcms. collink checks the string length inside the desc tag and compares
with the count field. collink reports then an error and stops. This patch takes
the real text length and puts it into the desc's count field, which makes
collink happy. The formal bug can be seen in Oyranos git too. Checked with
SampleICC which corrects the text count field by converting to XML and
back. Specification ICC.1:2001-04 (v2.4.0) added an example, which
suggests to do padding if any at end of the tag.
Reproduce:
$ collink lcms_profile_with_dmnd_tag_v2.icc second.icm output.icc
The change uses strlen() to obtain the count of chars.

Thank you Kai-Uwe, nice fix!


Use IAM instance profiles for S3 authentication

Instead of passing key/secret, there should be a possibility to use metadata server to retrieve key/secret from IAM instance profile. Minio supports this approach, but there's no documentation how to configure that and it doesn't work out of the box with s3:s3.amazonaws.com/bucket URL.
Probably requires moving from minio.New to minio.NewWithCredentials.

I need to look into this.

I've did a very quick test on update-minio-go branch of yours with a small change:
	iam := credentials.NewIAM("")

	client, err := minio.NewWithCredentials(cfg.Endpoint, iam, !cfg.UseHTTP, "")
	if err != nil {
		return nil, errors.Wrap(err, "minio.New")
	}

Works perfectly.

Interesting, thanks for trying. What's the parameter string you're passing to NewIAM?

Empty string. It should fetch all the required data from metadata server itself.

So, I'd be willing to merge support for IAM in, but I don't have the time to do it (and properly integrate it so that you can still give restic the credentials via the environment variables). I'd be happy to review the code and help integrating it though.

https://github.com/restic/restic/pull/1086

thanks!


Dev

Please do not open any Pull Requests to the master branch.
If you do so expect them to be closed without further notice.
Pull Requests are very weclome on the development branch.
Thank you.

Merging with all latest unit tests passing. Well done everyone.


Allow for asymmetric liquidity adds

Currently, the frontend only allows adding liquidity at exactly 50-50 by using the JoinPool msg type.  This turns into an issue because if a swap happens in the time since a user made the JoinPool tx, it would fail.
The chain also supports JoinSwaps, which would make it possible to swap to the right ratio and then add liquidity.  https://github.com/osmosis-labs/osmosis/blob/main/proto/osmosis/gamm/v1beta1/tx.proto#L126
This is a requested feature, but only low priority imo
https://twitter.com/larry0x/status/1461483020469346311

Currently in design phase. Almost complete.
Should be done by end of the month for sure.


Dark Mode text is invisible when typing

When in dark mode, the text typed for search as well as text in the history section is not shown or maybe it's white and I can't see it?

@kimonostereo Thanks for the bug report!
Hmm... works for me. Can you post a screenshot? (Blur/block out things you don’t want to be visible.)

@willhains I made a video of what I'm seeing. Maybe I'm doing something wrong on my end?
Dark Mode invisible issue

Thank you so much for that. I can reproduce it. Shouldn’t be difficult to fix; I’ll take a look this weekend. Thanks again!

Before I got a chance to finish my fix for this, @chockenberry fixed it, along with some other stuff, in #41!


image in svg not loaded

I trying to load an image in my svg:
<image width="24" height="24" x="6" y="5" href="https://s3-eu-west-1.amazonaws.com/assets.theoak.co/categories/food_and_dining.png"></image>

First I got:
ImageClass isn't a constructor
then I saw I can pass an ImageClass constructor in the options so that I tried CanvasImage.
The error is fixed but nothing hasn't been loaded.
Is ImageClass constructor supported? If so Can you show an example?
Cheers

Hi, @aboutlo
Yeah, it is indeed a bug, I fixed it in the referenced commit and published it to npm as 0.2.4.
But here is something you may need to know:
Because canvg is originally designed in browser not for node, it cannot load remote images in SVG  properly in node environment.
You need to load the images and convert to base64 string before passing to svg2img.
e.g.
var fs = require('fs');
var util = require('util');
var Image64 = require('node-base64-image');
var svg2img = require('./');

var imageUrl = 'https://www.baidu.com/img/bd_logo1.png';
// load the image, and get its base64 string
Image64.encode(imageUrl, {}, function (err, base64) {
    // convert remote image url to base64
    var svgString = util.format('<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="540" height="258" ' +
'viewBox="0 0 540 258"><image width="540" height="258" x="6" y="5" href="%s"></image></svg>', 'data:image/png;base64,' + base64.toString('base64'));
    svg2img(svgString, function(error, buffer) {
        fs.writeFileSync('foo.png', buffer);
    });
});

I also add an unit test, you can check it out here. https://github.com/fuzhenn/node-svg2img/blob/master/test/specs.js#L76
Hope it helps 🐱

Thank you @fuzhenn I appreciate you did SOOO fast :).
I see the issue, I will generate the base64 encoding before.


feat(connector): [Paypal] add support for payment and refund webhooks

Type of Change

[ ] Bugfix
[x] New feature
[ ] Enhancement
[ ] Refactoring
[ ] Dependency updates
[ ] Documentation
[ ] CI/CD

Description

add support for payment and refund webhooks for paypal. As of now source verification is set to false when additional apicall flow for verification is implemented , source verification will be taken care .
this pr also modifies connector transaction id for paypal . Before authorize_id or capture_id are stored in connector transaction id , now it's been changed to order_id(Reason : order_id is the only constant id that is being sent in webhooks)

Additional Changes

[ ] This PR modifies the API contract
[ ] This PR modifies the database schema
[ ] This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Checklist

[x] I formatted the code cargo +nightly fmt --all
[x] I addressed lints thrown by cargo clippy
[x] I reviewed the submitted code
[ ] I added unit tests for my changes where possible
[ ] I added a CHANGELOG entry if applicable

@prasunna09 Please add the query to move order_id to connector_transaction_id and connector_transaction_id to capture_id in connector_meta_data
Rest looks fine


Added support for min-height and max-height media queries

I needed min-height / max-height support for a project I am working on.
I found this pull request but it was from an old version, so I used the same technique to add min/max-height support to the latest version
https://github.com/scottjehl/Respond/pull/96

I realize this is ancient at this point, but I'm needing to support IE8 for something (I know, I know), and needing this. Could someone review the conflict and merge? IMHO this should be standard issue.


vmware-horizon-client: enable audio redirection

Motivation for this change
These library additions allow audio output and microphone input to work with remote desktops.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

:-1: My apologies for creating extra work by just missing the branch-off

Actually, since the branch-off is already missed, and nobody seems to be looking at this yet, I'm going to close. I have some other tweaks i'd like to add, so I'll just combine them and re-PR after.

I've been looking at how to enable my microphone to connect to my remote desktop myself on weekends, wondering if there's some kind of config change I needed to do on my own machine or if this was something that required revision in nixpkgs.
I got to page 9 of https://www.vmware.com/pdf/horizon-view/horizon-view-client-linux-document.pdf where I see that certain .so files are required as well as Video4Linux2 and libv4l - and I'm not entirely sure how to detect if those libs are there or not. I decided to open a ticket but it looks like this is attempting to get there, so I'm looking for the next issue on this. Thank you buckley310 for your contributions here.

This pr should make audio/video conferencing work out of the box. https://github.com/NixOS/nixpkgs/pull/149713


Federal Standard Deduction for 2023

.
http://taxsim.nber.org/out2psl/test8
includes a joint tax form with 81000 of wage income and no deductions or dependents. TaxAct shows a standard deduction of 20800 while the emulator shows  13850 for this taxpayer.

False Alarm.