Incomplete OID Retrieval: SNMP Walk (nextCmd/bulkCmd) Fails to Capture All OIDs

Hi everyone,
I'm encountering an issue with PySNMP where the SNMP walk is not retrieving all the expected OIDs.
The last few OIDs that PySNMP manages to retrieve are as follows:
<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.2 = Samsung Electronics
<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.1 = Samsung Internal Input Tray
<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.2 = Samsung External Media Handler
<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.2 = No more variables left in this MIB View
...only 515 results
When I use a standard SNMP utility, it successfully retrieves 4700 results, and the point where PySNMP stops corresponds to a null value:
.<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.1 = String: "Samsung Electronics"
.<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.2 = String: "Samsung Electronics"
.<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.1 = String: "Samsung Internal Input Tray"
.<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.2 = String: "Samsung External Media Handler"
.<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.1 = Null:
.<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.2 = Null:
.<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.1 = String: "0001"
...continues to rest 4700 results
At the precise moment when the SNMP Utility returns null, PySNMP prematurely stops, suggesting a potential error handling issue.
Is there a setting I am missing?
Steps to Reproduce:
#error_indication, error_status, error_index, var_binds = cmd_gen.bulkCmd(
    cmdgen.CommunityData('public', mpModel=0),
    cmdgen.UdpTransportTarget(([device_ip], 161), timeout=20, retries=2),
    0, 50,
    '1.3',  # Starting OID for the walk
    maxRows=0,
    maxCalls=0,
    lookupMib = True,
    lexicographicMode = True,
    ignoreNonIncreasingOid = False,
)
if error_indication:
    print(f"Error: {error_indication}")
    return 'Error Indication'

if error_status:
    print(f"Error: {error_status}")
    return 'Error Status'

if error_index:
    print(f"Error: {error_index}")
    return 'Error Index'

# Process the results
for var_bind_table_row in var_binds:
    for name, val in var_bind_table_row:
        print(f"{name.prettyPrint()} = {val.prettyPrint()}")`

Expected Behavior:
I expected the SNMP walk using PySNMP to retrieve all the specified OIDs.
Actual Behavior:
PySNMP retrieves less than 600 OIDs, and the SNMP walk stops at a point where there is a null value. This behavior is inconsistent with the results obtained from the standard SNMP utility.
Additional Information:
The standard SNMP utility used for comparison is SNMP Utility. - Download Utility here
No error messages are provided by PySNMP; the walk simply stops prematurely.
My environment details:
Python Version: 3.8
PySNMP Version: 4.4.12
Operating System: windows 10

There were quite a few reports on walk operations, so you need to enable debugging https://www.pysnmp.com/pysnmp/examples/#using-these-examples and then compare to those.

Hi @lextm,
Thank you for your prompt response. I have utilized the debug command as suggested and have collected the following results from my snmp walk:
When the returned value is null (observed in the standard SNMP walk results) no errors are raised. The error-status is 'noError'. But it stops everytime a null value is introduced in the walk. I conducted the walk from various angles, consistently obtaining the same results. In the alternative SNMP utility, there are over 300 null values from 4700 values, all reacting the same when I change the walk root subtree.
I am eager to contribute to resolving this issue, given that SNMP walking is a critical component of my application. I am willing to assist with development or provide any information needed for debugging. If you prefer, I am open to allowing you to log onto my machine for direct debugging.
Here is a snippet of the response for the OID with a null value:

2023-11-20 09:53:51,897 pysnmp: sendPdu: current time 5 ticks, one tick is 0.5 seconds
2023-11-20 09:53:51,897 pysnmp: sendPdu: new sendPduHandle 727660, timeout 40.0 ticks, cbFun <bound method CommandGenerator.processResponsePdu of <pysnmp.entity.rfc3413.cmdgen.BulkCommandGenerator object at 0x000002B3F98A7DC0>>
2023-11-20 09:53:51,911 pysnmp: sendPdu: MP succeeded
2023-11-20 09:53:51,915 pysnmp: receiveMessage: msgVersion 0, msg decoded
2023-11-20 09:53:51,917 pysnmp: receiveMessage: MP succeded
2023-11-20 09:53:51,917 pysnmp: receiveMessage: PDU GetResponsePDU:
request-id=2315122
error-status=noError
error-index=0
variable-bindings=VarBindList:
VarBind:
name=<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.1
value=ObjectSyntax:
simple=SimpleSyntax:
empty=
2023-11-20 09:53:51,928 pysnmp: sendPdu: current time 5 ticks, one tick is 0.5 seconds
2023-11-20 09:53:51,936 pysnmp: sendPdu: new sendPduHandle 727661, timeout 40.0 ticks, cbFun <bound method CommandGenerator.processResponsePdu of <pysnmp.entity.rfc3413.cmdgen.BulkCommandGenerator object at 0x000002B3F98A7DC0>>
2023-11-20 09:53:51,938 pysnmp: sendPdu: MP succeeded
2023-11-20 09:53:51,940 pysnmp: receiveMessage: msgVersion 0, msg decoded
2023-11-20 09:53:51,942 pysnmp: receiveMessage: MP succeded
2023-11-20 09:53:51,943 pysnmp: receiveMessage: PDU GetResponsePDU:
request-id=2315124
error-status=noError
error-index=0
variable-bindings=VarBindList:
VarBind:
name=<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.1
value=ObjectSyntax:
simple=SimpleSyntax:
empty=

Here is a response from a oid that returns Samsung External Media Handler:

2023-11-20 09:53:51,830 pysnmp: sendPdu: current time 4 ticks, one tick is 0.5 seconds
2023-11-20 09:53:51,843 pysnmp: sendPdu: new sendPduHandle 727659, timeout 40.0 ticks, cbFun <bound method CommandGenerator.processResponsePdu of <pysnmp.entity.rfc3413.cmdgen.BulkCommandGenerator object at 0x000002B3F98A7DC0>>
2023-11-20 09:53:51,879 pysnmp: sendPdu: MP succeeded
2023-11-20 09:53:51,892 pysnmp: receiveMessage: msgVersion 0, msg decoded
2023-11-20 09:53:51,894 pysnmp: receiveMessage: MP succeded
2023-11-20 09:53:51,895 pysnmp: receiveMessage: PDU GetResponsePDU:
request-id=2315120
error-status=noError
error-index=0
variable-bindings=VarBindList:
VarBind:
name=<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.2
value=ObjectSyntax:
simple=SimpleSyntax:
string=Samsung External Media Handler
2023-11-20 09:53:51,897 pysnmp: receiveMessage: cache read by sendPduHandle 727659
2023-11-20 09:53:51,897 pysnmp: receiveMessage: processResponsePdu succeeded
2023-11-20 09:53:51,897 pysnmp: sendPdu: securityName s-5824012256909706693, PDU
GetNextRequestPDU:
request-id=2315122
error-status=noError
error-index=0
variable-bindings=VarBindList:
VarBind:
name=<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.2
value=ObjectSyntax:
simple=SimpleSyntax:
empty=

I appreciate your assistance and look forward to your guidance on resolving this matter.
Best regards,
Christo

I managed to find a better solution for walking.
https://github.com/lextudio/pysnmp
@lextm thanks for forking the above and improving it :)

https://github.com/lextudio/pysnmp

Then the changes might come from pysnmp community patches (from Splunk or others) that have been integrated into 5.0 releases.
You can read #429 to learn more about the ecosystem changes.

Again appreciate the initiative @lextm!


Please can someone tell me how to get the run bar back. It should be so obvious but have tried toggling all view options

Azure Data Studio Version:
OS Version:

Steps to Reproduce:

NO idea, launch app one day and it works launch the next and its gone
2.No updates to apply

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

Closign query and opening a new one caused the bar to come back, no idea why that query window was missing it


ABI decoding with option to decode Solidity integers to JavaScript number

Right now all numbers are decoded to BigNumber instances, which are fussy to use in the application code.
IEEE 754 and can only safely represent numbers between -(2^53 - 1) and 2^53 - 1 .
Would like a way to configure ethjs-abi use decode Solidity integers to plain JS numbers, and throw an error if not safe.
BigNumber.toNumber() throws if the conversion is unsafe, and we can rely on this behaviour.

@hayeah Could you please provide more details or examples? What is expected behavior?

Solidity numbers are decoded to BigNumber, see these test cases:
https://github.com/qtumproject/qtum-ethjs-abi/blob/master/src/tests/test.web3.decodeParam.js#L111-L136
For most applications Number.MAX_SAFE_INTEGER is enough. It'd be good to be able to configure the decoding to return JavaScript numbers instead.

@hayeah Thank you for the response. For decoding, what is the expected behavior? Will it be automatically decoded to js number, or users need to specify that?

I think it'd be best if user has a way to configure the library. Maybe an interface like
new ABIDecoder({ useBigNumber: false })


Bad thing i found in custom song

Describe your bug here.
I was playing triple trouble in my mod. It has changing bpm, and my health drains when im holding an long note. How can i fix it?
Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
No changes with source or lua.

double check if the sustain note was accidently duplicated and remove that duplicate note by pressing on the sustain note. this usually happens when u port charts from other engines like kade


There should be an option to pre-load tiles

It could be great to have the option to wait for the tiles to be loaded before adding them to the map. In this way we could add all the tiles at once and prevent them from appearing randomly.

No.
There's already https://github.com/TolonUK/Leaflet.EdgeBuffer for that.


Connection via TLS is not using default values

When the environment variable DOCKER_TLS_VERIFY is set to 1, docker client , by default, expects to find docker-service certificates inside ~/.docker folder.
Looks like dry ALSO expects a variable called DOCKER_CERT_PATH pointing to this folder.
From my point of view, there's two solutions :

Throw an error if DOCKER_TLS_VERIFY exists but there's no DOCKER_CERT_PATH variable
Search first inside ~/.docker folder to find certificates, and it there's none, throw an error about DOCKER_CERT_PATH not telling where they are. This is the one i like the most.

@josetesan Thanks for the bug report and the possible solutions. I had followed your suggestion and dry will now search for certificates in *~/.docker if no DOCKER_CERT_PATH is given.


IMDB Frontend clone #603

IMDB Frontend clone #603

Close #IMDB Frontend clone #603

Checklist:

[X] I have mentioned the issue number in my Pull Request.
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have created a helpful and easy to understand README.md

@pranjay-poddar can you tell me the issues with the checks? I can't find why it failed.


GPU-based 3D Rule Generation

Hi author, thank you very much for sharing such good codes.
I have one question that core idea of SECOND is to use GPU-based 3D rule generation to accelerate the sparse convolution, but I didn't find which part code in the repository is for rule generation. Would you mind explaining how you implement the GPU-based 3D rule generation in your code?

In #13, the author stated that this part of the code is not open source.
If you look at the code, it uses the original SparseConvNet(including its rule generation algorithm).

Sorry for this duplication.


reverse foreach on bucket

It would be nice to have a convenience method that iterates from Last to First.

Do cursors not work for you?
c := b.Cursor()
for k, v := c.Last(); k != nil; k, v = c.Prev() {
    fmt.Printf("key=%X, value=%X\n", k, v)
}

Yes, that's what I use right now.

No plan to enhance is fine by me.

@Kulak I've found that many people are confused by ForEach() vs Cursor. I actually wish that I hadn't added ForEach() in the first place. I don't want to add ReverseForEach() because I feel like it will confuse users further and it clutters the API.


cmd/update-report: correctly handle added/deleted formulae/casks.

If a formulae or cask is marked as both added and deleted, we've just incorrectly detected it. Remove it from the report.
This can happen when a formula or cask is moved around in the repository e.g. with sharding.
Partial solution for https://github.com/Homebrew/brew/issues/15856

Thanks for review and merge @Bo98!


fix #4360: Disable conscrypt TLSv1.3 support by default

TLSv1.3 may be activated by setting the jvm system property
'okhttp.platform.conscrypt.tls13' to true.
This change updates the Conscrypt dependency from 1.4.0 to 1.4.2.
Updated LoggingEventListenerTest to pass with conscrypt, which
can use different cipher suites and exception messages from the
SunJSSE provider.

I'm still getting the following failure locally with Conscrypt enabled, but this change fixes several:
[ERROR] Errors:
[ERROR]   CallTest.recoverFromTlsHandshakeFailure_tlsFallbackScsvEnabled:1124 » SocketTimeout

Commit incoming adding reference comments shortly

TLSv1.3 is really good. What's your motivation here?

If you'd like to turn it off, that's what ConnectionSpec does.

Summary in the comment here: https://github.com/square/okhttp/pull/4440/files#diff-4f3b66388fac20682dc82928d6d234c1R35
When TLSv1.3 is allowed (though not necessarily negotiated), Conscrypt forces ciphers TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256 (unconfigurable). This is problematic when communicating with java 8 webservers which do not also use conscrypt due to the inefficient implementation of gcm ciphers in SunJSSE, which provides significantly lower throughput than less secure CBC ciphers, many servers going so far as disabling these cipher suites by default.
See the conscrypt capabilities doc for reference: https://github.com/google/conscrypt/blob/master/CAPABILITIES.md#cipher-suites
Many OkHttp tests fail using Conscrypt when TLSv1.3 is allowed, unfortunately they do not run pre-merge, and have been broken for a while. We can reproduce locally using mvn test -Pconscrypt.
I would love to control this using ConnectionSpec, unfortunately this setting is based on creating an SSLContext using SSLContext.getInstance("TLSv1.3") as opposed to TLS/TLSv1.2/etc, so there's not a great way to control this in a meaningful way while maintaining control over enabled ciphers when TLSv1.3 is not requested.
I'm very interested in better approaches to solve this problem if you have ideas!

Aren’t the Conscrypt-required cipher suites in play only if TLS 1.3 is negotiated? Or does enabling 1.3 change the behavior of TLS 1.2?
Presumably if JSSE is bad and has no acceptable cipher suites on the server we should disable TLS 1.3 on the server and not the client?

If I recall correctly there's no overlap between TLS 1.3 cipher suites and those in preceding versions.
https://github.com/square/okhttp/blob/master/okhttp/src/main/java/okhttp3/ConnectionSpec.java#L46

I still don’t understand the motivation here.
Is the problem that Conscrypt doesn’t honor the configured ConnectionSpecs and HostnameVerifier? Or is there something else that’s problematic?

Ahh, I think I’m finally seeing it. Conscrypt’s TLS 1.3 has a side effect of breaking TLS 1.2. That’s not good.

@cakofony if we merged this, what would we change to later enable TLSv1.3 by default? My assumption is that this is working around a bug in Conscrypt, but there is no such bug reported.


fix(ui): use absolute URL to redirect from autocomplete list. Closes #3903

Closes #3903
Checklist:

[ ] Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
[ ] The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
[x] I've signed the CLA.
[ ] I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
[ ] My builds are green. Try syncing with master if they are not.
[ ] My organization is added to USERS.md.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

TestPendingRetryWorkflow is flaky.

No one has complained about this, so not sure it is much used, and therefore wont` backport to v2.10.


Redesign the footer section

Is there an existing issue for this?

[X] I have searched the existing issues

Issue Description
The footer alignment does not seem to be correct and attractive.
Suggested Change
Footer should look neat properly organised and sober.Please assign me this so that i can redesign this page.
Rationale
No response
Urgency
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

@PrachiJadhav2310 What do you think to be changed?
Can be detailed the issue description?


Errors due to a git pulling

Hello,
Recently, I update my depot with a git pull and when I try to recompile with the command "make",  I have this error message.
acvp.c:24:22: fatal error: safe_lib.h
It worked before and now it does not work.
What is the source of my problem ?
I try to override the problem in using the docker of libacvp but some problems appear:
with the openssl library 102 -> app_main.c:18:10: fatal error: openssl/rsa.h: not found
with the openssl library 110 -> the docker does not build.
with the openssl library 111 -> ACVP [ERR][acvp_curl_http_post:686]--> Curl failed with code 60
So to summarize:
I had one problem, I tried to resolve with 3 possible solutions but now I have 3 problems ^^
Can you help me please ?
Best regards,

First, I don't think our intention was to continue to support openssl 1.1.0, that verion of openssl was EOL some time ago and was never a long term support branch.  We do support openssl 1.1.1 and 1.0.2.
Your first error looks like a path error such that your build cannot find a header file which should be included from ./safe_c_stub/ and your compile options should include a -I<path to ./safe_c_stub/>
I just built 1.0.2 with no issues using the docker ./configure command.
Your 1.1.1 curl error was discussed on an earlier issue #126 that may be of help.

Hello,
Thank you for your response.
I understood my mistake and now the docker works with openssl 1.0.2 and the CA certificate mozzila_trust_anchors.pem but it does not work with acvp.nist.gov.crt.
I don't understand the error Curl failed with code 60. This error is due to SSL peer certificate but to my mind the "Nist" certificate should work.
Best regards


Commands sent from toolbar are sent twice

Describe the bug
Typing a command in the toolbar and using the send command or enter results in some sessions receiving the command twice.
To Reproduce
Steps to reproduce the behavior:

Open multiple sessions
Enter command in toolbar and send with button or enter
Command is executed twice on some session, once on others.

Expected behavior
Command to be sent only once to all sessions
Desktop (please complete the following information):

OS: Windows 10
Version <IP_ADDRESS>

I confirm this behavior.
Version 1.4.09
Windows 7

Not a solution to the cause of the bug a resolution for when it does happen. If the session with the error is closed then readded to the layout it will stop receiving commands twice.

I have the same issue (1.4.09 - windows 10) and I noticed another issue which I think is related to this one:

As you can see from the screenshot above the tab named "3" is present twice in the "Select document" window, but I can only see one. In SuperPutty window I have only 4 terminals, not 5.

I can confirm <IP_ADDRESS> - Windows 10

I see the same in <IP_ADDRESS> in Windows 10 and Windows 7.
For me it happens even in one session, if the session opens or is moved to a floating window.
I think that  "Restrict Floating Windows" option might be used as a workaround

Same happens to me.  Win10 and v<IP_ADDRESS>
I tried using "Restrict Floating Windows" as a workaround but did not change the behavior.  Currently have one particular connection that is doing this consistently.
I'm going to try an older version and see if it does the same thing.

I've been updating switches all day and v<IP_ADDRESS> has not once duplicated a command. I'm suspecting this bug is only in <IP_ADDRESS>

The issue can be reproduced on both <IP_ADDRESS> with Win10 and <IP_ADDRESS> with Win10. To trigger the issue, just move a session window as the floating window. Then, the command to that session will be sent twice. Restarting the SuperPuTTY will still keep the "send twice" effect. To stop "send twice" effect, the session has to be closed and re-opened. Or, reload the layout may stop the effect.
The "send twice" session will show duplicated entries on "select document".

Still seeing this behavior in <IP_ADDRESS>.  Was there ever a fix/workaround for this multiple send from command bar?

Still seeing the same issue in 1.5.0 using windows 11 22H2


add iptables to bootcmd

iptables command in mig-with-container only runs on first boot though it needs to run every boot

https://cloudinit.readthedocs.io/en/latest/reference/examples.html#run-commands-on-first-boot
https://stackoverflow.com/a/44945824

also is there a way to just make rules persist?

closed with #239


Publish NPM package

Could you publish this package to NPM?  That would enable wide reuse of this valuable library.
I didn't find hdf5-indexed-reader as an NPM package when I recently needed it, so for expediency I published an org-scoped version of it for use in Single Cell Portal.  That enables our particular use case, but it's not ideal for maintainability.  Having the canonical version in this repo published as a standard NPM package seems best for reuse.
Publishing this library at https://www.npmjs.com/package/hdf5-indexed-reader would improve that.

Sure, its published here: https://www.npmjs.com/package/hdf5-indexed-reader
I wasn't aware anyone was using this.  Glad you find it useful.   The driving use case was this project, which has hdf5 files on the order of a terrabyte or more:  https://github.com/igvteam/spacewalk


Support offline mode for Windows app

How to run windows app offline?

Dmitriy,
You can download the offline binaries for all platforms under "releases":
https://github.com/Andrew-Dickinson/photonic-etcher/releases
Best,
Andrew
On Wed, Oct 26, 2022, 14:48 Dmitriy @.***> wrote:

How to run windows app offline?
—
Reply to this email directly, view it on GitHub
https://github.com/Andrew-Dickinson/photonic-etcher/issues/6, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAX6K6J74HT7LSDD54GMUA3WFF4F7ANCNFSM6AAAAAARPJHI4Y
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Update to user token constructor change

Counterpart to https://github.com/Emilgardis/twitch_oauth2/pull/22

bors r+
thanks!


[FEATURE REQUEST] Consider adding the SeamlessM4T translation model?

Hi, would you like to consider adding the SeamlessM4T new translation model from META? It looks very promising!
https://huggingface.co/spaces/facebook/seamless_m4t
https://github.com/facebookresearch/seamless_communication
Thanks!

Sure, I'll add it to the backlog


Modify primitive dimensions based on diffusion sharing

Diffusion sharing has reduced the x_width so primitives are not square anymore.

included in  #552


Revert #8860 (removal of public constructors)

Binary compatibility is still a problem, as events changing, features adding, and we have to duplicate ctors every time to avoid breaking compatibility.
Also, we want to avoid events faking by developers, as it's not a scenario we can always support.
On the other hand, some of the events are supposed to be raised by the developers.
And for other events we don't have a nice replacement.
This PR is 11.0 timeline compromise.

You can test this PR using the following package version. 11.0.999-cibuild0028293-beta. (feed url: https://pkgs.dev.azure.com/AvaloniaUI/AvaloniaUI/_packaging/avalonia-all/nuget/v3/index.json) [PRBUILDID]

@AvaloniaUI/core alternatively, we could remove all of these ctors and make properties init; only. It will solve at least one problem with breaking changes.

You can test this PR using the following package version. 11.0.999-cibuild0029054-beta. (feed url: https://pkgs.dev.azure.com/AvaloniaUI/AvaloniaUI/_packaging/avalonia-all/nuget/v3/index.json) [PRBUILDID]

You can test this PR using the following package version. 11.0.999-cibuild0029064-beta. (feed url: https://pkgs.dev.azure.com/AvaloniaUI/AvaloniaUI/_packaging/avalonia-all/nuget/v3/index.json) [PRBUILDID]

You can test this PR using the following package version. 11.0.999-cibuild0029107-beta. (feed url: https://pkgs.dev.azure.com/AvaloniaUI/AvaloniaUI/_packaging/avalonia-all/nuget/v3/index.json) [PRBUILDID]

@grokys

AFAIK, these event args should only be used for unit testing

Perhaps you are talking about a specific one. However, in general these constructors are needed more for derived and custom controls. That is the biggest roadblock -- not unit testing.

https://github.com/AvaloniaUI/Avalonia/pull/8860#issuecomment-1312819342
https://github.com/AvaloniaUI/Avalonia/pull/9534#issuecomment-1328052233

I also faced this in my custom controls. I need to reimplement the same EventArgs to solve this, which is not great imo, but doable. I wonder if we can have an event factory, if the constructor should be kept internally.

Ok, we should probably put together a list of use-cases where creating pointer events is needed and try to come up with some solution that will enable these use-cases while also not requiring an API to create arbitrary pointer events.

I need the VectorEventargs for a control which looks like a gantt-chart. I need to do zooming or scrolling based on key states. Having VectorEventArgs available is what I used for now.

I don't think VectorEventArgs needs to have an internal constructor at all. The ones that might cause problems are the pointer event args, because various other parts of the framework rely on them to set state (pointerover, capture etc) and so raising arbitrary ones may cause problems (especially in future).

Understood.


KAFKA-15004: While handling snapshot during DUAL_WRITE in migration, …

…we might miss updating configs or incorrectly update them in Zookeeper.
Issue#1: Topic configs are not sycned while handling snapshot.
Issue#2: Any broker or topic config resource that is new and not already present in Zookeeper will never be updated in Zookeeper.
Issue#3: The sensitive configs are not encoded while writing them to Zookeeper.
Added tests to ensure we no longer have the above mentioned issues.

Moved to #13767


Cant use fsSize in mas/mas-dev build - 'could not start up a diskmanagement session'

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

used function 'fsSize()'
code snippet

ipcMain.on('check-storage', async (event, arg) => {
  console.log('fsSize', parse(arg.path).root)
  const parsedPath =
    process.platform === 'win32' ? parse(arg.path).root.slice(0, -1) : parse(arg.path).root
  await fsSize(parsedPath).then((data) => {
    console.log('fsSize', data, arg)
    for (var i = 0; i < data.length; i++) {
      if (data[i]['mount'].startsWith('/System')) {
        continue
      }
      if (data[i].available > arg.totalBytes) {
        event.sender.send('available-storage', true)
      } else {
        event.sender.send('available-storage', false)
      }
      break
    }
  })
})

start app / code

window.electron.send('check-storage', {path: downloadPath.download_path, totalBytes: tempSize})

See output/error 'could not start up a diskmanagement session'

Current Output
'could not start up a diskmanagement session'
Expected behavior
Need to access fsSize() in production build with all the disk properties
Environment (please complete the following information):

systeminformation package version: 5.21.20
OS: macOS Sonoma 14.2
Hardware Mac Mini 2018

To get all needed environment information, please run the following command:
  npx systeminformation info

@Zedbyte-corp can you confirm, that the fsSize() function works outside of electron on your machine?
const si = require('systeminformation');
si.fsSize().then(data => console.log(data));

Does this produce meaningful output? If yes, I suppose that this is not a problem related to systeminformation

@Zedbyte-corp can you confirm, that the fsSize() function works outside of electron on your machine?
const si = require('systeminformation');
si.fsSize().then(data => console.log(data));

Does this produce meaningful output? If yes, I suppose that this is not a problem related to systeminformation

it produces correct output, but in electron production build it doesn't but only if i pass path to the drive.

@Zedbyte-corp can you pass the same drive parameter to the sample code above (outside electron)?

Add this entitlement
<key>com.apple.security.files.downloads.read-write</key>
<true/>

even though you have this
<key>com.apple.security.files.user-selected.read-write</key>
<true/>

the irony


feat: reorganize repository

It looks like there may be some merge conflicts that need to be resolved before merge, but otherwise looks good


Link for personal accounts won't allow login from personal accounts

The link below tells me I need to use a work or school account to sign in, despite the text saying to use it for a personal account.
If you're using a personal account, go to https://myapps.microsoft.com/ and sign in, and then select your account icon in the upper right and select View account. Or, use a My Account URL that includes your tenant information to go directly to your My Account page (examples are shown in the following note).
https://docs.microsoft.com/en-us/azure/active-directory/external-identities/leave-the-organization

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

ID: b448cfd0-b673-7d04-047b-71aa62bebc27
Version Independent ID: 75118bff-94de-c9f9-7666-d2a6f4253b11
Content: Leave an organization as a guest user - Azure Active Directory
Content Source: articles/active-directory/external-identities/leave-the-organization.md
Service: active-directory
Sub-service: b2b
GitHub Login: @msmimart
Microsoft Alias: mimart

This is what I get when I sign in with a personal account:

@spencer-microsoft
Thank you for pointing this out!
If you're using your personal account you can also try https://myapps.microsoft.com?tenantId=<TenantID>. I've created a PR to update the documentation and it's currently waiting for the author to review and sign off.
I will now close out this issue. Please allow some time for the author to review and the changes to reflect.
Thank you for your time and patience!

@spencer-microsoft
Thank you for following up on this!
Find tenant ID through the Azure portal:

Sign in to the Azure portal.
Select Azure Active Directory.

You can also select the Directory + Subscriptions option in the upper right, to find the Directory ID (Tenant ID).


Allow for management of file and directory permissions

Description of problem

$dir_mode and $file_mode are both initialized, and set to their respective defaults depending on the OS here.  This could be improved upon by having a configurable option within the class which defaults to the same values if not explicitly defined so it's backwards compatible.   This would allow users to explicitly manage their own dir and file permissions to line up with other types of management systems where applicable (i.e. rpm packages).

Command used and debugging output

N/A, but as an example of our workflow or use case, we have both team and enterprise packages that are installed on top of of the Sensu client package.  These additional packages install plugins and checks that run on each system.  Any time there is an update to these packages and Puppet runs, it overwrites the owner, group and mode on the files which results in a system change during every run which can be noisy at times.

Platform and version information

Your OS: CentOS 7
Your Ruby version: Embedded, Ruby 2.4
Your version of Puppet: 5
Your version of Sensu: sensu-0.26.5-2.x86_64
Your version of this module: 33e0ff373b4a29642412ac4761d5a540f14bb4ee, but this appears to be the same in the latest version as well, which we're trying to move to.

Anything else to add that you think will be helpful?
I'd be happy to submit a PR if this would be something that would be worthwhile.

@jplindquist I'm always in favour of modules "extreme" reusability (so that users don't have to fork them to be able to fit more or less special use cases) so I think a PR with updated docs and tests would be welcomed, what do you think @ghoneycutt ?

@jplindquist Thank you for submitting this!
I would like the sensu package to handle that with regards to the files it manages under /opt/sensu, so I would not want to do any kind of recursion through that.
Allowing people to specify their own defaults for /opt/sensu, /etc/sensu, etc would certainly be welcomed. The default values should be default for the whole module and not OS specific and should align with what is currently done with the sensu package.


KAFKA-9999: Make internal topic creation error non-fatal

As of today, the internal topic creation failure could shut down a stream thread. Instead of hard failure, we could take a more conservative approach by triggering another rebalance and retry with the topic creation to avoid a thread death due to unavailability of the broker.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Have updated the PR with my current understanding of the proposal @vvcephei @ableegoldman , the part that needs more discussion is on the case for prepareRepartitionTopics which could also fail to create any internal topic as well. Should we continue in that case?

Hey @abbccdda , I've just recently been in some investigation of these timeouts as part of https://github.com/apache/kafka/pull/8738 , and we're also planning to implement KIP-572 as a general solution to all timeouts that can happen in Streams.
Given the complexities that came to light in the discussion above, and all the edge cases that can happen, I'm wondering if we should really try to be this smart in the assignor.
What do you think about just leaving the current behavior as-is, and then in the future, changing it to throw the TimeoutException out of assign() so that the KIP-572 logic can catch it and gracefully retry from the outer loop? The downside of that approach is that all the instances would be blocked for the whole poll interval, and then they would have to repeat their attempt to join the group.
I'm just concerned that it doesn't sound from the above like we're very sure that any specific choice of tasks is going to be the right one, and if we leave some tasks out of the assignment, it's going to be harder to debug than if we just let the thread crash (for now) or recover holistically (after KIP-572).
WDYT?

@vvcephei Sounds good, let's wait for KIP-572 PR.


Permission denied to %temp% on Windows

Hi,
Thank you for this, it's incredibly handy and time saving!
One issue I had on Windows11  is the below:
           INFO     Saving modified data to "C:\Users\<user>\AppData\Local\Temp\tmpa57mytmc"                garmin.py:107
Traceback (most recent call last):
  File "C:\Users\<user>\OneDrive\Documents\indieVelo\A7B580193A86E911\FITFiles\garmin.py", line 215, in <module>
    upload_all()
  File "C:\Users\<user>\OneDrive\Documents\indieVelo\A7B580193A86E911\FITFiles\garmin.py", line 180, in upload_all
    output = edit_fit(Path(f), output=Path(fp.name))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\<user>\OneDrive\Documents\indieVelo\A7B580193A86E911\FITFiles\garmin.py", line 108, in edit_fit
    modified_file.to_file(str(output))
  File "C:\Users\<user>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\fit_tool\fit_file.py", line 156, in to_file
    with open(path, 'wb') as file_object:
         ^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\<user>\\AppData\\Local\\Temp\\tmpa57mytmc'

But after a quick google I was able to get it to work by adding delete=False to line 179
with NamedTemporaryFile(delete=False) as fp:

Hmm, hadn't seen this as I use Linux, so thanks for pointing it out. It looks like this is the ultimate issue:
https://github.com/bravoserver/bravo/issues/111#issuecomment-838099:

It's an issue with Python, but it's not a bug. They clearly document this in the docs:
Whether the name can be used to open the file a second time, while the named temporary file is still open, varies across platforms (it can be so used on Unix; it cannot on Windows NT or later). http://docs.python.org/library/tempfile.html#tempfile.NamedTemporaryFile

It's good delete=False fixes the issue, but I don't love that as a solution since it will lead to a lot of leftover "temporary" files. Can you try  with with NamedTemporaryFile(delete=True, delete_on_close=False) as fp: to see if that fixes it? If I understand correctly, that will allow for the file to get deleted when the context manager exits, but still allow Windows to do what it needs to to access the file?

Yes, that also works, and no tmp file leftover.

Awesome, thanks for confirming. It works on my end in Linux, so I just added that into the code


Pre-propose approval flow

Closes #514

Codecov Report
Base: 93.95% // Head: 91.37% // Decreases project coverage by -2.57% :warning:

Coverage data is based on head (097dc28) compared to base (48d9629).
Patch coverage: 46.34% of modified lines in pull request are covered.

:exclamation: Current head 097dc28 differs from pull request most recent head 29e748b. Consider uploading reports for the commit 29e748b to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #536      +/-   ##
==========================================
- Coverage   93.95%   91.37%   -2.58%
==========================================
  Files          37       39       +2
  Lines        3589     3793     +204
==========================================
+ Hits         3372     3466      +94
- Misses        217      327     +110

Impacted Files
Coverage Δ

...e-propose/cwd-pre-propose-multiple/src/contract.rs
87.50% <0.00%> (-12.50%)
:arrow_down:

...pre-propose/cwd-pre-propose-single/src/contract.rs
87.50% <0.00%> (-12.50%)
:arrow_down:

packages/cwd-pre-propose-base/src/execute.rs
73.29% <10.00%> (-13.01%)
:arrow_down:

...e-propose/cwd-pre-propose-approver/src/contract.rs
15.51% <15.51%> (ø)

...se/cwd-pre-propose-approval-single/src/contract.rs
73.21% <73.21%> (ø)

packages/cwd-pre-propose-base/src/state.rs
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

rebased on main. we can now stage the NextProposalId refactor on this branch.


replace home page with new layout

Docs Build status updates of commit 9aac764:
:warning: Validation status: warnings

File
Status
Preview URL
Details

globalization/toc.yml
:warning:Warning
View
Details

globalization/index.md
:white_check_mark:Succeeded

index.yml
:white_check_mark:Succeeded

globalization/toc.yml

Line 2: [Warning] Invalid file link: 'index.md'.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit df93913:
:warning: Validation status: warnings

File
Status
Preview URL
Details

globalization/toc.yml
:warning:Warning
View
Details

globalization/index.md
:white_check_mark:Succeeded

index.yml
:white_check_mark:Succeeded

globalization/toc.yml

Line 2: [Warning] Invalid file link: 'index.yml'.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 8ba7a11:
:warning: Validation status: warnings

File
Status
Preview URL
Details

globalization/index.yml
:warning:Warning
View
Details

globalization/index.md
:white_check_mark:Succeeded

globalization/toc.yml
:white_check_mark:Succeeded
View

globalization/index.yml

Line 11: [Warning] Invalid value for author: 'apex-production' is not a valid GitHub ID

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit a0f6f72:
:warning: Validation status: warnings

File
Status
Preview URL
Details

globalization/index.yml
:warning:Warning
View
Details

globalization/index.md
:white_check_mark:Succeeded

globalization/toc.yml
:white_check_mark:Succeeded
View

globalization/index.yml

Line 11: [Warning] Invalid value for author: 'apex-production' is not a valid GitHub ID

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 7473163:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

globalization/index.md
:white_check_mark:Succeeded

globalization/index.yml
:white_check_mark:Succeeded
View

globalization/toc.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


how can i use it in services?

i want to use it in service and how can i do it?

Android doen't support that. You'd have to put the dialog in a transparent Activity.


waitFor should be waitUntil in async cookies post

R: @pwnall
The code example uses event.waitFor() and is passed a function. I believe it should be using event.waitUntil and passed a Promise (the return value from the function call).
Target Live Date: 2018-09-07
CC: @petele

Whoops!
There were 1 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2018/09/asynchronous-access-to-http-cookies.md#L164 - Common typo found: 'chrome' Should it be 'Chrome'?

Whoops!
There were 1 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2018/09/asynchronous-access-to-http-cookies.md#L164 - Common typo found: 'chrome' Should it be 'Chrome'?

:tada: This has been pushed live to https://developers.google.com/web/


[0.66.1] enableTls12OnPreLollipop(client).build(); return error cannot find symbol

Description
After upgrade to version 0.66.1, I'm facing issue with OkHttpClientProvider.enableTls12OnPreLollipop(client).build() which cannot find symbol. It is works on 0.64.3.
Version
0.66.1
Output of react-native info
info Fetching system and libraries information...
System:
OS: macOS 12.0
CPU: (4) x64 Intel(R) Core(TM) i5-4308U CPU @ 2.80GHz
Memory: 90.30 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.5.0 - /usr/local/bin/node
Yarn: 1.22.17 - ~/myunifi/node_modules/.bin/yarn
npm: 7.19.1 - /usr/local/bin/npm
Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0
Android SDK:
API Levels: 28, 29, 30, 31
Build Tools: 28.0.3, 29.0.2, 30.0.2, 31.0.0
System Images: android-30 | Google APIs Intel x86 Atom_64
Android NDK: Not Found
IDEs:
Android Studio: 4.2 AI-202.76<IP_ADDRESS>86908
Xcode: 13.0/13A233 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_292 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.66.1 => 0.66.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce

use 0.66.1 version
use OkHttpClientProvider.setOkHttpClientFactory(new OkHttpCertPin()) in MainActivity.java
inside OkHttpCertPin use method OkHttpClientProvider.enableTls12OnPreLollipop(client).build();

Snack, code example, screenshot, or link to a repository
No response

+1

updated issue for android

After upgrade to version 0.66.1, I'm facing issue with OkHttpClientProvider.enableTls12OnPreLollipop(client).build() which cannot find symbol

What's the stacktrace?


Check file and path existence in parser

After working on this PR https://github.com/neuropoly/spinalcordtoolbox/pull/2315, we should implement a check for the existence of input file and write permission of output folders.
This can be done using argparse type=argparse.FileType('r') (which returns a file handler), however this means refactoring the code such that the input of all methods called within CLI functions are file handlers (or image objects) instead of a string (file name).

A closely-related issue is input file type validation, which came up in #641, but I've closed that issue to consolidate discussion here.


TNT entities respawn every time they're loaded again

Timings link
https://timings.aikar.co/?id=28a7c48af5754f46a4b177de3bd596f2
Expected behavior
I built a perimeter maker that runs right - left - forward - repeat and dupes tnt that drops under it.
I think there's nothing to explain here, it just moves in a snake pattern on a 16x16 chunk grid and dupes tnt that drops and mines a perimeter.
Observed/Actual behavior
The first issue I noticed is that tnt explosion is lagging behind the machine, and the actual tnt entities dropping on the ground are disappearing, but the lag was small, only like 10 blocks behind it so I didn't mind. However after a ~100 minutes AFK session the lag got to a point it was about 1 row of 16x1 chunks behind the flying duper. It seems like every duped tnt is somehow saved in memory and everytime those tnts enter my entity load distance that I currently have on default, (I'm using fabric with sodium renderer that lets me change this value to up to 500% of default range) they load again (entity only, not a block) and cause massive lag.

Steps/models to reproduce

view-distance to 20 in server properties (although I was loading only 12x12 chunks as I was AFKing in the middle of 16x16 chunk grid)
make a perimeter maker, tutorial on Ray's works YT channel
launch it and go AFK in the middle of the planned perimeter
after ~1.5h you should have the thing I got

Purpur version
This server is running Purpur version git-Purpur-1427 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: 8bb5a93 on ver/1.17.1)
You are running the latest version
Previous version: git-Paper-336 (MC: 1.17.1)
Agreements

[X] I am running the latest version of Purpur available from https://purpur.pl3x.net/downloads.
[X] I have searched for and ensured there isn't already an open issue regarding this.
[X] My version of Minecraft is supported by Purpur.

Other
After restarting the server I can see that (stopped) machine drops invisible tnts that explode on bedrock y-level, don't know how long will it happen because it's been exploding like that for like 10 minutes while I am writing this issue. What's important is that the machine itself doesn't make any hissing sound of tnt being light up. (that explosions on bedrock still happen even after destroying the tnt placed on the machine. The main problem is I don't know how to make those tnt disappear, they just make the game unplayable in that region.
EDIT: I checked second duper (after restart) that was situated 8 chunks away and not only does it drop tnt below it like the 1st one, but also had lagged tnt destroying the terrain in a straight line, as intended, but without the entities being dropped, only visible explosion progressing forward to the station of the duper.
EDIT2: kill @e[type=minecraft:tnt] solved the problem with lags.

I'm going to go ahead and close this issue since it is dealing with tnt duping. It is an unsupported feature in paper.yml, meaning whatever bugs present themselves when toggling this feature on will not be looked at or fixed.

just use a fabric server instead. any bukkit/spigot/paper/purpur version developers just dont care about any of this very fun stuff, calling it "exploits" and "fixing" it. how boring.

i think paper has fixed this long time ago....

This problem isn't actually caused by Purpur, but by Spigot. To fix it, go into "spigot.yml" and search for the setting "max-tnt-per-tick". This is set to 100 by default. Changing it to a higher number should fix the problem, and from what I can tell there's no downsides to setting it to some absurdly high number like 10 million, outside of potential lag of course if someone does actually create 10 million tnt entities at the same time.


Promise after Catch should not resolve unless Catch handler returns a value

This is referring to the new functionality in v2.0.  It looks like all Catch promises will now resolve, regardless of whether the Catch handler returns a value.  I may be missing something, but if that's true I think this is inconsistent with the Promises/A+ spec.  The Promises/A+ spec says the following about this (from https://promisesaplus.com/):
2.2.7 then must return a promise [3.3].

 promise2 = promise1.then(onFulfilled, onRejected);

<IP_ADDRESS>    If either onFulfilled or onRejected returns a value x, run the Promise Resolution Procedure [[Resolve]](promise2, x).
<IP_ADDRESS>    If either onFulfilled or onRejected throws an exception e, promise2 must be rejected with e as the reason.

Since onRejected doesn't have to return a value, <IP_ADDRESS> implies that you could have a situation where promise2 is not resolved.  I think the ability to chain promises after a Catch that are not automatically resolved should be present in this Promise library as well.

In the library we have taken "if onFulfilled or onRejected returns a value" to apply to all functions. In Javascript a function that does not explicitly return a value is the same as one that calls return undefined, so I believe that "returns a value" is meant to mean that the funcion has finished executing, as opposed to throwing an exception (<IP_ADDRESS>), or the value not being a function so not being executable (<IP_ADDRESS> and <IP_ADDRESS>).
The current API should allow you to chain any kind of promise after a .Catch so do you think you could provide an example of what you're trying to do?
Since Javascript ES6 added built-in support for promises we have been trying to reproduce as similar functionality to that as possible with a few additions like the PromiseTimer. We aim for the same code in Javascript and C# with our library to run in the same way so if you've found something that works in JS but not with this library that may be a bug.

Apologies for the delay.  I may have filed this issue prematurely: I tried playing with promises in a browser console window and it does indeed behave the way you describe.
What I'm trying to do is build a library function that does some asynchronous work; it returns a promise of some value and what I'd like to happen is, if the library function encounters an error, it stops resolving the promise chain (or put another way, consumers of the library function would not see a resolved promise).
Ex.
IPromise<Value> Foo() {
    return FooAsync().Catch(/*handle the error*/);
}

Foo().Then(v => /* only do something with v if the Catch didn't get called */);

In version 1.3.0, this pattern works (perhaps incorrectly), and my initial read of the changes in v2.0.0 suggests that either Then would get resolved if FooAsync threw an exception, or the return value of Foo would not be a promise of a Value which would limit my ability to encapsulate my library function.  Is there a recommended way use promises in this way?

I think you could achieve that result by creating a new promise and manually resolving it:
IPromise<Value> Foo() {
    var promise = new Promise<Value>();
    FooAsync()
        .Then(v => promise.Resolve(v))
        .Catch(/*handle the error*/);
    return promise;
}

However, I think this is generally not a good pattern because users of the library have no way to tell if the operation is still in progress or has failed. Generally the convention in this case would be to just reject the promise that is returned by Foo so that users of the library know when it has failed. Alternatively you could resolve it with null or use a maybe monad and resolve it with Nothing.

Thanks for the reply.  I was thinking of that, and actually, having Catch reject the new promise so that Foo callers can at least get a rejected promise, but for some reason it felt sub-optimal.  The other part I forgot to mention is my library uses the Catch handler to clean up some internals; without this, the caller would have to call back into to library from it's error handler, and that's kind of gross.  I think this gets me what I need with minimal grossness.

Ah yeah. Another option in that case would be to use a catch handler to clean up whatever you need but then after you've done that throw a new exception that the public API will be able to see.
You can chain catches after each other and the second one will handle any exception thrown inside the first:
IPromise<Value> Foo() {
    return FooAsync()
        .Then(_ => throw new Exception("Exception 1"))
        .Catch(ex => {
            // do cleanup

            throw new Exception("Exception 2");
        });
}

// later in code
Foo()
    .Catch(ex => Console.Log(ex.Message)); // will print "Exception 2"

Hope that helps!


TxBuilder order inputs on signing

When we generate Transactions it is now required that the inputs are
ordered by their utxo values.
In TxBuilder this was not the case and the Faucet was found to be
generating some txs with invalid inputs in the Transactions.

Why the new variables ?

Why the new variables ?

Just because I took the changes from before. But I can remove them now. Will do.

Just because I took the changes from before. But I can remove them now. Will do.

It may be a bit confusing due to the identical name.

There is no longer a need to create temporary variables to hold the arrays pre-sorting as the Transaction can be created and the inputs and outputs added unsorted initially. We sort before we finalize and return the transaction.

Yes, the change is simple and LGTM.

Is there a unittest related to this?

Is there a unittest related to this?

I will add assert in one of the tests in TxBuilder for sorted inputs and outputs.


Upgrade to React 0.14 (split out ReactDOM)

Pretty small diff, but requires React 0.14—not sure how you want to go about supporting both pre 0.14 and 0.14+.
In React 0.14, this.refs points directly to the DOM nodes, so ReactDOM.findDOMNode probably isn't even necessary.

I think the best approach would be to bump the version to 3.0.0. If we do that, we can remove react-dom and just use the refs to gain access to the DOM node. Thoughts?

Sounds good.

Do you want to just make additional commits to this PR?

I just released 3.0.0 which now uses the React 0.14 API


All Winget Packages Failing

Brief description of your issue
It seems all my Winget deployments via Intune are failing this morning with the following error: 0x8a15000f : Data required by the source is missing
I can replicate this by trying to install any Winget application manually via the command line, which throws the same error.
I have tried winget reset source but that doesn't make any difference.
Is there anything I can do? Or is this a CDN issue or similar?
Steps to reproduce
Try any winget install via the command line, they all throw the same error
Expected behavior
Installs as normal
Actual behavior
Failed when searching source: winget
An unexpected error occurred while executing the command:
0x8a15000f : Data required by the source is missing
Environment
Windows Package Manager v1.4.11071
Windows: Windows.Desktop v10.0.22621.1848
Package: Microsoft.DesktopAppInstaller v1.19.11071.0

I am experiencing the same issue with different symptoms/messages.
This is what I get when attempting to update:
Failed when searching source: msstore
An unexpected error occurred while executing the command:
0x8a15005e : The server certificate did not match any of the expected values.

Inspecting the certificate that seems to be associated with the endpoints being hit shows some... obviously sketches sites listed under the Subject Alternative Name, which cURL notes is the reason for the failure

Can you download the MSIXBundle from https://aka.ms/getwinget and manually install it? Possibly remove it by using the Store and reinstall from the MSIXBundle?

Everything appears to work as intended after upgrading via https://aka.ms/getwinget.
Hopefully OP has the same experience.

Environment
Windows Package Manager v1.5.1572
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.1972
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.1572.0

WinGet 1.4 originally had a certificate root for the "msstore" source that was deprecated.
We did have a 1.4 servicing release with the new certificate.
https://github.com/microsoft/winget-cli/releases/tag/v1.4.11071
WinGet 1.5 is now out and also has the correct certificate.
https://github.com/microsoft/winget-cli/releases/tag/v1.5.1572
We've updated the https://aka.ms/getwinget link to point to the latest stable release.

@GeneralGarcia are you still having this issue?

Thanks for all the suggestions on this. I'm in the UK so not in the office
currently but I'll test first thing tomorrow morning.
On Thu, 6 Jul 2023, 20:54 Demitrius Nelon, @.***> wrote:

@GeneralGarcia https://github.com/GeneralGarcia are you still having
this issue?
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/winget-cli/issues/3410#issuecomment-1624231619,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFH6I46QKMG767OIP5KAWXDXO4JVXANCNFSM6AAAAAA2AF5M2I
.
You are receiving this because you were mentioned.Message ID:
@.***>

Unfortunately still the same this morning :(
I've updated to the following version on two seperate machines: Windows Package Manager v1.5.1572
I then tried running a few install commands via an admin powershell window, such as: winget install -e --id zxch3n.PomodoroLogger or winget install -e --id SleuthKit.Autopsy
It doesn't seem to matter which package I try, I just get the following on both PCs:
Failed when searching source: winget
An unexpected error occurred while executing the command:
0x8a15000f : Data required by the source is missing
I tried the winget source reset --force command on both machines, and it re-prompted me to accept the agreements when I ran the install command, but with the same error at the end unfortunately. Not sure where to go from here? All was working fine until Wednesday.

On testing this morning, this issue appears to now have been resolved without any changes on our end. Assuming that was a CDN or other MS issue? Please feel free to close this off, thanks.


fix-fstream

Coverage remained the same at 94.406% when pulling 6bce611b9aeb795f593b1a83280704b2645653f4 on fix-fstream into 832ca27d66483a9ec225dcc3c4d8bf7e397c98e8 on master.

Coverage remained the same at 94.406% when pulling 6bce611b9aeb795f593b1a83280704b2645653f4 on fix-fstream into 832ca27d66483a9ec225dcc3c4d8bf7e397c98e8 on master.


[SSUE #4835]fix gateway proxy websocket lost the user-defined closeStatus (code and reason).

#4835
The execution effect is as follows:

Codecov Report

Merging #4844 (7093ee5) into master (bf61e5e) will decrease coverage by 0.04%.
The diff coverage is 0.00%.

:exclamation: Current head 7093ee5 differs from pull request most recent head fdc14c3. Consider uploading reports for the commit fdc14c3 to get more accurate results

@@             Coverage Diff              @@
##             master    #4844      +/-   ##
============================================
- Coverage     64.60%   64.57%   -0.04%
+ Complexity     8205     8204       -1
============================================
  Files          1153     1153
  Lines         33999    34010      +11
  Branches       3041     3043       +2
============================================
- Hits          21965    21961       -4
- Misses        10303    10315      +12
- Partials       1731     1734       +3

Impacted Files
Coverage Δ

...pache/shenyu/plugin/base/AbstractShenyuPlugin.java
57.81% <0.00%> (ø)

...pache/shenyu/plugin/websocket/WebSocketPlugin.java
54.05% <0.00%> (-9.44%)
:arrow_down:

... and 6 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Add images: Add layout Modifiers

codelab url
In which task and step of the codelab can this issue be found?
In step 9 'try this challange'
Describe the problem
The code is outdated:
Text(
           text = message,
           fontSize = 36.sp,
           modifier = Modifier
               .fillMaxWidth()
               .wrapContentWidth(Alignment.CenterHorizontally)
               .padding(start = 16.dp, top = 16.dp))

The function wrapContentWidth no longer alligns the text. The parameter textAllign should be used:
Text(
            text = message, fontSize = 36.sp, textAlign = TextAlign.Center,
            modifier = Modifier
                .fillMaxWidth()
                .padding(start = 16.dp, top = 16.dp))

Versions
Android Studio version: Android Studio Dolphin | 2021.3.1
API version of the emulator: Physical Device Samsung A-53

https://github.com/google-developer-training/basic-android-kotlin-compose-birthday-card-app/pull/172

Hello @kmaslowiec,
Thank you for reaching out to us. The code in the code snippet was updated:


Study recognizability of speech over different methods

Do: Spotify running and say Amy wakeup
Do this multiple microphones and/or devices/recognizers.
Smartphone vs Laptop
Also streaming audio from smartphone to CMU Sphinx.
Find out if the recognition problem is more of a software or a hradware(microphone) problem.
Also test with deep speech from mozilla.
x SP
Tasks:

[ ] Define the testing procedure (what to test how often)
[ ] Test with cmu sphinx and laptop mic
[x] Test with cmu sphinx and better mic (Samson Go Mic (~30€) in this case)
[x] Test with cmu sphinx and PS3 EyeToy
[ ] Test with google and laptop mic
[ ] Test with google and better mic
[ ] Test with google and PS3 EyeToy
[ ] Test with deep speech and laptop mic
[ ] Test with deep speech and better mic
[ ] Test with deep speech and PS3 EyeToy

Test wake-up call with and without music (CMU and DeepSpeech)
Text: "Amy wake up"
Microphone: HeadSet Microphone
Info:
cmu uses Input Stream from Microphone
DeepSpeech uses .wav files (16khz, Mono)
whole Amy system uses ~1.5gb ram
DeepSpeech-recognition uses ~1.0 gb ram

Amy running on Windows
DeepSpeech running ob Ubuntu Subsystem on Windows

cmu uses Grammar
DeepSpeech uses pretrained free Model

Time Consumed:
cmu: ~1-2s after finishing to talk
DeepSpeech: ~ .wav file lenght * 5
Test1 - Without Music:
cmu:
Recognized: True
ds:
Recognized: True (amy wake up)
Test2 - With loud Music:
cmu:
Recognized: False (amy does not wake up)
ds:
Recognized: False (Random words, sometimes 'wake' or 'up')
Test3 - With medium loud Music (voice louder than music by large margin):
cmu:
Recognized: True (sometimes you have to repeat the command)
ds:
Recognized: False (Random words, sometimes 'wake' or 'up')

Test wake-up call with and without music (CMU)
Text: "Amy wake up"
Microphone: Samson Go Mic
Time Consumed:
cmu: <1s after finishing to talk
Test1 - Without Music:
cmu:
Recognized: very good 10/10
Test2 - With loud Music:
cmu:
Recognized: moderate 5/10
Test3 - With medium loud Music (voice louder than music by large margin):
cmu:
Recognized: good 8/10

The tests were made with the  USB Mikrophone Seacue (10€) and the build in micro phone from a hp pro book 440 G4.
comparative tests has shown that the build in micro from the notebook is equal to the usb microphone.
All tests are tested with serveral commands from different plugins (for each speech recognition the same commands).
CMU best recognize commands with the length of 4 words (8/10).
Commands with less then 4 words was recognize equal to 4 words but the commands was often recognized to the wrong time. e.g if nobody talks
Commands with more then 4 words were recognize clearly worse (6/10).
Commands with 10 or more words only 2/10.
Google Speech recognize commands with all lengths very well (9/10).
Number:
CMU can't recognize numbers at the moment. of 100 tests with 5 different numbers only 2 times was the correct number recognized.
Google can recognize numbers very well. on average 9/10.
Times:
CMU not possible see number.
Google can most of the time recognize the most times in diffrent formats. (8/10)
But single times are fromated strange e.g. 8 o'clock pm gets 2000 (every time by this time). the same behavior can be seen with long commands.


Configuration: Check if it hasJobs

Coverage decreased (-0.76%) to 95.28% when pulling eaf36b19b6df5fb8ff197417dcf056fb28f84389 on nickurt:patch-1 into 886896668ea99478518c1a122c115463e707bed0 on BitWeb:master.

Please add tests.
Thanks!

Coverage increased (+0.03%) to 96.06% when pulling 098bb20d829e90aa2530e8c26760547fe5b49dbe on nickurt:patch-1 into 886896668ea99478518c1a122c115463e707bed0 on BitWeb:master.

Coverage increased (+0.03%) to 96.06% when pulling 098bb20d829e90aa2530e8c26760547fe5b49dbe on nickurt:patch-1 into 886896668ea99478518c1a122c115463e707bed0 on BitWeb:master.


Allow entrypoint: to reset default entrypoint

Adds the ability to disable the Docker image’s entrypoint by setting entry point: false. This is equivalent to running docker run --entrypoint ''.
Closes #59.

I can't figure out a good way to workaround the parsing in the bats mock library to make this change work.

Maybe we just have to comment/skip the test for this for now?

Any update on this? We're running into a case where being able to set the entrypoint to nil would be helpful.

I took a stab at this a few days ago, updated it to master, and had the same problem with bats and environment variables not passing through correctly, so I couldn't get the tests to work.
Though my version also supported false and '' as valid values for disabling the entrypoint (by using BUILDKITE_PLUGIN_DOCKER_PLUGIN_ENTRYPOINT:-undefined as the default if check, instead of false).
Perhaps we just comment out the test, or find another way to test it?

I merged the updated plugin tester, lemme see if I can get those tests passing now.

I was testing this PR and I believe its not working, I have tried setting false and "" and it never sets --entrypoint="" which should do --entrypoint ''.
Could you show an example?

It's possibly a bug @pecigonzalo.


Labeler Test PR

About the PR

This PR is DNM, and is used to test the labeler changes which have taken place.
Changelog

The issue with failing due to the merge conflict checker timing out seems to have been a one off? This test PR can be reopened if need be, we'll keep a close eye on things.


Loosen verification predicate type + better error messages

Summary
Loosen the policy validation restrictions. With the move to strict RFC3986 and the fact that some of the existing attestations out there are still using the non conformant predicate types, allow validating them with non-conformant predicate types.
Also, to aid folks with the 'guess-the-existing-predicate-type' game :) if attestations are found, but they do not match the predicate type that is being looked for, print out the predicates that were found. Hope is that this will make the migration from non conformant predicate types little easier.

Release Note

Documentation

+1 to this, breaking verification for existing attestations is not ideal. This should go in 2.0

Okay. I just talked to @priyawadhwa ✅ . I'm merging this change as it seems everyone approved it.


training with 2 gpus

I used 2 Gpus for training, but halved the number of channels instead of the batch size. how should I modify it?

The current implementation does not include multi-GPU support. You can modify the code according to the PyTorch official DDP tutorial.


JSON parse errors

Still happening.. I wish I know why

We're just ignoring these until we can weed out the cause of them. #67 allows us to skip over these errors


Grammar improvement: "long term" in README

⚠ Open Source Workshop ⚠
Should be "long-term"
edit: Also occurs in the VISION guide

@rnystrom what is oss-workshop?

@heshamsalman Facebook is putting on an intro to open source, teaching some folks how to start contributing to big projects. Special issues for the event (sorry for the notification spam).

Another "long term" that needs corrected in the VISION guide

@heshamsalman 😂 your "grammer" correction. TIL I don't word good.

Seems like a really cool idea, @rnystrom!

This should be g2g 👍


Added multilabel option for classification head

Hi Jeroen, thanks for the PR.
I think this is valuable and we should be able to merge it quite fast!

+1


Close code for reconnect

Summary
Add a close code argument to Gateway#close for use during reconnect to preserve our session on resume.
websocket-ruby does not support encoding a 1012 (Service Restart) so a 4000 close code was selected.
Surveying other libraries it seems they reconnect using 4000 as well.
Changed
Gateway#close - Added optional code argument that defaults to 1000
Gateway#handle_reconnect - Now calls close with a 4000 close code
Gateway#send - Added optional code argument for use with close codes

This was merged (with changes) via shardlab/discordrb@018e401cca7590eabfa325ef76848949af7d9db8 in the new repo and released in v3.4.0 and can be closed.


[core] Remove port from database setting for Oracle RAC

What changes were proposed in this pull request?
When Hue use Django to connect to Oracle database with RAC mode, a full DSN string is expected. And removing port from Django database setting makes it connect via the DSN string.
Example of a full DSN string:
(DESCRIPTION=(LOAD_BALANCE=off)(FAILOVER=on)(CONNECT_TIMEOUT=5)(TRANSPORT_CONNECT_TIMEOUT=3)(RETRY_COUNT=3)(ADDRESS=(PROTOCOL=TCP)(HOST=<hostname>)(PORT=<port>))(CONNECT_DATA=(SERVICE_NAME=<service name>)))

How was this patch tested?

Tested on a cluster with Oracle RAC setup.

where do we pass the description string?


[Video conference] Settings UX tweaks

Summary of the Pull Request
This PR is related to the Video Conference settings page:

Added subheaders.
Fixed the correct margins between UI elements
Added the module image.
Same responsive behavior as all other settings pages.
Fixed the module link.

Before:

After:

PR Checklist

[X] Applies to #6313 and #https://github.com/microsoft/PowerToys/issues/6246#issuecomment-685450269_
[X] CLA signed. If not, go over here and sign the CLA

@yuyoyuppe @enricogior This was branched off of feature/videoconference and should only contain 1 commit (https://github.com/microsoft/PowerToys/pull/6406/commits/b940b9a24eac193627837b09c928a449ff00da91).
No idea why it now indicates 16 commits and 179 files changed :|.

@niels9001 nice! regarding commits count: looks like you need to hard reset the branch to its current upstream state and cherry-pick b940b9a

Closing this for #6432


Add test to validate package.json and package-lock.json has the same version

Describe the proposal
While preparing for the release, we can miss bumping the version in package-lock.json if npm install was not run. Write a test to ensure that both the files have a consistent versioning.

Hi @shubham1172  can you confirm that We need to validate  version  only  Js-SDK version or do we need to validate all other third-party library versions

Hi @salmankhan-prs this is specifically for JS-SDK.


Performance doesn't match Bolt.new

Describe the bug
Hi,
If you compare performance with just bolt.new responses with the bolt.new running locally using Cloud Claude 3.5 Sonnet the responses are so much worse and amount of time it trips up in the IDE is so much higher in the local running version.
Is the local version gimped in some way compared to the cloud version and is this expected or are we missing something when it comes to the setup of the local version? Perhaps the initial context passed to the model is different?
Does anyone else notice this? The cloud performance is just so much better, less errors, less trip ups, failure to run commands.
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-2tmosp
Steps to reproduce
Initial Prompt: Make me a simple one page hello world mobile app using react nativescript that I can run and preview using the nativescript preview app. Make sure its configured and set up with tailwind
Second Prompt: Make an very professional looking dashboard for a smart home control application that can remotely control all of the various systems you would find in a campervan conversion
Compare responses between local and cloud. Local significantly worse
Expected behavior
That the local version matches the cloud version when using Claude 3.5 Sonnet directly from Anthropic
Screen Recording / Screenshot
No response
Platform

OS: Mac OS
Browser: Chrome
Version: Chrome 130

Additional context
No response

Cloud version has lot more processing power serving it. Your local models will always be much slower in terms of tokens/sec, unless you want to spend some millions of USD to buy some Nvidia server AI/GPU hardware.
TLDR; your hardware is much less powerful than one, that serves cloud versions of AI models

i think Bolt.new use a different version or implementation of webcontainer. In this repository, we only have access to the free plan.

What happens when we reach the API limit for the free tier?
Is there a plan here to make this sustainable?

Cloud version has lot more processing power serving it. Your local models will always be much slower in terms of tokens/sec, unless you want to spend some millions of USD to buy some Nvidia server AI/GPU hardware.
TLDR; your hardware is much less powerful than one, that serves cloud versions of AI models

This is the thing though, I'm talking about the Local Bolt.new UI running using the Anthropic Hosted API Cloud Claude 3.5 Sonnet. Not a self-hosted AI model. Sonnet is the same one that is being used by the Cloud Bolt.new I believe. So why is the performance so much worse when the only variable that is changed is running bolt.new locally vs using bolt.new in the cloud


Redis pubsub logger

Here is my attempt to build a redis pubsub logger.
I started from the tcp client to avoid bringing in new dependencies (like redigo for instance).

Look good to me.
Just one thing, can you update the README.md to add this new logger  ?

You're welcome. I am glad not having to dig into framestream myself ;)


小白求助npm run dev Chromium报错

Could not find expected browser (chrome) locally. Run npm install to download the correct Chromium revision (982053).

文末有

cd node_modules/puppeteer
npm install


Remove duplication between PublicKey, SecretKey and Seed

This is a continuation of #1645. After the two key pair types were merged, the issues with KeyPair were made obvious:

PublicKey is just the public key, that's fine;
SecretKey is actually the public key + the private key concatenated;
Seed is actually the private key;

We should remove SecretKey, and only expose the sign primitives at the KeyPair level. Additionally, we should remove the duplication between Sig and Signature.
I started doing so:

https://github.com/bpfkorea/agora/pull/1744
https://github.com/bpfkorea/agora/pull/1763
https://github.com/bpfkorea/agora/pull/1764
https://github.com/bpfkorea/agora/pull/1765
https://github.com/bpfkorea/agora/pull/1766
https://github.com/bpfkorea/agora/pull/1767
https://github.com/bpfkorea/agora/pull/1770
https://github.com/bpfkorea/agora/pull/1771

And @hewison-chris will remove the signature duplication in https://github.com/bpfkorea/crypto/pull/20

I think we can consider this closed. Since they implicitly convert to one another, it's not a big deal if we have usages of Pair. And the extra "Seed" was removed in #1786 . The duplication of random was addressed in #1785 and the last part (fromSeed) will be fixed when the new WK keys are generated.


Multiple calls to denops#plugin#wait_async()

If you call denops#plugin#wait_async() multiple times on startup, n calls will be executed using the arguments used in the last call.
The minimum configuration is here.
https://github.com/uga-rosa/denops-issue-wait-async
expect
['bar']
['baz']
[denops] (issue) bar
[denops] (issue) baz

actual
['bar']
['baz']
[denops] (issue) baz
[denops] (issue) baz

						*denops#plugin#wait_async()*
denops#plugin#wait_async({plugin}, {callback})
	Wait asynchronously until a {plugin} plugin is loaded and invoke a
	{callback}. It invokes the {callback} immediately when the {plugin}
	plugin is already loaded. If this function is called multiple times
	for same {plugin} plugin, callbacks registered for the plugin are
	called in order of registration. Note that the {callback} is called
	from |timer_start()| in any cases to keep consistent behavior.

Hm.

Reproduced.


[Concurrency] Fix two cases where tasks were signposted with %p.

Task pointers are not very useful for sigpost consumers. Send them task IDs instead, which are unique during a run. We mostly do this, but missed two places where we were still sending pointers.

@swift-ci please test and merge


fix portworx io priority parameter name [EN/KO/ZH]

duplicate of #21215 after signing cla
update io_priority to priority_io
see https://docs.portworx.com/portworx-install-with-kubernetes/storage-operations/create-pvcs/dynamic-provisioning/
Name: priority_io
Description: IO Priority: low|medium|high
Example: priority_io: “high”

@djbrown Thanks for the PR. Could you please split this into 3 PRs each addressing a different localization team?

I will split into three language-specific PRs


NIFI-6612: Considering parameter context permissions for context menu

NIFI-6612:

Updating context menu to only show the Parameters menu item when the user has the appropriate permissions.

@mcgilman thanks for the PR. Changes make sense. Code looks good. Tested and everything seems to work. I'm a +1. Merged to master.

@markap14 @rfellows Thanks for the reviews!


bug when run Google search

run with docker
ready - started server on <IP_ADDRESS>:3000, url: http://localhost:3000
TypeError: Cannot read properties of undefined (reading 'map')
at handler (/app/.next/server/pages/api/google.js:47:42)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.apiResolver (/app/node_modules/next/dist/server/api-utils/node.js:372:9)
at async NextNodeServer.runApi (/app/node_modules/next/dist/server/next-server.js:514:9)
at async Object.fn (/app/node_modules/next/dist/server/next-server.js:828:35)
at async Router.execute (/app/node_modules/next/dist/server/router.js:243:32)
at async NextNodeServer.runImpl (/app/node_modules/next/dist/server/base-server.js:432:29)
at async NextNodeServer.handleRequestImpl (/app/node_modules/next/dist/server/base-server.js:375:20)
at async /app/node_modules/next/dist/server/base-server.js:157:99
TypeError: Cannot read properties of undefined (reading 'map')
at handler (/app/.next/server/pages/api/google.js:47:42)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.apiResolver (/app/node_modules/next/dist/server/api-utils/node.js:372:9)
at async NextNodeServer.runApi (/app/node_modules/next/dist/server/next-server.js:514:9)
at async Object.fn (/app/node_modules/next/dist/server/next-server.js:828:35)
at async Router.execute (/app/node_modules/next/dist/server/router.js:243:32)
at async NextNodeServer.runImpl (/app/node_modules/next/dist/server/base-server.js:432:29)
at async NextNodeServer.handleRequestImpl (/app/node_modules/next/dist/server/base-server.js:375:20)
at async /app/node_modules/next/dist/server/base-server.js:157:99

Same at my docker installation:
framework-73b8966a3c579ab0.js:9 TypeError: Cannot read properties of undefined (reading 'length')
    at index-0237305ee427e816.js:1:33615
    at ab (framework-73b8966a3c579ab0.js:9:60917)
    at ud (framework-73b8966a3c579ab0.js:9:72803)
    at us (framework-73b8966a3c579ab0.js:9:72009)
    at i (framework-73b8966a3c579ab0.js:9:122857)
    at oO (framework-73b8966a3c579ab0.js:9:99114)
    at framework-73b8966a3c579ab0.js:9:98981
    at oF (framework-73b8966a3c579ab0.js:9:98988)
    at ox (framework-73b8966a3c579ab0.js:9:95740)
    at oS (framework-73b8966a3c579ab0.js:9:94295)

same here
023-07-17T06:25:36.260024055Z TypeError: Cannot read properties of undefined (reading '0')
2023-07-17T06:25:36.260058610Z     at handler (/app/.next/server/pages/api/google.js:144:32)
2023-07-17T06:25:36.260062958Z     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-07-17T06:25:36.260065613Z     at async Object.apiResolver (/app/node_modules/next/dist/server/api-utils/node.js:372:9)
2023-07-17T06:25:36.260069250Z     at async NextNodeServer.runApi (/app/node_modules/next/dist/server/next-server.js:514:9)
2023-07-17T06:25:36.260071394Z     at async Object.fn (/app/node_modules/next/dist/server/next-server.js:828:35)
2023-07-17T06:25:36.260074360Z     at async Router.execute (/app/node_modules/next/dist/server/router.js:243:32)
2023-07-17T06:25:36.260078778Z     at async NextNodeServer.runImpl (/app/node_modules/next/dist/server/base-server.js:432:29)
2023-07-17T06:25:36.260085160Z     at async NextNodeServer.handleRequestImpl (/app/node_modules/next/dist/server/base-server.js:375:20)
2023-07-17T06:25:36.260091301Z     at async /app/node_modules/next/dist/server/base-server.js:157:99

Same problem, who can fix it?


[WIP] basic Rust shell

This PR adds basic shell written in Rust to dprint-plugin-typescript.
CLI:
  dprint myfile1.ts myfile2.ts

  dprint --check myfile1.ts myfile2.ts

  dprint --config dprint.conf.json myfile1.ts myfile2.ts

Reading config from JSON is still TODO

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Tutorials nnvm compile tensorflow model failed

python from_tensorflow.py
Downloading elephant-299.jpg from https://github.com/dmlc/web-data/raw/master/tensorflow/models/InceptionV1/elephant-299.jpg...
Downloading classify_image_graph_def-with_shapes.pb from https://github.com/dmlc/web-data/raw/master/tensorflow/models/InceptionV1/classify_image_graph_def-with_shapes.pb...
Downloading imagenet_2012_challenge_label_map_proto.pbtxt from https://github.com/dmlc/web-data/raw/master/tensorflow/models/InceptionV1/imagenet_2012_challenge_label_map_proto.pbtxt...
Downloading imagenet_synset_to_human_label_map.txt from https://github.com/dmlc/web-data/raw/master/tensorflow/models/InceptionV1/imagenet_synset_to_human_label_map.txt...
WARNING:tensorflow:From from_tensorflow.py:85: init (from tensorflow.python.platform.gfile) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.gfile.GFile.
2018-12-04 16:22:27.337638: W tensorflow/core/framework/op_def_util.cc:355] Op BatchNormWithGlobalNormalization is deprecated. It will cease to work in GraphDef version 9. Use tf.nn.batch_normalization().
DecodeJpeg: It's a pass through, please handle preprocessing before input
Traceback (most recent call last):
File "from_tensorflow.py", line 118, in
sym, params = nnvm.frontend.from_tensorflow(graph_def, layout=layout)
File "/AI/tvm/nnvm/python/nnvm/frontend/tensorflow.py", line 1410, in from_tensorflow
sym, params = g.from_tensorflow(graph, layout, shape, outputs)
File "AI/tvm/nnvm/python/nnvm/frontend/tensorflow.py", line 1182, in from_tensorflow
shape_dict.update(shape)
TypeError: 'TensorShapeProto' object is not iterable

TypeError: 'TensorShapeProto' object is not iterable

Can you share python and tensorflow versions ?

python 2.7
tensorflow 1.12.0

not,

@jon-soc  Can you to check below patch for this issue ?
https://github.com/srkreddy1238/tvm/commit/6e6ac97924c238e367617a0036b71b0befb8a5a4


SVG stroke-width with a percentage uses the width instead of the diagonal over sqrt(2)

https://svgwg.org/svg2-draft/painting.html#StrokeWidth

Example: <svg width="100" height="50" xmlns="http://www.w3.org/2000/svg"><rect x="15" y="15" width="70" height="20" fill="none" stroke="#def" stroke-width="10%"/><rect x="15" y="15" width="70" height="20" fill="none" stroke="#fac" stroke-opacity=".6" stroke-width="10"/></svg>
Conforming to the SVG specification, 10% should amount to ~7.9px, as shown below - the two rects don't perfectly align. This isn't the case if you test this with ThorVG viewer right now. There may be more attributes with this flaw.

ThorVG:

Yeah, this is wrong. The rectangles shouldn't align perfectly. You're taking 10% of the width, when stroke-width is not an x or y-based. The specification says that such attributes should be based on the diagonal length.

@MewPurPur @JSUYA The fix will be in v0.15.0. Thanks.


separate carousel media into separate object

Motivation
Follow-up to PR #201.
We should separate carousel media into its
own object and serialize/deserialize only the properties contained
in the "carousel_media" schema:

type
images
videos
users_in_photo

Solution
Created CarouselMedia to hold both "images" and "videos". The "type"
field is used to differentiate "image" from "video". This approach
was chosen for its flexibility and simplicity.

Changes Unknown when pulling 08b353c3a2755f1ffa83745a56cfb82378f14db6 on abargnesi:improve-carousel-media-model into ** on sachin-handiekar:master**.

@jcodagnone what do you think?

Sounds good!


TypeError: attr.setKey is not a function

Environment

Operating System: Darwin
Node Version:     v16.15.0
Nuxt Version:     0.0.0
Nitro Version:    -
Package Manager<EMAIL_ADDRESS>Builder:          webpack
User Config:      -
Runtime Modules:  -
Build Modules:    -

Reproduction
I just change the primaryKey name. And start getting this error. Now, I changed the name of Model from Pagination to Paginate, everything is working fine. There must be some caching strategy that is causing this bug.
Describe the bug
TypeError: attr.setKey is not a function
    at Pagination.$fillField (index.mjs:1609:98)
    at Pagination.$fill (index.mjs:1586:27)
    at new Model (index.mjs:1383:18)
    at new Pagination (Pagination.js:4:16)
    at Pagination.$newInstance (index.mjs:1542:12)
    at Query.checkAndGetSTI (index.mjs:749:70)
    at Query.hydrate (index.mjs:738:93)
    at Query.saveElements (index.mjs:643:120)
    at Query.save (index.mjs:632:13)
    at Repository.save (index.mjs:966:25)

Getting the above error.  The model is as shown below:
import { Model } from "pinia-orm";
import { UidCast } from "pinia-orm/dist/uuid/v1";

export default class Pagination extends Model {
  static entity = "paginations";
  static primaryKey = "repoName";
  static fields() {
    return {
      id: this.attr(""),
      repoName: this.attr(""),
      indexOrder: this.attr(""),
      nextPage: this.attr(""),
    };
  }
  static casts() {
    return {
      id: UidCast,
    };
  }
}

At first, it was working fine and then it start throwing this error. Not sure what is causing the error.
Additional context
If there is some caching strategy, we can remove the cache on server restart or on some sort of watchdog event.
Logs
No response

Would you provide a reproduction? 🙏

@MHassanSaqib I am closing this now. Feel free to reopen if this bug still happens and is reproducable. Thank you.


Cannot add a new tag to proposition

Browser : Chrome : Version 54.0.2840.98 (64-bit)
Testing : local deploy on production settings
Problem : I cannot create new tag and add them to the proposition but I can add existing tags in the system.
Screen capture video : file name "Cannot create and add new tag" https://virgiledeville.cozycloud.cc/public/files/folders/824b99e06bd03a9470d6078a4357d8d5

I see that you're using the Colombia database, the data there could have deprecated features. Have you tried with a new instance, blank db (meteor reset)?
Also, can you drag tags there?

Hey,

Did a sync with last commits
Did meteor reset
Tryied to create tags

--> Still not working.
However with Colombia's db I can drag existing tags.
If someone can come up with a patch, would be great!

instead of click the plus button, use enter key.
We should add this as UX improvement

Okay, just had feedback from @LucasIsasmendi
It is more of UX problem rather than a bug. I was writing the tag and clicking on + rather than hitting enter
video file : "ux problem adding tag" https://virgiledeville.cozycloud.cc/public/files/folders/824b99e06bd03a9470d6078a4357d8d5

I confirm the confusing behavior, and I think both UX and bug (or at least critical)` labels apply.
In the eyes of an uninitiated user, this is a fatal UX issue. I mean this is a critical issue to mark to a release milestone so as to not forget it before release.

By the way, if you wish to delegate handling bothersome issue curating, may I suggest my services? It's what I do best. Actually, I tried to solve this issue, and I can safely say that this is the only thing I can do here for now.

Tags have been replaced by hashtags. Hence closing.


$interval test failing

@KevinBatdorf interval test failing for some reason. Also sometimes it happens on my local. Probably there is something related with timeouts
Originally posted by @muzafferdede in https://github.com/alpine-collective/alpine-magic-helpers/issues/42#issuecomment-731968098

I believe we fixed this by increasing the test wait time

I believe we fixed this by increasing the test wait time


runtime: failed to create new OS thread (have 40325 already

swarm manager crash . the log:
Apr 27 17:51:43 worker-x-x-x-121 swarm[11729]: runtime: failed to create new OS thread (have 40325 already; errno=11)
Apr 27 17:51:43 worker-x-x-x-121 swarm[11729]: fatal error: newosproc
Apr 27 17:51:43 worker-x-x-x-121 swarm[11729]: runtime stack:
Apr 27 17:51:43 worker-x-x-x-121 swarm[11729]: runtime.throw(0xfeaa30, 0x9)
Apr 27 17:51:43 worker-x-x-x-121 swarm[11729]: /usr/local/go/src/runtime/panic.go:530 +0x90
Apr 27 17:51:43 worker-x-x-x-121 swarm[11729]: runtime.newosproc(0xc9010c2800, 0xc8ffff1fc0)
Apr 27 17:51:43 worker-x-x-x-121 swarm[11729]: /usr/local/go/src/runtime/os1_linux.go:149 +0x18c
Apr 27 17:51:43 worker-x-x-x-121 swarm[11729]: runtime.newm(0x11c73d0, 0xc820043500)
Apr 27 17:51:43 worker-x-x-x-121 swarm[11729]: /usr/local/go/src/runtime/proc.go:1513 +0x135

swarm info:
worker-x-x-x-121 system # docker -H :4000 info
Containers: 1524
 Running: 1512
 Paused: 0
 Stopped: 12
Images: 541
Server Version: swarm/1.2.0
Role: replica
Primary: x.x.x.122:4000
Strategy: spread
Filters: health, port, dependency, affinity, constraint
Nodes: 12
 worker-x-x-x-111: x.x.x.111:2375
  └ Status: Healthy
  └ Containers: 142
  └ Reserved CPUs: 0 / 42
  └ Reserved Memory: 70 GiB / 132.2 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=4.4.1-coreos, operatingsystem=CoreOS 962.0.0 (Coeur Rouge), storagedriver=overlay
  └ Error: (none)
  └ UpdatedAt: 2016-04-27T11:23:03Z
  └ ServerVersion: 1.10.1
 worker-x-x-x-112: x.x.x.112:2375
  └ Status: Healthy
  └ Containers: 141
  └ Reserved CPUs: 0 / 42
  └ Reserved Memory: 70 GiB / 132.2 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=4.4.1-coreos, operatingsystem=CoreOS 962.0.0 (Coeur Rouge), storagedriver=overlay
  └ Error: (none)
  └ UpdatedAt: 2016-04-27T11:23:03Z
  └ ServerVersion: 1.10.1
 worker-x-x-x-113: x.x.x.113:2375
  └ Status: Healthy
  └ Containers: 141
  └ Reserved CPUs: 0 / 42
  └ Reserved Memory: 70 GiB / 132.2 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=4.4.1-coreos, operatingsystem=CoreOS 962.0.0 (Coeur Rouge), storagedriver=overlay
  └ Error: (none)
  └ UpdatedAt: 2016-04-27T11:23:03Z
  └ ServerVersion: 1.10.1
 worker-x-x-x-115: x.x.x.115:2375
  └ Status: Healthy
  └ Containers: 140
  └ Reserved CPUs: 0 / 42
  └ Reserved Memory: 70 GiB / 132.2 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=4.4.1-coreos, operatingsystem=CoreOS 962.0.0 (Coeur Rouge), storagedriver=overlay
  └ Error: (none)
  └ UpdatedAt: 2016-04-27T11:23:03Z
  └ ServerVersion: 1.10.1
 worker-x-x-x-116: x.x.x.116:2375
  └ Status: Healthy
  └ Containers: 138
  └ Reserved CPUs: 0 / 42
  └ Reserved Memory: 70 GiB / 132.2 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=4.4.1-coreos, operatingsystem=CoreOS 962.0.0 (Coeur Rouge), storagedriver=overlay
  └ Error: (none)
  └ UpdatedAt: 2016-04-27T11:23:03Z
  └ ServerVersion: 1.10.1
 worker-x-x-x-117: x.x.x.117:2375
  └ Status: Healthy
  └ Containers: 143
  └ Reserved CPUs: 0 / 42
  └ Reserved Memory: 70 GiB / 132.2 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=4.4.1-coreos, operatingsystem=CoreOS 962.0.0 (Coeur Rouge), storagedriver=overlay
  └ Error: (none)
  └ UpdatedAt: 2016-04-27T11:23:03Z
  └ ServerVersion: 1.10.1
 worker-x-x-x-123: x.x.x.123:2375
  └ Status: Healthy
  └ Containers: 130
  └ Reserved CPUs: 0 / 42
  └ Reserved Memory: 70 GiB / 132.2 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=4.4.1-coreos, operatingsystem=CoreOS 962.0.0 (Coeur Rouge), storagedriver=overlay
  └ Error: (none)
  └ UpdatedAt: 2016-04-27T11:23:03Z
  └ ServerVersion: 1.10.1
 worker-x-x-x-124: x.x.x.124:2375
  └ Status: Healthy
  └ Containers: 165
  └ Reserved CPUs: 0 / 42
  └ Reserved Memory: 69.5 GiB / 132.2 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=4.4.1-coreos, operatingsystem=CoreOS 962.0.0 (Coeur Rouge), storagedriver=overlay
  └ Error: (none)
  └ UpdatedAt: 2016-04-27T11:23:03Z
  └ ServerVersion: 1.10.1
 worker-x-x-x-125: x.x.x.125:2375
  └ Status: Pending
  └ Containers: 0
  └ Reserved CPUs: 0 / 42
  └ Reserved Memory: 0 B / 132.2 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=4.4.1-coreos, operatingsystem=CoreOS 962.0.0 (Coeur Rouge), storagedriver=overlay
  └ Error: (none)
  └ UpdatedAt: 2016-04-27T11:22:46Z
  └ ServerVersion: 1.10.1
 worker-x-x-x-126: x.x.x.126:2375
  └ Status: Healthy
  └ Containers: 112
  └ Reserved CPUs: 0 / 42
  └ Reserved Memory: 72.5 GiB / 132.2 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=4.4.1-coreos, operatingsystem=CoreOS 962.0.0 (Coeur Rouge), storagedriver=overlay
  └ Error: (none)
  └ UpdatedAt: 2016-04-27T11:23:03Z
  └ ServerVersion: 1.10.1
 worker-x-x-x-127: x.x.x.127:2375
  └ Status: Healthy
  └ Containers: 134
  └ Reserved CPUs: 0 / 42
  └ Reserved Memory: 70 GiB / 132.2 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=4.4.1-coreos, operatingsystem=CoreOS 962.0.0 (Coeur Rouge), storagedriver=overlay
  └ Error: (none)
  └ UpdatedAt: 2016-04-27T11:23:03Z
  └ ServerVersion: 1.10.1
 worker-x-x-x-129: x.x.x.129:2375
  └ Status: Healthy
  └ Containers: 138
  └ Reserved CPUs: 0 / 42
  └ Reserved Memory: 70 GiB / 132.2 GiB
  └ Labels: executiondriver=native-0.2, kernelversion=4.4.1-coreos, operatingsystem=CoreOS 962.0.0 (Coeur Rouge), storagedriver=overlay
  └ Error: (none)
  └ UpdatedAt: 2016-04-27T11:23:03Z
  └ ServerVersion: 1.10.1
Plugins:
 Volume:
 Network:
Kernel Version: 4.4.1-coreos
Operating System: linux
Architecture: amd64
CPUs: 462
Total Memory: 1.42 TiB
Name: worker-x-x-x-121
Experimental: true

swarm version:
system # /opt/bin/swarm --version
swarm version 1.2.0 ()

@shenshouer can you provide more info about how you created your containers, and what you need to do to produce the crash?

@shenshouer Besides nishant's questions, do you get call stack of all goroutines from the panic? We want to take a look where the goroutines are from. If you don't get that, there is a debug option to get call stack from a running manager.  Can you start swarm manager with debug option (different from loglevel) like swarm --debug manage ...? You can use the following command to print goroutine stack curl swarm-manager:port/debug/pprof/goroutine?debug=1. It'd be very helpful to get the call stack after you apply your workload on the system.

Sorry, this problem appear in our production environment, So I cann`t do more debug. And this problem rarely appears. I close this issue first! If I get the same problem, I will show you the log and reopen this. Thanks!

There's a artical in Chinese reporting this problem that too many threads are created, and after debugging, the author sucessfully located the problem as: setting socket options in setTCPUserTimeout(), after a call to conn.File(), removes the NON_BLOCK flags on the socket, so the socket starts to use blocking mode, which completely consumes a thread.
https://zhuanlan.zhihu.com/p/22474724
I think the issue is important and should be fixed ASAP


Sensors configurations for reproducing baseline_ppo

Hello, this paper gives training results with several sensors-setting at TABLE2. I want reproduce it on Gibson but I found that in ppo_pointnav.yaml there's an item:
SENSORS: ["DEPTH_SENSOR"]

And if I change it to "RGB_SENSOR", a connectionerror occurs. While in pointnav_gibson.yaml, I found another item
SENSORS: ["RGB_SENSOR"] # for agent_0

I'm confused and I don't know what the sensors actually mean since there's an apparent difference between them. How should I  modify the configs to reproduce the paper's baseline results on RGB_SENSORS?

The SENSORS field in the habitat-baselines config overrides the agent sensors.  How much GPU memory do you have?  The RGB sensor requires loading textures, so my guess is that you are running out of GPU memory and the simulator is crashing.  For Gibson RGB, each instance of the sim needs ~1.5 GB of GPU memory.

Thanks u so much. I’m using 2060super with 8G gpu-memory(I mistakenly thought it was a small job). So I guess there is a instance of sim for each python thread during the train?

The SENSORS field in the habitat-baselines config overrides the agent sensors. How much GPU memory do you have? The RGB sensor requires loading textures, so my guess is that you are running out of GPU memory and the simulator is crashing. For Gibson RGB, each instance of the sim needs ~1.5 GB of GPU memory.

Thanks u so much. I’m using 2060s with 8G gpu-memory(I mistakenly thought it was a small job). So I guess there is a instance of sim for each python thread during the train?

Yep, there is an instance of the sim in each process