pactl info: Connection failed: timeout

If you Completed all troubleshoot options, check below

[ x]  Did you Follow all installation instructions carefully from here?
[ x]  Did you check All troubleshoot options from here?

Describe the bug
after installing I get no audio
all services are running
Expected behavior
pactl info shows pipewire server and sound is working
Desktop (please complete the following information):

Distro: Linux Mint 20.01 e.g. ubuntu 20.04 focal
Desktop Environment > Mate

Journal log and status of related services
systemctl --user status pipewire{,-pulse}.{socket,service} pipewire-media-session.service
`
● pipewire.socket - Multimedia System
Loaded: loaded (/usr/lib/systemd/user/pipewire.socket; enabled; vendor preset: enabled)
Active: active (running) since Thu 2021-06-03 21:53:18 CEST; 15min ago
Triggers: ● pipewire.service
Listen: /run/user/1000/pipewire-0 (Stream)
CGroup<EMAIL_ADDRESS>● pipewire.service - Multimedia Service
Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2021-06-03 21:53:18 CEST; 15min ago
TriggeredBy: ● pipewire.socket
Main PID: 98784 (pipewire)
CGroup<EMAIL_ADDRESS>└─98784 /usr/bin/pipewire
● pipewire-pulse.socket - PipeWire PulseAudio
Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.socket; enabled; vendor preset: enabled)
Active: active (running) since Thu 2021-06-03 21:53:18 CEST; 15min ago
Triggers: ● pipewire-pulse.service
Listen: /run/user/1000/pulse/native (Stream)
CGroup<EMAIL_ADDRESS>● pipewire-pulse.service - PipeWire PulseAudio
Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2021-06-03 21:53:18 CEST; 15min ago
TriggeredBy: ● pipewire-pulse.socket
Main PID: 98786 (pipewire-pulse)
CGroup<EMAIL_ADDRESS>└─98786 /usr/bin/pipewire-pulse
● pipewire-media-session.service - Multimedia Service Session Manager
Loaded: loaded (/usr/lib/systemd/user/pipewire-media-session.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2021-06-03 21:53:18 CEST; 15min ago
Main PID: 98785 (pipewire-media-)
CGroup<EMAIL_ADDRESS>└─98785 /usr/bin/pipewire-media-session
`

Have the same issue since today's update.
Distro: Ubuntu 21.04
Desktop Environment: Gnome 3.38.5 (vanilla, not unity-like)
Kernel: 5.11.0-18-generic

For me it was working since 0.3.26 or something like that. (Started using it, when this PPA was launched.)
With the update today I noticed, that pipewire-media-session was newly installed, which wasn't installed previously.

All problem should solves with 1c0e643 wait for rebuild by launchpad.

@terxw  @p0kR  with publishing pipewire-0.3.29-2 All problems should sorted out. Please upgrade. while upgrading, If packages are kept back upgrade with --with-new-pkgs this is default behaviour if a package changes its dependencies

@terxw  does your all problem solved ? can i close it?

@souravdas142 thank you for help, but sadly, after upgrade, still no dice, timeout error is still present....

from 0.3.28 all conf files are moved to /usr/share/pipewire, did you copied from this location to /etc/pipewire ?
just disable and stop all services and re-enable them. do follow.
systemctl --user --now disable pipewire{,-pulse}.{socket,service} pipewire-media-session.service
systemctl --user --now enable pipewire{,-pulse}.{socket,service} pipewire-media-session.service

otherwise follow #16  this guy running mint with same version.

I did reinstall as in #16, I rebooted twice, reapplied all install steps
I have verified that I have copied files from usr/share to /etc
ls-alt /usr/share/pipewire celkom 44K -rw-r--r-- 1 root root 2195 jún  3 14:58 pipewire-pulse.conf -rw-r--r-- 1 root root 9103 jún  3 14:58 pipewire.conf -rw-r--r-- 1 root root 2230 jún  3 14:58 jack.conf -rw-r--r-- 1 root root 2465 jún  3 14:58 client-rt.conf -rw-r--r-- 1 root root 2162 jún  3 14:58 client.conf drwxr-xr-x 2 root root    9 jún  5 07:41 media-session.d drwxr-xr-x 2 root root    7 jún  5 07:41 filter-chain
`
systemctl --user status pipewire{,-pulse}.{socket,service} pipewire-media-session.service
● pipewire.socket - Multimedia System
Loaded: loaded (/usr/lib/systemd/user/pipewire.socket; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-06-05 08:15:47 CEST; 10min ago
Triggers: ● pipewire.service
Listen: /run/user/1000/pipewire-0 (Stream)
CGroup<EMAIL_ADDRESS>● pipewire.service - Multimedia Service
Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-06-05 08:15:47 CEST; 10min ago
TriggeredBy: ● pipewire.socket
Main PID: 206057 (pipewire)
CGroup<EMAIL_ADDRESS>└─206057 /usr/bin/pipewire
● pipewire-pulse.socket - PipeWire PulseAudio
Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.socket; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-06-05 08:15:47 CEST; 10min ago
Triggers: ● pipewire-pulse.service
Listen: /run/user/1000/pulse/native (Stream)
CGroup<EMAIL_ADDRESS>● pipewire-pulse.service - PipeWire PulseAudio
Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-06-05 08:15:47 CEST; 10min ago
TriggeredBy: ● pipewire-pulse.socket
Main PID: 206059 (pipewire-pulse)
CGroup<EMAIL_ADDRESS>└─206059 /usr/bin/pipewire-pulse
● pipewire-media-session.service - Multimedia Service Session Manager
Loaded: loaded (/usr/lib/systemd/user/pipewire-media-session.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-06-05 08:15:47 CEST; 10min ago
Main PID: 206058 (pipewire-media-)
CGroup<EMAIL_ADDRESS>└─206058 /usr/bin/pipewire-media-session
`
interesting topic I found:
https://bbs.archlinux.org/viewtopic.php?id=265222
still timeout error

After second round of reapplying the instruction, I got it working:
pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 33
Server Protocol Version: 35
Is Local: áno
Client Index: 51
Tile Size: 65472
User Name: kangus
Host Name: timelinex
Server Name: PulseAudio (on PipeWire 0.3.29)
Server Version: 14.0.0
Default Sample Specification: float32le 2k 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_1f.3.analog-stereo
Default Source: alsa_input.pci-0000_00_1f.3.analog-stereo
Cookie: a7f9:d3db


Made Delay_Between_Shot to global like old crackshot

Description
pls ,I have been wait for this since August. I rellay want Delay_Between_Shot to global like old crackshot
Configuration
none

Payment (optional)

[ ] I'm willing to pay for this feature

Duplicate #148
If you want a feature added quickly, offer to pay for it. Otherwise, we are too busy with college. Maybe after finals.


Flake8ize whole code

Manually tested that it still works. Still we need unit tests ;D

This is awesome - keep em coming! We should set up Travis to autofix all code to these standards - would you be up for that?

Yes!


Dataclass error while importing Fairseq in Python 3.11

🐛 Bug
FaValueError: mutable default <class 'fairseq.dataclass.configs.CommonConfig'> for field common is not allowed: use default_factory
To Reproduce
Steps to reproduce the behavior (always include the command you ran):
1, pip install fairseq==0.12.2
2. from fairseq import *

Trace:
Traceback (most recent call last):
File "", line 1, in
File "/home/a1bharat/fairseq/fairseq/init.py", line 20, in
from fairseq.distributed import utils as distributed_utils
File "/home/a1bharat/fairseq/fairseq/distributed/init.py", line 7, in
from .legacy_distributed_data_parallel import LegacyDistributedDataParallel
File "/home/a1bharat/fairseq/fairseq/distributed/legacy_distributed_data_parallel.py", line 23, in
from fairseq.distributed import utils
File "/home/a1bharat/fairseq/fairseq/distributed/utils.py", line 22, in
from fairseq.dataclass.configs import DistributedTrainingConfig, FairseqConfig
File "/home/a1bharat/fairseq/fairseq/dataclass/init.py", line 6, in
from .configs import FairseqDataclass
File "/home/a1bharat/fairseq/fairseq/dataclass/configs.py", line 906, in
@dataclass
^^^^^^^^^
File "/usr/lib/python3.11/dataclasses.py", line 1220, in dataclass
return wrap(cls)
^^^^^^^^^
File "/usr/lib/python3.11/dataclasses.py", line 1210, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'fairseq.dataclass.configs.CommonConfig'> for field common is not allowed: use default_factory
Code sample

Environment

fairseq Version ( main):
PyTorch Version (e.g., 1.0): 1.13.1
OS (e.g., Linux): Ubuntu
How you installed fairseq (pip, source): pip install successful
Build command you used (if compiling from source): git clone followed by pip install ./
Python version: 3.11
CUDA/cuDNN version:  11.6
GPU models and configuration: NVIDIA
Any other relevant information:

Additional context

Is Pytorch supporting python 3.11?

@EmreOzkose Yes, Pytorch2.0 supports Python 3.11

https://github.com/facebookresearch/fairseq/blob/176cd934982212a4f75e0669ee81b834ee71dbb0/fairseq/dataclass/configs.py#L1129
I assume it wants something like this:
@dataclass
class FairseqConfig(FairseqDataclass):
-     common: CommonConfig = CommonConfig()
+     common: CommonConfig = field(default_factory=CommonConfig)

same problem

Experiencing this with 3.11.2.

I am also facing the same issue. any way to resolve?

@Muskan19577 I had to move back to python 3.9

I have this same issue running Python 3.11.3, and the config.py modifications suggested did not resolve the issue.  Looks like the issues migrated to the hydra module, based on the traceback. Please advise. Traceback below.

getting the same ValeError iwth Python 3.11.4. Any suggestions?

The official fix is too slow, I made a fix version myself.
You can install it using the following command.
v0.12.3.
I conducted a simple test and found no abnormalities.
pip install git+https://github.com/One-sixth/fairseq.git

This issue still exists on the official release. I'm using Python 3.11.

This issue still exists on the official release. I'm using Python 3.11.

Same error with Python 3.11.5

Same error with Python 3.11

Same error with Python 3.11.6 😥

The changes to dataclasses are an official change that was introduced in python 3.11, meaning all 3.11.x and higher won't work. This will need to get changed in fairseq's codebase, and won't fix itself

Python 3.11.4 (main, Jul  5 2023, 14:15:25) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import fairseq
Traceback (most recent call last):
File "", line 1, in
File "/home/users/nus/zyh/anaconda3/lib/python3.11/site-packages/fairseq/init.py", line 20, in
from fairseq.distributed import utils as distributed_utils
File "/home/users/nus/zyh/anaconda3/lib/python3.11/site-packages/fairseq/distributed/init.py", line 7, in
from .fully_sharded_data_parallel import (
File "/home/users/nus/zyh/anaconda3/lib/python3.11/site-packages/fairseq/distributed/fully_sharded_data_parallel.py", line 10, in
from fairseq.dataclass.configs import DistributedTrainingConfig
File "/home/users/nus/zyh/anaconda3/lib/python3.11/site-packages/fairseq/dataclass/init.py", line 6, in
from .configs import FairseqDataclass
File "/home/users/nus/zyh/anaconda3/lib/python3.11/site-packages/fairseq/dataclass/configs.py", line 1104, in
@dataclass
^^^^^^^^^
File "/home/users/nus/zyh/anaconda3/lib/python3.11/dataclasses.py", line 1230, in dataclass
return wrap(cls)
^^^^^^^^^
File "/home/users/nus/zyh/anaconda3/lib/python3.11/dataclasses.py", line 1220, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/users/nus/zyh/anaconda3/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/users/nus/zyh/anaconda3/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'fairseq.dataclass.configs.CommonConfig'> for field common is not allowed: use default_factory

I have encountered these problems, and here is my solution:
Windows11 environment
pip install git+https://github.com/liyaodev/fairseq.git
or
Download [fairseq-<IP_ADDRESS>-cp311-cp311-linux_x86_64.whl](https://github.com/liyaodev/fairseq/releases/tag/v<IP_ADDRESS>)
pip install./fairseq-<IP_ADDRESS>-cp311-cp311-linux_x86_64.whl

WSL2(Ubuntu22.04) environment(my local use)
pip install git+https://github.com/liyaodev/fairseq.git
or
Download [fairseq-<IP_ADDRESS>-cp311-cp311-linux_x86_64.whl](https://github.com/liyaodev/fairseq/releases/tag/v<IP_ADDRESS>)

pip install./fairseq-<IP_ADDRESS>-cp311-cp311-linux_x86_64.whl

there's a little tip, best use hydra-core==1.3.2 omegaconf==2.3.0

Alternately, you can use my fork of fairseq which supports Python 3.11, Knowledge Distillation, Adapters a few more interesting fixes.

!!! this issue needs attention.
Can't use python 3.11.2,
ValueError: mutable default <class 'fairseq.dataclass.configs.CommonConfig'> for field common is not allowed: use default_factory

This same error is being output with Python 3.12.0.

Figured since it's April now, I'd throw in my two cents. Still not working.

https://github.com/facebookresearch/fairseq/blob/176cd934982212a4f75e0669ee81b834ee71dbb0/fairseq/dataclass/configs.py#L1129
I assume it wants something like this:
@dataclass
class FairseqConfig(FairseqDataclass):
-     common: CommonConfig = CommonConfig()
+     common: CommonConfig = field(default_factory=CommonConfig)

Thanks, it work for me. I change all the error place like you suggestion.

@liyaodev, could you please tell me what the exact name of the package you mentioned would be for Windows?

@liyaodev, could you please tell me what the exact name of the package you mentioned would be for Windows?

Windows 11 Professional

Not working in CentOS, Python 3.11

So uh, still not working in Python 3.12 😅 Compile from source fixes tho

problem still up and critical

I have encountered these problems, and here is my solution: Windows11 environment
pip install git+https://github.com/liyaodev/fairseq.git

or, download fairseq-<IP_ADDRESS>-cp311-cp311-linux_x86_64.whl
pip install./fairseq-<IP_ADDRESS>-cp311-cp311-linux_x86_64.whl

WSL2(Ubuntu22.04) environment(my local use)
pip install git+https://github.com/liyaodev/fairseq.git

or, download fairseq-<IP_ADDRESS>-cp311-cp311-linux_x86_64.whl
pip install./fairseq-<IP_ADDRESS>-cp311-cp311-linux_x86_64.whl

there's a little tip, best use hydra-core==1.3.2 omegaconf==2.3.0

does this still work?

This is what I get.
Traceback (most recent call last):
  File "C:\Users\neph\rvc-tts-webui\app.py", line 12, in <module>
    from fairseq import checkpoint_utils
  File "C:\Users\neph\rvc-tts-webui\venv\Lib\site-packages\fairseq\__init__.py", line 20, in <module>
    from fairseq.distributed import utils as distributed_utils
  File "C:\Users\neph\rvc-tts-webui\venv\Lib\site-packages\fairseq\distributed\__init__.py", line 7, in <module>
    from .fully_sharded_data_parallel import (
  File "C:\Users\neph\rvc-tts-webui\venv\Lib\site-packages\fairseq\distributed\fully_sharded_data_parallel.py", line 10, in <module>
    from fairseq.dataclass.configs import DistributedTrainingConfig
  File "C:\Users\neph\rvc-tts-webui\venv\Lib\site-packages\fairseq\dataclass\__init__.py", line 6, in <module>
    from .configs import FairseqDataclass
  File "C:\Users\neph\rvc-tts-webui\venv\Lib\site-packages\fairseq\dataclass\configs.py", line 1104, in <module>
    @dataclass
     ^^^^^^^^^
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\Lib\dataclasses.py", line 1268, in dataclass
    return wrap(cls)
           ^^^^^^^^^
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\Lib\dataclasses.py", line 1258, in wrap
    return _process_class(cls, init, repr, eq, order, unsafe_hash,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\Lib\dataclasses.py", line 994, in _process_class
    cls_fields.append(_get_field(cls, name, type, kw_only))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\Lib\dataclasses.py", line 852, in _get_field
    raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'fairseq.dataclass.configs.CommonConfig'> for field common is not allowed: use default_factory
(venv) PS C:\Users\neph\rvc-tts-webui> pip install git+https://github.com/liyaodev/fairseq.git
Collecting git+https://github.com/liyaodev/fairseq.git
  Cloning https://github.com/liyaodev/fairseq.git to c:\users\neph\appdata\local\temp\pip-req-build-ktcozen9
  Running command git clone --filter=blob:none --quiet https://github.com/liyaodev/fairseq.git 'C:\Users\neph\AppData\Local\Temp\pip-req-build-ktcozen9'
  Resolved https://github.com/liyaodev/fairseq.git to commit b963eac7a04c539ad59fb1e23277f2ff7ee29e74
  Running command git submodule update --init --recursive -q
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      Traceback (most recent call last):
        File "C:\Users\neph\rvc-tts-webui\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Users\neph\rvc-tts-webui\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\neph\rvc-tts-webui\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\neph\AppData\Local\Temp\pip-build-env-1tdzldxr\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\neph\AppData\Local\Temp\pip-build-env-1tdzldxr\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "C:\Users\neph\AppData\Local\Temp\pip-build-env-1tdzldxr\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 246, in <module>
      OSError: [WinError 1314] Dem Client fehlt ein erforderliches Recht: '..\\examples' -> 'fairseq\\examples'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

the problem is still relevant and really critical

This is my first answer on any forum, besides, my English is bad. Sorry, guys.
Somehow it worked.

Run cmd as administrator(!)
Write this to the console:

git clone https://github.com/pytorch/fairseq
cd -EQ
pip is available for installation and editing./

Next, you may encounter the error "1 required argument is missing, containing only the keyword: 'recursive_guard'". You will need to change the Python version to 3.12.3 or lower. In version 3.12.4, this error will be displayed

I have encountered these problems, and here is my solution: Windows11 environment
pip install git+https://github.com/liyaodev/fairseq.git

or, download fairseq-<IP_ADDRESS>-cp311-cp311-linux_x86_64.whl
pip install./fairseq-<IP_ADDRESS>-cp311-cp311-linux_x86_64.whl

WSL2(Ubuntu22.04) environment(my local use)
pip install git+https://github.com/liyaodev/fairseq.git

or, download fairseq-<IP_ADDRESS>-cp311-cp311-linux_x86_64.whl
pip install./fairseq-<IP_ADDRESS>-cp311-cp311-linux_x86_64.whl

there's a little tip, best use hydra-core==1.3.2 omegaconf==2.3.0

does this still work?

This does not work for me on windows. I am getting OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\Jacki\AppData\Local\Temp\pip-build-env-x3uaf2ep\overlay\Lib\site-packages\torch\lib\shm

@yjyuanjin Your patch didn't work for me.

The official fix is too slow, I made a fix version myself. You can install it using the following command. v0.12.3. I conducted a simple test and found no abnormalities.
pip install git+https://github.com/One-sixth/fairseq.git

I'm on Ubuntu linux python 3.11.9(conda venv) and pip installing it worked

I have encountered these problems, and here is my solution: Windows11 environment
pip install git+https://github.com/liyaodev/fairseq.git

or, download fairseq-<IP_ADDRESS>-cp311-cp311-linux_x86_64.whl
pip install./fairseq-<IP_ADDRESS>-cp311-cp311-linux_x86_64.whl

WSL2(Ubuntu22.04) environment(my local use)
pip install git+https://github.com/liyaodev/fairseq.git

or, download fairseq-<IP_ADDRESS>-cp311-cp311-linux_x86_64.whl
pip install./fairseq-<IP_ADDRESS>-cp311-cp311-linux_x86_64.whl

there's a little tip, best use hydra-core==1.3.2 omegaconf==2.3.0

python 3.11, problem solved! Many thanks.

field(default_factory=CommonConfig)

When I use this, the problem solved but there comes up with anther issue:
train.py: error: unrecognized arguments:   --warmup-ratio= 0.01


32-bit games crash on AMD APUs with radv

It seems like DXVK by default maps every buffer which can be mapped. On an APU all buffers are going to be able to be mapped, resulting in running out of address space in 32-bit applications.
RADV patch to get an APU like memory configuration:
From cb7415972bbd39b96f17da252a141ba9ae469508 Mon Sep 17 00:00:00 2001
From: Bas Nieuwenhuizen<EMAIL_ADDRESS>Date: Sat, 15 Sep 2018 17:54:02 +0200
Subject: [PATCH] radv: Fake APU memory

---
 src/amd/vulkan/radv_device.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 8989ec3553f..f2736b78dd3 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -118,9 +118,13 @@ static void
 radv_physical_device_init_mem_types(struct radv_physical_device *device)
 {
        STATIC_ASSERT(RADV_MEM_HEAP_COUNT <= VK_MAX_MEMORY_HEAPS);
+       device->rad_info.vram_size = (device->rad_info.vram_vis_size / 2 + 4095) & ~4095ull;
+       device->rad_info.has_dedicated_vram = false;
+
        uint64_t visible_vram_size = MIN2(device->rad_info.vram_size,
                                          device->rad_info.vram_vis_size);

        int vram_index = -1, visible_vram_index = -1, gart_index = -1;
        device->memory_properties.memoryHeapCount = 0;
        if (device->rad_info.vram_size - visible_vram_size > 0) {
--
2.19.0

@BNieuwenhuizen
https://github.com/doitsujin/dxvk/wiki/Common-issues#32-bit-games

I thought I got agreement with Philipp that this should be fixed in DXVK instead of worked around in radv.  If there is really no plan for DXVK to fix it I may have to reconsider ...

I'll try to fix this in DXVK. It's going to be a bit of work though, because right now i'm not tracking whether an allocation needs to be mapped or not.

eac86fab1536e070c9af703de3c4140069c20a61 should fix this for now. It's a rather simple solution that might increase overall memory consumption on such systems, but should be good enough in practice.

Thanks. It seems, like Grey Goo (32 bit) is now runs fine on RADV 18.3-git and AMD Raven.


better to move 'org.apache.ibatis.exceptions.TooManyResultsException' to the package of 'org.apache.ibatis.session'

like the title says,it seems a better idea to move org.apache.ibatis.exceptions.TooManyResultsException   to org.apache.ibatis.session,
since many other subclasses of PersistenceException (e.g. ExecutorException) are distributed among sub packages

Maybe. But moving the class is a backward incompatible change and changing package does not bring any benefit.
So, let's just keep it as it is.


Android sheet height

I have to provide a minHeight to the container style prop given that the size prop doesnt work with Android

What do you mean? are you referring to the maxHeight?


[MRG+1] Match channels in case insensitive manner when applying montage

When a montage defines a position for electrode FP1 and the channel name in the data is Fp1, that should be good enough. This crops up from time to time when defaulting back on the standard_1005 montage.

Maybe this should be an option with default case_sensitive=True for backward/future compat in case people do have case sensitive names. WDYT?

Current coverage is 85.60% (diff: 100%)

Merging #3910 into master will increase coverage by <.01%

@@             master      #3910   diff @@
==========================================
  Files           347        347
  Lines         61934      61940     +6
  Methods           0          0
  Messages          0          0
  Branches       9494       9494
==========================================
+ Hits          53016      53022     +6
  Misses         6255       6255
  Partials       2663       2663

Powered by Codecov. Last update 953764b...da2047e

Thank man, I get bitten by this all the time!

Maybe this should be an option with default case_sensitive=True for backward/future compat in case people do have case sensitive names. WDYT?

I agree making it an option is probably better.

Maybe this should be an option with default case_sensitive=True for backward/future compat in case people do have case sensitive names.

People have case sensitive channel names? Madness I tell you!

I am thinking that it could be automatic to be case sensitive if being not
case sensitive creates dupes.
so I could first check if there is any dupe if I put everything upper case
and if not work with non-case sensitive matching.

I've now implemented @agramfort 's idea.

LGTM
please update what's new

thx @wmvanvliet !


feat: configurable canvas config.onResize callback

Related issue https://github.com/oframe/ogl/issues/226

Hi @CodyJasonBennett , I accidentally closed this PR by cleaning up my online repos, sorry.
Could you take a look into the source changes? They are just a few lines. https://github.com/pmndrs/react-ogl/pull/84/files


Lyrics shift by one line

Description
https://imgur.com/KxZVJkq (Video)
01. Alice In Chains - Rotten Apple (Album Version).txt
I uploaded lyrics in txt because github didn't support lrc .
As you can see in the video the lyrics highlights one sentence fast the sung one.
I tried with three four different songs it's same for others as well
Steps to reproduce
By using the lyrics pane.
Expected behavior
No response
What terminal emulator are you running rmpc in?
No response
rmpc debuginfo
rmpc 0.6.0 git 33027ab
Config path          /home/hypr/.config/rmpc/config.ron
Theme path           Some("wallust")
MPD:
Address              "<IP_ADDRESS>:6600"
Resolved Address     IpAndPort("<IP_ADDRESS>:6600")
MPD_HOST             unset
MPD_PORT             unset
Youtube playback:
Cache dir            Some("/home/hypr/.cache/rmpc/")
ffmpeg               installed       ffmpeg version 6.1.2 Copyright (c) 2000-2024 the FFmpeg developers
ffprobe              installed       ffprobe version 6.1.2 Copyright (c) 2007-2024 the FFmpeg developers
yt-dlp               installed       2024.09.27
python3              installed       Python 3.12.7
python-mutagen       installed       PRESENT
Image protocol:
Requested            Auto
Resolved             Kitty
TMUX                 false
ueberzugpp           not installed   Version not available
Config file
#![enable(implicit_some)]
#![enable(unwrap_newtypes)]
#![enable(unwrap_variant_newtypes)]
(
address: "<IP_ADDRESS>:6600",
on_song_change: ["~/.config/rmpc/notify"],
lyrics_dir: "~/.lyrics",
theme: Some("wallust"),
cache_dir: Some("/home/hypr/.cache/rmpc/"),
volume_step: 5,
status_update_interval_ms: 1000,
wrap_navigation: false,
enable_mouse: true,
album_art: (
method: Auto,
max_size_px: (width: 600, height: 600),
),
keybinds: (
global: {
":": CommandMode,
"3": ArtistsTab,
",": VolumeDown,
"s": Stop,
".": VolumeUp,
"c": ToggleSingle,
"1": QueueTab,
"6": SearchTab,
"": NextTab,
"": NextTab,
"5": PlaylistsTab,
"": PreviousTab,
"": PreviousTab,
"q": Quit,
"4": AlbumsTab,
"x": ToggleRandom,
">": NextTrack,
"<": PreviousTrack,
"f": SeekForward,
"v": ToggleConsume,
"2": DirectoriesTab,
"p": TogglePause,
"z": ToggleRepeat,
"b": SeekBack,
"~": ShowHelp,
"O": ShowOutputs,
},
navigation: {
"": UpHalf,
"N": PreviousResult,
"a": Add,
"r": Rename,
"n": NextResult,
"g": Top,
"": Select,
"G": Bottom,
"h": Left,
"": Confirm,
"i": FocusInput,
"J": MoveDown,
"j": Down,
"": DownHalf,
"/": EnterSearch,
"":     Close,
        "<Esc>":     Close,

"K": MoveUp,
"l": Right,
"D": Delete,
"k": Up,
},
queue: {
    "D":       DeleteAll,
    "<CR>":    Play,
    "<C-s>":   Save,
    "a":       AddToPlaylist,
    "d":       Delete,
    "i":       ShowInfo,
            },
               ),

tabs: [
(
name: "Queue",
border_type: None,
pane: Split(
direction: Horizontal,
panes: [
(
size: "45%",
pane: Split(
direction: Vertical,
panes: [
(
size: "10%",
pane: Pane(Lyrics),
),
(
size: "90%",
pane: Pane(AlbumArt),
)
]
),
),
(
size: "55%",
pane: Pane(Queue),
),
],
),
),
(
        name: "Directories",

        border_type: Full,

        pane: Pane(Directories),

    ),

    (

        name: "Artists",

        border_type: None,

        pane: Pane(Artists),

    ),

    (

        name: "Album Artists",

        border_type: None,

        pane: Pane(AlbumArtists),

    ),

    (

        name: "Albums",

        border_type: None,

        pane: Pane(Albums),

    ),

    (

        name: "Playlists",

        border_type: None,

        pane: Pane(Playlists),

    ),

    (

        name: "Search",

        border_type: None,

        pane: Pane(Search),

    ),

],
)
Relevant log output

rmpc log
Paste the contents here

Thanks, should be fixed in https://github.com/mierak/rmpc/pull/176.


Res map and patch update

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
Attention: Patch coverage is 88.23529% with 2 lines in your changes missing coverage. Please review.

Project coverage is 87.51%. Comparing base (1dc62d1) to head (9df6fb5).

Files
Patch %
Lines

apkInspector/indicators.py
71.42%
2 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #32      +/-   ##
==========================================
- Coverage   87.53%   87.51%   -0.03%
==========================================
  Files           7        7
  Lines        1051     1065      +14
==========================================
+ Hits          920      932      +12
- Misses        131      133       +2

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Issue with natural number regex for PH

regex: 2\d{5,7}|[3-9]\d{7,9}|1800\d{7,9}
for number:<PHONE_NUMBER> it shows true, while actually 63 is country code. so it should show as false

Hi,
Thank you for taking the time to improve libphonenumber!
If user inputs the number like +6322852824 or 022852824 the library will parse and remove +, 0 or country code to get the actual subscriber number i.e 22852824. So this is a valid fixedline number. Please see demo.
I'll close this as it's not an issue with the library. Please consider joining the discussion group if you'd like to discuss this further.

6322852824 what if the user entered only like this and given PH as default location.On Mar 27, 2017 4:11 PM, kkeshava<EMAIL_ADDRESS>wrote:Hi,
Thank you for taking the time to improve libphonenumber!
If user inputs the number like +6322852824 or 022852824 the library will parse and remove +, 0 or country code to get the actual subscriber number i.e 22852824. So this is a valid fixedline number. Please see demo.
I'll close this as it's not an issue with the library. Please consider joining the discussion group if you'd like to discuss this further.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

We can actually handle this a bit better. Re-opening for tracking.

This issue has been fixed. If you feel something is not fixed still, we invite you to file issues in Google's new Issue Tracker, which we're currently testing.


getNewLibraryCopy method in v2.x

This PR adds the getNewLibraryCopy method to bluebird v2.x.
Same as method added to v3.x in PR #1076.

LGTM

Landed in https://github.com/petkaantonov/bluebird/commit/14dc3b9b9f0bd6843819b953b72461a9de9ff40e - pending release.


Web3 contract creation status value

Contract creation transaction receipts have a status of '0x1', even though the transaction was successful.

0x1 should be correct, we implemented as per this spec:
https://github.com/ethereum/EIPs/pull/658


StringTag.Set(Span, StringTag) bug

Was this supposed to set the key to the key?
    public void set(Span span, StringTag tag) {
        span.setTag(super.key, tag.key);
    }

@cwe1ss do you know who might be able to look at this?

Hm... looks weird, yes.
/cc contributors with most commits: @bhs, @adriancole @pavolloffay, @michaelsembwever

After a quick look, it does look correct...
But I'm not sure it's very helpful (not sure it's often required to use a Tag key as the Tag value, such as "component",  "error" or "span.kind", i.e span.setTag("customTag", "span.kind"); ;) )
This change landed on June 2016, so it's kinda old. If it's really needed we should document it - else, probably deprecate it? @yurishkuro may know better ;)

it looks weird - why does this method even exists? A signature for the string tag should be set(Span, String)

i.e this: https://github.com/opentracing/opentracing-java/blob/master/opentracing-api/src/main/java/io/opentracing/tag/AbstractTag.java#L29

It was added here, I think it was a mistake. We should deprecate it.

StringTag already implements this one (set(Span, String)) so this method is a unneeded extra. Yes, lets deprecate it then 👍


Suport to HTML

Its possible to add suport to HTML tags with the library react-native-render-html? This library transforms HTML tags into native react native components. And it's possible to customize any tags.

@matheuswr89 react-native-render-html can be integrated using custom renderer.
class CustomRenderer extends Renderer implements RendererInterface {
  constructor() {
    super();
  }

  html(text: string, styles?: TextStyle): ReactNode {
    return (
      <RenderHtml source={text} />
    );
  }

}


Keep Object References Through Serialization

There is no mention of objects being serialized from the background store to the content store. I was incredibly confused by my equality check in componentWillReceiveProps showing props were not equal even though they were.
The serialization should be documented and/or there should be a way to keep the object references.

Hi @jdolle  - sorry you ran into some trouble.
This is because of the limitations of the chrome message api, which serializes messages before sending between the content-scripts and the event page. We can definitely add a note somewhere in the documentation.
Just curious: What's the use case of using the equality check in componentWillReceiveProps?

A simplified version of what I'm doing is setting the extension's icon based on if the current location is within an array fetched from an API.
I made an alias that sets the icon on the background script and without a comparison check, it dispatches to set the icon, this causes mapStateToProps to fire, and that triggers componentWillReceiveProps, which fires the dispatch again -- so it loops endlessly.

@tshaddix partial updates from the background script to the content scripts would help here, but then you have to answer the question of "what got updated?", which is pretty anti-redux. We'd end up having to either do checking on our end or have folks implement some weird API to signal what to send back (yuck).
I think the best option here is to document.

I am worried about the inefficiency of passing everything every time.
Not only does it require more specific checks (checking IDs or some other value instead of reference) but also that is potentially a lot of data. What if mapStateToProps could be moved to the background -- allowing it to efficiently compare props on the background using references, then somehow (batched messaging targeting specific props of specific components somehow -- not entirely sure of implementation) update the appropriate components' props.

^ Partial updates were easier than I anticipated.
@vhmth I don't understand why this is anti-redux. This is how redux behaves normally. Every time you dispatch an action it doesn't create a copy of the entire state.

I'm not worried about this being anti-redux as we are already extending that concept to get stores synchronized across processes.
This change will actually bring behavior closer in line with how canonical Redux works.  As @jdolle mentioned, behavior will now be what is expected if one wasn't using this library 👍
It's actually a pretty spicy idea that reminds me of how running React in a Worker works - we just send the minimal "patch" to update our "virtual store" in a different process :)
I'm all for this!

https://www.useloom.com/share/74178d993c6e4e9fab0f2a6ed5b47777


Add dropdown to enable drawing shapes with fixed aspect ratios/sizes

Closes #26

We weren't passing the mode options through.  I've made a PR in large_image to do this: https://github.com/girder/large_image/pull/881
You'll need to change the code to something like:
const options = {modeOptions: {}};
options.modeOptions.constraint = { width: this._editOptions.fixed_width, height: this._editOptions.fixed_height };

I noticed that the dropdown arrows on the control panels were inconsistent because of how I had implemented them.  I pushed a change to fix that.
Otherwise, this is working for me.  I'll approve this -- if you don't like my changes, feel free to un-approve and handle things a different way.

I think you'll be able to merge without the coverage test passing.


Highlight continue keywords for loops when the cursor is on the loop or continue keyword

We currently highlight all loop break points and the loop keyword itself when the cursor is on a loop or break keyword. We should also highlight all related continues in some cases, that is the following when the cursor is on:

a loop keyword, that is for, while and loop, highlight all break and continue that belong to the given loop as well the loop keyword
break: Highlight all break that belong to the loop as well as the loop keyword
continue: Highlight all continue that belong to the loop as well as the loop keyword

Relevant code is here:
https://github.com/rust-analyzer/rust-analyzer/blob/ba330548023607717295f0dfd61b72eda41aa9dd/crates/ide/src/highlight_related.rs#L66-L69
https://github.com/rust-analyzer/rust-analyzer/blob/ba330548023607717295f0dfd61b72eda41aa9dd/crates/ide/src/highlight_related.rs#L188-L245

I'll try that one :)


Queryable Interface should be Generic

Rather than only allow querying by a String, allow any Class to be used as the parameter. It is still up to the implementation of the interface to interperate that parameter as needed. e.g. a File object could be passed and it's getName() or getPath() methods used to search as the implementation requires.

Closed by pull request #14


Declare request example for PlainTextResponse

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
PlainTextResponse

Description
Could you add to this page https://github.com/tiangolo/fastapi/blob/master/docs/en/docs/tutorial/schema-extra-example.md (or create a new page) an example of how the PlainTextResponse example value could be written in the fastapi Python code?
All it says now is "string".....  :-)
Maybe due to a lack of a schema...but a placeholder for the actual value of the string would be usefull to know about.
Wanted Solution
Tutorial documentation update.
Wanted Code
n/a

Alternatives
No response
Operating System
Other
Operating System Details
No response
FastAPI Version
latest
Python Version
3.9
Additional Context
No response

I was playing a bit with source code and in case of small changes in openapi generation utilities, and using next code:
from fastapi import FastAPI
from fastapi.responses import PlainTextResponse
from pydantic import BaseModel

app = FastAPI()

class HelloWorld(BaseModel):
    __root__: str

    class Config:
        schema_extra = {"example": "Hello World"}

@app.get("/", response_class=PlainTextResponse, response_model=HelloWorld)
async def main():
    return "Hello World"

I've received next specification:
openapi: 3.0.2
info:
  title: FastAPI
  version: 0.1.0
paths:
  /:
    get:
      summary: Main
      operationId: main__get
      responses:
        '200':
          description: Successful Response
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/HelloWorld'
components:
  schemas:
    HelloWorld:
      example: Hello World
      title: HelloWorld
      type: string

Is it what expected?


condition message

do we have any popup message show for cell conditional edit?

any updates / suggestion for this?

"do we have any popup message show for cell conditional edit?
no we don't.


Change monument detection logic from estimote beacons to GPS location

Currently monuments or near by attractions are detected using estimote beacons but we decided to remove it to improve usability and scalability of the app.
Instead, use the current GPS location of the user and constantly poll (in certain interval ~600 seconds) the server providing the GPS coordinates and the proximity radius (in meters) to get a list of attractions near-by and accordingly send out a push notification.

Hi
I just wanna give you a suggestion: use the "estimote beacons" just as some source of gamefication, to make the users to search & find the places with those items and help them to explore the city.
And please, really do this enhancement purposed on this issue. Using this hardware (estimote beacons) to track monuments is not the best way to do this (and makes your app too costly to keep)
Congrats to the app, It's a really good idea

The estimote logic is removed in 1f9b6b408ac52a1fb0f5941f65854a5b905c7c5a


Add drawer-search block to allow downstream overrides to alter it.

For example: https://github.com/18F/fec-eregs/pull/63

:+1: Note your icon isn't picking up on your changeset.

Thanks! Turns out fname.lname.domain.tld isn't a valid email address form…


Using The Client Credentials Grant is not working

Hello. Now when i logged in browser i am able to get
User Authorization and with it i am able to submit art to my gallery via curl command
However what i want to achieve it without browser login
So i am getting access token with
https://www.deviantart.com/oauth2/token?grant_type=client_credentials&client_id=MYID&client_secret=MYSECRET
However this time this access token fails when i try to submit to my stash via curl
it tells me that "expired auth2 user token" however i just got it
How can i solve this problem ? Can't i grant myself to submit my own stash without logging in deviantart ?
thank you

You cannot, use an authtoken obtained with the client credentials grant to submit or publish art on the behalf of a user.

But it requires browser login. Any way to obtain it without browser login ?
Why can't we supply username and password to obtain it ?
I want to upload my own stash not any other member stash
On Fri, Feb 20, 2015 at 2:26 AM, Karson Kimbrel<EMAIL_ADDRESS>wrote:

You cannot, use an authtoken obtained with the client credentials grant to
submit or publish art on the behalf of a user.
—
Reply to this email directly or view it on GitHub
https://github.com/DeviantArt/DeviantArt-API/issues/32#issuecomment-75167937
.

And is it possible to obtain authtoken longer than 1 hour ? like 1 day or
like 30 day or permanent ?
ty
On Fri, Feb 20, 2015 at 2:29 AM, Furkan Gözükara<EMAIL_ADDRESS>wrote:

But it requires browser login. Any way to obtain it without browser login ?
Why can't we supply username and password to obtain it ?
I want to upload my own stash not any other member stash
On Fri, Feb 20, 2015 at 2:26 AM, Karson Kimbrel<EMAIL_ADDRESS>wrote:

You cannot, use an authtoken obtained with the client credentials grant
to submit or publish art on the behalf of a user.
—
Reply to this email directly or view it on GitHub
https://github.com/DeviantArt/DeviantArt-API/issues/32#issuecomment-75167937
.

No.  You must obtain an user authtoken with the stash grant (and possibly the publish grant if you are using the /stash/publish call).  Also no, you must use the refresh token once the token expired.

1 more final question
lets say i obtained token
but it expired after 2 hours
do refresh token works still ?
also can i permanently use refresh tokens without asking authorization
again ?
On Fri, Feb 20, 2015 at 2:32 AM, Karson Kimbrel<EMAIL_ADDRESS>wrote:

No. You must obtain an user authtoken with the stash grant (and possibly
the publish grant if you are using the /stash/publish call). Also no, you
must use the refresh token once the token expired.
—
Reply to this email directly or view it on GitHub
https://github.com/DeviantArt/DeviantArt-API/issues/32#issuecomment-75168595
.

https://www.deviantart.com/developers/authentication#refresh

Also, http://tools.ietf.org/html/rfc6749 .

from this description "All access_token's expire after one hour, after
expiration you either need to re-authorize the app or refresh your access
token using the refresh_token from the /token request. "
i understand that i can use it permanently without asking re-authorize
again am i right ?
ty very much
On Fri, Feb 20, 2015 at 2:35 AM, Karson Kimbrel<EMAIL_ADDRESS>wrote:

https://www.deviantart.com/developers/authentication#refresh
—
Reply to this email directly or view it on GitHub
https://github.com/DeviantArt/DeviantArt-API/issues/32#issuecomment-75168884
.

It is possible for the access token to invalidate.  You should follow the directions of the error returned if the refresh token invalidates.

Thanks for helping with that Karson :) Think all questions were answered so closing.


Slack is not accessible.

Is it possible for the general public to join Cilium Slack channels or are they private ?
On your "Get Involved" page it says "For live conversation and quick questions, join the Cilium Slack workspace.", but the link doesn't work.
I have tried both of these links, but I am unable to access your Slack:

https://cilium.herokuapp.com/
Here I am getting an error from Heroku - An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details..."

https://cilium.slack.com/
This one seems to be invite-only or maybe I am wrong.

There is an issue with cilium.slack.com, some Isovalent folks are working on it.

Thanks for reporting! It should be working again now. Let us know if you run into any more problems

All good, got my invite via https://cilium.herokuapp.com. Thanks

Looks like this might be broken again. Trying to get an invite since yesterday with multiple emails and haven't received one yet.

Hi, i have been having the similar error with https://cilium.slack.com/signup#/domain-signup?

The email address must match one of the domains listed below. Please try another email.

above comes up, even with my gmail.com... any thoughts?

@thebsdbox looks like it needs to be refreshed again 😅

yes, this is still not working atm

As of now, it is still returning this error:

The email address must match one of the domains listed below. Please try another email.

When trying to join with an @gmail.com account.

Hi @NPastorale, I used the workaround described in this issue https://github.com/cilium/cilium/issues/29103 and it worked

Hi @ozhankaraman , unfortunately it is returning the same error


Add config option for Websocket listen path

For implementing #1434
Notice: The WS Client on Dashboard may be hardcode using /mqtt

good fix!


Single page application strategy

Hi everyone.
I'm developing an app that it's composed by a standalone api (with django rest framework) and a single page application consuming that api. I've added PSA into my backend to add a sign in with linked in.
The strategy goes like this:

The user taps on a 'sign in with linked in' button which leads to the PSA login url.
PSA performs the social log in. The provider redirects to the backend in both authorise and token requests.
At this point, I need the backend to redirect to a front-end url with the auth token of the user (as the provider does), so the single page application can use it in further requests.

The problem is that I don't see any step in which I can do the 3rd step in the PSA workflow.
Another solution could be to set the provider redirections to the front-end so it can proxy that requests to the server, using the front-end as a middleware. The problem with this one is that I didn't see where to set the provider redirection urls in the PSA configuration.
PSA is a very nice library, and could be awesome to have a description of the usage with a single page application in the documentation. I can help with this.

Hi arol, I'd suggest you take a look at django-rest-framework-social-oauth2 which integrates this library together with django-oauth-toolkit into DRF.
In SPA you probably want to have your own authentication provider built in your backend which is able to generate tokens for your users (based on either good-old username/password credentials or) as an exchange for Linkedin token. Your frontend (JS) shall then be responsible for obtaining an access_token from Linkedin first, and then subsequently using the convert_token method to retrieve your App's token from your backend. Since your frontend will use the new token for all subsequent requests against your backend API, you'll also avoid hitting Linkedin API with every request.

The only way I see this possible right is by doing:

Define a custom complete view that mimics the code from the original (it's hard to reuse it at the moment), and returns the redirect with the needed token for the user
Define a custom view that your app calls after a success login to retrieve the needed token.

I'm closing this, please reopen in social-app-django if still relevant.


Node move is saved too quickly

Moving a node or nodes emits constant move events, and they all trigger a save. The change really only needs to be saved when the movement ends. I think this is impacting performance.

Fixed in commit f067e4109c6be4029ef87f6328cec7944649b470


Add example

Summary
Describe what modifications this PR brings to the project.

Add an example to showcase the library.

Checklist
All checks below must be performed before the PR can be merged.

[x] Code was linted. Running npm run lint does not show any error.
[ ] Tests were added, deleted, and/or updated. All tests pass when running npm run test.
[x] Build was created with npm run build.
[x] Changes are documented.
[x] Version bumped.

Issue(s) adressed
Enter the issue number of the bug(s) that this PR fixes.

Closes #4

Please note that tests were not added since a special issue (#3) exists and must be addressed first.


Pacman hook

Hey there, just wanted to share something that might be cool to toss in the documentation.  Manually creating boot envs every time I upgrade my kernel was something difficult to remember whenever running pacman on Arch, so I wrote a little hook to make one for me on each upgrade.  It's not perfect, but might be helpful to someone besides me.
Uncomment the "HookDir" config directive in /etc/pacman.conf, then make a /etc/pacman.d/hooks/10-zectl.hook file. Put the following in it:
[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Target = linux linux-lts

[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Target = usr/lib/modules/*/vmlinuz

[Action]
Description = Creating Boot Environment...
When = PreTransaction
Exec = /etc/pacman.d/scripts/zectl_create

and make a /etc/pacman.d/scripts/zectl_create script with something simple like:
#!/bin/bash
/usr/sbin/zectl create $(uname -r)

I did this : https://github.com/eoli3n/zectl-pacman-hook


Can't expand text editor tools

Expanding the text editor tools to show the additional rows no longer works on editori.eira.fi. Only the first row is shown after clicking the arrow button.

Thanks for the report, fixed by #17


[Bug] Colab Runtime Disconnected

Description
Was having trouble installing for local use, so I decided to try to use the Colab link.
Step to reproduce

Opened Colab environment
Replaced the wget command with

from google.colab import files
uploaded = files.upload()

Ran all steps in order
Uploaded a local mp3 file
Ran the rest of the steps
Got a successful message from the actual separate function, and files exist in the output directory
Tried to listen to the output file and got a "runtime disconnected" error

Output
!spleeter separate -i keenanvskel.mp3 -o output/
Output from the split function
INFO:spleeter:Loading audio b'keenanvskel.mp3' from 0.0 to 600.0
INFO:spleeter:Audio data loaded successfully
INFO:spleeter:File output/keenanvskel/vocals.wav written
INFO:spleeter:File output/keenanvskel/accompaniment.wav written

!ls output/keenanvskel
accompaniment.wav  vocals.wav

Then I ran this
Audio('output/keenanvskel/vocals.wav')
And got this response
Runtime Disconnected
Environment

OS
My laptop is running MacOS, but using Colab

Installation type
pip

RAM available
Got the green checkmark for both RAM and Disk in the Colab environment

Hardware spec
unsure

Additional context
Not sure if this is an issue with spleeter or with Colab. I love this project conceptually so I was excited to try it out, I saw some other posts online about runtime disconnect errors in Colab, but everything I found seems to only occur if it's running for 15 minutes or more. This whole process was less than 5 minutes, and I've tried multiple times and continually get the same error.
If this is not the correct place for this type of error, or if I am doing something wrong, feel free to close this bug and let me know what next steps I might take.
Will also attach some screenshots of the environment.

Not a Google Colab expert, but we provided the colab so people can try it out without installing the environment. Although, I assume since it is free, then colab provides limited resources in term of CPU and RAM, and turn out thet Spleeter is RAM greedy, and depending of the size of your song it is highly possible that you reach colab RAM limit.
We won't provide assistance for this case as it is purely a colab related issue.

Just add -c mp3 to separate command and you will be able to play the output, since playing .wav is more consuming

Is there a similar way to convert the audio file to mp3 using the python API?


Sample links at documentation are wrong

Scroll down to the bottom of https://www.boost.org/doc/libs/1_69_0/libs/gil/doc/html/index.html to the samples. Clicking any of the links downloads the file instead of opening it up in the browser ( at least on chrome ). Probably this is due to the file extension being .cpp, when in actuality it's a html document.

Wasn't sure if this should have been a separate issue,
In the GIL design guide , in the concepts page , the definition of concept equality_comparable seems to have a small typo it should have the signatures
bool operator==(T x, U y);
bool operator!=(T x, U y) { return !(x==y); }
instead of
bool operator==(T x, T y);
bool operator!=(T x, T y) { return !(x==y); }
as from the ConceptsC++ Concept Web.

@codejaeger Good catch, if you're willing to submit PR, it would be helpful.


Install by docker, I need to install "docker-ce" or "navida-docker"?

As the title

MMDetection needs navida-docker, which requires docker-ce to be installed first.


Unexpected Keyword Argument Error

Problem:
The problem stemmed from a mismatch between the argument expected by the Chatbot class constructor in the BingAI Python module and the argument that was being passed to it. The error message pointed to this:
TypeError: Chatbot.__init__() got an unexpected keyword argument 'cookie_path'
This error indicates that the Chatbot class's __init__ method was being called with an argument (cookie_path) that it doesn't support.
Solution:
The solution was to change the Chatbot class's constructor to accept the cookie_path argument. Specifically, we added the following to the Chatbot class's __init__ method:
def __init__(
    self,
    proxy: str | None = None,
    cookies: list[dict] | None = None,
    cookie_path: str | None = None
) -> None:

This allows the Chatbot class to accept a cookie_path argument when it's instantiated.
Also, we adjusted the rest of the class to handle the new cookie_path argument appropriately. In this case, we didn't actually use cookie_path within the class, but in a real-world application, you would want to ensure that any new arguments are used as intended within the class.
So, in summary, the error was caused by trying to pass an argument that wasn't accepted by the class constructor, and the solution was to modify the class constructor to accept and handle this argument.

I'm having the same issue and I tried your solution but I'm not I implemented it correctly because I'm still getting the same error messages.
File "plugins\AutoGPTBingAI.zip\AutoGPTBingAI\BingAI_init_.py", line 61, in post_prompt
File "plugins\AutoGPTBingAI.zip\AutoGPTBingAI\BingAI\bing_ai.py", line 34, in
TypeError: Chatbot.init() got an unexpected keyword argument 'cookie_path'
My question is - Where is the Chatbot class located? Which file? Thank you.

It should be located in the EdgeGPT.py
/Auto-GPT/venvAutoGPT/lib/python3.11/site-packages/EdgeGPT.py

I also updated line 34 in the bing_ai.py file to >>>     bot = Chatbot(cookies=cookies)  # Update this line
I would try first without updating line 34


MRTG averaging should be an option

Perhaps with a parameter of a number of minutes, with zero being a no average, just take the last value, option.

Perhaps with a parameter of a number of minutes, with zero being a no average, just take the last value, option.

-a (--average) option now available and working.


Build against current versions

code updated to build with current versions of its dependencies.
I also updated the docs to reflect the new nightly requirements, and make it easier to use with the rust-toolchain file.
thanks for the amazing proof of concept!

Thanks!


TinyMCE fails to load piranhaimage

Hi,
I upgraded my ASP.Net core project from Piranha version 6.0.1 to 7.0.
I have an error in the Browser console when running the manager:
Failed to initialize plugin: piranhaimage Error: editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead
at eN.addButton (tinymce.min.js:9)
at new  (plugin.min.js:106)
at Hw (tinymce.min.js:9)
at Array. (tinymce.min.js:9)
at Object.jt [as each] (tinymce.min.js:9)
at Iw (tinymce.min.js:9)
at eN. (tinymce.min.js:9)
at Array. (tinymce.min.js:9)
at jt (tinymce.min.js:9)
at o (tinymce.min.js:9)
Looking at piranhaimage plugin source code (here: https://github.com/PiranhaCMS/Piranha/blob/master/Core/Piranha/Areas/Manager/Content/Js/Ext/tiny_mce/plugins/piranhaimage/plugin.min.js ), I can see the last but one function editor.addButton() is present.
I believe this line should be changed to one of the suggested methods in the error text.
Is there something I can do in the meantime?
Thanks and regards
Christophe

Tiny 5.0 is completely different from 4.x. In conjunction with the fact that it uses a rather aggressive cache strategy you need to clear your browser history if you toggle between 6.x and 7.0.
Regards

And this is actually the wrong repo, this is the repo for the old legacy version of Piranha (2.x) :)

Thank you, I'll try this!
Le lun. 26 août 2019 à 23:42, Håkan Edling<EMAIL_ADDRESS>a
écrit :

And this is actually the wrong repo, this is the repo for the old legacy
version of Piranha (2.x) :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/PiranhaCMS/Piranha/issues/578?email_source=notifications&email_token=AFPAM6I3IBBYHLBNAQGDVMTQGRE4ZA5CNFSM4IPV2X32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5FYZBI#issuecomment-525044869,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFPAM6K5R2PWFCVCV2LOCCLQGRE4ZANCNFSM4IPV2X3Q
.


Fix Method Name in Sample Code

A helper class in the sample code was using an old method name that no longer exists. This PR updates the method to the new name.

API change check
API changes are not detected in this pull request.


Microk8s 1.19.0 never ready, not working.

Installing microk8s with sudo snap install microk8s --classic appears to go fine, but microk8s status always reports as microk8s not running. microk8s kubectl get all --all-namespaces shows everything as not ready and pending.
Ubuntu 20.04.1 Desktop, network-interfaces are ens33, lo, virbr0 and virbr0-nic, so nothing particularly exciting there. The flannel - interface you'd get with an earlier microk8s - version is a no-show here.
Already tried the solution mentioned in #1554 but that doesn't work.
inspection-report-20200916_031614.tar.gz

Hi @WereCatf
In the logs of kubelet (journalctl -u snap.microk8s.daemon-kubelet) there are the following errors:
syys 16 03:16:10 ubuvm microk8s.daemon-kubelet[20094]: E0916 03:16:10.011947   20094 cri_stats_provider.go:376] Failed to get the info of the filesystem with mountpoint "/var/snap/microk8s/common/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs": failed to get device for dir "/var/snap/microk8s/common/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs": could not find device with major: 0, minor: 28 in cached partitions map.

and
syys 16 03:16:10 ubuvm microk8s.daemon-kubelet[20094]: F0916 03:16:10.141628   20094 kubelet.go:1296] Failed to start ContainerManager failed to get rootfs info: failed to get device for dir "/var/snap/microk8s/common/var/lib/kubelet": could not find device with major: 0, minor: 28 in cached partitions map

I assume you are on btrfs and kubelet cannot query the stats of the underling filesystem. I wonder what our options are here? Is moving to another file system an option or do we need to further digg into this? I am not familiar with btrfs but this is a possibly related issue: [1]
[1] https://github.com/kubernetes/kubernetes/issues/65204#issuecomment-473711839

@ktsakalozos Wait, are you...are you serious? Using Btrfs breaks Microk8s?? Jesus Christ, that's definitely something I'd classify as a major issue.

Exactly the same problem. / uses btrfs and I get the same errors in the kubelet logs. Ubuntu 18.04 LTS based system.

Hi @GavinB-hpe
Could you try one of the two suggestions recommended in https://github.com/ubuntu/microk8s/issues/1587#issuecomment-697207459

Thanks @ktsakalozos
--feature-gates="LocalStorageCapacityIsolation=false"
Fixed things for me.

Do you think this is something it should be automated? Can we reliably detect the cases where this is needed?

@ktsakalozos Reliably detecting where this workaround is specifically absolutely needed, I dunno, but detecting cases where it might be needed could be as simple as: if [ $(df --output=fstype "/path/to/directory"|tail -n 1) = btrfs ]; then applyworkaround; fi
Personally, I don't think automating such a workaround should be done at all and instead the issue should be fixed properly at the source, but I don't really have a grasp of where it happens or who is in charge of the code and if they even care.

We could detect btrfs in microk8s inspect command and propose a fix [1]. We could also have a docs section in [2] to suggest such configurations.
[1] https://github.com/ubuntu/microk8s/blob/master/scripts/inspect.sh#L106
[2] https://microk8s.io/docs/troubleshooting#heading--common-issues

Setting: --feature-gates="LocalStorageCapacityIsolation=false"  does not fix it for me on a btrfs root filesystem.
Is there any workaround?

To answer my own question: k8s 1.19 will not work, even with the feature-gates flag.
Downgrading to 1.18 solved the issue for me and my containers are starting with the feature-gates flag.

I tried feature-gates flag with microk8s 1.18/stable (v1.18.15), still not working.

I have a similar problem. on microk8s 1.20.2 on ubuntu.
I am pretty sure this is BTRFS filesystem specific.

This seems to have been fixed recently. I just installed 1.21.0 in a VM with a Btrfs-filesystem and Microk8s does seem to be working as it's supposed to. Not that I tested it in depth, but at least it now states the node is ready.
Closing this as solved.

just installed mirok8s on 20.04.1 LTS with btrfs.
Env:
juju      2.9.10    16909  latest/stable  canonical✓  classic
lxd       4.17      21260  latest/stable  canonical✓  -
microk8s  v1.21.3   2346   1.21/stable    canonical✓  classic
I don't see any btrfs subvol created by micro8s: does that mean that btrfs is not used?
by the way, how to see containers created by microk8s? docker ps won't show anything.
Regards.

I don't see any btrfs subvol created by micro8s: does that mean that btrfs is not used?

The default is to not use the btrfs snapshotter so this is completely expected.

by the way, how to see containers created by microk8s? docker ps won't show anything.

microk8s does not use docker as the container runtime but instead uses containerd.
To see all running pods in k8s you can try doing:
microk8s kubectl get pods --all-namespaces

I don't see any btrfs subvol created by micro8s: does that mean that btrfs is not used?

The default is to not use the btrfs snapshotter so this is completely expected.

thank you for your answers.
how to know where are stored the containers ?

In MicroK8s container data are kept under /var/snap/microk8s/common/var/lib/containerd and /var/snap/microk8s/common/run/

In MicroK8s container data are kept under /var/snap/microk8s/common/var/lib/containerd and /var/snap/microk8s/common/run/

ok thank you. last question: how do you activate brtfs snapshotter?

In MicroK8s container data are kept under /var/snap/microk8s/common/var/lib/containerd and /var/snap/microk8s/common/run/

ok thank you. last question: how do you activate brtfs snapshotter?

Short answer: better not.
See https://github.com/containerd/containerd/issues/4217#issuecomment-835195861
The btrfs is currently considered broken.


Feature request: install alpha, beta, rc versions of ghc

ghcup install 8.8.1-alpha1

Current behavior:
"8.8.1-alpha1" is not a known version or tag!
Desired behavior:
Installs the specified ghc alpha, symlinks ghc-8.8.1-alpha1 in ~/.ghcup/bin to the appropriate binary, and does the same for ghc-pkg, etc.

Well, this is just a matter of adding it to the meta files. However, the output of 'ghcup list' would probably be cluttered by rc/alpha versions most users are not interested in, so we should hide them by default.

Well, this is just a matter of adding it to the meta files. However, the output of 'ghcup list' would probably be cluttered by rc/alpha versions most users are not interested in, so we should hide them by default.

I think the unreleased rc/alpha/whatever releases are very interesting to ghcup users, so I'd like them to be shown by default. As in:
Available versions:
✔ ghc	8.0.2
✔ ghc	8.2.2
✔ ghc	8.4.3
✔ ghc	8.4.4
✔ ghc	8.6.1	        bad
✔ ghc	8.6.2
✔ ghc	8.6.3	        recommended
✔ ghc	8.6.4
✔ ghc	8.6.5           latest
✘ ghc   8.8.1-alpha1    unreleased

Agreed that the older rc versions, though, are probably not very useful to anyone.

Please don't post on this issue tracker, this is now just a mirror. I left the issue tracker activated to not break existing links.
Post here https://gitlab.haskell.org/haskell/ghcup/issues/94


"Crasnaleuca", "Ghireni" and "Mihail Kogălniceanu" are listed in the drop-down menu

Description:
"Crasnaleuca", "Ghireni" and "Mihail Kogălniceanu" are listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Crasnaleuca" in the search bar.

Expected results
The location is listed in the drop-down menu as "Crasnaleuca, Botoșani (Coțușca)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Type "Ghireni" in the search bar.

Expected results
The location is listed in the drop-down menu as "Ghireni, Botoșani (Coțușca)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Type "Mihail Kogălniceanu" in the search bar.

Expected results
The location is listed in the drop-down menu as "Mihail Kogălniceanu, Botoșani (Coțușca)".


Replicas are on the same node

Longhorn version: 0.5.0
I run a 3 node longhorn cluster. Replica Count is 3.
Tonight one node failed and longhorn rebuild the 3. replica on one of the two remaining nodes.
After the 3 node was back online, longhorn doensn't redistribute the replica. It stays in the state whith two replicas on the same node.
Is there a solution for this so that longhorn does automaticly redistribute one of the both replicas on the same node?

For now you can follow the steps below to redistribute:

Increase the volume replicas by 1. The new replica should be rebuilt on the new node.
Decrease the volume replicas to original (3).
Remove one of the replicas on the existing node.

We can have something like that automatically. Though we need to think more about it since it also related to how can we minimalize the data transferred through the network.

Yes, I know how to solve this manually.
But there is no alert/notification about this. I can just see this in the WebGUI.
I think this is a must that it can do this automaticly. (or that I can check it in the settings if I wish to do this automaticly).
Maybe there should be a limit how much volumes on the same time. A limit how oft a rebuild will be started in a timeperiod? How to send a notification about such stuff to someone?

I think I'd like two (and not more) on the same host only if one host is available (otherwise never)

Seems there are many issues we want to discuss here. Let me try to list them down:

More than expected replicas are scheduled to the same node when there are no other nodes available. Two replicas on the same node sound OK, but no for three or more. Is that universal? I don't think so. We at least need an option for this.
The implication of 1 is if the volume has a number of replicas scheduled successful (e.g. 2), do we allow the volume to be attached even not all of the replicas of volume has been schedulable? Or is item 1 only applies to the rebuilding process?
Replicas scheduled on the same node are not automatically redistributed to another node if any other node is suitable for redistribution. We can call it auto-balancing. This can trigger far more traffic in the network currently, so it's better to wait for item 5, 6 and 7 to be implemented first.
No notification for the event that sysadmin should pay attention to ( #542 asked for notification as well). No doubt we need a new feature notification here.
Potentially, to minimize the data transfer, we may validate and use the existing replica for the rebuilding process. The reason we haven't done this is it complicates the logic. But we will need to do this eventually.
Minimize the data transfer during the rebuild, or even pause the rebuild if it's only a temporary shutdown of the node. Sounds like we need to think a bit more. We can have a limitation that how many replicas can be rebuilt in a delayed fashion (with specified interval), how many we have to rebuild immediately (e.g. if only 2 replicas and we lost one, we definitely want to start to rebuild immediately). If we support delayed rebuilding, we need to implement the item 5 first.
A limitation on how many volumes should be in rebuilding state at the same time, across the cluster. Or a limitation on what's the maximum bandwidth rebuilding should take.

Let me know if I missed something.
Btw, none of those features are trivial, it's likely to take quite some time for us to get all those done. But I want to start the discussion as early as possible, especially we're having a re-architect coming in v0.6.0. I want to at least make sure we've considered how to accommodate all the important features when we working on the v0.6.0.

More than expected replicas are scheduled to the same node when there are no other nodes available. Two replicas on the same node sound OK, but no for three or more. Is that universal? I don't think so. We at least need an option for this.

I don't think so too. What is the benefit, if two of three replica are on the same node?

The implication of 1 is if the volume has a number of replicas scheduled successful (e.g. 2), do we allow the volume to be attached even not all of the replicas of volume has been schedulable? Or is item 1 only applies to the rebuilding process?

From my point of view it should be possible.
For Example:
If I have 3 replicas and one node goes offline. Two replicas are still running so the volume is "degarded". In this case it doesn't make sense to rebuild the 3 replica on one of the two remaining nodes... but why you should prevent the usage of the volume?

Replicas scheduled on the same node are not automatically redistributed to another node if any other node is suitable for redistribution. We can call it auto-balancing. This can trigger far more traffic in the network currently, so it's better to wait for item 5, 6 and 7 to be implemented first.

This is the main future I like to get. "Self-healing"/auto-balancing or whatever. I think it is more relevant than 1 and 2.
Why? 4. isn't in place. So as admin I don't know if something goes wrong. I've to check it manually and take some actions if I discover a degraded voulme (or helathy but with replicas on same node).
If this feature is implemented it would auto-balance when it is possible.
Networktraffic: Sure, it would be better to reduce traffic as much as possible but better more traffic and a healthy state than reduce traffic. (maybe a option to disable auto-balanse make sense for some people).
There should also be a limit for "auto-balance" operations. (at the same time but also if the operation fails x times in a row... etc?)

Potentially, to minimize the data transfer, we may validate and use the existing replica for the rebuilding process. The reason we haven't done this is it complicates the logic. But we will need to do this eventually.

Absolutly yes, but I think this will be very complicated. It will be easier to just get "auto-balance" than "just update a failed replica" to a healthy state.

Minimize the data transfer during the rebuild, or even pause the rebuild if it's only a temporary shutdown of the node. Sounds like we need to think a bit more. We can have a limitation that how many replicas can be rebuilt in a delayed fashion (with specified interval), how many we have to rebuild immediately (e.g. if only 2 replicas and we lost one, we definitely want to start to rebuild immediately). If we support delayed rebuilding, we need to implement the item 5 first.

Should be possible to pause the rebuild in generally if there is planned maitenance for example.
There should be a option how many replicas can be in rebuild state at the same time. (May for big clusters there should be a more complex setting like... how many rebuild process per node?).
There should also be a priority order:

First rebuild failed volumes (volumes that are not attachable/usable)
Rebuild volumes with the lowest replica count first (1 of 3 before 2 of 3)
Rebalance if replicas are on same node

A limitation on how many volumes should be in rebuilding state at the same time, across the cluster. Or a limitation on what's the maximum bandwidth rebuilding should take.

Absolutly, this may also be useful. I think this is easier than 5. & 6.

@vistalba , I absolutely agree with you on all the comments you made in the last post.
Regarding 1, I would like the option to configure (system wide or pr storage class?) a limit for how many replicas for the same volume that are allowed to land on the same node. In my case I would probably set the limit to 0, and run with a degraded volume until a new node is added to the storage cluster and Longhorns adds a replica on the newly added node, to bring the volume back to healthy state.

Happens again today. Don't know why but all volumes are "Healthy" again but with replicas on the same node. No rebalance and also no notification.
We should get a fast workaround solution here... :-/
Maybe something like a settings we can activate to avoid replicas build on same node or that he automaticly rebanalce if all nodes are back up. Any other suggestions?

@vistalba

More than expected replicas are scheduled to the same node when there are no other nodes available. Two replicas on the same node sound OK, but no for three or more. Is that universal? I don't think so. We at least need an option for this.

I don't think so too. What is the benefit, if two of three replica are on the same node?

One extra replica can help with bit rot, though it's not common and will help only if you have just one working node left. I would prefer a simple option to enable hard anti-affinity rule here.
Filed https://github.com/rancher/longhorn/issues/586 for this.

The implication of 1 is if the volume has a number of replicas scheduled successful (e.g. 2), do we allow the volume to be attached even not all of the replicas of volume has been schedulable? Or is item 1 only applies to the rebuilding process?

From my point of view it should be possible.
For Example:
If I have 3 replicas and one node goes offline. Two replicas are still running so the volume is "degarded". In this case it doesn't make sense to rebuild the 3 replica on one of the two remaining nodes... but why you should prevent the usage of the volume?

It's not related to the existing volume. But if you want to create a volume with 3 replicas, but only one of them can be scheduled, do you still want to start that volume (and running the risk of no high availability) or you want the operation to be denied since it doesn't meet some minimal availability? I think mostly you wouldn't want the volume to be started. But if you do think the ideal availability (e.g. 3) is different than the minimal available you can accept temporarily (e.g. 2), then you may want to allow the volume to start. I don't think this usage is common though.

Replicas scheduled on the same node are not automatically redistributed to another node if any other node is suitable for redistribution. We can call it auto-balancing. This can trigger far more traffic in the network currently, so it's better to wait for item 5, 6 and 7 to be implemented first.

This is the main future I like to get. "Self-healing"/auto-balancing or whatever. I think it is more relevant than 1 and 2.
Why? 4. isn't in place. So as admin I don't know if something goes wrong. I've to check it manually and take some actions if I discover a degraded voulme (or helathy but with replicas on same node).
If this feature is implemented it would auto-balance when it is possible.
Networktraffic: Sure, it would be better to reduce traffic as much as possible but better more traffic and a healthy state than reduce traffic. (maybe a option to disable auto-balanse make sense for some people).
There should also be a limit for "auto-balance" operations. (at the same time but also if the operation fails x times in a row... etc?)

Filed https://github.com/rancher/longhorn/issues/587 for this.

Potentially, to minimize the data transfer, we may validate and use the existing replica for the rebuilding process. The reason we haven't done this is it complicates the logic. But we will need to do this eventually.

Absolutly yes, but I think this will be very complicated. It will be easier to just get "auto-balance" than "just update a failed replica" to a healthy state.

Yeah, we can revisit this later.

Minimize the data transfer during the rebuild, or even pause the rebuild if it's only a temporary shutdown of the node. Sounds like we need to think a bit more. We can have a limitation that how many replicas can be rebuilt in a delayed fashion (with specified interval), how many we have to rebuild immediately (e.g. if only 2 replicas and we lost one, we definitely want to start to rebuild immediately). If we support delayed rebuilding, we need to implement the item 5 first.

Should be possible to pause the rebuild in generally if there is planned maitenance for example.
There should be a option how many replicas can be in rebuild state at the same time. (May for big clusters there should be a more complex setting like... how many rebuild process per node?).
There should also be a priority order:

First rebuild failed volumes (volumes that are not attachable/usable)
Rebuild volumes with the lowest replica count first (1 of 3 before 2 of 3)
Rebalance if replicas are on same node

Since normally the requests for rebuilding won't happen at the same time, the priority may not be applied. As a first step, it will be based on a first-come-first-serve basis.

A limitation on how many volumes should be in rebuilding state at the same time, across the cluster. Or a limitation on what's the maximum bandwidth rebuilding should take.

Absolutly, this may also be useful. I think this is easier than 5. & 6.

Filed https://github.com/rancher/longhorn/issues/588 for this.

@vistalba
In your latest case, it sounds like you'd lost the connection to one node, which triggered the rebuild process. At least you should be able to see the limited redundancy icon in the UI for the volumes.
I've added #586 to the next Longhorn release, but it's not the root cause of your issue. Can you check what's the reason of losing connectivity to a node in your environment? We also want to know what's the common failure reasons and make plans for it.

@yasker
I know it isn't the root cause. It was a issue with host connectivity at my hosting provider.
I know that I can see this in the UI. But there is no notification about that... so the only thing to detect it is when I go to the UI periodically or if I can see the outage in the monitoring.

This is duplicated of https://github.com/longhorn/longhorn/issues/587. Please follow up on the update from there.


add auto fix

auto fix from for i := 0; i < 100; i++ to for i := range 100

I made a (very quick and dirty) tool for myself which changes for statements to use range-over-int if possible. In case it's useful, here's the bit that does the editing: https://github.com/cespare/misc/blob/188b9f2b335bef60681a649d5a0e344d0f7446fe/useintrange/useintrange.go#L258-L297

Thanks @cespare, for clarity the delay in adding autofixes is more about compatibility with golangci-lint.
They were not added initially because golangci-lint had a minimum go version as 1.21 as ranging over integers was introduced in go 1.22 it would have been awkward to change working code to unsupported code. golangci-lint has since added version detection so that is no longer a concern.
In #28 I added an autofix to simplify some ranges using analysis.SuggestedFix however golangci-lint doesn't support analysis.SuggestedFix. See https://github.com/golangci/golangci-lint/issues/1779.
I plan on adding more autofixes when golangci-lint can support analysis.SuggestedFix but I'm not sure in the meantime I'd try to use their bespoke autofix system. I would be happy to review a PR if anyone wanted to contribute a golangci-lint compatible autofix.

Implement suggested fixes for:

[x] 3 statement loops where the key is not used in the body (#39)
[x] 3 statement loops where the key is used in the body (#34, #35)
[x] range loops with redundant len where the key is not used in the body (#28)
[x] range loops with redundant len where the key is used in the body (#28)

No suggested fixes for:

[x] 3 statement loops where the key belongs to a different scope (#37) ref: https://github.com/ckaznocha/intrange/issues/33#issuecomment-2408270614


⚠ Bofrost.lu has degraded performance

In 36499cf, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 824 ms

Resolved: Bofrost.lu performance has improved in 29a72ea after 6 minutes.


More cleanup suggestions

Codecov Report

Merging #14 (0f3157b) into master (267fc61) will increase coverage by 3.13%.
The diff coverage is 92.53%.

@@            Coverage Diff             @@
##           master      #14      +/-   ##
==========================================
+ Coverage   85.18%   88.32%   +3.13%
==========================================
  Files           7        7
  Lines         324      334      +10
==========================================
+ Hits          276      295      +19
+ Misses         48       39       -9

Impacted Files
Coverage Δ

pytomorrowio/pytomorrowio.py
89.38% <92.53%> (+5.95%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce2cc87...0f3157b. Read the comment docs.


Add inline syntax errors to website editor

Proof of concept by @tsriram:

Some discussion on facebook/react/issues/11094
Currently blocking on FormidableLabs/react-live#41

Hasn't this already been tackled by now?

The description says this issue is blocked by FormidableLabs/react-live#41 which is unresolved. If you'd like to see this happen, contribute a PR to react-live first to unblock this issue 😄


IPv6 support

It would be really nice if this could be be implemented in a way that enables me to connect to an IPv6-only MQTT broker.
Example on IPv6 support on ESP8266: https://github.com/IPv6-ESP8266/IPv6-ESP8266

I don't think this is possible yet with esp32 arduino https://github.com/espressif/arduino-esp32/issues/1261

I don't think this is possible yet with esp32 arduino https://github.com/espressif/arduino-esp32/issues/1261

It is possible with SLAAC addresses.

the EspMQTTClient doesn't look like it is setup for ipv6. I will close issue but will reopen if needed


wrangler panic: panicked at 'called Result::unwrap() on an Err value: Protocol("Connection reset without closing handshake")'

🐛 Bug Report
Environment

operating system:
output of rustc -V:
bash: rustc: command not found
output of node -v:
v11.10.1
output of wrangler -V:
wrangler 1.9.0
contents of wrangler.toml

name = "get"
type = "webpack"
account_id = "c3232a9885fb9cc84a59deeda19da388"
workers_dev = false
route = "https://get.charttt.com/*"
zone_id = "8aec397bce26382b7dc72f5e2ae126f9"

Steps to reproduce
On a project that used to work properly, wrangler panics when I run wrangler dev
You can see screenshot here
I've upgraded wrangler from 1.8.1 to 1.9.0 but still same error:
thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: Protocol("Connection reset without closing handshake")', src/commands/dev/socket.rs:46:27

What did you expect to see?
What did you see instead?

Hey thanks for the report! I actually just fixed this one up and it should be going in the next release. Hang tight!

Super! when is the next release expected?

probably tomorrow :)


Review the Voicing implementation and API

I think that Voicing is in a pretty good place and ready for a review by another developer. I have been discussing this with feature and its review with @zepumph and he agreed to be the one to do a general review, thanks!
Before reviewing, could you please take a look at new documentation at scenery/doc/accessibility/voicing.html? Some of this is probably already known by you but you may find it useful. And any review comments about this documentation are also welcome.
Finally, these are the components that implement the Voicing feature and should be reviewed:

MouseHighlighting.js - Implements the highlights of Voicing as well as the "Interactive Highlights" feature.
Voicing.js - Implements the Voicing feature, its responses, and supports requests to make speech.
ReadingBlock.js - Implements the Voicing features that are specific to "Reading Blocks".
voicingManager.js - Manages global Properties that are responsible for controlling output of Voicing responses, and a function to generate final output depending on the state of these Properties.
voicingUtteranceQueue.js - A global utteranceQueue that manages all Utterances used for Voicing.

Let me know if you have any questions or trouble getting started and we can discuss.

A couple of questions about scope here. . .

Do you want me to look at any usages of this work in common code or sims (like JT)?
Currently https://github.com/phetsims/scenery/issues/1207 is assigned to me for review as well, I think I'll just append that review onto this issue so that everything is together.

Do you want me to look at any usages of this work in common code or sims (like JT)?

I would say "yes" if it is helpful to view existing examples to review the implementation and proposed API. But I don't think you need to comb through Voicing instrumentations in the existing branches now. I would recommend we re-review instrumentation on branches of common code on a component by component basis so the review has a finer scope.

REVIEW of voicing.html:

The "Responses" section is well written and well described. What if you added to it an example that had each response type broken into its parts. For example in the intro paragraph you could introduce a scenery object like a "Magnet" that can be dragged around. Then in each part discuss how the "name" is "X Magnet", the object response is about the position of the magnet, the context is about how the magnetism is affecting its surroundings, and the hint could be the hinty part. Probably the best reason to do this would be if you added exact example strings, and not just vague content like I just did.
"List out the API associated of ReadingBlock": Does this mean that you meant to, but ran out of time, or you want to get to this later? I would recommend creating an issue and getting rid of this from the checked-in doc.
I'd add a section about how multiple Displays work with these singletons (even though it is a bit self-evident).
Looking at the examples, it feels like too much extra boilerplate for webSpeaker to need its own initialization outside of scenery code. Why can't we do that within a Display or something (perhaps gracefully if already done)? I don't like hello worlds that feel like they have a bunch of extra stuff needed, but I also understand that we are mostly tailored to PhET's usages, and if it is harder to try to hide that (like moving the initialize call from Sim to Display), then let's not. I understand that we are dealing with a global rather than a sub-instance per Display.
"Reading Blocks are added to the focus order when Voicing is enabled." Does this mean in the PDOM? Can you be a bit more specific about this and what it means for the user.
There is a discrepancy between the name "Mouse Highlighting" and "Interactive Highlights". I don't know if one is dev-speak, and the other is more design-side, or if I am not talking about two interchangeable things. Perhaps we can work on that.
I continue to feel like Voicing as a feature is much more broad that just the 4 types of responses. As part of the voicing work I have seen examples of features like gesture tab navigation, interactive highlights, and preferences. Perhaps it would be nice to overview exactly what we are talking about within the confines of "Voicing" within this documentation at the beginning. Otherwise it is a bit strange to just tack on a section like Mouse Highlighting at the end.

[ ] I'm not sure where we stand on using underscores or not. In Voicing.js I saw that there were a a couple of non-underscored usages. I was a bit confused on having a mix in there.

I have not yet made it to MouseHighlighting or ReadingBlock-related code. I would also like to take a look at focus overlay stuff before the end of this review too.

@jessegreenberg you can definitely get started on the committed comments though.

Thanks @zepumph, sounds excellent. Adding comments for specific review comments added so far.

REVIEW: We should get rid of this if we don't use it soon, and perhaps we should try to create another example that IS used asap, https://github.com/phetsims/scenery/issues/1223

Sounds good, removed it. It was sort of a proof of concept for #1207. One will be added when it is requested by design, which I expect will happen soon.

Ok now I feel ready to move on from Voicing and VoicingManager. Up next:

[ ] ReadingBlock.js
[ ] ReadingBlockNode.js
[ ] MouseHighlighting.js
[ ] HighlightOverlay.js
[ ] john-travoltage/AppendageNode.js (preferences branch)
[ ] joist/JoistButton.js (preferences branch)
[ ] sun/Slider.js (preferences branch)
[ ] scenery-phet/VoicingText.js (master branch)
[ ] sun/RectangularRadioButton and sun/RectangularRadioButtonGroup (preferences branch)

[ ] It seems like there is lots of cleanup to be done in scenery-phet/js/accessibility/speaker.

I have done all that I can for now. I may have a bit of time to finish this off next week. @jessegreenberg are there any of the files that I missed that feel really important to you?

It seems like there is lots of cleanup to be done in scenery-phet/js/accessibility/speaker.

Thanks, pretty much everything in here has been replaced by Voicing.js, ReadingBlock.js, and MouseHighlighting.js. I removed this folder. The only things I kept were the following which I moved into scenery.

scenery/js/accessibility/voicing/nodes/VoicingText.js
scenery/js/accessibility/voicing/nodes/VoicingRichText.js
scenery/js/accessibility/voicing/ReadingBlockHighlight.js

Thanks @zepumph, this review was excellent and these were really great suggestions. I went through all review comments and created new issues for the ones that warrant further discussion. I think remaining tasks for this issue are to

Improve voicing.html from https://github.com/phetsims/scenery/issues/1223#issuecomment-843599959 notes
Delete ReadingBlockNode, these usages should use the Trait (this is the last review comment in code from this issue)

Sounds great. Let me know if I can do anything else here.

Hey, look at this old issue. The items in https://github.com/phetsims/scenery/issues/1223#issuecomment-847502973 still stand. I made a new issue to improve voicing.html documentation (https://github.com/phetsims/scenery/issues/1362). Then I deleted ReadingBlockNode.ts from the project. There were no usages of it at this time. We continue to iterate on various Voicing features. I don't think there is anything more for this issue.


Support Live Edit

This issue was originally filed by<EMAIL_ADDRESS>
Support Debugger.setScriptSource in Dartium

Stale.


Crash when intractionTracingEnabled turned on, iOS Only, release mode only, no linker

Description
When initializing the agent during startup as follows, our app experiences a crash, only on iOS and only in Release mode.
nr_plugin.AgentStartConfiguration agentConfig = new nr_plugin.AgentStartConfiguration();
The crash could be reproduce while building release mode locally and building release mode in our automated pipeline. All versions of .Net used are pinned to 8.0.402 and matching workloads are pinned locally and in the pipeline.
The crash report was no help and only contained SIGBRT codes. When I looked in the console during the crash, I noticed only the following error right before the crash.

If I break out all of the default settings, and I turn OFF the interactionTracingEnabled, then the crash doesn't occur anymore. In our previous app release, we did not experience any issues, but recently we changed around some of our navigation, particularly our tab navigation. It is possible that some of that is triggering a problem? But proper navigation is not optional...  You mentioned in a previous github issue that this should be turned off?
    nr_plugin.AgentStartConfiguration agentConfig = new nr_plugin.AgentStartConfiguration(
        crashReportingEnabled: true,
        loggingEnabled: true,
        logLevel: nr_plugin.LogLevel.INFO,
        collectorAddress: "DEFAULT",
        crashCollectorAddress: "DEFAULT",
        analyticsEventEnabled: true,
        networkErrorRequestEnabled:true,
        networkRequestEnabled: true,
        interactionTracingEnabled: false, //<--- turn this to false. The default setting is true.
        webViewInstrumentation: true,
        fedRampEnabled: false,
        offlineStorageEnabled: true,
        backgroundReportingEnabled: false,
        newEventSystemEnabled: true);

Steps to Reproduce
Please see above
Expected Behavior
No crashes
Relevant Logs / Console output
Please see above
Your Environment
Release Mode, linker off
Additional context
iOS 18.0.1, iPhone 11
JetBrains Rider IDE
.Net 8.0.402 .Net MAUI workloads to match, all versions are pinned
New Relic Maui plugin 1.1.3
(I need to file another report because if I updated to 1.1.4, the app crashes on startup in release mode on iOS, but I need to get some logs from the console, because I don't get a crash report. It crashes on startup. )

@robin-schroeder-merc I recommend disabling interaction tracing because this issue is primarily related to swizzling, which occurred on the native side.

I wonder if it should be turned off my default? That might help newer folks.

@robin-schroeder-merc it is already turn off by Default.