Error in 0.2.10 - Help - What am I missing?

IMPORTANT
If you want help, you got to read this first, follow the instructions.
Are you up-to-date?
Upgrade to the latest version and confirm the issue/bug is still there.
$ pip install yfinance --upgrade --no-cache-dir
-> done
Confirm by running:
import yfinance as yf ; print(yf.__version__)
->done
and comparing against PIP.
Does Yahoo actually have the data?
Are you spelling ticker exactly same as Yahoo?
-> yes
Then visit finance.yahoo.com and confirm they have the data you want. Maybe your ticker was delisted, or your expectations of yfinance are wrong.
Are you spamming Yahoo?
-> nope
Yahoo Finance free service has rate-limiting depending on request type - roughly 60/minute for prices, 10/minute for info. Once limit hit, Yahoo can delay, block, or return bad data. Not a yfinance bug.
Still think it's a bug?
Delete this default message (all of it) and submit your bug report here, providing the following as best you can:

Simple code that reproduces your problem, that we can copy-paste-run
Exception message with full traceback, or proof yfinance returning bad data
yfinance version and Python version
-> 0.2.10 (yfinance) python 3.10.6
Operating system type
-> ubutu 22.04

As per the readme:
What am I missing here guys?
msft = yf.Ticker("MSFT")
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
msft.get_info()
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
^C
msft.info
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
print(msft.info)
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
WARNING: 'Ticker.basic_info' is renamed to 'Ticker.fast_info', hopefully purpose is clearer
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.

You're missing the PINNED issue titled "Exception: yfinance failed to decrypt Yahoo data response"

Thanks @ValueRaider checking it out ASAP


Properly pluralize text about module updates

Currently the text in the notification of module updates tries to combine the cases of a single module and multiple modules as follows:

There are newer version(s) of the following course module(s) available

However, the singular version is incorrect:

There are newer version of the following course module available.

It would probably be easier to have separate texts for both cases.

How about:

There is a newer version of the following course module(s) available:
Different modules might have different versions, but the user only needs to know that they are outdated

How about:

There is a newer version of the following course module(s) available:

Different modules might have different versions, but the user only needs to know that they are outdated

I think that might still slightly incorrect, because "version" should be in plural form if "module" is in plural form. At least I interpret "there is a newer version of the following course modules available" as saying that all of the modules have the same newer version, but I guess that's what you also meant by saying that the user only cares about them being outdated, not about htem having different versions.


MSID: 98528 Version: 1 DOI: 10.1101/2<IP_ADDRESS>6913

MSID: 98528
Version: 1
Preprint DOI: https://doi.org/10.1101/2<IP_ADDRESS>6913
Step 1. Awaiting reviews
Editorial to post reviews via hypothesis
Useful links:

DocMap: https://data-hub-api.elifesciences.org/enhanced-preprints/docmaps/v2/by-publisher/elife/get-by-manuscript-id?manuscript_id=98528
New model tracking: https://docs.google.com/spreadsheets/d/1_fHaoOy7hjyocptKtVJRijeNpUY4hBS7Ck_aVmx6ZJk/
Reviews on sciety: https://sciety.org/articles/activity/10.1101/2<IP_ADDRESS>6913

For trouble shooting (e.g. no Docmaps available):

DocMap issue addressing: https://miro.com/app/board/uXjVNCwK6EI=/
Explore DataHub DocMaps API: https://lookerstudio.google.com/reporting/4c2f0368-babb-4beb-b5b3-497e7e7b0f08/page/ejphD
Unmatched submissions and preprints: https://lookerstudio.google.com/u/0/reporting/9f86204f-3bf7-477c-9b18-5c5ef141bf69/page/p_gxi57ha93c
Unmatched manuscripts spreadsheet: https://docs.google.com/spreadsheets/d/15QcK8w-ssB7109RQEDtFpJPZ0J5HTGxoHa_2TtpMBbg/edit#gid=1336081641

Step 2. Preview reviewed preprint
Production QC content ahead of publication
Instructions:

QC preview: https://prod--epp.elifesciences.org/previews/98528v1
Update ticket with any problems (add blocked label)
When QC OK, add QC OK label to ticket and add publication date and time to https://docs.google.com/spreadsheets/d/1amAlKvdLcaDp5W8Z8g77NmkwbMF5n_u89ArSqPMO8jg
Move card to next column
(At end of the day post link in #enhanced-preprint and ask for PDF to be generated)

Useful links:

Preprint DOI :  https://doi.org/10.1101/2<IP_ADDRESS>6913
Confirm reviews returned by EPP: https://prod--epp.elifesciences.org/api/reviewed-preprints/98528/v1/reviews
To update the MECA path in the docmap: https://docs.google.com/spreadsheets/d/1mctCQuNFBjSn97Lihy7_vBO6z7-N-oqyLv4clyi6zHg

Step 3: Awaiting search reindex
This step adds the reviewed preprint to the homepage: https://elifesciences.org
The search reindex is triggered once an hour. We need the reviewed preprint to be indexed as the search application serves the journal homepage.
Useful links:

Jenkins pipeline to reindex search can be triggered sooner or monitored here: https://alfred.elifesciences.org/job/process/job/process-reindex-reviewed-preprints/

Step 4: Published! PDF requested
Waiting for PDF to be generated
Useful links:

PDF tracking: https://docs.google.com/spreadsheets/d/106_XeDjmuBae7gexOTNzg60lapeqjl2aRn9DzupGyS8/

Step 5: Introduce PDF to data folder and git repo
Upload PDF to relevent folder in git repo https://github.com/elifesciences/enhanced-preprints-data/
Step 6: Done!

[ ] Kettle is on!

authors captured in article title


segfault with clang

repro case: https://github.com/malytomas/optick-test-clang
when compiling Optick and/or the application that uses Optick with clang++ on linux with debug symbols and enabled optimizations, the application crashes

Try compile with -fsanitize=undefined compiler and linker flags, not sure how do it with CMake.
I got same crash with standard ConsoleApp example, and when I compiled it with -fsanitize=undefined  I got this:
Starting profiler test.
../../src/optick_memory.h:67:42: runtime error: constructor call on misaligned address 0x7f6277480018 for type 'Optick::MemoryChunk<Optick::EventDescription, 4096>', which requires 64 byte alignment
0x7f6277480018: note: pointer points here
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^
../../src/optick_memory.h:147:3: runtime error: constructor call on misaligned address 0x7f6277480018 for type 'Optick::MemoryChunk<Optick::EventDescription, 4096> *', which requires 64 byte alignment
0x7f6277480018: note: pointer points here
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^
UndefinedBehaviorSanitizer:DEADLYSIGNAL
==31644==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f6276f382d4 bp 0x7f62771f8d50 sp 0x7fffddde82f0 T31644)
==31644==The signal is caused by a READ memory access.
==31644==Hint: address points to the zero page.
    #0 0x7f6276f382d3 in Optick::MemoryChunk<Optick::EventDescription, 4096u>::MemoryChunk() /mnt/d/dumpster_rep/optick-<IP_ADDRESS>/build/gmake/../../src/optick_memory.h:147:28
    #1 0x7f6276f382d3 in Optick::MemoryChunk<Optick::EventDescription, 4096u>* Optick::Memory::New<Optick::MemoryChunk<Optick::EventDescription, 4096u> >() /mnt/d/dumpster_rep/optick-<IP_ADDRESS>/build/gmake/../../src/optick_memory.h:67
    #2 0x7f6276f03b86 in Optick::MemoryPool<Optick::EventDescription, 4096u>::AddChunk() /mnt/d/dumpster_rep/optick-<IP_ADDRESS>/build/gmake/../../src/optick_memory.h:183:23
    #3 0x7f6276f03b86 in Optick::MemoryPool<Optick::EventDescription, 4096u>::Add() /mnt/d/dumpster_rep/optick-<IP_ADDRESS>/build/gmake/../../src/optick_memory.h:206
    #4 0x7f6276f03b86 in Optick::EventDescriptionBoard::CreateDescription(char const*, char const*, unsigned int, unsigned int, unsigned int) /mnt/d/dumpster_rep/optick-<IP_ADDRESS>/build/gmake/../../src/optick_core.cpp:435
    #5 0x7f6276f12846 in Optick::EventDescription::Create(char const*, char const*, unsigned long, unsigned long, unsigned long) /mnt/d/dumpster_rep/optick-<IP_ADDRESS>/build/gmake/../../src/optick_core.cpp:202:38
    #6 0x7f6276f12846 in Optick::Core::Core() /mnt/d/dumpster_rep/optick-<IP_ADDRESS>/build/gmake/../../src/optick_core.cpp:1086
    #7 0x7f6276f178e0 in Optick::Core::Get() /mnt/d/dumpster_rep/optick-<IP_ADDRESS>/build/gmake/../../src/optick_core.cpp:726:14
    #8 0x7f6276f178e0 in Optick::SetStateChangedCallback(bool (*)(Optick::State::Type)) /mnt/d/dumpster_rep/optick-<IP_ADDRESS>/build/gmake/../../src/optick_core.cpp:1520
    #9 0x42d49d in Test::Engine::Engine() /mnt/d/dumpster_rep/optick-<IP_ADDRESS>/build/gmake/../../samples/Common/TestEngine/TestEngine.cpp:502:2
    #10 0x42bb49 in main /mnt/d/dumpster_rep/optick-<IP_ADDRESS>/build/gmake/../../samples/ConsoleApp/main.cpp:25:15
    #11 0x7f6275ad1b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
    #12 0x404699 in _start (/mnt/d/dumpster_rep/optick-<IP_ADDRESS>/bin/gmake/x64/Release/ConsoleApp+0x404699)

UndefinedBehaviorSanitizer can not provide additional info.
==31644==ABORTING

Key words are:
constructor call on misaligned address <...> which requires 64 byte alignment
optick_memory.h:67:42 is a placement new call:
return new (Memory::Alloc(sizeof(T))) T();
My guess is there is some SIMD optimization somewhere, probably in Optick::EventDescription on -O3 and that requires whole class to be 64 byte aligned and Memory::Alloc knows nothing about alignment so we got what we got.

@topin89 thanks a lot for the deep analysis of the issue. I've just removed unnecessary alignment which was causing the problem. Please let me know if you still bump into this problem after grabbing my fix https://github.com/bombomby/optick/commit/c81a0235d03125982d10a779830403d730954333.

@bombomby You're welcome!
Just checked with clang sanitizers, there was no problem.
There was small problem with gcc.
$ UBSAN_OPTIONS=print_stacktrace=1 ./ConsoleApp
Starting profiler test.
Engine successfully created.
Starting main loop update.
../../src/optick_core.cpp:58:21: runtime error: load of misaligned address 0x7fb1eda5619b for type 'const uint64_t', which requires 8 byte alignment
0x7fb1eda5619b: note: pointer points here
 47  50 55 00 47 50 55 20 46  72 61 6d 65 00 2f 75 73  72 2f 69 6e 63 6c 75 64  65 2f 63 2b 2b 2f 38
              ^
    #0 0x7fb1ed8b4e5d in Optick::MurmurHash64A(void const*, int, unsigned long) ../../src/optick_core.cpp:58
    #1 0x7fb1ed8fda73 in Optick::StringHash::StringHash(char const*) ../../src/optick_core.h:31
    #2 0x7fb1ed8fda73 in Optick::EventDescriptionBoard::CreateSharedDescription(char const*, char const*, unsigned int, unsigned int, unsigned int) ../../src/optick_core.cpp:447
    #3 0x7fb1eda53af4 in Test::Engine::Draw() ../../samples/Common/TestEngine/TestEngine.cpp:250
    #4 0x7fb1eda53af4 in Test::Engine::Update() ../../samples/Common/TestEngine/TestEngine.cpp:180
    #5 0x7fb1eda4eba3 in main ../../samples/ConsoleApp/main.cpp:41
    #6 0x7fb1ec78409a in __libc_start_main ../csu/libc-start.c:308
    #7 0x7fb1eda4ef69 in _start (/mnt/c/Users/topin/Downloads/optick-master/bin/gmake/x64/Release/ConsoleApp+0x7f69)

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 8.3.0-6' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 8.3.0 (Debian 8.3.0-6)

Looks like at least gcc 8.3.0 do not align C stings literals by 8 (like "GPU Frame" here). On x86 platform, that's a minor slowdown. On ARM cores, this will result in bus fault, but it's not supported anyway. So gcc is also OK.


How does the AWS provider make API calls with the auto rotation feature enabled?

I've enabled the auto rotation feature on my CSI driver, and everything is working as expected. I have the rotation poll interval set to 2 minutes. I haven't noticed any large uptick in cost for my AWS Secrets Manger. Right now I'm syncing about 15 secrets between AWS and K8s. My question is: Does the driver invoke one API call for all associated AWS secrets every 2 minutes, or does the driver invoke multiple API calls every 2 minutes (one call for each secret)?
The README file in the repo seems to suggest that there is a danger to having poll intervals set to less than 1 hour since high costs could incur. Is this still true? I'm wondering if something has changed in the way auto rotation poll intervals work since the alpha launch.

Every update the driver will call describe secret for each secret and, if it detects a modified secret, it will call GetSecretValue.  Here's the logic for it.
So, yes, the logic remains the same. The recommended update of 1 hour should handle most scenarios so long as you are using multi-user rotation.

Every update the driver will call describe secret for each secret and, if it detects a modified secret, it will call GetSecretValue. Here's the logic for it.
So, yes, the logic remains the same. The recommended update of 1 hour should handle most scenarios so long as you are using multi-user rotation.

I looked through the logic, and it's still unclear to me what happens when the provider sees that it already has the current version of the secret. In that case does the API call still invoke against AWS Secrets Manager thus incurring a cost? Or does the API call only invoke when it's fetching a new version of the secret? For context, I am not using the rotation feature in AWS Secrets Manager, so my secret values should be static most of the time unless I manually update. I just need to know if I am going to be incurring costs for static AWS secrets with the CSI driver auto rotation polling every 2m.

DescribeSecret will be called per secret per update. DescribeSecret does incur a 'per XX api calls' charge.
In this case 15 secrets * 30 updates/hour = 450 'describe secret' calls per hour.

Hi @danmancuso,
Thanks for the clarification. Do you mean "polls" per hour instead of "updates"? My secrets aren't being updated in AWS Secrets Manager since they are static. Just want to clarify before closing this issue.

@davidkuhlke Yes that's correct, @danmancuso meant "update" as in "poll", not "updates" as in "secret value change"


Clone and attach parent

So i just want to clone an entity, but when i save the new entity i want to point to the original (ParentID) when saving to DB. I see there is a getCloningEntity in TS but how do i get this in code behind, for example in the "SaveRequestHandler"?

silly, can set the parentid of clone on getcloningentity.


pulse optimal su4 for cnot

Summary
This PR allows decomposition of su4 gates into pulse optimal form for a device with SX, CNOT, and virtual-Z gates as described in https://arxiv.org/pdf/2008.08571.
Closes #6439
Details and comments

Since this is marked as WIP, what would be most useful for me to review? For instance, you probably won't want me commenting on any prints still present.

@ewinston Also, would you comment on the difference between _su4_cx_forward and ..._reverse? Their docstrings look identical.

@ecpeterson It's probably not quite ready for review yet. There are some things I was trying out and probably won't make it into the initial version when it comes out of WIP. I'll keep you posted. Thanks!

How does SWAP expand after this PR? Does it randomly pick CNOT-NOTC-CNOT or is it direction-aware?

Thanks for the suggestion. I added it to the unitary synthesis pass like you did. The decomposition looks like,
global phase: 3π/2
            ┌────┐                   ┌───┐┌─────────┐         ┌───┐┌─────────┐┌───┐
q0_0 -> 0 ──┤ √X ├───────────────────┤ X ├┤ RZ(π/2) ├─────────┤ X ├┤ RZ(π/2) ├┤ X ├────────────────
          ┌─┴────┴─┐┌────┐┌─────────┐└─┬─┘└──┬────┬─┘┌───────┐└─┬─┘└──┬────┬─┘└─┬─┘┌───┐┌─────────┐
q0_1 -> 1 ┤ RZ(-π) ├┤ √X ├┤ RZ(π/2) ├──■─────┤ √X ├──┤ RZ(0) ├──■─────┤ √X ├────■──┤ X ├┤ RZ(π/2) ├
          └────────┘└────┘└─────────┘        └────┘  └───────┘        └────┘       └───┘└─────────┘

@levbishop The phase slip and usage of built-in euler decompositions have been resolved in commit bac2d53

I'm having trouble getting natural_direction to work properly. Here's a test script:
from qiskit.circuit.library import QuantumVolume
from qiskit.transpiler import PassManager
from qiskit.transpiler.passes import *

qv64 = QuantumVolume(6, seed=15)

def construct_passmanager(basis_gates, coupling_map, synthesis_fidelity, pulse_optimize):

    def _repeat_condition(property_set):
        return not property_set['depth_fixed_point']

    _map = [BIPMapping(coupling_map, objective='depth', time_limit=100)]
    _check_depth = [Depth(), FixedPoint('depth')]
    _optimize = [
        Collect2qBlocks(),
        ConsolidateBlocks(basis_gates=basis_gates),
        UnitarySynthesis(basis_gates, synthesis_fidelity, coupling_map, pulse_optimize=True, natural_direction=True),
        Optimize1qGates(basis_gates),
    ]

    pm = PassManager()
    pm.append(_map)                        # map to hardware by inserting swaps
    pm.append(_check_depth + _optimize,
              do_while=_repeat_condition)  # translate to & optimize over hardware native gates
    return pm

coupling_map = CouplingMap([[1, 0], [1, 2], [3, 2], [3, 4], [5, 4]])
basis_gates = ['rz', 'sx', 'cx']

pm = construct_passmanager(basis_gates=basis_gates,
                           coupling_map=coupling_map,
                           synthesis_fidelity=.99,
                           pulse_optimize=True)

qv64_compiled = pm.run(qv64.decompose())

You will see that both CX0_1 and CX1_0 are used, even though the coupling map only has CX1_0.

I've update the branch to fix lint and the tests failures (you can't use bip mapper unconditionally because cplex isn't available for every test environment)

@ewinston I can see some some decompositions are not optimal:
from qiskit import QuantumCircuit, transpile
from qiskit.quantum_info import random_unitary
circ = QuantumCircuit(2)
circ.append(random_unitary(4, seed=767), [0, 1])
new_circ = transpile(circ, basis_gates=['rz', 'sx', 'cx'], optimization_level=3)
new_circ.draw('mpl')

This should have only 2 sx gates in the middle, but right now has 4.
If I change the unitary seed to 1, then it is correct. So it's happening for some unitaries but not all. Any idea why?

Also in the same example I just wrote, if I add coupling_map=[[1, 0]] the output still has CX in the [0,1] direction. Not sure why. I was able to get the natural direction to work when I built custom pass managers, but I think it should also work with transpile()


fix(completion): fix static analysis shellcheck errors

In ./contrib/completion/bash/sdk line 36:
			candidates=${SDKMAN_CANDIDATES[@]}
                        ^--------^ SC2178 (warning): Variable was used as an array but is now assigned a string.
                                   ^---------------------^ SC2124 (warning): Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.

In ./contrib/completion/bash/sdk line 52:
	COMPREPLY=($(compgen -W "${candidates[*]}" -- "$current_word"))
                   ^-- SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting).

In ./contrib/completion/bash/sdk line 79:
	COMPREPLY=($(compgen -W "${candidates[*]}" -- "$candidate_version"))
                   ^-- SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting).

For more information:
https://www.shellcheck.net/wiki/SC2124 -- Assigning an array to a string! A...
https://www.shellcheck.net/wiki/SC2178 -- Variable was used as an array but...
https://www.shellcheck.net/wiki/SC2207 -- Prefer mapfile or read -a to spli...

Hi @leagris,
I've added a few comments to your proposed changes. While these are technically correct, we highly value backwards compatibility, which some of these changes might break.


Update NodeJS versions in CI

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.519%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
120

Relevant Lines:
121

💛  - Coveralls


fix: Add padding to first message in message list

🎯 Goal
Add padding to the first message in the message list to solve the problem where reactions aren't properly visible. Tested with Angular and React SDK.
🛠 Implementation details
Only added this to the message list. I wasn't sure if the changing height of the messages wouldn't cause problems inside the virtualized list.
🎨 UI Changes
Before:

After:

:tada: This PR is included in version 3.8.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[Extension] Projects with mountpoint object in fstab.yaml completely breaks the extension

:tada: This issue has been resolved in version 3.28.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[Feature Request] Multiple Inputs

I think there is only one thing missing from this, either in the implementation or in the docs, a Dialog with Multiple inputs.
Many TextInputs or Text + Checkbox, etc

+1

Yeah, was looking for ages on how to do support multiple inputs with this RN project, expecting this "wrapper" allowing it, considering the underlying library does.
Oh wells.

I was also trying multiple, but not necessarily multiple inputs, but multi fields. I wanted to show content, one input, and at bottom a checkbox for "dont ask me again".


v2.10.2

Description

Fixed a bug in body parsing middleware preventing json body to be parsed if a charset was provided.

Possible drawbacks
None.
Related issue(s)

#101

Pull Request Test Coverage Report for Build 155423974

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.0004%) to 98.63%

Totals

Change from base Build fd25df3b1:
0.0004%

Covered Lines:
3167

Relevant Lines:
3211

💛  - Coveralls


WFCORE-1836 Rejection-style transformer tests assume each operation generated by parser has distinct PathAddress

Based on @kabir 's work which needed bit more tweaking.
https://issues.jboss.org/browse/WFCORE-1836

@kabir I'll leave this one to you. Looks ok to me, as AFAICT it doesn't do anything except add a new checkValue variant that I presume will be overridden in some subsystems in full.


add joint_limits_interface to catkin_packages to build witk catkin build

Hi,
when building the franka_ros packages with the catkin-tools (aka catkin build) the build fails with
In file included from /home/jkur/ros/src/franka_ros/franka_control/src/franka_control_node.cpp:13:0: /home/jkur/ros/src/franka_ros/franka_hw/include/franka_hw/franka_hw.h:17:10: fatal error: joint_limits_interface/joint_limits_interface.h: Datei oder Verzeichnis nicht gefunden  #include <joint_limits_interface/joint_limits_interface.h>           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [CMakeFiles/franka_control_node.dir/src/franka_control_node.cpp.o] Fehler 1 make[1]: *** [CMakeFiles/franka_control_node.dir/all] Fehler 2 make: *** [all] Fehler 2
Adding the joint_limits_interface in the CMakeLists.txt fixes this.

Sorry for the late response. I just tried running catkin build with the current develop branch and didn't get any error, but nevertheless, your change makes sense. Thanks!


Set input type of point number to number

This change improves the usability on smart phones

Thanks! It is now live on c3bottl.es. I also adapted the CSS so that the ugly up/down arrows in Firefox are not displayed.

That looks nice ;)


Awwsome Book Complete Website

Hi Code Reviewer,
I implemented the complete page of the awesome book
I updated my CSS, js and HTML files.
Kindly review and approve
Thanks!

Fixed,
With regards to my code partner, after the first project, microverse removed her from the program and told me to work solo.
Here is the email I received
"

Otto (Microverse)Jul 1, 2022, 08:24 GMT+2Hi Stephen , We see your partner Azeezat has been absent for 8 sessions this week. You will be working solo for the remainder of the week. If you were working in a team of 3 students and you are able to continue working with your other partner, please do so. You can count on your standup team for motivation and accountability. If you have technical questions, you can post your question on Discourse or book time with a code reviewer. You can read more in the following FAQ: How can I get help from code reviewers (TSEs)?Please reach out to Student Success if you need support. Best Otto

Otto (Microverse)
Jul 1, 2022, 08:24 GMT+2
Hi Stephen ,
We see your partner Azeezat has been absent for 8 sessions this week. You will be working solo for the remainder of the week.
If you were working in a team of 3 students and you are able to continue working with your other partner, please do so.
You can count on your standup team for motivation and accountability. If you have technical questions, you can post your question on Discourse or book time with a code reviewer. You can read more in the following FAQ: How can I get help from code reviewers (TSEs)?
Please reach out to Student Success if you need support.
Best
Otto"


Collect general profiling data on longevity test net

CPU time and memory cost money, the more we use per user the smaller networks we can support. It is therefore important that we have good knowledge of where in iroha2 we are slow and where we are fast. Same goes for memory but investigating that is a different matter and will be done as a different issue. I will be adding instrumentation to the various parts of iroha2 so that during a test net profile we can gather data on what needs improving.

related RFC

We now have integrated profiler which we can use to collect necessary data.


Upgrade to 0.5.2 with boost 1.67

Checklist

[x] Used a fork of the feedstock to propose changes
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


refactor(native): uncomment return type t

OK, so locally it seems as this works to expose t. One would think there's a reason for it being commented out, but I haven't hit any issues yet. 🤷♂
Would fix #29

Looks good to me. Thank you @lessp 🎉
I see that CI is failing. It's not connected to the PR itself but if you have spare few minutes would be great if you could make it working again 😉

Looks good to me. Thank you @lessp 🎉
I see that CI is failing. It's not connected to the PR itself but if you have spare few minutes would be great if you could make it working again 😉

The issue with CI seems to be that Windows (or the version runnign in CI) can't handle &&, splitting them to separate lines seems to do the trick.
With that said, the following test seems to fail with this change (return t):
// tests/native/custom_scalars.re

Error: The type of this packed module contains variables:
< customScalarField : < nonNullable : [> `Null ];
                        nullable : [> `Null ] option > >
typed_ret

@lessp Because in OCaml type system poly variants can be open (e.g [> `Null]), return type magic could not figure out the exact type of the parse function. The fix was to explicit mark all  `Null values as Yojson.Basic.t.

Quick example in smaller scale: https://sketch.sh/s/JUxWzw49tzhRmPZMeQcWs6/

LGTM 🎉 Thank you @lessp


Installation fails due to protobuf dependency issue

python setup.py install fails with the following error:
error: protobuf 4.21.12 is installed but protobuf<4.0.0dev is required by {'google-cloud-logging'}

The following fixes the above issue
 install_requires =
     google-cloud-logging < 2.0
     google-cloud-resource-manager
+    protobuf < 4.0.0dev

but encounters the following error:
error: protobuf 3.20.3 is installed but protobuf>=4.21.6 is required by {'grpcio-status'}

So, google-cloud-logging and grpcio-status depend on two difference protobuf versions which can't be satisfied at the same time. I wonder if there's any quick fixes for this.

Hi @yamaszone , no answer for your question...
I'm facing the same problem. It seems Google hasn't fixed the protobuf issue...


feat: adding a apy preview exporter for curve factories.

Related issue # (if applicable):
What I did:
I've added a new exporter for calculating APY previews for curve gauges which are not yet linked to a vault.
I'm fetching all available gauges from the curve API and publishing the resulting apys to a s3 bucket.
How I did it:
Refactored the curve simple code so it could be called without a vault but by passing the gauge values as params.
How to verify it:
Checklist:

[x] I have tested it locally and it works
[ ] I have included any relevant documentation for the repo maintainers
[ ] (If fixing a bug) I have added a test to the test suite to test for this particular bug

Adding a Network
If the purpose of your PR is to add support for a new network, please copy the checklist from here into this PR conversation, and use it to track your changes.

Working locally and outputs great
these have pricing issues atm
0xb07d00e0eE9b1b2eb9f1B483924155Af7AF0c8Fa
0x663FC22e92f26C377Ddf3C859b560C4732ee639a
0x9f57569EaA61d427dEEebac8D9546A745160391C
0xB3783f527B7704DeeD4993f7c1c779E426A04368
0x3eE0bD06D004C25273339c5aD91e1443523DC2dF
0x762648808EF8B25C6D92270b1C84Ec97dF3bED6B


Fix srb init issues with ruby-3

Resolve the remaining issues outlined in #5332, and add ruby-3.0.3 to the set that we test srb init with.
Fixes #5332
Motivation

Fixing bugs related to ruby-3.
Test plan

See included automated tests.

Looks great, thanks!
ooc, did you happen to try locally with 3.1 as well? i'm just curious whether we need further fixes to get it working with 3.1

I did, and it worked with 3.1 as well.


Local Minima in an array

Related Issue
https://www.geeksforgeeks.org/find-local-minima-array/
Solved issue number: #304
Describe the changes you've made
Solution of problem in C++
Describe if there is any unusual behaviour of your code(Write NA if there isn't)
NA
Language used for coding
C++
Checklist:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have documented the code.
[x] New and existing unit tests pass locally with my changes.

The folder name is GeeksForGeeks. So, change the folder name.

Sure

take a look @Nivedita967  is it okay now?


Spurious file-related failures on Windows runners

Description
For the past few months, the rust-lang/rust project has had a lot of spurious failures on the Windows runners. These are typically either failure to open a file (mostly from link.exe) or failure to remove a file:

LINK : fatal error LNK1104: cannot open file ...
error: failed to remove file ..., Access is denied (os error 5)

Example run: https://github.com/rust-lang-ci/rust/actions/runs/10537107932/job/29198090275
Is it possible that something changed that would cause this? Even if not and this is a problem with our tooling, we could use assistance debugging.
Further context, links to failed jobs, and attempts to reproduce are at https://github.com/rust-lang/rust/issues/127883. Almost every PR showing up in the mentions list is from one of these failures. These errors are similar to what was reported in https://github.com/actions/runner-images/issues/4086.
Cc @ChrisDenton and @ehuss who have been working to reproduce this.
Platforms affected

[ ] Azure DevOps
[ ] GitHub Actions - Standard Runners
[X] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] Ubuntu 24.04
[ ] macOS 12
[ ] macOS 13
[ ] macOS 13 Arm64
[ ] macOS 14
[ ] macOS 14 Arm64
[ ] Windows Server 2019
[X] Windows Server 2022

Image version and build link
Current runner version: '2.319.1'
Runner name: 'windows-2022-8core-32gb_4d2ba789d359'
Runner group name: 'Default Larger Runners'
Machine name: 'runner'
Operating System
  Microsoft Windows Server 2022
  10.0.20348
  Datacenter
Runner Image
  Image: windows-2022
  Version: 20240811.1.0
  Included Software: https://github.com/actions/runner-images/blob/win22/20240811.1/images/windows/Windows2022-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/win22%2F20240811.1

Is it regression?
Yes, around 2024-06-27 but the exact start is unknown. It has seemingly gotten significantly worst in the past week or so, that job has at least a 25% failure rate from this issue in the past couple of days (probably close to 50%).
Expected behavior
Accessing or removing the files should succeed.
Actual behavior
The file operations are encountering spurious failures, as linked above.
Repro steps
No known consistent reproduction.

Hi @tgross35 ,Thank you for bringing this issue to us. We are looking into this issue and will update you on this issue after investigating.

Hi  @tgross35  ,Thank you for bringing this issue to us. We are looking into this issue and will update you on this issue after investigating.

Thank you for the response. If you need to watch active jobs there is always one running at https://github.com/rust-lang-ci/rust/actions (mostly the auto branch). x86_64-msvc-ext dist-x86_64-msvc-alt dist-x86_64-msvc all fail commonly, usually between 1 and 2 hours of job start.

@vidyasagarnimmagaddi is there something we could do to debug this better? Our failure rate is currently over 50% due to this issue.
Somebody was able to confirm that we encounter this issue even running CI on an older state of our repo (from before this problem was noticed), which does seem to indicate it is caused by a change to the runner environment rather than changes to our code.

@tgross35 - sure, we will update you shortly to provide workaround/solution to the issue.

@ijunaidm Thanks! I'm one of the people working on this on the Rust side. Another datapoint: I've never been able to reproduce this on the windows-2022 runner. I've only been able to do it on the windows-2022-8core-32gb runner. I don't know if that is just because of performance (windows-2022 might be too slow to trip whatever race condition), or if it is fundamental to differences in the image. One thing I noticed is that windows-2022-8core-32gb uses the C: drive whereas windows-2022 uses the D: drive. I'm not sure if that is relevant at all.

@ijunaidm are there any updates here, or are you able to help us debug in some way (e.g. provide a way to ssh into active runners)? We were forced to switch to the small runners which seems to make this issue less prevalent (still very common) but need to move back to the large runners at some point.

@tgross35 - Sorry, i will update you shortly on this issue.

@subir0071 thank you for reaching out.

If possible exclude the deletion step from the workflow as for every new workflow run Github provisions new runners.

We create this file during the run and later need to delete it, so eliminating this step is not possible. Several people from rust-lang have already tried workarounds, including:

Trying to rename the file if it fails to remove https://github.com/rust-lang/rust/pull/127152
Retrying the delete if it fails https://github.com/rust-lang/rust/pull/127147
Hacking around the way files are deleted https://github.com/rust-lang/rust/pull/129504
Adding a 5 minute sleep before running the command that tries to delete https://github.com/rust-lang/rust/pull/129509
Trying to figure out what is holding the file https://github.com/rust-lang/rust/pull/129836, https://github.com/rust-lang/rust/pull/129522
Other misc attempts to figure out what is going on https://github.com/rust-lang/rust/pull/127373 https://github.com/rust-lang/rust/pull/129923

Further, this issue doesn't always take the same form; sometimes it is failure to remove a different file, sometimes it is failure to open files.

Otherwise, make the pipeline wait to ensure the miri.exe is not busy, which can be another cause of access denied on deletion.

This is our main hypothesis for what is going on, but it doesn't seem to be us holding the file (meaning maybe there is some indexing, antivirus, or monitoring that was added within the past few months causing the problem). We have exhausted everything possible to figure out why miri.exe would be busy. The PRs linked above have some attempts at this, see also e.g. https://github.com/rust-lang/rust/issues/127883#issuecomment-2336535344.
We cannot really do any further debugging here without GitHub's help, we need a way to do something like SSH into one of the runner images or create a kernel dump, or have somebody from GitHub do this for us while we run jobs. Is this possible?

@jasagredo, I think this will look familiar to you.

@geekosaur Not exactly, our issue was with permissions in read-only files that prevented Windows from deleting them. This seems to be related to Windows holding the lock for a file in use for too long.
@tgross35

SSH into one of the runner images

Maybe it is not very useful but there is https://github.com/mxschmitt/action-tmate which allows you to ssh into a runner, although I'm not sure of how elevated are the permissions there so you might not be able to dump protected stuff.

@subir0071 I reverted our workarounds in https://github.com/rust-lang/rust/pull/134150 and started a test job. Usually the failures happen 1-2 hours after the job starts, I'll retry it if it doesn't fail.
Here is a link for the running jobs https://github.com/rust-lang-ci/rust/actions/runs/12266538500.

@subir0071 it did fail with the same error that we had been experiencing before "failed to remove file" https://github.com/rust-lang/rust/pull/134150#issuecomment-2533392239

@subir0071 thank you for looking into this. We would love to analyze this more on our side, but I need to reiterate that this error has never been reproduced on anything other than the GitHub Windows runners. We have tried debugging this but have reached the limits of what we can do within the limits of running jobs (Handles does not report anything), so we are stuck without help from GitHub.
Can you provide us with a way to SSH into runners so we can see what is using the files? Unfortunately https://github.com/actions/runner-images/issues/10483#issuecomment-2434913837 does not have sufficient permissions.

The error message on delete is consistent with the application running while we try to delete it.
However, Handles does not show it as being open and procmon shows the process exiting (and its file handle closed) long before the call to delete.
We're experimenting with using a dev drive for builds, which so far appears to workaround the issue.


Docker-compose building error

Bug description
Unable to run current dev code under docker-compose:
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

Steps to reproduce
Steps to reproduce the behavior:

Install Ubuntu 18.04 and Upgrade to latest LTS release 18.04.4
Install latest versions of docker (https://docs.docker.com/install/linux/docker-ce/ubuntu/) and docker-compose (apt-get install docker-compose)
Clone django-DefectDojo repository
Switch to dev branch
Go to django-DefectDojo directory
Run command docker-compose build according to manual

Expected behavior
Building containers those are required to run application
Deployment method (select with an X)

[ ] Kubernetes
[x] Docker
[ ] setup.bash / legacy-setup.bash

Environment information

Operating System: Ubuntu 18.04.4

Sample scan files (optional)
If applicable, add sample scan files to help reproduce your problem.
Screenshots (optional)
If applicable, add screenshots to help explain your problem.
Console logs (optional)
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

Additional context (optional)
Add any other context about the problem here.

What version of docker-compose do you have? Latest can be installed with something like
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

hello,
can we close this? probably a wrong version of docker-compose installed

closing for now; don't hesitate to re-open if really needed :)


fix: fix balance finder and adjust address history

Description of change

Fixes balance finder
Adjusts logic to increase gap limit rather than account index
Adjust address history to include index and address type

Links to any relevant issues
Fixes #1629
Type of change

Update (a change which updates existing functionality)
Fix (a change which fixes an issue)

How the change has been tested
Tested with address generation script and using faucet to distribute balance
Change checklist

[x] I have followed the contribution guidelines for this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have checked that my latest changes pass CI tests
[ ] New and existing unit tests pass locally with my changes

This update of wallet.rs should also fix the following issues:

#1656 (https://github.com/iotaledger/wallet.rs/commit/0e0db27b0fcfc6c8a99e1a64b269791428c75507)
#1205 (https://github.com/iotaledger/wallet.rs/commit/72327a470cf0c57d930a4769f18d5e2dac857485) (hopefully)


rewrite struct constructor section

It was woefully incomplete. Copied a bunch from the recent class construction spec.

@andralex all comments addressed.


Feat: Automated thank you email for newsletter subscription

What feature?
I would like to add a feature where an appreciation mail is sent to the user on newsletter subscription. This can be done either using emailjs or nodemailer. The mail would say something like "Welcome to Palettegram Newsletter. Thank you for subscribing to our newsletter. Stay tuned for more updates....".
And also add an alert with a message "Subscribed to Newsletter" when the subscribe button is clicked. This would improve the overall user experience.
@Sanchitbajaj02, please assign this issue to me under GSSoC'24
Add screenshots
No response
Record

[X] I agree to follow this project's Code of Conduct
[X] I want to work on this issue

Hi @Ayesha-Siddiqua88
we can implement that. Currently, there is a system of resend api which might help you in sending the email.


ServiceHost close method

ServiceRun
            ...
            Console.WriteLine("Start service on {0} port... ", 9091);
            await host.Open();
            Console.ReadLine();
            await host.Close();
            Console.WriteLine("Service stoped");
            }

This code generated error: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
at System.Net.Sockets.Socket.EndAccept(Byte[]& buffer, Int32& bytesTransferred, IAsyncResult asyncResult)
at System.Net.Sockets.TcpListener.EndAcceptTcpClient(IAsyncResult asyncResult)
at System.Net.Sockets.TcpListener.<>c.b__24_1(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()    at TcpServiceCore.Server.ServiceHost1.<b__9_0>d.MoveNext() in D:!WorkTest\ProxyServer\ProxyServer\ProxyServiceCore\src\TcpServiceCore\Server\ServiceHost.cs:line 57
in this code:
Service host   OnOpen()
                    ...
                    catch (Exception ex)
                    {
                        Global.ExceptionHandler?.LogException(ex);
                    }

That is normal and the exception is caught so it won't break the application. the logger I have now writes the exception to the console, the logger milestone not done yet. you can ignore this log by setting Global.ExceptionHandler to null.


adding test for default solution to PerfForesightConsumerType

See #504
This PR tests the results of the solution to a PerfForesightConsumerType problem, using the default parameters.
It adds the test to the unit tests that are run by Travis CI.
One thing that is not ideal about this test is that it is taking the output it is testing against from the result of an execution of the existing code.
That means that this test will fire if the underlying code changes in a way that changes to solution value.
But it could be possible to do better, especially in this particular case, in which the solution has a closed form in terms of the agent model parameters.

I totally missed that this was outstanding.  Yes, let's eventually update
this test to use the known closed form solution to the infinite horizon
perfect foresight problem.  But I'm glad this exists.
On Wed, Feb 26, 2020 at 1:33 PM Sebastian Benthall<EMAIL_ADDRESS>wrote:

Merged #506 https://github.com/econ-ark/HARK/pull/506 into master.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/econ-ark/HARK/pull/506?email_source=notifications&email_token=ADKRAFNICISAIUALTEN6A7TRE2YY7A5CNFSM4KSEW3BKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOW5DZAXI#event-3074920541,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADKRAFN76QIYYAAFLCVLQSLRE2YY7ANCNFSM4KSEW3BA
.

Definitely this is a case where the closed form solution should be used.
Actually, it's always seemed to me that we should simply use the closed form solution directly as the output of this; really the only advantage of solving it numerically is precisely as a simple test of whether there are bugs in our numerical algorithms.

The closed form solution only works if it's infinite horizon, one period
cycle, no artificial borrowing constraint; we can't switch to it as a
general policy.  I'd say we want to use the numeric solver for backward
iteration even when it's not mathematically necessary both for consistency
and for teaching/exploration purposes.
If you still want to do this, what we would do is add a method that's
called by preSolve() if it's both infinite horizon and a one period cycle;
the method would alter solution_terminal to have the closed form
unconstrained cFunc, regardless of whether there's a borrowing constraint.
If the problem is unconstrained, it will converge in 1 or 2 cycles (I can't
remember if it's still set to not check for convergence after the first
iteration) and be exactly correct.  If the problem is constrained, starting
with the unconstrained infinite horizon solution actually makes the final
result more accurate.
On Wed, Feb 26, 2020 at 7:16 PM Christopher Llorracc Carroll <
<EMAIL_ADDRESS>wrote:

Definitely this is a case where the closed form solution should be used.
Actually, it's always seemed to me that we should simply use the closed
form solution directly as the output of this; really the only advantage of
solving it numerically is precisely as a simple test of whether there are
bugs in our numerical algorithms.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/econ-ark/HARK/pull/506?email_source=notifications&email_token=ADKRAFNFMXIXIFD2TBIKVADRE4A7DA5CNFSM4KSEW3BKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENCMWJQ#issuecomment-591711014,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADKRAFN5HVD6ZYW5VGYAJPLRE4A7DANCNFSM4KSEW3BA
.

There’s a closed form solution for the finite horizon model too:
PerfForesightCRRA
http://econ.jhu.edu/people/ccarroll/public/lecturenotes/consumption/PerfForesightCRRA
(
http://www.econ2.jhu.edu/people/ccarroll/public/lecturenotes/consumption/PerfForesightCRRA/#cFuncAnalytical
)
and for the perfect foresight model with an artificial liquidity constraint:
LiqConstr http://www.econ2.jhu.edu/people/ccarroll/papers/LiqConstr/
In practice, either of these solutions should be instantiated in a
piecewise linear interpolator.
It occurs to me now that you may have misinterpreted me when I said we
should use the closed form solution where it exists. I did not mean that we
should do, like, a lambda function that embodies the equation in the first
link above, which would only e evaluated at the instant when it is needed
(substituting in the coefficients at that stage). I just meant that we
might prefer not to use a completely generic solution method, and instead
.solve() would hand-construct the points for the interpolating functions,
using exactly the right kink points etc.
If it were costless, I guess the ideal solution would be to have an
optional “useClosedForm” boolean which could (per your preference) default
to false but when True would:

Check whether the conditions required for the closed form solution
are met;

If not, produce a warning message and return the numerical solution
If so, return the answer constructed using the closed form solution

On Thu, Feb 27, 2020 at 3:20 AM Matthew N. White<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
The closed form solution only works if it's infinite horizon, one period

cycle, no artificial borrowing constraint; we can't switch to it as a
general policy. I'd say we want to use the numeric solver for backward
iteration even when it's not mathematically necessary both for consistency
and for teaching/exploration purposes.
If you still want to do this, what we would do is add a method that's
called by preSolve() if it's both infinite horizon and a one period cycle;
the method would alter solution_terminal to have the closed form
unconstrained cFunc, regardless of whether there's a borrowing constraint.
If the problem is unconstrained, it will converge in 1 or 2 cycles (I can't
remember if it's still set to not check for convergence after the first
iteration) and be exactly correct. If the problem is constrained, starting
with the unconstrained infinite horizon solution actually makes the final
result more accurate.
On Wed, Feb 26, 2020 at 7:16 PM Christopher Llorracc Carroll <
<EMAIL_ADDRESS>wrote:

Definitely this is a case where the closed form solution should be used.
Actually, it's always seemed to me that we should simply use the closed
form solution directly as the output of this; really the only advantage
of
solving it numerically is precisely as a simple test of whether there are
bugs in our numerical algorithms.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<
https://github.com/econ-ark/HARK/pull/506?email_source=notifications&email_token=ADKRAFNFMXIXIFD2TBIKVADRE4A7DA5CNFSM4KSEW3BKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENCMWJQ#issuecomment-591711014
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ADKRAFN5HVD6ZYW5VGYAJPLRE4A7DANCNFSM4KSEW3BA
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/econ-ark/HARK/pull/506?email_source=notifications&email_token=AAKCK77XIJRGEGI7N2VNM6LRE4POPA5CNFSM4KSEW3BKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENCUZRA#issuecomment-591744196,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKCK7ZDXNKSHES5WNJHYMLRE4POPANCNFSM4KSEW3BA
.

--

Chris Carroll


Fixed signMessage, added verifyMessage

Description
This PR currently fixes an issue with calling the bitcoinmessage sign calls for supporting segwit addresses. Also added message verification

CAL migrated to Chainify


[Feature]: add github action workflow for greeting contributors

Description:
The current project lacks an automated action to greet contributors. GitHub Actions can significantly enhance project automation. I propose adding a GitHub Action workflow to greet new pull request (PR) and issue creators, fostering a welcoming environment.
Proposed Changes:
Implement a GitHub Action workflow that triggers on new PRs and issues. The workflow should include a greeting message to acknowledge and appreciate the contributors for their efforts.
Expected Behavior:
When contributors create new PRs or issues, the GitHub Action should automatically trigger and post a welcoming message, acknowledging their contributions.
Checklist

[X] I have starred the repository
[X] I have checked the existing issues
[X] I am willing to work on this issue
[X] I am an SWOC'24 contributor

Hi @harmeetsingh11, How are you doing?
I saw no one is working on this issue, So can I start work on it?


My first experience

Hi there!
Just want to start out saying I am extremely excited about this project, fantastic work! :-)
I went through the getting started and working on larger apps I of course have a build workflow, using webpack mostly.
There were a couple of things that confused me:

The name @horizon/client is not very common. It would be nice in the getting started to see an example of how you actually import it as well. Just threw me off a bit

When I got it running I got an error :

ERROR in<EMAIL_ADDRESS>Module not found: Error: Cannot resolve module 'imports' in /Users/christianalfoni/Development/temp/example_app/node_modules/@horizon/client/lib/util
<EMAIL_ADDRESS>13:0-69

After installing it manually I got the error:
ERROR in<EMAIL_ADDRESS>Module not found: Error: Cannot resolve module 'exports' in /Users/christianalfoni/Development/temp/example_app/node_modules/@horizon/client/lib/util
<EMAIL_ADDRESS>13:0-69

After installing again I got the error:
ERROR in Loader /Users/christianalfoni/Development/temp/example_app/node_modules/exports/lib/exports.js?global.fetch didn't return a function
<EMAIL_ADDRESS>13:0-69

Checking the source code I get a feeling these were actually the imports-loader and exports-loader from webpack, so installed those instead.
And then it worked :-)
I would say this is some package dependency stuff that needs to be resolved rather than documentation? If not I would be happy to help.

hi @christianalfoni good to see you around! :)
This issue is already resolved in the next branch and will be fixed in the next release of horizon!
Yes, it was a incorrectly set dependency.

Ah, that is great! Thanks for the quick response and keep up the great work! :)


HTTP proxy via CONNECT method should return 200 after connect to target host

Request like this:
CONNECT api.github.com:443 HTTP/1.1
Host: api.github.com:443
...

Proxy server should connect to api.github.com first, instead of just return 200 regardless of whether we can connect to api.github.com.
REF: RFC 7231

Thanks!
I will fix this issue next version.


MediaPlayer notification layout problem with action buttons v0.7.4.

I have a MediaPlayer notification layout problem.
Actions buttons not visible on default size.
It works on v0.6.21.
It doesn't work on v0.7.4

_plugin.createNotification(
content: NotificationContent(
        id: 1,
        channelKey: 'player',
        title: title,
        body: body,
        wakeUpScreen: false,
        autoDismissible: false,
        notificationLayout: NotificationLayout.MediaPlayer),
    actionButtons: [
      playing
          ? NotificationActionButton(
              key: 'pause',
              label: 'Pause',
              icon: 'resource://drawable/res_pause',
              autoDismissible: false,
              // actionType: ActionType.SilentAction
        )
          : NotificationActionButton(
              key: 'play',
              label: 'Play',
              icon: 'resource://drawable/res_play',
              autoDismissible: false,
              // actionType: ActionType.SilentAction
        ),
    ])

Sorry, but I need the information that was requested on the form you deleted when publishing this issue.
Because of this, as the community rules were not followed, I'm going to close this thread and mark it as invalid.
Please, create a new issue, answering all the information requested in the form.


Chapter 6 Hero Animation Assets don't seem to work with UE 5.3.2

Hello!
I'm not even sure if anyone checks this. I doubt it.
But I'm holding out hope. I recently got to Chapter 6 of this book where we begin implementing a (now legacy) BlendSpace1D for the Hero animation blueprint.
I'm able to create the state machine just fine, but I'm unable to view the Assets provided by the project in my asset browser when trying to add animation data.
Is there something obvious I'm missing?
https://github.com/PacktPublishing/Unreal-Engine-5-Game-Development-with-C-Scripting/assets/34610940/9c1551a5-70cc-46a9-aac7-41e91e39b64d

Hi Morklympious,
Sorry for encountering this issue and thank you for asking the question here.
How to create and setup the StateMachine and the BlendSpace1D asset is not within the scope of this book. Please watch the following video tutorials.  Hopefully they can help to solve this problem.

UE4 Absolut Beginner Tutorial - Part 13: Blend Space 1D
https://www.youtube.com/watch?v=pLlvjocbXp8

Unreal Engine 4 - Animations, BlendSpace, State Machines, AnimGraph Tutorial from Scratch
https://www.youtube.com/watch?v=wKt6wVgOcZc

Best regards.
George Li

Hi George! Thanks for replying
My issue is not necessarily setting up the BlendSpace1D or state machine, those are straightforward, it's that the book states I can add three animations to the blend space:

Hero_Anim_Idle_Anim
Hero_Anim_Walk_Anim
Hero_Anim_Run_Anim (I'm looking at figure 6.18)

But The problem I have is that in Unreal Engine 5 These animation files do not show up in the asset browser for adding animations to a BlendSpace1D, the book tells me to add the above animations, but I am unable to search for them or add them despite them existing in my content browser
The book is telling me I can add these animations to the timeline, but I cannot. I am unable to despite the book telling me I can
The issue I have is that upon creating the BlendSpace1D asset, I am unable to add any of these animations from the assets provided by this repository as animations for the Blendspace. They simply do not show up
https://github.com/PacktPublishing/Unreal-Engine-5-Game-Development-with-C-Scripting/assets/34610940/7e654c1e-c7b7-41e2-a37f-99e82018aba9

Sometimes, Unreal doesn't update the content library in time. If that happens, try closing your editor, save all the assets, and restart the editor.

Thank you for your response! I'll try this out on monday and if it works, I'll resolve this thread!


Idea: meta-store

In the current workflow of Warp10, you have some Ingress which produce data on the data topic of Kafka and for new or updated series (metas) some messages to the metadata topic.
Let's focus on metadatas.
Metadatas are consumed by Directory to keep an index of all time series.
When consuming this metadata they also forward them to HBase to save them.
When a Directory reboot, it scan HBase to rebuild his cache.
In this configuration every Directory need this own Kafka consumer to build his own series index.
So, each Directory will perform a put on HBase to save his metadata. it do it even if the metadata are the same, because of his dedicated consumer group.
The idea is to remove the role of "persisting metadata on HBase" from the Directory component and build a dedicated component for that.
let's call it meta-store
meta-store role is to consume metadata from Kafka and perform the put on HBase.
Where is the benefit ?
Each directory, doesn't have to talk to HBase when running (it still need to scan the table on reboot); less pressure; faster message commit on Kafka.
meta-store can have several instances with the same consumer group so every metadata update on HBase is only done once; less pressure on HBase.

This is already implemented, check configurations directory.store and directory.delete

Well... but not really, directory.store and directory.delete is half of the job.
With it, you can tell to a Directory to not put metadata on HBase, but if you do that on Directorys, nobody will handle the job of persisting the metadatas.
So, this is the idea: set directory.store and directory.delete to false on Directorys. And add a dedicated component which consume the metadata topic and only perform the puts on HBase.
This dedicated component is easily scalable because it has only 1 consumer group (vs 1 consumer group per Directory).
Directory is Happy (no put on HBase), HBase is happy too (only 1 put for a metadata vs 1 per directory)

Have your serving directories not interact with HBase and set up a dedicated set of Directory instances which will ibteract with HBase but not register and configure then with a black hole directory plugin to not consume memory, this set of Directory instances is your meta store.

A directory without legs an and arms might works, Thx !


Getting error in Linux OS with .Net Core 2.2 - The configured user limit (128) on the number of inotify instances has been reached

I am using .Net Core 2.2 for my web project. I got test cases which I am executing using dotnet vstest as part of CI pipeline in Linux docker. However the execution of test cases fails sometimes with error "The configured user limit (128) on the number of inotify instances has been reached."
However if I re-run, it works successfully. I am not sure what's going wrong. I had a look at this post but I am not using JSON file in my Startup class, also I am calling build() only once in my Main method.
Error Message:
> OneTimeSetUp: Autofac.Core.DependencyResolutionException : An error
> occurred during the activation of a particular registration. See the
> inner exception for details. Registration: Activator = MvcRouteHandler
> (ReflectionActivator), Services =
> [Microsoft.AspNetCore.Mvc.Internal.MvcRouteHandler], Lifetime =
> Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership =
> OwnedByLifetimeScope ---> An error occurred during the activation of a
> particular registration. See the inner exception for details.
> Registration: Activator = ActionInvokerFactory (ReflectionActivator),
> Services =
> [Microsoft.AspNetCore.Mvc.Infrastructure.IActionInvokerFactory],
> Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared,
> Ownership = OwnedByLifetimeScope ---> An error occurred during the
> activation of a particular registration. See the inner exception for
> details. Registration: Activator = IActionInvokerProvider[]
> (DelegateActivator), Services =
> [System.Collections.Generic.IEnumerable`1[[Microsoft.AspNetCore.Mvc.Abstractions.IActionInvokerProvider,
> Microsoft.AspNetCore.Mvc.Abstractions, Version=<IP_ADDRESS>,
> Culture=neutral, PublicKeyToken=adb9793829ddae60]]], Lifetime =
> Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership
> = ExternallyOwned ---> An error occurred during the activation of a particular registration. See the inner exception for details.
> Registration: Activator = ControllerActionInvokerProvider
> (ReflectionActivator), Services =
> [Microsoft.AspNetCore.Mvc.Abstractions.IActionInvokerProvider],
> Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None,
> Ownership = OwnedByLifetimeScope ---> An error occurred during the
> activation of a particular registration. See the inner exception for
> details. Registration: Activator = ControllerActionInvokerCache
> (ReflectionActivator), Services =
> [Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvokerCache],
> Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared,
> Ownership = OwnedByLifetimeScope ---> An error occurred during the
> activation of a particular registration. See the inner exception for
> details. Registration: Activator =
> DefaultActionDescriptorCollectionProvider (ReflectionActivator),
> Services =
> [Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorCollectionProvider],
> Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared,
> Ownership = OwnedByLifetimeScope ---> An exception was thrown while
> invoking the constructor 'Void
> .ctor(System.Collections.Generic.IEnumerable`1[Microsoft.AspNetCore.Mvc.Abstractions.IActionDescriptorProvider],
> System.Collections.Generic.IEnumerable`1[Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorChangeProvider])'
> on type 'DefaultActionDescriptorCollectionProvider'. ---> The
> configured user limit (128) on the number of inotify instances has
> been reached. (See inner exception for details.) (See inner exception
> for details.) (See inner exception for details.) (See inner exception
> for details.) (See inner exception for details.) (See inner exception
> for details.) (See inner exception for details.)   ---->
> Autofac.Core.DependencyResolutionException : An error occurred during
> the activation of a particular registration. See the inner exception
> for details. Registration: Activator = ActionInvokerFactory
> (ReflectionActivator), Services =
> [Microsoft.AspNetCore.Mvc.Infrastructure.IActionInvokerFactory],
> Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared,
> Ownership = OwnedByLifetimeScope ---> An error occurred during the
> activation of a particular registration. See the inner exception for
> details. Registration: Activator = IActionInvokerProvider[]
> (DelegateActivator), Services =
> [System.Collections.Generic.IEnumerable`1[[Microsoft.AspNetCore.Mvc.Abstractions.IActionInvokerProvider,
> Microsoft.AspNetCore.Mvc.Abstractions, Version=<IP_ADDRESS>,
> Culture=neutral, PublicKeyToken=adb9793829ddae60]]], Lifetime =
> Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership
> = ExternallyOwned ---> An error occurred during the activation of a particular registration. See the inner exception for details.
> Registration: Activator = ControllerActionInvokerProvider
> (ReflectionActivator), Services =
> [Microsoft.AspNetCore.Mvc.Abstractions.IActionInvokerProvider],
> Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None,
> Ownership = OwnedByLifetimeScope ---> An error occurred during the
> activation of a particular registration. See the inner exception for
> details. Registration: Activator = ControllerActionInvokerCache
> (ReflectionActivator), Services =
> [Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvokerCache],
> Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared,
> Ownership = OwnedByLifetimeScope ---> An error occurred during the
> activation of a particular registration. See the inner exception for
> details. Registration: Activator =
> DefaultActionDescriptorCollectionProvider (ReflectionActivator),
> Services =
> [Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorCollectionProvider],
> Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared,
> Ownership = OwnedByLifetimeScope ---> An exception was thrown while
> invoking the constructor 'Void
> .ctor(System.Collections.Generic.IEnumerable`1[Microsoft.AspNetCore.Mvc.Abstractions.IActionDescriptorProvider],
> System.Collections.Generic.IEnumerable`1[Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorChangeProvider])'
> on type 'DefaultActionDescriptorCollectionProvider'. ---> The
> configured user limit (128) on the number of inotify instances has
> been reached. (See inner exception for details.) (See inner exception
> for details.) (See inner exception for details.) (See inner exception
> for details.) (See inner exception for details.) (See inner exception
> for details.)   ----> Autofac.Core.DependencyResolutionException : An
> error occurred during the activation of a particular registration. See
> the inner exception for details. Registration: Activator =
> IActionInvokerProvider[] (DelegateActivator), Services =
> [System.Collections.Generic.IEnumerable`1[[Microsoft.AspNetCore.Mvc.Abstractions.IActionInvokerProvider,
> Microsoft.AspNetCore.Mvc.Abstractions, Version=<IP_ADDRESS>,
> Culture=neutral, PublicKeyToken=adb9793829ddae60]]], Lifetime =
> Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership
> = ExternallyOwned ---> An error occurred during the activation of a particular registration. See the inner exception for details.
> Registration: Activator = ControllerActionInvokerProvider
> (ReflectionActivator), Services =
> [Microsoft.AspNetCore.Mvc.Abstractions.IActionInvokerProvider],
> Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None,
> Ownership = OwnedByLifetimeScope ---> An error occurred during the
> activation of a particular registration. See the inner exception for
> details. Registration: Activator = ControllerActionInvokerCache
> (ReflectionActivator), Services =
> [Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvokerCache],
> Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared,
> Ownership = OwnedByLifetimeScope ---> An error occurred during the
> activation of a particular registration. See the inner exception for
> details. Registration: Activator =
> DefaultActionDescriptorCollectionProvider (ReflectionActivator),
> Services =
> [Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorCollectionProvider],
> Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared,
> Ownership = OwnedByLifetimeScope ---> An exception was thrown while
> invoking the constructor 'Void
> .ctor(System.Collections.Generic.IEnumerable`1[Microsoft.AspNetCore.Mvc.Abstractions.IActionDescriptorProvider],
> System.Collections.Generic.IEnumerable`1[Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorChangeProvider])'
> on type 'DefaultActionDescriptorCollectionProvider'. ---> The
> configured user limit (128) on the number of inotify instances has
> been reached. (See inner exception for details.) (See inner exception
> for details.) (See inner exception for details.) (See inner exception
> for details.) (See inner exception for details.)   ---->
> Autofac.Core.DependencyResolutionException : An error occurred during
> the activation of a particular registration. See the inner exception
> for details. Registration: Activator = ControllerActionInvokerProvider
> (ReflectionActivator), Services =
> [Microsoft.AspNetCore.Mvc.Abstractions.IActionInvokerProvider],
> Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None,
> Ownership = OwnedByLifetimeScope ---> An error occurred during the
> activation of a particular registration. See the inner exception for
> details. Registration: Activator = ControllerActionInvokerCache
> (ReflectionActivator), Services =
> [Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvokerCache],
> Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared,
> Ownership = OwnedByLifetimeScope ---> An error occurred during the
> activation of a particular registration. See the inner exception for
> details. Registration: Activator =
> DefaultActionDescriptorCollectionProvider (ReflectionActivator),
> Services =
> [Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorCollectionProvider],
> Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared,
> Ownership = OwnedByLifetimeScope ---> An exception was thrown while
> invoking the constructor 'Void
> .ctor(System.Collections.Generic.IEnumerable`1[Microsoft.AspNetCore.Mvc.Abstractions.IActionDescriptorProvider],
> System.Collections.Generic.IEnumerable`1[Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorChangeProvider])'
> on type 'DefaultActionDescriptorCollectionProvider'. ---> The
> configured user limit (128) on the number of inotify instances has
> been reached. (See inner exception for details.) (See inner exception
> for details.) (See inner exception for details.) (See inner exception
> for details.)   ----> Autofac.Core.DependencyResolutionException : An
> error occurred during the activation of a particular registration. See
> the inner exception for details. Registration: Activator =
> ControllerActionInvokerCache (ReflectionActivator), Services =
> [Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvokerCache],
> Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared,
> Ownership = OwnedByLifetimeScope ---> An error occurred during the
> activation of a particular registration. See the inner exception for
> details. Registration: Activator =
> DefaultActionDescriptorCollectionProvider (ReflectionActivator),
> Services =
> [Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorCollectionProvider],
> Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared,
> Ownership = OwnedByLifetimeScope ---> An exception was thrown while
> invoking the constructor 'Void
> .ctor(System.Collections.Generic.IEnumerable`1[Microsoft.AspNetCore.Mvc.Abstractions.IActionDescriptorProvider],
> System.Collections.Generic.IEnumerable`1[Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorChangeProvider])'
> on type 'DefaultActionDescriptorCollectionProvider'. ---> The
> configured user limit (128) on the number of inotify instances has
> been reached. (See inner exception for details.) (See inner exception
> for details.) (See inner exception for details.)   ---->
> Autofac.Core.DependencyResolutionException : An error occurred during
> the activation of a particular registration. See the inner exception
> for details. Registration: Activator =
> DefaultActionDescriptorCollectionProvider (ReflectionActivator),
> Services =
> [Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorCollectionProvider],
> Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared,
> Ownership = OwnedByLifetimeScope ---> An exception was thrown while
> invoking the constructor 'Void
> .ctor(System.Collections.Generic.IEnumerable`1[Microsoft.AspNetCore.Mvc.Abstractions.IActionDescriptorProvider],
> System.Collections.Generic.IEnumerable`1[Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorChangeProvider])'
> on type 'DefaultActionDescriptorCollectionProvider'. ---> The
> configured user limit (128) on the number of inotify instances has
> been reached. (See inner exception for details.) (See inner exception
> for details.)   ----> Autofac.Core.DependencyResolutionException : An
> exception was thrown while invoking the constructor 'Void
> .ctor(System.Collections.Generic.IEnumerable`1[Microsoft.AspNetCore.Mvc.Abstractions.IActionDescriptorProvider],
> System.Collections.Generic.IEnumerable`1[Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorChangeProvider])'
> on type 'DefaultActionDescriptorCollectionProvider'. ---> The
> configured user limit (128) on the number of inotify instances has
> been reached. (See inner exception for details.)   ---->
> System.IO.IOException : The configured user limit (128) on the number
> of inotify instances has been reached.

Hi @jaydeept could you show what your code looks like? Also, would it be possible to include a better-formatted log output? It's quite difficult to read that log with all the wrapping in odd places.

BTW this error presumably happens in any instance where there are a lot of file watchers. Configuration file watchers are a common case, but there can be any number of other cases.
You can also look at raising the limits on your system by doing something like what's described in the answers here: https://stackoverflow.com/questions/32281277/too-many-open-files-failed-to-initialize-inotify-the-user-limit-on-the-total

Sure thing @Eilon ,
Here is the stacktrace and formatted log:

----> Autofac.Core.DependencyResolutionException : An error occurred during the activation of a particular registration.
See the inner exception for details.
Registration: Activator = DefaultActionDescriptorCollectionProvider (ReflectionActivator),
Services = [Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorCollectionProvider],
Lifetime = Autofac.Core.Lifetime.RootScopeLifetime,
Sharing = Shared,
Ownership = OwnedByLifetimeScope
---> An exception was thrown while invoking the constructor 'Void.ctor(System.Collections.Generic.IEnumerable1[Microsoft.AspNetCore.Mvc.Abstractions.IActionDescriptorProvider], System.Collections.Generic.IEnumerable1[Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorChangeProvider])'
on type 'DefaultActionDescriptorCollectionProvider'.
---> The configured user limit (128) on the number of inotify instances has been reached. (See inner exception for details.) (See inner exception for details.)
----> Autofac.Core.DependencyResolutionException : An exception was thrown while invoking the constructor
'Void .ctor(System.Collections.Generic.IEnumerable1[Microsoft.AspNetCore.Mvc.Abstractions.IActionDescriptorProvider], System.Collections.Generic.IEnumerable1[Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorChangeProvider])'
on type 'DefaultActionDescriptorCollectionProvider'.
---> The configured user limit (128) on the number of inotify instances has been reached. (See inner exception for details.)
----> System.IO.IOException : The configured user limit (128) on the number of inotify instances has been reached.
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters)    at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func1 creator)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable1 parameters)    at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable1 parameters)
at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable1 parameters, Object& instance)    at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable1 parameters)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at Microsoft.AspNetCore.Builder.MvcApplicationBuilderExtensions.UseMvc(IApplicationBuilder app, Action1 configureRoutes)    at WebApp.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env) in .....\App_Start\Startup.cs:line 47 --- End of stack trace from previous location where exception was thrown ---    at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)    at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()    at Microsoft.AspNetCore.Hosting.Internal.WebHost.StartAsync(CancellationToken cancellationToken)    at Microsoft.AspNetCore.TestHost.TestServer..ctor(IWebHostBuilder builder, IFeatureCollection featureCollection)    **at WebAppTests.DependencyInjectionTests.OneTimeSetUp() in ....source\WebAppTests\DITests.cs:line 85** --DependencyResolutionException    at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters)
at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func1 creator)    at Autofac.Core.Resolving.InstanceLookup.Execute()    at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable1 parameters)
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters)    at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters)
--DependencyResolutionException
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters)    at Autofac.Core.Resolving.InstanceLookup.Execute()    at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable1 parameters)
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters)    at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters)
--DependencyResolutionException
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters)    at Autofac.Core.Resolving.InstanceLookup.Execute()    at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable1 parameters)
at System.Linq.Enumerable.SelectIPartitionIterator2.PreallocatingToArray(Int32 count)    at System.Linq.Enumerable.SelectIPartitionIterator2.ToArray()
at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)    at Autofac.Features.Collections.CollectionRegistrationSource.<>c__DisplayClass0_0.<RegistrationsFor>b__0(IComponentContext c, IEnumerable1 p)
at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters)    at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters)
--DependencyResolutionException
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters)    at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func1 creator)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable1 parameters)    at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()    at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters) --DependencyResolutionException    at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters)
at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func1 creator)    at Autofac.Core.Resolving.InstanceLookup.Execute()    at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable1 parameters)
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters)    at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters)
--DependencyResolutionException
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters)    at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters)
--IOException
at System.IO.FileSystemWatcher.StartRaisingEvents()
at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed()
at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean value)
at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.TryEnableFileSystemWatcher()
at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.CreateFileChangeToken(String filter)
at Microsoft.AspNetCore.Mvc.RazorPages.Internal.PageActionDescriptorChangeProvider.GetChangeToken()
at Microsoft.Extensions.Primitives.ChangeToken.OnChange(Func1 changeTokenProducer, Action changeTokenConsumer)    at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider..ctor(IEnumerable1 actionDescriptorProviders, IEnumerable`1 actionDescriptorChangeProviders)
at lambda_method(Closure , Object[] )
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()

And here is my code from Startup:
```

public class Startup
{
public static void Main(string[] args)
{
var configurationSettings = new ConfigurationSettings(args);
var properties = GetConfigurationProperties(configurationSettings);
        var host = new WebHostBuilder()
            .UseContentRoot(Directory.GetCurrentDirectory())
            .UseStartup<Startup>()
            .UseKestrel()
            .UseUrls(configurationSettings.GetBaseAddress())
            .ConfigureServices(services => services.AddProperties(properties))
            .Build();
        host.Run();
    }

    // This method gets called by the runtime. Use this method to add services to the container.
    // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
    public IServiceProvider ConfigureServices(IServiceCollection services)
    {
        services.AddAutofac();
        services.AddLogging();
        services.AddHttpContextAccessor();
        services.AddMvc().AddSerializerSettings();
        services.AddSwaggerGen(SwaggerConfig.ConfigureHelpDocuments);
        return services.GetAutofacServiceProvider();
    }

    // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
    public void Configure(IApplicationBuilder app, IHostingEnvironment env)
    {
        app.UseOptions();
        app.UseRewriter(SetAliasesForDocumentationPage("doc", "docs", "help"));
        app.UseStaticFiles();
        app.UseMvc();
        app.UseSwagger();
        app.UseSwaggerUI(SwaggerConfig.ConfigureHelpUi);
    }

   private static RewriteOptions SetAliasesForDocumentationPage(params string[] aliasesForDoc)
    {
        var options = new RewriteOptions();
        foreach (var aliasForDoc in aliasesForDoc)
        {
            options.AddRedirect(aliasForDoc, "swagger");
        }
        return options;
    }

And starcktrace has reported line DITests.cs:line 85 which is below one where I am using TestServer for my testing purpose. :
` m_TestServer = new TestServer(webHostBuilder);`

Also regarding your post related to file watchers, I don't think I am using one. This is happening inside container as part of CI so I don't have privilege to modify the limits.conf file by going there.

Hello @Eilon , Any input on this issue?
I wanted to confirm if it's my code which is opening so many files (though I don't think that's happening)

@jaydeept sorry I'm not super sure. Maybe try disabling some of the features you're using and see if it makes a difference? There are some components in use there that might involve file watchers (though I'm not certain). Stuff such as Logging, Swagger, or other components. This would be helpful to at least see if we can figure out which specific component (if any) is causing this, and then figure out where to go from there.

We are also seeing this in some helix queues (Fedora/some Ubuntu) now that identity functional tests are working, see https://mc.dot.net/#/user/aspnetcore/pr~2Faspnet~2Faspnetcore/ci/20190321.8/workItem/Microsoft.AspNetCore.Identity.FunctionalTests-netcoreapp3.0/wilogs

Hi, @Eilon Try to set up environment variable DOTNET_USE_POLLING_FILE_WATCHER=1

https://github.com/Legedric/ptmagic/issues/165
follow this for ubuntu
I found the following blog post that might help pinpoint the problem and solution. Hope it helps.
https://www.danieldevelops.com/inotify-watcher-dotnet-core
Alternative is to increase the inotify limit, which I have done until you (hopefully) fix the issue.
Just for reference for others. You can get your current inotify file watch limit by executing:
$ cat /proc/sys/fs/inotify/max_user_watches
You can set a temporary new limit with:
$ sudo sysctl -w fs.inotify.max_user_watches=16384
If you like to make your limit permanent use:
$ echo fs.inotify.max_user_watches=16384 | sudo tee -a /etc/sysctl.conf
$ sudo sysctl -p
Thx for the great work. Love the PT Magic!
Regards, nidkil

I can confirm this issue in Ubuntu 18.04.  Running a brand new webapi project is enough to trigger the exception mentioned by other users.

Same issue. The problem appeared in Jetbrain Rider while vs code is opened. When vscode it's closed, works well.
vscode 1.31.1
dotnet 2.2.203
OS: kde neon 18.04
I installed my system on a brand new drive a week ago and made the change to proc/sys/fs/inotify/max_user_watches as requested by vscode.
By the way the value in my file is 524288
It's a value well beyond what @rtrimurthulu  says in post. But I have this mistake.

Hi @jaydeept , Have you found the root cause of this issue by any chance?. I'm also facing the same issue

use command
export DOTNET_USE_POLLING_FILE_WATCHER=true
it will work

I get this with increasing consistency when deploying new Linux hosts to my on-prem enterprise k8s cluster.
I've assigned the configs/jsons to not refresh, supposedly disabling the file watch.
config.AddJsonFile("appsettings.json",true, false);
I've set an env var in my dockerfile
ENV DOTNET_USE_POLLING_FILE_WATCHER true
And I still usually, not always, get a fatal startup failing my pods. It goes away with an indeterminate number of pod refreshes. Locally the containers seem to startup consistently in my docker desktop k8s.
Unhandled Exception: System.IO.IOException: The configured user limit (128) on the number of inotify instances has been reached.    at System.IO.FileSystemWatcher.StartRaisingEvents()    at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed()    at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean value)    at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.TryEnableFileSystemWatcher()    at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.CreateFileChangeToken(String filter)    at Microsoft.Extensions.FileProviders.PhysicalFileProvider.Watch(String filter)    at Microsoft.Extensions.Configuration.FileConfigurationProvider.<.ctor>b__0_0()    at Microsoft.Extensions.Primitives.ChangeToken.OnChange(Func1 changeTokenProducer, Action changeTokenConsumer)
at Microsoft.Extensions.Configuration.FileConfigurationProvider..ctor(FileConfigurationSource source)
at Microsoft.Extensions.Configuration.Json.JsonConfigurationSource.Build(IConfigurationBuilder builder)
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()`

Can anyone provide a runnable sample project that reproduces this issue? That would help us diagnose this. It looks like something in config is still registering file system watchers. We do also have the appsettings.[environmentName].json file, which may be listed for refresh even if you disable the appsettings.json file refresh. Using the environment variable should be disabling inotify-based watching though.

I've created a boilerplate ASP.Net Core 2.2 WebAPI project, with no additional functionality and been able to "reproduce" this error in our environment. Unfortunately, it's an intermittent issue. We can't track down what resources aren't available during startup (Linux host has 100's of free GB and 2GB mem cap on pods). So, while it's consistent enough for it to beomce a critical issue, it's not consistent enough for us to nail down in a 100% repro project.

We can't track down what resources aren't available during startup

My understanding is that there is a hard limit on the number of file watchers that you can have (the "inotify instances"), so even though you have a lot of free memory you have to actually adjust that limit to avoid this issue. You can do that with this command:
sudo sysctl fs.inotify.max_user_watches=<some new limit higher than 128>

There are some issues with inotify and docker. How many containers do you have running per machine? The inotify instance limit is per user not per process so if you have a lot of processes running it can cause issues.

It seems like our usage of the same user across all our pods in the cluster was creating this issue. I rewrote our dockerfiles to have their own unique users and our pods appear to be behaving better.

Ah yeah, that could definitely cause a problem like this. In that situation (where you intentionally have a lot of processes wiht the same user) it's also reasonable to increase this limit (as long as you know why the current limit isn't sufficient, which in this case you do).
Closing this for now on the supposition that this is due to sharing a single user for multiple applications. Please feel free to comment further, open a new issue, etc. if you're seeing this and don't fall into that category.

run this:
echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
this will increase the amount of authorized instances as too many may be taken by vs code addons