Segmentation fault when reproducing Throughput Benchmark (gptj and llama are both problematic)

System Info
NVIDIA A100-SXM4-80GB
Who can help?
No response
Information

[ ] The official example scripts
[ ] My own modified scripts

Tasks

[ ] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
[ ] My own task or dataset (give details below)

Reproduction
I installed with "make -C docker release_build" and "python3 ./scripts/build_wheel.py --benchmarks --trt_root /usr/local/tensorrt", the compilation is also successful:
/code/tensorrt_llm$ python3 -c "import tensorrt_llm"
[TensorRT-LLM] TensorRT-LLM version: 0.10.0.dev2024042300
Then, I successfully built the engine with command:trtllm-build --model_config /tmp/engines/gptj/ckpt_config.json
--output_dir /tmp/engines/gptj
--paged_kv_cache disable
--context_fmha enable
--gpt_attention_plugin float16
--max_batch_size 64
--max_input_len 2048
--max_output_len 2048
--strongly_typed
[TensorRT-LLM] TensorRT-LLM version: 0.10.0.dev2024042300
[04/27/2024-12:22:17] [TRT-LLM] [I] Set bert_attention_plugin to float16.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set gpt_attention_plugin to float16.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set gemm_plugin to None.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set nccl_plugin to float16.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set lookup_plugin to None.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set lora_plugin to None.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set moe_plugin to float16.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set mamba_conv1d_plugin to float16.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set context_fmha to True.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set context_fmha_fp32_acc to False.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set paged_kv_cache to False.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set remove_input_padding to True.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set use_custom_all_reduce to True.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set multi_block_mode to False.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set enable_xqa to True.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set attention_qk_half_accumulation to False.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set tokens_per_block to 128.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set use_paged_context_fmha to False.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set use_fp8_context_fmha to False.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set use_context_fmha_for_generation to False.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set multiple_profiles to False.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set paged_state to True.
[04/27/2024-12:22:17] [TRT-LLM] [I] Set streamingllm to False.
[04/27/2024-12:22:17] [TRT-LLM] [W] remove_input_padding is enabled, while max_num_tokens is not set, setting to max_batch_sizemax_input_len.
It may not be optimal to set max_num_tokens=max_batch_sizemax_input_len when remove_input_padding is enabled, because the number of packed input tokens are very likely to be smaller, we strongly recommend to set max_num_tokens according to your workloads.
[04/27/2024-12:22:17] [TRT-LLM] [W] remove_input_padding is enabled, while opt_num_tokens is not set, setting to max_batch_size*max_beam_width.
[04/27/2024-12:22:17] [TRT] [I] [MemUsageChange] Init CUDA: CPU +14, GPU +0, now: CPU 166, GPU 4739 (MiB)
[04/27/2024-12:22:19] [TRT] [I] [MemUsageChange] Init builder kernel library: CPU +1973, GPU +350, now: CPU 2275, GPU 5089 (MiB)
[04/27/2024-12:22:19] [TRT-LLM] [I] Set nccl_plugin to None.
[04/27/2024-12:22:19] [TRT-LLM] [I] Set use_custom_all_reduce to True.
[04/27/2024-12:22:26] [TRT-LLM] [I] Build TensorRT engine Unnamed Network 0
[04/27/2024-12:22:26] [TRT] [W] Unused Input: position_ids
[04/27/2024-12:22:26] [TRT] [W] [RemoveDeadLayers] Input Tensor position_ids is unused or used only at compile-time, but is not being removed.
[04/27/2024-12:22:26] [TRT] [I] [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +1, GPU +8, now: CPU 13904, GPU 5999 (MiB)
[04/27/2024-12:22:26] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +1, GPU +10, now: CPU 13905, GPU 6009 (MiB)
[04/27/2024-12:22:26] [TRT] [W] TensorRT was linked against cuDNN 8.9.6 but loaded cuDNN 8.9.2
[04/27/2024-12:22:26] [TRT] [I] Global timing cache in use. Profiling results in this builder pass will be stored.
[04/27/2024-12:24:51] [TRT] [I] [GraphReduction] The approximate region cut reduction algorithm is called.
[04/27/2024-12:24:51] [TRT] [I] Detected 39 inputs and 29 output network tensors.
[04/27/2024-12:24:51] [TRT] [I] Total Host Persistent Memory: 21536
[04/27/2024-12:24:51] [TRT] [I] Total Device Persistent Memory: 0
[04/27/2024-12:24:51] [TRT] [I] Total Scratch Memory:<PHONE_NUMBER>
[04/27/2024-12:24:51] [TRT] [I] [BlockAssignment] Started assigning block shifts. This will take 176 steps to complete.
[04/27/2024-12:24:51] [TRT] [I] [BlockAssignment] Algorithm ShiftNTopDown took 14.0577ms to assign 15 blocks to 176 nodes requiring<PHONE_NUMBER>8 bytes.
[04/27/2024-12:24:51] [TRT] [I] Total Activation Memory:<PHONE_NUMBER>8
[04/27/2024-12:25:34] [TRT] [I] [GraphReduction] The approximate region cut reduction algorithm is called.
[04/27/2024-12:25:34] [TRT] [I] Detected 39 inputs and 29 output network tensors.
[04/27/2024-12:25:34] [TRT] [I] Total Host Persistent Memory: 21536
[04/27/2024-12:25:34] [TRT] [I] Total Device Persistent Memory: 0
[04/27/2024-12:25:34] [TRT] [I] Total Scratch Memory: 34087808
[04/27/2024-12:25:34] [TRT] [I] [BlockAssignment] Started assigning block shifts. This will take 176 steps to complete.
[04/27/2024-12:25:34] [TRT] [I] [BlockAssignment] Algorithm ShiftNTopDown took 5.7015ms to assign 15 blocks to 176 nodes requiring 38286336 bytes.
[04/27/2024-12:25:34] [TRT] [I] Total Activation Memory: 38286336
[04/27/2024-12:25:37] [TRT] [I] Total Weights Memory:<PHONE_NUMBER>8
[04/27/2024-12:25:37] [TRT] [I] [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +8, now: CPU 14094, GPU 21159 (MiB)
[04/27/2024-12:25:37] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +0, GPU +10, now: CPU 14094, GPU 21169 (MiB)
[04/27/2024-12:25:37] [TRT] [W] TensorRT was linked against cuDNN 8.9.6 but loaded cuDNN 8.9.2
[04/27/2024-12:25:37] [TRT] [I] Engine generation completed in 191.336 seconds.
[04/27/2024-12:25:37] [TRT] [I] [MemUsageStats] Peak memory usage of TRT CPU/GPU memory allocators: CPU 0 MiB, GPU 15126 MiB
[04/27/2024-12:25:37] [TRT] [I] [MemUsageChange] TensorRT-managed allocation in building engine: CPU +0, GPU +15126, now: CPU 0, GPU 15126 (MiB)
[04/27/2024-12:25:44] [TRT] [I] [MemUsageStats] Peak memory usage during Engine building and serialization: CPU: 33277 MiB
[04/27/2024-12:25:44] [TRT-LLM] [I] Total time of building Unnamed Network 0: 00:03:18
[04/27/2024-12:25:44] [TRT] [I] Serialized 2238 bytes of code generator cache.
[04/27/2024-12:25:44] [TRT] [I] Serialized 328602 bytes of compilation cache.
[04/27/2024-12:25:44] [TRT] [I] Serialized 4 timing cache entries
[04/27/2024-12:25:44] [TRT-LLM] [I] Timing cache serialized to model.cache
[04/27/2024-12:25:44] [TRT-LLM] [I] Serializing engine to /tmp/engines/gptj/rank0.engine...
[04/27/2024-12:25:51] [TRT-LLM] [I] Engine serialized. Total time: 00:00:06
[04/27/2024-12:25:52] [TRT-LLM] [I] Total time of building all engines: 00:03:35
However, when I run the code (I put it in a run_gptj_throughput.sh):
in_out_sizes=("64:128,128" "64:128,2048" "64:2048,128" "64:2048,2048")
for in_out in ${in_out_sizes[@]}
do
batch_size=$(echo $in_out | awk -F':' '{ print $1 }')
in_out_dims=$(echo $in_out | awk -F':' '{ print $2 }')
echo "BS: $batch_size, ISL/OSL: $in_out_dims"
./cpp/build/benchmarks/gptSessionBenchmark --engine_dir /tmp/engines/gptj/ --warm_up 1 --batch_size $batch_size --duration 0 --num_runs 5 --input_output_len $in_out_dims

done
The error reports:
BS: 64, ISL/OSL: 128,128
[TensorRT-LLM][ERROR] 1: [stdArchiveReader.cpp::stdArchiveReaderInitCommon::47] Error Code 1: Serialization (Serialization assertion stdVersionRead == kSERIALIZATION_VERSION failed.Version tag does not match. Note: Current Version: 226, Serialized Engine Version: 228)
[ptg-ai-a100-01-devel:749  :0:749] Caught signal 11 (Segmentation fault: address not mapped to object at address 0x8)
==== backtrace (tid:    749) ====
0 0x0000000000042520 __sigaction()  ???:0
1 0x00000000023e020f tensorrt_llm::runtime::TllmRuntime::TllmRuntime()  ???:0
2 0x000000000238f2d6 tensorrt_llm::runtime::GptSession::GptSession()  ???:0
3 0x000000000001a872 main()  ???:0
4 0x0000000000029d90 __libc_init_first()  ???:0
5 0x0000000000029e40 __libc_start_main()  ???:0
6 0x000000000001e0e5 _start()  ???:0
[ptg-ai-a100-01-devel:00749] *** Process received signal ***
[ptg-ai-a100-01-devel:00749] Signal: Segmentation fault (11)
[ptg-ai-a100-01-devel:00749] Signal code:  (-6)
[ptg-ai-a100-01-devel:00749] Failing at address: 0x41a000002ed
[ptg-ai-a100-01-devel:00749] [ 0] /usr/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f0704dea520]
[ptg-ai-a100-01-devel:00749] [ 1] /code/tensorrt_llm/cpp/build/tensorrt_llm/libtensorrt_llm.so(_ZN12tensorrt_llm7runtime11TllmRuntimeC2EPKvmRN8nvinfer17ILoggerE+0x1ef)[0x7f070760a20f]
[ptg-ai-a100-01-devel:00749] [ 2] /code/tensorrt_llm/cpp/build/tensorrt_llm/libtensorrt_llm.so(_ZN12tensorrt_llm7runtime10GptSessionC2ERKNS1_6ConfigERKNS0_11ModelConfigERKNS0_11WorldConfigEPKvmSt10shared_ptrIN8nvinfer17ILoggerEE+0x3a6)[0x7f07075b92d6]
[ptg-ai-a100-01-devel:00749] [ 3] ./cpp/build/benchmarks/gptSessionBenchmark(+0x1a872)[0x555c25a97872]
[ptg-ai-a100-01-devel:00749] [ 4] /usr/lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f0704dd1d90]
[ptg-ai-a100-01-devel:00749] [ 5] /usr/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f0704dd1e40]
[ptg-ai-a100-01-devel:00749] [ 6] ./cpp/build/benchmarks/gptSessionBenchmark(+0x1e0e5)[0x555c25a9b0e5]
[ptg-ai-a100-01-devel:00749] *** End of error message ***
run_gptj_throughput.sh: line 2:   749 Segmentation fault      ./cpp/build/benchmarks/gptSessionBenchmark --engine_dir /tmp/engines/gptj/ --warm_up 1 --batch_size $batch_size --duration 0 --num_runs 5 --input_output_len $in_out_dims
BS: 64, ISL/OSL: 128,2048
[TensorRT-LLM][ERROR] 1: [stdArchiveReader.cpp::stdArchiveReaderInitCommon::47] Error Code 1: Serialization (Serialization assertion stdVersionRead == kSERIALIZATION_VERSION failed.Version tag does not match. Note: Current Version: 226, Serialized Engine Version: 228)
[ptg-ai-a100-01-devel:766  :0:766] Caught signal 11 (Segmentation fault: address not mapped to object at address 0x8)
==== backtrace (tid:    766) ====
0 0x0000000000042520 __sigaction()  ???:0
1 0x00000000023e020f tensorrt_llm::runtime::TllmRuntime::TllmRuntime()  ???:0
2 0x000000000238f2d6 tensorrt_llm::runtime::GptSession::GptSession()  ???:0
3 0x000000000001a872 main()  ???:0
4 0x0000000000029d90 __libc_init_first()  ???:0
5 0x0000000000029e40 __libc_start_main()  ???:0
6 0x000000000001e0e5 _start()  ???:0
[ptg-ai-a100-01-devel:00766] *** Process received signal ***
[ptg-ai-a100-01-devel:00766] Signal: Segmentation fault (11)
[ptg-ai-a100-01-devel:00766] Signal code:  (-6)
[ptg-ai-a100-01-devel:00766] Failing at address: 0x41a000002fe
[ptg-ai-a100-01-devel:00766] [ 0] /usr/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f16c595d520]
[ptg-ai-a100-01-devel:00766] [ 1] /code/tensorrt_llm/cpp/build/tensorrt_llm/libtensorrt_llm.so(_ZN12tensorrt_llm7runtime11TllmRuntimeC2EPKvmRN8nvinfer17ILoggerE+0x1ef)[0x7f16c817d20f]
[ptg-ai-a100-01-devel:00766] [ 2] /code/tensorrt_llm/cpp/build/tensorrt_llm/libtensorrt_llm.so(_ZN12tensorrt_llm7runtime10GptSessionC2ERKNS1_6ConfigERKNS0_11ModelConfigERKNS0_11WorldConfigEPKvmSt10shared_ptrIN8nvinfer17ILoggerEE+0x3a6)[0x7f16c812c2d6]
[ptg-ai-a100-01-devel:00766] [ 3] ./cpp/build/benchmarks/gptSessionBenchmark(+0x1a872)[0x5647a996c872]
[ptg-ai-a100-01-devel:00766] [ 4] /usr/lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f16c5944d90]
[ptg-ai-a100-01-devel:00766] [ 5] /usr/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f16c5944e40]
[ptg-ai-a100-01-devel:00766] [ 6] ./cpp/build/benchmarks/gptSessionBenchmark(+0x1e0e5)[0x5647a99700e5]
[ptg-ai-a100-01-devel:00766] *** End of error message ***
run_gptj_throughput.sh: line 2:   766 Segmentation fault      ./cpp/build/benchmarks/gptSessionBenchmark --engine_dir /tmp/engines/gptj/ --warm_up 1 --batch_size $batch_size --duration 0 --num_runs 5 --input_output_len $in_out_dims
BS: 64, ISL/OSL: 2048,128
[TensorRT-LLM][ERROR] 1: [stdArchiveReader.cpp::stdArchiveReaderInitCommon::47] Error Code 1: Serialization (Serialization assertion stdVersionRead == kSERIALIZATION_VERSION failed.Version tag does not match. Note: Current Version: 226, Serialized Engine Version: 228)
[ptg-ai-a100-01-devel:783  :0:783] Caught signal 11 (Segmentation fault: address not mapped to object at address 0x8)
==== backtrace (tid:    783) ====
0 0x0000000000042520 __sigaction()  ???:0
1 0x00000000023e020f tensorrt_llm::runtime::TllmRuntime::TllmRuntime()  ???:0
2 0x000000000238f2d6 tensorrt_llm::runtime::GptSession::GptSession()  ???:0
3 0x000000000001a872 main()  ???:0
4 0x0000000000029d90 __libc_init_first()  ???:0
5 0x0000000000029e40 __libc_start_main()  ???:0
6 0x000000000001e0e5 _start()  ???:0
[ptg-ai-a100-01-devel:00783] *** Process received signal ***
[ptg-ai-a100-01-devel:00783] Signal: Segmentation fault (11)
[ptg-ai-a100-01-devel:00783] Signal code:  (-6)
[ptg-ai-a100-01-devel:00783] Failing at address: 0x41a0000030f
[ptg-ai-a100-01-devel:00783] [ 0] /usr/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7feeac07b520]
[ptg-ai-a100-01-devel:00783] [ 1] /code/tensorrt_llm/cpp/build/tensorrt_llm/libtensorrt_llm.so(_ZN12tensorrt_llm7runtime11TllmRuntimeC2EPKvmRN8nvinfer17ILoggerE+0x1ef)[0x7feeae89b20f]
[ptg-ai-a100-01-devel:00783] [ 2] /code/tensorrt_llm/cpp/build/tensorrt_llm/libtensorrt_llm.so(_ZN12tensorrt_llm7runtime10GptSessionC2ERKNS1_6ConfigERKNS0_11ModelConfigERKNS0_11WorldConfigEPKvmSt10shared_ptrIN8nvinfer17ILoggerEE+0x3a6)[0x7feeae84a2d6]
[ptg-ai-a100-01-devel:00783] [ 3] ./cpp/build/benchmarks/gptSessionBenchmark(+0x1a872)[0x55c3e4cc8872]
[ptg-ai-a100-01-devel:00783] [ 4] /usr/lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7feeac062d90]
[ptg-ai-a100-01-devel:00783] [ 5] /usr/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7feeac062e40]
[ptg-ai-a100-01-devel:00783] [ 6] ./cpp/build/benchmarks/gptSessionBenchmark(+0x1e0e5)[0x55c3e4ccc0e5]
[ptg-ai-a100-01-devel:00783] *** End of error message ***
run_gptj_throughput.sh: line 2:   783 Segmentation fault      ./cpp/build/benchmarks/gptSessionBenchmark --engine_dir /tmp/engines/gptj/ --warm_up 1 --batch_size $batch_size --duration 0 --num_runs 5 --input_output_len $in_out_dims
BS: 64, ISL/OSL: 2048,2048
[TensorRT-LLM][ERROR] 1: [stdArchiveReader.cpp::stdArchiveReaderInitCommon::47] Error Code 1: Serialization (Serialization assertion stdVersionRead == kSERIALIZATION_VERSION failed.Version tag does not match. Note: Current Version: 226, Serialized Engine Version: 228)
[ptg-ai-a100-01-devel:800  :0:800] Caught signal 11 (Segmentation fault: address not mapped to object at address 0x8)
==== backtrace (tid:    800) ====
0 0x0000000000042520 __sigaction()  ???:0
1 0x00000000023e020f tensorrt_llm::runtime::TllmRuntime::TllmRuntime()  ???:0
2 0x000000000238f2d6 tensorrt_llm::runtime::GptSession::GptSession()  ???:0
3 0x000000000001a872 main()  ???:0
4 0x0000000000029d90 __libc_init_first()  ???:0
5 0x0000000000029e40 __libc_start_main()  ???:0
6 0x000000000001e0e5 _start()  ???:0
[ptg-ai-a100-01-devel:00800] *** Process received signal ***
[ptg-ai-a100-01-devel:00800] Signal: Segmentation fault (11)
[ptg-ai-a100-01-devel:00800] Signal code:  (-6)
[ptg-ai-a100-01-devel:00800] Failing at address: 0x41a00000320
[ptg-ai-a100-01-devel:00800] [ 0] /usr/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f888a4dc520]
[ptg-ai-a100-01-devel:00800] [ 1] /code/tensorrt_llm/cpp/build/tensorrt_llm/libtensorrt_llm.so(_ZN12tensorrt_llm7runtime11TllmRuntimeC2EPKvmRN8nvinfer17ILoggerE+0x1ef)[0x7f888ccfc20f]
[ptg-ai-a100-01-devel:00800] [ 2] /code/tensorrt_llm/cpp/build/tensorrt_llm/libtensorrt_llm.so(_ZN12tensorrt_llm7runtime10GptSessionC2ERKNS1_6ConfigERKNS0_11ModelConfigERKNS0_11WorldConfigEPKvmSt10shared_ptrIN8nvinfer17ILoggerEE+0x3a6)[0x7f888ccab2d6]
[ptg-ai-a100-01-devel:00800] [ 3] ./cpp/build/benchmarks/gptSessionBenchmark(+0x1a872)[0x55bf26684872]
[ptg-ai-a100-01-devel:00800] [ 4] /usr/lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f888a4c3d90]
[ptg-ai-a100-01-devel:00800] [ 5] /usr/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f888a4c3e40]
[ptg-ai-a100-01-devel:00800] [ 6] ./cpp/build/benchmarks/gptSessionBenchmark(+0x1e0e5)[0x55bf266880e5]
[ptg-ai-a100-01-devel:00800] *** End of error message ***
run_gptj_throughput.sh: line 2:   800 Segmentation fault      ./cpp/build/benchmarks/gptSessionBenchmark --engine_dir /tmp/engines/gptj/ --warm_up 1 --batch_size $batch_size --duration 0 --num_runs 5 --input_output_len $in_out_dims
Can anyone help me with this issue? Thank you very much.

@shixuan94 Could you use the latest version of TrtLLM and the gptManagerBenchmark.cpp to benchmark your application?


chore(Mathlib/FieldTheory/RatFunc): change from elab to macro in custom tactic

This PR switches a custom tactic, used just in RatFunc, to a simple macro.
Although this is quite straightforward, this is my first "official" metaprogramming in Lean4, so any kind of feedback is more than welcome!

Seems fine. :-) Not entirely sure why you wanted to make the change, but okay!
bors merge

@semorrison, I did not reply to your comment earlier: the "improvement" is, I think, that macro expansions are "softer" than elaborating.


upgrade sqlite package to 5.1.2

this upgrade was triggered by an error during jet install on ubuntu:
npm ERR! node-pre-gyp WARN Pre-built binaries not found for<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(node-v111 ABI, glibc) (falling back to source compile with node-gyp)
package binary wasn't found in the repo, so npm was building the library from scratch. this caused cascading errors during the build.
npm was able to download the binaries with<EMAIL_ADDRESS>tested on ubuntu and linux.

https://github.com/itsneski/lightning-jet/releases/tag/v1.5.4-probes


Added fallback locale to media REST API

Q
A

Bug fix?
no

New feature?
yes

BC breaks?
no

Deprecations?
no

Fixed tickets
fixes #1896

Related issues/PRs
https://github.com/massiveart/husky/pull/621

License
MIT

Documentation PR
none

What's in this PR?
Add the fallback locale to the REST API of the media, and show this locale in the media selection overlay and the media selection content type.
Why?
Because knowing from which locale the media title is coming might be an interesting info for the content manager.

The only open question is how we should display the fallback locale in the list view:

@danrot i would go with the badge of the datagrid (see categories). The content should be the displayed language @berndhep

I think you are right, completely forgot that we have already implemented that somewhere. Just TBH, you are talking about the blue badge here, right?

@berndhep Would that be good for you?

I have just implemented it like that, and now I think it would make sense to use this blue badge everywhere :confused: Will clarify with @berndhep

Talked to @berndhep, I am using this badge always now.
@wachterjohannes Ready for review.

@wachterjohannes Maybe wait a second, just had an idea how to solve a problem more elegant :-)

@wachterjohannes Really ready to review now :-)

@danrot please rebase it before i can test it

if you upload a new image in the collection and change the title immediately you get a "badge" to another locale (see screenshot).

@wachterjohannes That's happening because the file is uploaded in the wrong language. It uses the user language instead the one selected in the right upper corner. Will fix that on tuesday, don't want to do a fast shot here, since this URL is spread across multiple dropbox instances...

@danrot will you fix this issue in this PR too or in another one?

@wachterjohannes Just fixed it in here, since the issue is directly related to this new feature.


fix: disable spaces as full name

The type of this PR is: fix

This PR solves [CX02622]
Description
https://user-images.githubusercontent.com/11945712/201912102-7ba116e7-9697-452f-8715-05d4dddf1629.mov

tests has been quite unstable recently, they got fixed on their own 😄


ci: remove PostgreSQL 10 from supported versions.

closes : #986
Signed-off-by: Jitendra Wadle<EMAIL_ADDRESS>

@wadlejitendra with this patch we officially remove support for PostgreSQL 10 from CloudNativePG version 1.19. So please remove anything that introduces exceptions in the code to work with Postgres 10.


/tutorials/clusters/apparmor/ says AppArmor is only supported by Docker

This is a Bug Report

Problem:
The website says AppArmor is only supported by Docker

Currently the only Kubernetes-supported container runtime that also supports AppArmor is Docker

If the Kubelet contains AppArmor support (>= v1.4), it will refuse to run a Pod with AppArmor options if the runtime is not Docker.

Proposed Solution:
Clarify that Kubernetes >= v1.XX supports AppArmor for non-docker CRI runtimes such as containerd/CRI >= v1.X and CRI-O >= v1.XX
Page to Update:
https://kubernetes.io/docs/tutorials/clusters/apparmor/

/priority backlog
/language en

I just ran into this as well with someone claiming Docker is the only runtime implementation supporting AppArmor and had made a decision not to use containerd because of this. I would submit a PR with suggested wording fix, but that whole section on runtimes and apparmor profiles probably needs a healthy re-write and verification that it is correct.

/remove-lifecycle stale

/remove-lifecycle rotten

Seems addressed recently


Remove scripts for docker swarm creation/deletion

Add reference to other projects already taking care of this, such as https://github.com/aelsabbahy/miniswarm

it's not working 100% correctly currently, I created a version that fix the issue with the visualizer here: https://github.com/martel-innovate/miniswarm


0.26.0 crash on ios after splash screen

hi, tnx for your work 🙌
Yesterday I update my app with your plugin and it was perfect on android. On ios, instead, it crashed so I have forced to 0.25.0 version ;)

Same here, version 0.26.0 crashes after the splash screen on iOS, this is the console info:
*** Terminating app due to uncaught exception 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized incorrectly. Google AdMob publishers should follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to include the AppMeasurement framework, set the -ObjC linker flag, and set GADApplicationIdentifier with a valid App ID. Google Ad Manager publishers should follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist'
I have set the ADMOB_APP_ID variable on installation.

add this to your config.xml file

add this to your config.xml file
 <platform name="ios">
        <config-file parent="GADIsAdManagerApp" platform="ios" target="*-Info.plist">
            <true />
        </config-file>
 </platform>

Thanks alot ersingencturk. I'v been trying with no luck for 2 days. You saved me from aging fast.

add this to your config.xml file
 <platform name="ios">
        <config-file parent="GADIsAdManagerApp" platform="ios" target="*-Info.plist">
            <true />
        </config-file>
 </platform>

YOU ARE AMAZING

Can someone explain why is GADIsAdManagerApp key needed? It's not included in AdMob integration steps and interestingly until today my app would work without it... now suddenly it crashes without ( probably after pod update) currently:
Installing Google-Mobile-Ads-SDK (7.69.0)
Installing GoogleAppMeasurement (7.5.0)

Can someone explain why is GADIsAdManagerApp key needed? It's not included in AdMob integration steps and interestingly until today my app would work without it... now suddenly it crashes without ( probably after pod update) currently:
Installing Google-Mobile-Ads-SDK (7.69.0)
Installing GoogleAppMeasurement (7.5.0)

Confirm this is the solution until now


debug test move memtable

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run p0 10

run p0 10

run buildall

run p0 10

run p0 10

run p0 10

run pipelinex_p0 10


TriadaRetailApp: Build Performance, Startup Performance, and App Size

Follow the directions found here: https://github.com/JonDouglas/AndroidPerformanceAndAppSizeChallenge

Build Performance (No bin/obj)

Before Cold Build Times Changes:

Time Elapsed 00:01:17.96

After Cold Build Times Changes:

Time Elapsed 00:00:33.05

Build Performance (Incremental change)

Before Incremental Build Times Changes:

Time Elapsed 00:00:06.54

After Incremental Build Times Changes:

Time Elapsed 00:00:05.44

Startup Performance (Activity Displayed)

Before Startup Tracing:

ActivityManager	Displayed com.cinarucocompany.triadaretail/md5325e8804888246a63c6c824ec8679eab.MainActivity: +10s392ms

After Startup Tracing:

ActivityManager	Displayed com.cinarucocompany.triadaretail/md5325e8804888246a63c6c824ec8679eab.MainActivity: +6s309ms

Application Size (Download Size)

Before Application Size Changes:

App download size: 24.3MB

After Application Size Changes:

App download size: 23.7MB

Bonus

Include a Diagnostic MSBuild Log File or MSBuild BinLog File

Any comments / feedback for how we can improve this experience?
Version Information (Help -> About Visual Studio -> Copy Information)
Microsoft Visual Studio Community 2019 (2)
Version 16.2.3
VisualStudio.16.Release/16.2.3+29215.179
Microsoft .NET Framework
Version 4.8.03752
Installed Version: Community
Microsoft Visual Studio Tools for Applications 2019   00435-60000-00000-AA654
Microsoft Visual Studio Tools for Applications 2019
Visual C++ 2019   00435-60000-00000-AA654
Microsoft Visual C++ 2019
ADL Tools Service Provider   1.0
This package contains services used by Data Lake tools
ASP.NET and Web Tools 2019   16.2.290.48383
ASP.NET and Web Tools 2019
ASP.NET Web Frameworks and Tools 2019   16.2.290.48383
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0   16.2.290.48383
Azure App Service Tools v3.0.0
Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.
Azure Data Lake Tools for Visual Studio   2.3.9000.0
Microsoft Azure Data Lake Tools for Visual Studio
Azure Functions and Web Jobs Tools   16.2.290.48383
Azure Functions and Web Jobs Tools
Azure Stream Analytics Tools for Visual Studio   2.3.9000.0
Microsoft Azure Stream Analytics Tools for Visual Studio
C# Tools   3.2.1-beta4-19408-03+2fc6a04980f800c59e8ede97e6ae294ff47d666e
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Extensibility Message Bus   1.2.0 (d16-2@8b56e20)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.
Fabric.DiagnosticEvents   1.0
Fabric Diagnostic Events
GorillaPlayerPackage Extension   1.0
GorillaPlayerPackage Visual Studio Extension Detailed Info
HotReload Extension   1.4.0
Xamarin.Forms HotReload Visual Studio Extension
IntelliCode Extension   1.0
IntelliCode Visual Studio Extension Detailed Info
Microsoft Azure HDInsight Azure Node   2.3.9000.0
HDInsight Node under Azure Node
Microsoft Azure Hive Query Language Service   2.3.9000.0
Language service for Hive query
Microsoft Azure Service Fabric Tools for Visual Studio   2.5
Microsoft Azure Service Fabric Tools for Visual Studio
Microsoft Azure Stream Analytics Language Service   2.3.9000.0
Language service for Azure Stream Analytics
Microsoft Azure Stream Analytics Node   1.0
Azure Stream Analytics Node under Azure Node
Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 0x10 - v2.9.20626.2
Microsoft Continuous Delivery Tools for Visual Studio   0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.
Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft Library Manager   1.0
Install client-side libraries easily to any web project
Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards   1.0
Microsoft Visual C++ Wizards
Microsoft Visual Studio Tools for Containers   1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package
Mono Debugging for Visual Studio   16.2.6 (4cfc7c3)
Support for debugging Mono processes with Visual Studio.
NuGet Package Manager   5.2.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
ProjectServicesPackage Extension   1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
ResourcePackage Extension   1.0
ResourcePackage Visual Studio Extension Detailed Info
ResourcePackage Extension   1.0
ResourcePackage Visual Studio Extension Detailed Info
SQL Server Data Tools   16.0.61906.28070
Microsoft SQL Server Data Tools
SQL Server Integration Services   15.0.1301.433
Microsoft SQL Server Integration Services Designer
Version 15.0.1301.433
StylerPackage Extension   1.0
StylerPackage Visual Stuido Extension Detailed Info
ToolWindowHostedEditor   1.0
Hosting json editor into a tool window
TypeScript Tools   16.0.10627.2001
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools   3.2.1-beta4-19408-03+2fc6a04980f800c59e8ede97e6ae294ff47d666e
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual F# Tools 10.4 for F# 4.6   16.2.0-beta.19321.1+a24d94ecf97d0d69d4fbe6b8b10cd1f97737fff4
Microsoft Visual F# Tools 10.4 for F# 4.6
Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Tools for Containers   1.0
Visual Studio Tools for Containers
Visual Studio Tools for Kubernetes   1.0
Visual Studio Tools for Kubernetes
VisualStudio.Mac   1.0
Mac Extension for Visual Studio
Xamarin   <IP_ADDRESS> (d16-2@37df81894)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer   <IP_ADDRESS>5 (remotes/origin/d16-2@357d38ef4)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin Templates   16.3.117 (59a59e8)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.
Xamarin.Android SDK   <IP_ADDRESS> (d16-2/ebd65c9)
Xamarin.Android Reference Assemblies and MSBuild support.
Mono: mono/mono/2019-02@e6f5369c2d2
Java.Interop: xamarin/java.interop/d16-2@d64ada5
LibZipSharp: grendello/LibZipSharp/d16-2@caa0c74
LibZip: nih-at/libzip/rel-1-5-1@b95cf3f
ProGuard: xamarin/proguard/master@905836d
SQLite: xamarin/sqlite/3.27.1@8212a2d
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-2@6f6c969
Xamarin.iOS and Xamarin.Mac SDK   <IP_ADDRESS> (c669116)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

@ivanrlg Thank you so much for your submission! To claim your swag, please fill out this quick survey!
http://aka.ms/androidappchallenge


App doesn't load - wmic command not found - Windows10

Preflight Checklist

[x] I have searched DeFiChain’s Github Issue Page and none matches my issue
[x] I have read through How To Submit Issues for DeFi App

Issue Details

Current DeFi App Version:

2.1.12

Previous DeFi App Version:

 Last working Version: 2.1.9

Operating System (OS):

Windows 10 (Version 10.0.19042.746)

Screenshot(s) / screen recording(s) of issue

Actual Behavior

Open the app
The loading icon/circle does not appear

App log / binary log / app config
Main Log from "C:\Users\XXX\AppData\Roaming\defi-app\logs"
`[2021-01-23 16:50:44.496] [IPC-RENDERER-info] [Starting App] App is running with version 2.1.12
[2021-01-23 16:50:50.898] [IPC-RENDERER-error] [getConfig] TypeError: Cannot read property 'success' of undefined
[2021-01-23 16:51:12.686] [IPC-RENDERER-info] Stopping DeFi Process Manager
[2021-01-23 16:51:12.826] [IPC-RENDERER-error] Der Befehl "wmic" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.`

I have exactly the same problem

I have exactly the same problem

Hi @snowcoiner , update v2.1.15 is out.
Do give a thumbs up to this comment if your issue has been resolved, otherwise, provide new information (include screenshots) and app logs. Thank you.

Hi @snowcoiner , update v2.1.15 is out.
Do give a thumbs up to this comment if your issue has been resolved, otherwise, provide new information (include screenshots) and app logs. Thank you.

I've had the same issue with v2.1.15.
[2021-01-31 14:38:24.734] [IPC-RENDERER-info]  "[Starting App] App is running with version 2.1.15" [2021-01-31 14:38:32.125] [IPC-RENDERER-error] [getConfig] "Cannot read property 'message' of undefined"
After reading the above mentioned solution I was able to get it to run.
I've moved the entry "%SystemRoot%\System32\Wbem" to the top of the system variable "Path" and the defid process was able to start.

I've had the same issue with v2.1.15.
[2021-01-31 14:38:24.734] [IPC-RENDERER-info]  "[Starting App] App is running with version 2.1.15" [2021-01-31 14:38:32.125] [IPC-RENDERER-error] [getConfig] "Cannot read property 'message' of undefined"
After reading the above mentioned solution I was able to get it to run.
I've moved the entry "%SystemRoot%\System32\Wbem" to the top of the system variable "Path" and the defid process was able to start.

Hi @snowcoiner , thanks for the update, I'll be closing this issue in the mean time. You may reopen this issue if there's new information (include screenshots) and your app logs. Thank you.


Add a configuration file

Problem
If you have an init script to start scaphandre, or want to automate scaphandre's deployment, it's quite annoying to define scaphandre's parameters in the command line, for example:
scaphandre --vm prometheus -a <IP_ADDRESS> -p 9090

Solution
It would be more convenient to have a configuration file read by default in /etc/scaphandre/scaphandre.conf, for example:
vm = true
exporter = prometheus
address = <IP_ADDRESS>
port = 9090

Thanks.

Related https://github.com/hubblo-org/scaphandre/issues/145

Hi !
I'd say it's a duplicate. Would you mind follow this thread #145 instead ? :)


[hotfix][docs] mention kryo in serialization and link to page

What is the purpose of the change
improve documentation
Brief change log
I am new to flink so maybe I misunderstood something. As far as I am get Avro is only used if the POJO comes from a source which was deserialised with Avro. Otherwise Kryo is used. Thus I changed the text, mentioning Kryo as well and added a link to the Serialization of POJO types section  (I guess the link to the other page makes sense in all cases).
Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Documentation

Does this pull request introduce a new feature? => no

Oh wow, the docs here are really outdated and wrong.
The correct way would be as follows:
POJOs are generally represented with a PojoTypeInfo and serialized with the PojoSerializer (using Kryo as a configurable fallback).
The exception is when the POJOs are actually Avro types (Avro Specific Records) or produced as "Avro Reflect Types". In that case the POJO's type would be represented by an AvroTypeInformation and use the AvroSerializer.

Do you want to update the PR with this extra information?

I'll will in the next days

@StephanEwen I tried to integrate your information into my PR

@zentol fixed https and reverted KryoSerializer


Update RUNNING.md

Add tip for submodules.

Hey @jbolinger, it's good to see you here! :)  We need to have lunch some time (after the WFH period ends) :)

Hey @alexander-fenster - Sure, anytime. I won't be around much until mid/late April but we should catch up sometime after that.


[BUG] Tenant Tab behavior when Local Cluster is disabled

What is the bug?
When local cluster is disabled, the "tenant" tab is still pulling info from the local cluster - this is because this tab is locked to the local cluster even when there are external clusters due to dashboards confusion - this needs to be addressed - either show empty data on this tab or remove the tab altogether when local cluster is disabled.

@kgcreative can you add any comments here on what is the expected behavior here?

This is not a bug and is as intended. The local cluster being disabled means we don't want to use the indexes on the local cluster for data analysis, but the local cluster is the compute for OSD instead. We should probably omit the data source picker for multitenancy in general, since it's OSD multi tenancy, and not backend multitenancy

This is not a bug and is as intended. The local cluster being disabled means we don't want to use the indexes on the local cluster for data analysis, but the local cluster is the compute for OSD instead. We should probably omit the data source picker for multitenancy in general, since it's OSD multi tenancy, and not backend multitenancy

Sure we can remove the picker from this tab overall. I get what you are saying, but I still think it is an edge case - when local cluster is hidden, the picker shows like this - an empty state, but it is still pulling data from the local cluster. @kgcreative so final call is to just remove the picker from this tab all together?

[Triage] Hi @derek-ho thanks for filing this issue. It looks like you opened a PR to resolve this and are working with Kevin to take the best approach for handling things. Going to marked as triaged.

Ideally we should show a read-only single-select state showing the local cluster (for consistency sake), rather than removing local cluster. I think we need to show local cluster in security regardless of whether the local cluster is disabled, since that's how that will allow customers to do things like setup auth, create users, roles, etc for opensearch dashboards when security is enabled.


A question about version

Hello @teijo ,
I am the member of cdnjs project.
We want to host this library.
But there is a question want to ask.
I want to confirm with you about the version 0.1.0~0.5.0 and release-1~release-5 on github.
I think 0.1.0 is the same as release-1...0.5.0 is the same as release-5.
Am I right?
Please help me confirm that.
Thanks!
https://github.com/cdnjs/cdnjs/issues/8938

Am I right?

That's what git log --decorate release-5 says :)

So are they the same?
If so, I will add 0.1.0 exclude release-1, and add 0.2.0 exclude release-2 and so on.
Please help me confirm this.
Thanks!

Yes, they are the same.


Members are not shown even when there is a functionality of 'All members' in 'who can post'

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to dev web chrome
Create a new workspace and invite few members
Go to search and click on the workspace chat with square logo
Click on header and there is only 1 in the members
But if clicked on settings and clicked on 'who can post' , it displays ' All members' option also.
Thus, if 'All members' option is shown, the newly invited users should have been added on the 'members' section

Expected Result:
Members count should be shown since there is a functionality of 'All members' in 'who can post'
Actual Result:
Members are not shown even when there is a functionality of 'All members' in 'who can post'
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: yes
Reproducible in production?: yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/93399543/c4be93a7-fb05-4f6c-a22c-7d8a442c1d5d
https://github.com/Expensify/App/assets/93399543/d6a98e0d-e551-4c46-b709-eef7f027ef3a
Expensify/Expensify Issue URL:
Issue reported by: avi-shek-jha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685179945958949
View all open jobs on GitHub

Just a bit of feedback, I found the reproduction steps very hard to follow. In fact, I am still having trouble understand the issue that you're referring to here.

Members count should be shown since there is a functionality of 'All members' in 'who can post'

Are you referring to the members that show on the members page within the settings for that specific chat report? If so, I am going to put this issue on hold, as we will begin refactoring this page very shortly.

Hi. What I wanted to say is. When I have added let's say 3 members on the workspace (using invite members), then It should have shown the members count as 3 on the new workspace chat page also.(To cross verify, after you click on header and go to settings, we can also see the option on 'Who can post' as ''All members". Thus, since 'All members' functionality is there, then I assumed that the new workspace chat should have mentioned all the users of the workspace on the members section)

Can you please suggest a more specific set of reproduction steps using the titles of the pages/right-hand pane in the app? This is what you currently have.

Go to dev web chrome
Create a new workspace and invite few members
Go to search and click on the workspace chat with square logo
Click on header and there is only 1 in the members
But if clicked on settings and clicked on 'who can post' , it displays ' All members' option also.
Thus, if 'All members' option is shown, the newly invited users should have been added on the 'members' section

Go to dev web chrome and login with user A
Click on Settings > Workspace > Create a New Workspace (let's say Workspace test) > Invite members > Invite User B and User C. Thus, now this newly created workspace has 3 members in total. (User A, User B and User C )
Now, go to LHN and search for the workspace chat (that has a square logo) we created in step 2.
Make sure you're on the workspace chat page.
Click on header of the workspace chat so that 'Details ' on right hand side pane appears
Notice that in 'Members' , it is shown as count 1.
Click on members and notice that it's still just showing the admin (User A) in the workspace. We had 3 members in total (User A, User B and User C) since we invited User B and User C to the workspace as referenced in step 2. Thus, the members count should be 3 in this case.

https://github.com/Expensify/App/assets/123831727/952cbf6e-128e-49a4-9c9e-332028b584fa

Thank you very much for the reproduction steps. I don't think this is bug and we should close this issue.
Here's the reason: A workspace chat is between each member on the workspace, and all admins on that workspace. So if a workspace has 10 members and 2 admins. The there will be 12 workspace chats (admins also get their own workspace chat).
That last one is the case you are seeing. You are the only admin on the workspace. So your workspace chat will be you with yourself. For any members, their workspace chat will have two members, them and then you as the admin.
Here's that case in my test account. I'm the only admin and this is my workspace chat.

Then here's the workspace chat for the member. .
Everything is by design in both cases.

I'm going to close as a result, though please let me know if you have any follow-on questions.


how to add to Hugo Website?

I would like to have some pages in my website made with hugo.
how can i?
Best regards
ArchGalileu

The immediate solution would be to use the cli version after you build your site.
You would write a shell script that runs Hugo and then runs the cli to encrypt the published pages that you want encrypted. Then you would publish the static site.
A cool solution would be to build staticcrypt into a Hugo template so that when you run Hugo it encrypts pages that have special front matter.

I don't know how to execute, but I will try ;)
of course on template would be great ;)
Best regards
ArchGalileu

Ok i can't do it, i don't know how... but i understand ;)
i use npm but also don't know howyo prepare a script...
Can you give any hints?
Best regards
ArchGalileu

Hi @ArchGalileu, I'm not very familiar with Hugo, a quick approach in pseudo code would be:

build your website locally, with the files you want to encrypt in a <project_root>/website/secure directory

run staticrypt cli on the <project_root>/website/secure files and delete the old files, for ex:
# encrypt the files (see command from README)
find <root_project>/website/secure -type f -name "*.html" -exec staticrypt {} <mypassword> \;
# remove all non encrypted files from that folder - test it without `-delete` first, careful not to delete unwanted stuff !
find <root_project>/website/secure -type f ! -name '*_encrypted.html' -delete

publish the website

You opened the issue a while ago, let me know if that's still relevant to you!

Hi,
I'm having same problem. I've tried your commands and this is what I get:
10:45:47 AM: Build ready to start
10:45:49 AM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
10:45:49 AM: build-image tag: v3.3.2
10:45:49 AM: buildbot version: 75cd99f62ada9e21edea53208e8baf0eab85a045
10:45:49 AM: Fetching cached dependencies
10:45:49 AM: Starting to download cache of 255.0KB
10:45:49 AM: Finished downloading cache in 78.099206ms
10:45:49 AM: Starting to extract cache
10:45:49 AM: Failed to fetch cache, continuing with build
10:45:49 AM: Starting to prepare the repo for build
10:45:50 AM: No cached dependencies found. Cloning fresh repo
10:45:50 AM: git clone https://github.com/edcous/leahdemo
10:45:51 AM: Preparing Git Reference refs/heads/master
10:45:53 AM: Found netlify.toml. Overriding site configuration
10:45:53 AM: Different build command detected, going to use the one specified in the toml file: 'hugo && npm install && find /public -type f -name '.html' -exec staticrypt {} password \ && find /public -type f ! -name '_encrypted.html' ' versus 'hugo' in the site
10:45:53 AM: Starting build script
10:45:53 AM: Installing dependencies
10:45:55 AM: Downloading and installing node v10.16.0...
10:45:55 AM: Downloading https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-x64.tar.xz...
10:45:56 AM:

10:45:56 AM:                              8.9%
10:45:56 AM:
#########################################################
10:45:56 AM: ##               83.2%
10:45:56 AM:
####################################################
10:45:56 AM: #################### 100.0%
10:45:56 AM: Computing checksum with sha256sum
10:45:56 AM: Checksums matched!
10:45:59 AM: Now using node v10.16.0 (npm v6.9.0)
10:45:59 AM: Attempting ruby version 2.6.2, read from environment
10:46:01 AM: Using ruby version 2.6.2
10:46:01 AM: Using PHP version 5.6
10:46:01 AM: Started restoring cached node modules
10:46:01 AM: Finished restoring cached node modules
10:46:01 AM: Installing NPM modules using NPM version 6.9.0
10:46:04 AM: added 55 packages from 18 contributors and audited 72 packages in 1.448s
10:46:04 AM: found 0 vulnerabilities
10:46:04 AM: NPM modules installed
10:46:04 AM: Installing Hugo 0.55.6
10:46:07 AM: Hugo Static Site Generator v0.55.6-A5D4C82D2/extended linux/amd64 BuildDate: 2019-05-18T08:08:34Z
10:46:07 AM: Started restoring cached go cache
10:46:07 AM: Finished restoring cached go cache
10:46:07 AM: unset GOOS;
10:46:07 AM: unset GOARCH;
10:46:07 AM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
10:46:07 AM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
10:46:07 AM: go version >&2;
10:46:07 AM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
10:46:07 AM: go version go1.12 linux/amd64
10:46:07 AM: Installing missing commands
10:46:07 AM: Verify run directory
10:46:07 AM: Executing user command: hugo && npm install && find /public -type f -name '.html' -exec staticrypt {} password \ && find /public -type f ! -name '_encrypted.html'
10:46:07 AM: Building sites …
10:46:08 AM:                    | EN
10:46:08 AM: +
10:46:08 AM: ------------------+----+
10:46:08 AM:   Pages            | 20
10:46:13 AM: failed during stage 'building site': Build script returned non-zero exit code: 1
10:46:08 AM:   Paginator pages  |  0
10:46:08 AM:   Non-page files   |  0
10:46:08 AM:   Static files     | 21
10:46:08 AM:   Processed images |  0
10:46:14 AM: Shutting down logging, 24 messages pending

A cool solution would be to build staticcrypt into a Hugo template so that when you run Hugo it encrypts pages that have special front matter.
Is it possible, I am looking for this feature. Can you please tell me more how to acheive it?

Crypt.sh
#!/usr/bin/env bash
set -e

hugo && find ./public -type f -name "*.html" -exec staticrypt {} Sp00kySkeletons -f password_template.html -o {} \;

This will build and encrypt all your built html files for a hugo site.
As an aside, I have noticed consistent FOUC when using with Hugo.


Cache slots info & Removing "master_nodes" module variable

refer #86
also fix a potential bug caused with limit pool when tcp connect failed with too many waiting connect operations.
more details:
https://github.com/openresty/lua-nginx-module#tcpsockconnect

@steve0511 please have a review, thanks.


fixed indexing issue in detrending

TimeSeries.detrend(data) can return values outside of the range of the values in data. This is because the TimeSeries.detrend() method uses the wrong indices when calling numpy.polyfit(vector, indices): specifically, the indices are shifted up by one. This PR fixes this bug by shifting the indices down by one.

this fails here:
    def test_detrend(self):
        rdd = self.sc.parallelize([(0, array([1, 2, 3, 4, 5]))])
        data = TimeSeries(rdd).detrend('linear')
        # detrending linearly increasing data should yield all 0s
        assert(allclose(data.first()[1], array([0, 0, 0, 0, 0])))

but detrending [1,2,3,4,5] should return all 1s, not all 0s, so the test code also needs to be fixed

Fixed the test code, now all tests pass

Sorry for the delay on this, merging in here, also added the same fix to the 1.0.0 branch.


Please how to solve "NameError: name 'DefaultDelegate' is not defined" for BLE.

My environment is  Raspberry Pi 3 Model B, preinstalled  python3
I am trying Parrot Mambo with BLE connection.
So I installed all of your mentioned in "https://pyparrot.readthedocs.io".
After then I tried to scan by using following link.
"https://pyparrot.readthedocs.io/en/latest/quickstartminidrone.html"
But I met the following error. I don't know how I solve this error.
Please let me know how to solve it. Thank you.
pi@raspberrypi:~/pyparrot/pyparrot/scripts $ sudo python ./findMinidrone.py
Traceback (most recent call last):
File "./findMinidrone.py", line 18, in
class ScanDelegate(DefaultDelegate):
NameError: name 'DefaultDelegate' is not defined

Did you install the bluepy package?

Yes, I did.
I solved this issue.
I just run "pi@raspberrypi:~/pyparrot/pyparrot/scripts $ sudo python3 ./findMinidrone.py"
instead of "pi@raspberrypi:~/pyparrot/pyparrot/scripts $ sudo python ./findMinidrone.py".
I just replace "python" to "python3" of command.
I think you need to update document with exact information.
Anyway, Thank you for your comment.

Can't exactly write it when people have all different python installations.  You just need to know to run python 3.  But I will update it into the FAQ to ensure people are running python 3 and knowing the python 2 error helps!

Ok. Dr.Amy. Thank you.
Your pyparrot is great for us.


Horizontal scrolling does not work  on some windows machines using trackpad

Steps to Reproduce

Execute flutter run on the code sample
.Try to scroll horizontally

Expected results: The SingleChildScrollView, or in fact, any Horizontally Scrollable Widget, should scroll horizontally.
Actual results: The widget is not scrollable as the horizontal scroll on trackpad changes focus on the AppBar Buttons
I am aware that there has been a simillar issue for this as in #83359 and #82982, suggesting to fix it by applying a custom scroll behaviour
class MouseScrollBehaviour extends MaterialScrollBehavior {
  @override
  Set<PointerDeviceKind> get dragDevices => {
        PointerDeviceKind.touch,
        PointerDeviceKind.mouse,
        PointerDeviceKind.trackpad,
      };
}

But this does not solve this issue. Also, this issue is not present on Web. If this is not an issue and is the intended behavior, then how can we disable this behavior on our side and not flutter side.

Code sample
import 'package:flutter/material.dart';

void main() => runApp(const HorizontalScrollingNotWorkingApp());

class HorizontalScrollingNotWorkingApp extends StatefulWidget {
  const HorizontalScrollingNotWorkingApp({Key? key}) : super(key: key);

  @override
  State<HorizontalScrollingNotWorkingApp> createState() =>
      _HorizontalScrollingNotWorkingAppState();
}

class _HorizontalScrollingNotWorkingAppState
    extends State<HorizontalScrollingNotWorkingApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Classic Material App Bar'),
          leading: const BackButton(),
          actions: [
            IconButton(
              onPressed: () {},
              icon: const Icon(Icons.crop),
            ),
            IconButton(
              onPressed: () {},
              icon: const Icon(Icons.info_outline),
            ),
            IconButton(
              onPressed: () {},
              icon: const Icon(Icons.settings),
            ),
          ],
        ),
        body: Center(
            child: Padding(
          padding: const EdgeInsets.all(16.0),
          child: SingleChildScrollView(
            scrollDirection: Axis.horizontal,
            child: Container(
              color: Colors.red,
              height: MediaQuery.of(context).size.height * 0.8,
              width: 2000,
            ),
          ),
        )),
      ),
    );
  }
}

Logs
No Error Shown On Windows.

No Analysis Errors Shown on Windows.

[√] Flutter (Channel stable, 3.0.1, on Microsoft Windows [Version 10.0.25126.1000], locale en-IN)
    • Flutter version 3.0.1 at D:\SDKs\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fb57da5f94 (12 days ago), 2022-05-19 15:50:29 -0700
    • Engine revision caaafc5604
    • Dart version 2.17.1
    • DevTools version 2.12.2

[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at D:\SDKs\android_sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: D:\IDEs\AndroidStudio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.0)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.9.31025.194
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2021.2)
    • Android Studio at D:\IDEs\AndroidStudio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)

[√] VS Code (version 1.67.2)
    • VS Code at C:\Users\Naman Bharat Gor\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.18.1

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.25126.1000]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 101.0.4951.67
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 100.0.1185.50

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Hello @namangor04. The code sample you provided has a single solid color which is why you can't notice the scroll. I have modified the code to include a greed container as well. See the video of the scrolling.

https://user-images.githubusercontent.com/50555895/171371286-2e19bee4-ffd2-4449-9545-f065c5819fd0.mov

–Code sample
import 'package:flutter/material.dart';

void main() => runApp(const HorizontalScrollingNotWorkingApp());

class HorizontalScrollingNotWorkingApp extends StatefulWidget {
  const HorizontalScrollingNotWorkingApp({Key? key}) : super(key: key);

  @override
  State<HorizontalScrollingNotWorkingApp> createState() =>
      _HorizontalScrollingNotWorkingAppState();
}

class _HorizontalScrollingNotWorkingAppState
    extends State<HorizontalScrollingNotWorkingApp> {
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Material App',
      home: HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Classic Material App Bar'),
      ),
      body: Center(
        child: Padding(
          padding: const EdgeInsets.all(16.0),
          child: SingleChildScrollView(
            scrollDirection: Axis.horizontal,
            child: Row(
              children: [
                Container(
                  color: Colors.red,
                  height: MediaQuery.of(context).size.height * 0.8,
                  width: 2000,
                ),
                Container(
                  color: Colors.green,
                  height: MediaQuery.of(context).size.height * 0.8,
                  width: 2000,
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}

flutter doctor -v (Stable)
[✓] Flutter (Channel stable, 3.0.1, on macOS 12.4 21F79 darwin-arm, locale en-US)
    • Flutter version 3.0.1 at /Users/nabeelparkar/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fb57da5f94 (12 days ago), 2022-05-19 15:50:29 -0700
    • Engine revision caaafc5604
    • Dart version 2.17.1
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/nabeelparkar/Library/Android/sdk/
    • Platform android-32, build-tools 32.1.0-rc1
    • ANDROID_SDK_ROOT = /Users/nabeelparkar/Library/Android/sdk/
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /Applications/Brave Browser.app/Contents/MacOS/Brave Browser

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.1.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 67.1.4
    • Dart plugin version 221.5591.58

[✓] VS Code (version 1.67.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.40.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Brave Browser <IP_ADDRESS>

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

flutter doctor -v (Master)
[✓] Flutter (Channel master, 3.1.0-0.0.pre.1035, on macOS 12.4 21F79 darwin-arm, locale en-US)
    • Flutter version 3.1.0-0.0.pre.1035 at /Users/nabeelparkar/fvm/versions/master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 3d62732d60 (2 hours ago), 2022-06-01 00:14:14 -0400
    • Engine revision 0d1057ef7b
    • Dart version 2.18.0 (build 2.18.0-157.0.dev)
    • DevTools version 2.13.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/nabeelparkar/Library/Android/sdk/
    • Platform android-32, build-tools 32.1.0-rc1
    • ANDROID_SDK_ROOT = /Users/nabeelparkar/Library/Android/sdk/
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /Applications/Brave Browser.app/Contents/MacOS/Brave Browser

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.1.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 67.1.4
    • Dart plugin version 221.5591.58

[✓] VS Code (version 1.67.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.40.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Brave Browser <IP_ADDRESS>

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Hello @exaby73, I noticed that you sent me the video which was recorded on MacOS. But I am using windows and I am having issues on windows stable, not MacOS stable. I would like you to reopen this issue asap. I am also attaching a file filmed using your code sample which clearly shows that this horizontal scrolling on windows does not work
https://user-images.githubusercontent.com/64084226/171377696-20498c5e-7701-4ed9-acb7-43cbfb409f5e.mp4

Hey @namangor04. I'm assuming you are pressing Shift while using the scroll wheel to scroll horizontally. Can you confirm if this is also on the web?

@namangor04, I can confirm that horizontal Listview is scrollable on windows, It may be that the container width is large enough and as a result, the scroll is not noticeable, I have added a scrollbar to this code sample shared above  and it should be clearly visible.
https://user-images.githubusercontent.com/31410839/171383160-34d7bc5c-35a1-45a4-9c2a-e399b8fdc2e4.mp4

code sample
import 'package:flutter/material.dart';

void main() => runApp(const HorizontalScrollingNotWorkingApp());

class HorizontalScrollingNotWorkingApp extends StatefulWidget {
  const HorizontalScrollingNotWorkingApp({Key? key}) : super(key: key);

  @override
  State<HorizontalScrollingNotWorkingApp> createState() =>
      _HorizontalScrollingNotWorkingAppState();
}

class _HorizontalScrollingNotWorkingAppState
    extends State<HorizontalScrollingNotWorkingApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  HomePage({Key? key}) : super(key: key);
  ScrollController controller = ScrollController();
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Classic Material App Bar'),
      ),
      body: Center(
        child: Padding(
          padding: const EdgeInsets.all(16.0),
          child: Scrollbar(
            controller: controller,
            child: SingleChildScrollView(
              controller: controller,
              scrollDirection: Axis.horizontal,
              child: Row(
                children: [
                  Container(
                    color: Colors.red,
                    height: MediaQuery.of(context).size.height * 0.8,
                    width: 2000,
                  ),
                  Container(
                    color: Colors.green,
                    height: MediaQuery.of(context).size.height * 0.8,
                    width: 2000,
                  ),
                ],
              ),
            ),
          ),
        ),
      ),
    );
  }
}

PS C:\Users\mahesh\Desktop\keyboardissue> flutter --version
Flutter 3.0.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision fb57da5f94 (13 days ago) • 2022-05-19 15:50:29 -0700
Engine • revision caaafc5604
Tools • Dart 2.17.1 • DevTools 2.12.2
PS C:\Users\mahesh\Desktop\keyboardissue>

@maheshmnj okay got it! Thank you sir! But then why is it that only on my machine does the issue occur? Is it due to the fact that my machine is running Windows 11? Because i have not changed a single thing in flutter. I have even reinstalled flutter 2 times (re-downloaded the sdk 1 time) after getting this issue, and I did it again today too. But it didn't solve the issue. What do you suggest doing? Do you think submitting my `flutter run -v' would be of help?

@mrunion so have you did any changes to your flutter sdk locally? Or are you having the same issue as mine?

@mrunion so have you done any changes to your flutter sdk locally? Or are you having the same issue as mine?

I have done nothing locally except to install Flutter. No customization, etc.
I copied the sample code from @maheshmnj above on my "working" Windows machine. I then tested it on that machine and another Windows machine that has the scrolling problems. Here are the results:
Working Windows Machine:
Scrolling horizontally works fine.
Flutter Doctor output:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.0.1, on Microsoft Windows [Version 10.0.19044.1706], locale en-US)
[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.0)
[!] Android Studio (not installed)
[√] VS Code, 64-bit edition (version 1.67.2)
[√] Connected device (3 available)
[√] HTTP Host Availability

! Doctor found issues in 2 categories.

Non-Working Windows Machine
Scrolling horizontally did NOT work.
Unfortunately I cannot install Flutter on this machine, so I can't debug or run Flutter Doctor. Also, this machine is an Amazon Workspace. It is running Windows 10 as well, like the working test machine.
If I get the opportunity tomorrow I will try to install on a physical Windows machine (laptop) that does not horizontally scroll as well.

Okay thank you @mrunion! So this does affirm that Flutter does have a problem with horizontal scrolling atleast on some Laptops. It might be to do something with the driver versions or it might affect only trackpads from some OEMs. Let's see what results we get when you run it on a physical windows laptop and thank you for that too!

I verified using the trackpad on the laptop, The scrollbar was just added for visual feedback. The scroll in the above video is being performed using the trackpad.

I do understand that @maheshmnj sir, and i was just describing my issue by stating

I have noticed this before though that adding a scrollbar does let us scroll the SingleChildScrollView but it does not let us do it using the trackpad.

Thanks for the update @namangor04, @mrunion I am labeling this issue for further investigation from the team, since I am unable to reproduce the issue. Triage details can be found here https://github.com/flutter/flutter/issues/105095#issuecomment-1143613193
cc: @gspencergoog

Thank you for the help @maheshmnj sir and @exaby73 sir!

Following up, I tried the scrolling test code on my actual, physical laptop. This laptop is docked and I use an external mouse and dual screens -- I didn't test the trackpad. But with the mouse I cannot "click and drag" the scroll window like I can on the "working" laptop. If I move the mouse down and get the scroll bar to show, I can grab the scroll bar and make the window scroll.
Does that help/hinder anything?
My apologies if this is just "noise".

@mrunion Click and drag behavior is now optional and I believe disabled by default on desktop and web. See https://docs.flutter.dev/release/breaking-changes/default-scroll-behavior-drag

cc @moffatman

Can it be related to this #99960 ? @namangor04 Can you check if there are arrow key events present when attempting to scroll horizontally? I believe it's due to synaptics driver, can you check if that's the model of trackpad you have in the windows device manager?

@moffatman yes i can confirm that my laptop has synaptics driver and touchpad, and i will share other details as soon as I get to work today.

Removing found in release labels since this was not reproducible on the primary triage.

Sorry for the delay, @moffatman sir. I can reproduce this issue with the following code sample when we do the two finger swipe gestures on the trackpad:

Code Sample
import 'dart:developer';

import 'package:flutter/material.dart';

void main() => runApp(const HorizontalScrollingNotWorkingApp());

class HorizontalScrollingNotWorkingApp extends StatefulWidget {
  const HorizontalScrollingNotWorkingApp({Key? key}) : super(key: key);

  @override
  State<HorizontalScrollingNotWorkingApp> createState() =>
      _HorizontalScrollingNotWorkingAppState();
}

class _HorizontalScrollingNotWorkingAppState
    extends State<HorizontalScrollingNotWorkingApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  final ScrollController controller = ScrollController();
  final FocusNode focusNode = FocusNode();

  HomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return RawKeyboardListener(
      focusNode: focusNode,
      onKey: (rawEvent) => _onRawKey(rawEvent),
      child: Scaffold(
        appBar: AppBar(
          title: const Text('Classic Material App Bar'),
          leading: const BackButton(),
          actions: [
            IconButton(
              onPressed: () {},
              icon: const Icon(Icons.crop_portrait),
            ),
            IconButton(
              onPressed: () {},
              icon: const Icon(Icons.info_outline),
            ),
            IconButton(
              onPressed: () {},
              icon: const Icon(Icons.settings),
            ),
          ],
        ),
        body: Center(
          child: Padding(
            padding: const EdgeInsets.all(16.0),
            child: Scrollbar(
              controller: controller,
              child: SingleChildScrollView(
                controller: controller,
                scrollDirection: Axis.horizontal,
                child: Row(
                  children: [
                    Container(
                      color: Colors.red,
                      height: MediaQuery.of(context).size.height * 0.8,
                      width: 2000,
                    ),
                    Container(
                      color: Colors.green,
                      height: MediaQuery.of(context).size.height * 0.8,
                      width: 2000,
                    ),
                  ],
                ),
              ),
            ),
          ),
        ),
      ),
    );
  }

  _onRawKey(RawKeyEvent rawEvent) {
    log('Logical Key: ${rawEvent.logicalKey.toString()}');
  }
}

The driver and trackpad details are as follows:
Trackpad: Synaptics SMBus TouchPad
Driver Provider: Synaptics
Driver Version: <IP_ADDRESS>
Driver Date: 16-03-2020

@namangor04 What did the log show, which keys were pressed?

@moffatman Arrow Left and Arrow Right, same as #99960

@namangor04 Can you look in your trackpad settings, or synaptics settings, there could be a way to change the "scroll mode". If not it should be investigated whether these synthetic keyboard presses can be identified as coming from a mouse, they could be converted into scroll events to work properly.

@moffatman sir I did try to find the Scroll Mode setting in the Synaptics Touchpad App (that's what it is called on my laptop) but there is no such setting. And yes, I did try to investigate whether these synthetic events can be converted to scroll events (if we can confirm that these events came from the touch/track pad). I was not able to find anything as of yet, but i am still searching for it. If I find some useful information, i will update it here ASAP.

Link to an answer which might work, but did not work for me: https://superuser.com/a/377217
If by chance, this answer gets deleted, here's the answer:

The Stack Overflow Answer
Answer by
From Scrolling in GTK+ apps with synaptics driver :

When using a Windows laptop, you might be stuck with a synaptic
touchpad.

That window interfere with the signal sent to the application under,
and GTK for some reason can’t detect that (most likely the devs don’t
care about us). The result is being unable to scroll in popular GTK
apps like Wireshark or Pidgin.
After playing with Spy++ and Procmon for some time, I found an
interesting registry key that solved my problem. This setting will
disable the custom cursor when you scroll, effectively fixing the
scrolling problem in GTK apps.
First you have to open regedit.
Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Synaptics\SynTPEnh
and create a new DWORD called UseScrollCursor with a value of 0.
Restart SynTPEh (or reboot).
Scrolling should work in GTK apps now, but you won’t see the scrolling
cursor anymore.

I found my old laptop has this issue as well, I observed the events and noticed these synthetic events have a scan code of 0x00 rather than a real value. @dkwingsmt Is this unique or is it known that some keyboards might have missing scan code values?

The scan code 0x00 means keyboard error, doesn't it? It might be that these are synthetic events, and hence these have scan code value of 0x00. Can these be used to identify these as synthetic events? (Probably not as such a scan code might denote an error so it might not be a good idea to do so?)
And I have noticed the following:
I get this pair of Keys when swiping from left to right:

LogicalKeyboardKey#00302(keyId: "0x100000302", keyLabel: "Arrow Left", debugName: "Arrow Left")
PhysicalKeyboardKey#00000(usbHidUsage: "0x1600000000", debugName: "Key with ID 0x1600000000")

And this pair of Keys when swiping from Right to Left:

LogicalKeyboardKey#00303(keyId: "0x100000303", keyLabel: "Arrow Right", debugName: "Arrow Right")
PhysicalKeyboardKey#00000(usbHidUsage: "0x1600000000", debugName: "Key with ID 0x1600000000")

@moffatman Can you check if these are the same with your laptop?

Code Sample to capture RawKeyEvents And Convert them to KeyEvents
import 'dart:developer';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

void main() => runApp(const HorizontalScrollingNotWorkingApp());

class HorizontalScrollingNotWorkingApp extends StatefulWidget {
  const HorizontalScrollingNotWorkingApp({Key? key}) : super(key: key);

  @override
  State<HorizontalScrollingNotWorkingApp> createState() =>
      _HorizontalScrollingNotWorkingAppState();
}

class _HorizontalScrollingNotWorkingAppState
    extends State<HorizontalScrollingNotWorkingApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  final ScrollController controller = ScrollController();
  final FocusNode focusNode = FocusNode();

  HomePage({Key? key}) : super(key: key);

  void initState() {
    SystemChannels.keyEvent
        .setMessageHandler((message) => rawMessages(message));
  }

  @override
  Widget build(BuildContext context) {
    initState();
    return RawKeyboardListener(
      focusNode: focusNode,
      onKey: (rawEvent) => _onRawKey(rawEvent),
      child: Scaffold(
        appBar: AppBar(
          title: const Text('Classic Material App Bar'),
          leading: const BackButton(),
          actions: [
            IconButton(
              onPressed: () {},
              icon: const Icon(Icons.crop_portrait),
            ),
            IconButton(
              onPressed: () {},
              icon: const Icon(Icons.info_outline),
            ),
            IconButton(
              onPressed: () {},
              icon: const Icon(Icons.settings),
            ),
          ],
        ),
        body: Center(
          child: Padding(
            padding: const EdgeInsets.all(16.0),
            child: Scrollbar(
              controller: controller,
              child: SingleChildScrollView(
                controller: controller,
                scrollDirection: Axis.horizontal,
                child: Row(
                  children: [
                    Container(
                      color: Colors.red,
                      height: MediaQuery.of(context).size.height * 0.8,
                      width: 2000,
                    ),
                    Container(
                      color: Colors.green,
                      height: MediaQuery.of(context).size.height * 0.8,
                      width: 2000,
                    ),
                  ],
                ),
              ),
            ),
          ),
        ),
      ),
    );
  }

  _onRawKey(RawKeyEvent rawEvent) {
    log('Logical Key: ${rawEvent.logicalKey.debugName} ${rawEvent.isShiftPressed}');
  }

  Future<void> rawMessages(Object? message) async {
    Map map = message as Map;
    var keyEventData = RawKeyEventDataWindows(
      keyCode: map['keyCode'],
      scanCode: map['scanCode'],
      characterCodePoint: map['characterCodePoint'],
      modifiers: map['modifiers'],
    );
    log(keyEventData.physicalKey.toString());
    log(keyEventData.logicalKey.toString());
  }
}

Yes, it's the same events. Interestingly I used Spy++ to observe the event details when horizontally-scrolling in Chrome on the same laptop, and it's receiving the proper WM_MOUSEHWHEEL and not arrow keys. Not sure whether Chrome is whitelisted by the driver or has done something to ask for proper events.

@moffatman sir, if possible, can you tell me where is the code which handles the Mouse wheel events or Keyboard events on the platform side? I tried to search for it in the framework and in the engine, but they were vast and i couldn't search the whole of them.

Okay @moffatman sir, thank you for the help! And I wasn't able to find such a file. I think that the tp4table.dat file is there for the TrackPoint pointing device only.
The path to the SynTP folder on my machine is:
C:\ProgramData\Synaptics\SynTP and the folder just has some .asx files and nothing more, with each file being denoted to the gestures supported by the trackpad.
Here's the screenshot of the files that I have in the described folder:

I have found something useful here, this is kind of the same issue faced by JetBrains in their IDEs.
The issue can be found here, and they probably did some fix for it. It also mentions that we need to notify the driver that we support WM_MOUSEHWHEEL events and that we do not support scrolling by TouchEvents(which we probably do, I am also researching what fixes did they do.

Also, I just found something. When I use Spy++ and scroll the flutter window when Spy++ is in focus, the horizontal scrolling works completely normally. Here's the video for it.

Horizontal Scroll When Another (Here, Spy++) Window is in focus.
https://user-images.githubusercontent.com/64084226/172816280-a98d248a-a20a-4768-befd-921e9edee710.mp4

I have implemented a solution, which works on devices with Synaptics Touchpad (Although this is purely a flutter side implementation, not a windows side implementation). I have made it into a plugin, which can be found here on pub.dev

I believe the drivers are looking for windows with WS_VSCROLL style in order to scroll. The solution will not be trivial, I think we need to follow https://bugs.chromium.org/p/chromium/issues/detail?id=335941 and create a dummy invisible window that meets the driver's expectations, then translate the events.

That's some great information @moffatman sir, thank you.

I am working to change the engine's windows embedding but due to #94574, I am unable to run and use the local debug engine. I am still looking for work-arounds.

@moffatman sir, any updates on this one?

@namangor04 I don't plan to work on it, it's a large feature and I don't have a good development machine for Windows anymore. In regards to adding WS_HSCROLL style to the standard window, that won't work, since the window will show a non-functional scrollbar. It needs to be a separate window which is then set to transparent, so that the flutter content will show without any obstructions.

Okay thank you for the reply @moffatman sir. I am working on it. But I cannot assure anything as I am unable to compile the engine as of now. But if I do get success in compiling, I'll update the progress here.

@ilovelinux Yes it does work on Linux, I am trying to do a workaround on windows but as aforementioned, #94574 is why I am unable to test any solution.

Just to sort of bump this issue, I have a similar problem in my Win 11 environment (both web and native)
A Scrollable widget with a horizontal axis does not scroll by default for me (SingleChildScrollVuew, ListView, etc). But if I wrap it in a Scrollbar and use the same controller for both, then it works fine. I use mouse and scroll wheel but trackpad works for me too.
I’d guess that since vertical scrolling doesn’t require this, it’s not intended?

I have the same problem in windows11,ListView horizontal scrolling doesn't work, it works on mobile

But if I wrap it in a Scrollbar and use the same controller for both, then it works fine. I use mouse and scroll wheel but trackpad works for me too.

I tried your workaround @pianistrevor , but it unfortunately doesn't work for me. Would you be able to provide info about your trackpad driver?

But if I wrap it in a Scrollbar and use the same controller for both, then it works fine. I use mouse and scroll wheel but trackpad works for me too.

I tried your workaround @pianistrevor , but it unfortunately doesn't work for me. Would you be able to provide info about your trackpad driver?

I just have a standard manufacturer-provided trackpad driver on my Acer Aspire E 15. I don't think it's the driver.
Make sure you have the Scrollbar whose child is the SingleChildScrollView, the scrollDirectionproperty on the child isAxis.horizontal, and there's a ScrollController` which is attached to both of them. It should work.

Okay @pianistrevor!

Make sure you have the Scrollbar whose child is the SingleChildScrollView, the scrollDirection property on the child is Axis.horizontal, and there's a ScrollController which is attached to both of them. It should work.

I did check this again today mate, and my scrolling doesn't seem to work still. In my case, this is a fault of the driver, as can be seen in my comment

I can also reproduce this on my windows 11 laptop. Let me know if I can help somehow to fix this

I have a suggested solution,
If you want to achieve horizontal scrolling using your scroll wheel there is a good chance you may not need the user to scroll vertically in the exact same scope.
If this is the case then all you have to do is listen to the input vertically and applying those changes to the scroll controller horizontally
For example:
`
import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter/gestures.dart';
class ExampleScrolling extends StatefulWidget {
const ExampleScrolling({Key? key}) : super(key: key);
@override
State createState() => _ExampleScrollingState();
}
class _ExampleScrollingState extends State {
final scrollController = ScrollController();
@override
void dispose() {
scrollController.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return Listener(
onPointerSignal: (event) {
if(event is PointerScrollEvent) {
//if the event is a scroll event then flutter has caught a scroll event
//regardless of it being horizontal or vertical
//we notice that the offset's dx is always zero while the offset's dy
//is changing regardless if we where pressing shift or not while scrolling
      //thus we want to apply these changes to this controller which acts horizontally
      //on the horizontally scrolling listview
      //we can also customize the way and duration it takes to scroll
      scrollController.animateTo(scrollController.offset + event.scrollDelta.dy,
                  duration: Duration(milliseconds: 2), curve: Curves.bounceIn);
    }
  },
  child: ListView(
    controller: scrollController,
    scrollDirection: Axis.horizontal,
    children: [
      Container(
        width: 100,
        height: 100,
        color: Colors.red,
      ),
      Container(
        width: 100,
        height: 100,
        color: Colors.green,
      ),
    ],
  ),
);

}
}
`

I'm on mac
and mouse wheel doesn't work (only with pressed 'shift')
Could you put this in the doc so developers can show designers that flutter doesn't allow scroll with mouse
ListView.builder(                                       scrollDirection: Axis.horizontal

Any updates on this?

I have a suggested solution, If you want to achieve horizontal scrolling using your scroll wheel there is a good chance you may not need the user to scroll vertically in the exact same scope. If this is the case then all you have to do is listen to the input vertically and applying those changes to the scroll controller horizontally
For example:

import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter/gestures.dart';

class ExampleScrolling extends StatefulWidget {
  const ExampleScrolling({Key? key}) : super(key: key);

  @override
  State<ExampleScrolling> createState() => _ExampleScrollingState();
}

class _ExampleScrollingState extends State<ExampleScrolling> {

  final scrollController = ScrollController();

  @override
  void dispose() {
    scrollController.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Listener(
      onPointerSignal: (event) {
        if(event is PointerScrollEvent) {
          //if the event is a scroll event then flutter has caught a scroll event
          //regardless of it being horizontal or vertical
          //we notice that the offset's dx is always zero while the offset's dy
          //is changing regardless if we where pressing shift or not while scrolling

          //thus we want to apply these changes to this controller which acts horizontally
          //on the horizontally scrolling listview
          //we can also customize the way and duration it takes to scroll
          scrollController.animateTo(scrollController.offset + event.scrollDelta.dy,
                      duration: Duration(milliseconds: 2), curve: Curves.bounceIn);
        }
      },
      child: ListView(
        controller: scrollController,
        scrollDirection: Axis.horizontal,
        children: [
          Container(
            width: 100,
            height: 100,
            color: Colors.red,
          ),
          Container(
            width: 100,
            height: 100,
            color: Colors.green,
          ),
        ],
      ),
    );
  }
}

Thank for the suggestion.
This is working.

also does not work on linux (Ubuntu 22.04). Mousewheel horizontal scrolling is broken, with workarounds I am able to scroll by click & drag. No Scrollbar showing up though (SingleChildScrollview)


npm run install

npm run install  no script

The mentioned command in https://github.com/frida/frida-swift-bridge/blob/main/README.md is wrong.
Wrong: npm run install
Correct: npm install

PR is merged, problem solved...


remove lingeringOnCommitWouldBeBeneficial and unused imports

Description...

remove lingeringOnCommitWouldBeBeneficial since it is not used and make the logic more complex
remove unused imports

Checklist

[ ] Documentation (if applicable)
[x] Changelog

Looks good, thank you. Can you please regenerate Readme - to incorporate Changelog? Run mvn asciidoc-template:build or use Run configuration README in IDE. Ignore errors on submodules for the readme generation - they dont have readme template but report as errors when its not found.
@rkolesnev thanks for the review. README updated

/sem-approve

/sem-approve

/sem-approve

/sem-approve

/sem-approve

/sem-approve


Vpk download should allow non-existent releases.channel.json

Scenario: a CI build script would often have these steps in some shell snippet to build and deploy a release.
vpk download -c channelname ...
vpk pack  ...
vpk upload -c channelname ...

This works well, except for the initial release where there is no json file present. In the case of a http download, the 404 will be an exception, which leads too a nonzero exit code of vpk.
possible workarounds

ignoring errors in vpk download.

This is often not desirable because other errors such as a 500 http response should be a failure.

hand-crafting an initial releases.channel.json with no assets

This works and sorts the problem, but the json needs to be valid e.g. { "Assets": [] }, not merely an empty file.
I suggest that all IUpdateSource implementations should return an empty VelopackAssetFeed in case there is no feed found for the channel. In the case of http that would be in case of a 404, for a local source that's a FileNotFound and so on.
This was a Q on discord
https://discord.com/channels/767856501477343282/767856501477343286/1231899380353597524
Edit: The suggested fix is a bit complicated in an upgrade scenario: in case of the default channel, having a "RELEASES" file, but no "releases.win.json" is currently a 404 for vpk download, but in that case assuming an empty VelopackAssetFeed is incorrect. There are assets they're just in another file...

I would like to reserve the option to have a HTTP 404 response result in a non-successful exit code. If I expect the channel to exist and it doesn't, that should be an error.
Here's a third workaround: I've modified my Azure DevOps build pipeline to accept a parameter so I can disable the download step:

I'm currently working on migrating away from Squirrel.Windows and onto Velopack, so I only have RELEASES and no releases.win.json feed. During testing, this is working well for me.

Yes this might be an edge case but it’s horrible to work with CI scripts if you have lots of channels or create new channels regularly. E.g if you do a channel per major version. Even with just the common stable/beta channels it’s two sets of options.
But it becomes harder to design this if 404 should error. The only way would be an option for vpk download to “allow missing” but it doesn’t feel very elegant.

Okay, that makes sense. I purposely trigger all my releases manually so I wasn't following.
In the absence of a --allowMissingChannel (or similar) flag, how would I re-add the assertion that the channel exists? If I have to make a separate HTTP request, that's not going to be elegant either, and even worse if someone is using a private S3 or AzBlob instance with public HTTP access disabled, as the pipeline will have to pull additional CLI tools to talk to them.
Or should the flag be inverted? --ensureChannelExists

The compatible way would be the --allowMissingChannel one, because any existing user would then keep failing on 404 so it's not a breaking change for anyone.
The question as always for a switch is whether it carries its own weight at all or if it's better to not add it at all and let users handle it by e.g. yaml options, local shell deploys or similar.


Add Awesome OS X Command Line

Hopefully this is in the correct category. Let me know if you want it changed or even a new one.

Please read the instructions for creating a new list, contributing guidelines and the awesome manifest.
Especially this part:

Wait at least a couple of weeks after creating a list before submitting to give it a chance to mature.

Ping me here in a few weeks and I'll reopen ;)

The list will also need more contents before being accepted.

Alright, will do! Thanks for your comment.

@sindresorhus: I'd like you to check my submission again. Maybe now it's ready to be included. ;)

Looks good now. Nice work :)

Thanks, I'm continually adding more useful content as I come along it. Should you have any OS X command line tricks up your sleeve, feel free to let me know. :)

Lots of good ones in https://github.com/mathiasbynens/dotfiles/blob/master/.osx and https://github.com/mathiasbynens/dotfiles/blob/master/.aliases ;)


Fix duplicate environment variable check in multi-cpu condition

What does this PR do?
This PR corrects the environment variable check for DistributedType.MULTI_CPU in accelerate/state.py. Previously, the variable OMP_NUM_THREADS was duplicated. This update ensures that only one variable exists.

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

@yhna940 can you run pip install -e .[quality]; make style; make quality? It'll fix that failing CI

@yhna940 can you run pip install -e .[quality]; make style; make quality? It'll fix that failing CI

Thank you for your review :) Done 🙏


Missing release

For this reason imgflo-server currently depends on master, which is bad

Should have a git tag and be on NPM

And maybe also be moved to noflo Github org?


Encoded HTML in  renders html

optiongrp labels with encoded html get rendered as html, rather than their the text that should be displayed. <options> themselves work correctly.
I think this is down to the this.parentNode.label call: https://github.com/silviomoreto/bootstrap-select/blob/master/js/bootstrap-select.js#L587
Is there anyway to avoid this? It makes escaping output impossible with the plugin.

Example: https://jsfiddle.net/0kwes0p0/3/

The patch for this
- var label = this.parentNode.label,
+ var label = $('<div/>').text(this.parentNode.label).html(),

https://github.com/3floorsup/bootstrap-select/commit/f2ebdf3909c66aea98a3c0bff3e78b5b1e93c255.patch


Added documentation for branches

Pull Request
📖 Description

This change adds documentation for the naming and creation of branches.
✅ Checklist
General

[ ] I have added tests for my changes.
[ ] I have tested my changes.
[x] I have updated the project documentation to reflect my changes.

@EisenbergEffect i'll request a review from @nicholasrice but that is what i was thinking.


Can't find uninsall button

I accidentality installed firefox in Microsoft store and I wanted to uninstall that version. (I thought it would lookup the old installation and set it's path to that installation.)
But then I did not really know what firefox to uninstall from settings and no uninstall button where to be found on the page. The only button I found was "open" (see image below).

On the page it is stated following:

Open the Microsoft Store from the Start menu, and then browse for the application you want to uninstall. On the Store page, each installed application has an Uninstall button.

But I could not find such a button.
I'm running following version of Windows:
Edition	Windows 11 Pro
Version	21H2
Installed on	02/09/2022
OS build	22000.978
Experience	Windows Feature Experience Pack 1000.22000.978.0

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 1088a8bf-505f-522a-39e2-73f8b8cb7083
Version Independent ID: 2b0d8261-8026-2309-8685-54356ae66755
Content: Find, install, and uninstall applications
Content Source: hololens/holographic-store-apps.md
Product: hololens
Technology: windows
GitHub Login: @evmill
Microsoft Alias: millerevan

Hello @01joja , the MS Store app has change over time. The easiest way to uninstall an app on HoloLens is to press and hold on it's icon on the start menu. From there you can pin/unpin to start, or uninstall.


Publish containers automatically using Github Actions

We may want to evaluate if you move to GitHub or keep using docker hub

I think we can consider this closed and make issues for specific containers now so we prioritize them