[SPARK-28699][CORE][BACKPORT-2.3] Fix a corner case for aborting indeterminate stage

What changes were proposed in this pull request?
Change the logic of collecting the indeterminate stage, we should look at stages from mapStage, not failedStage during handle FetchFailed.
Why are the changes needed?
In the fetch failed error handle logic, the original logic of collecting indeterminate stage from the fetch failed stage. And in the scenario of the fetch failed happened in the first task of this stage, this logic will cause the indeterminate stage to resubmit partially. Eventually, we are capable of getting correctness bug.
Does this PR introduce any user-facing change?
It makes the corner case of indeterminate stage abort as expected.
How was this patch tested?
New UT in DAGSchedulerSuite.
Run below integrated test with local-cluster[5, 2, 5120], and set spark.sql.execution.sortBeforeRepartition=false, it will abort the indeterminate stage as expected:
import scala.sys.process._
import org.apache.spark.TaskContext

val res = spark.range(0, 10000 * 10000, 1).map{ x => (x % 1000, x)}
// kill an executor in the stage that performs repartition(239)
val df = res.repartition(113).map{ x => (x._1 + 1, x._2)}.repartition(239).map { x =>
  if (TaskContext.get.attemptNumber == 0 && TaskContext.get.partitionId < 1 && TaskContext.get.stageAttemptNumber == 0) {
    throw new Exception("pkill -f -n java".!!)
  }
  x
}
val r2 = df.distinct.count()

Authored-by: Yuanjian Li<EMAIL_ADDRESS>Signed-off-by: Wenchen Fan<EMAIL_ADDRESS>(cherry picked from commit 0d3a783cc57ed09650ee31851a19728d8f16cd0c)
Signed-off-by: Yuanjian Li<EMAIL_ADDRESS>

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/14458/
Test PASSed.

Test build #109394 has started for PR 25508 at commit a4d7360.

Test build #109394 has finished for PR 25508 at commit a4d7360.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

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

Retest this please.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/14486/
Test PASSed.

Test build #109422 has started for PR 25508 at commit a4d7360.

Test build #109422 has finished for PR 25508 at commit a4d7360.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

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

Could you fix the UT failure?

org.apache.spark.scheduler.DAGSchedulerSuite.SPARK-23207: retry all the succeeding stages when the map stage is indeterminate

Yeah, I'm looking into this, seems the behavior is not the same between 2.3 and 2.4.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/14538/
Test PASSed.

Test build #109480 has started for PR 25508 at commit b5413e7.

Test build #109480 has finished for PR 25508 at commit b5413e7.

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

Merged build finished. Test PASSed.

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

cc @cloud-fan

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/14599/
Test PASSed.

Test build #109542 has started for PR 25508 at commit b7b7150.

Supply UT for this cherry-pick in the last commit.

Thank you for update this, too. @xuanyuanking .
cc @kiszk

Test build #109542 has finished for PR 25508 at commit b7b7150.

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

Merged build finished. Test PASSed.

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

thanks, merging to 2.3!


Fix: Enable IPv6 channel on Windows

We can add -DFEAT_IPV6 always since Windows XP and later have getaddrinfo() certainly.

Unfortunately, this causes a link error with inet_ntop() which is only available from Vista.
Not sure why this couldn't detected by CI.

Hi,
On Fri, Apr 17, 2020 at 9:23 PM K.Takata<EMAIL_ADDRESS>wrote:

Unfortunately, this causes a link error with inet_ntop() which is only
available from Vista.
Not sure why this couldn't detected by CI.

I ran into this a few minutes ago. This link error is resolved if WINVER is
set
to 0x0600. In the Appveyor builds, WINVER is set to 0x0600.

Yegappan


Add MailPLuginFix v1.2.2

Checklist

[x] The commit message includes the cask’s name and version.
[x] brew cask audit --download mailpluginfix is error-free.
[x] brew cask style --fix mailpluginfix left no offenses.

Additionally, when adding a new cask:

[x] Checked there are no open pull requests for the same cask.
[x] Checked there are no closed issues where that cask was already refused.
[x] When naming the cask, followed the token reference.
[x] brew cask install {{cask_file}} worked successfully.
[x] brew cask uninstall {{cask_file}} worked successfully.

Thank you for the contribution. It needed some fixes, so they were made in 627322f63c70ec103c8f2bd4982f3761be52f607. Your contribution is still included (and still credited to you), with the appropriate modifications. Please feel free to ask about any of the changes.


imgpkg tag list --digests as False by Default

imgpkg tag list features a --digests option that is described as Include digests (default true). Since the option is true by default, it will always be true regardless of whether or not it is specified. This calls into question whether the flag should exist at all or whether it should be false by default.
Edit
Repurposing this issue around changing the default to false for --digests for imgpkg tag list as documented in this comment.

Closing, as cobra requires imgpkg tag list -i ... --digests=false with an explicit = included with false.

Reopening this to have it be a discussion around whether to have --digests as false by default as it can be expensive to pull down several digests. So for images with many tags, it might be better to not pull down digests unless asked for by the user.

Can I suggest a different name for this flag:
--enable-digests
--with-digests
--get-digests
Maybe this will help clear the usage of this flag and would change the flag type to be a boolean flag. If it is present it enables the retrieval of the digests if it is not present it would not retrieve the digests

@joaopapereira within carvel we tried to have consistent noun based flags to indicate feature. value of the flag determines whether it's enabled or disabled. (some of the thinking about that is that flag name should not influence the value of the flag. it's also not great to have multiple flags --disable-blah, --enable-blah)

That is good background information.
My assumption was that we would have a default behavior and we would just have flags that would change that behavior.
In the current example, the behavior by default would be not to retrieve digests, and we would have a flag to signal that we want to retrieve them.
Of course, if we needed a flag that could have multiple values (not boolean) then I would definitely use a flag like --blah=10.

Consider doing some upfront research to have some time estimates as to how long it takes to get digests. Use this information to form a more educated opinion on what the UX should be.

Consider doing some upfront research to have some time estimates as to how long it takes to get digests. Use this information to form a more educated opinion on what the UX should be.

Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this bug fixed as soon as possible"
👎 "There are more important bugs to focus on right now"
We are also happy to receive and review Pull Requests if you want to help fix this issue.

i think we should also add sibling command, something like imgpkg tag resolve foo:v1.0.0 to return digested ref so that users are able to get an immutable reference (even though this overlaps with kbld, i think it makes sense since we are providing imgpkg tag list)

https://github.com/vmware-tanzu/carvel-imgpkg/releases/tag/v0.17.0 included change to "tag list" and added "imgpkg tag resolve".


Skip tests affected by aspnet/Mvc#5794

FYI only because this is breaking the build

On second thought, looks like more fundamental aspects of Razor aren't working correctly at the moment. I've now Skipped enough for builds to succeed. But, it may be better to keep this code out of coherent builds.
@Eilon Skip tests today? Or, wait for a fix or fixes (tomorrow?)?

Eh, let's have @rynowak look at this first thing Monday morning. Not worried about a broken test for a few hours just yet 😄

@rynowak and @pranavkm have done a real fix for #5794.


autofuzz: Filter out unnamed classes

Classes without a canonical name cannot be instantiated by reproducers and thus also shouldn't be used by Autofuzz. If we find constructing them useful, we should instead look for factory methods.
Fixes #619

@freedom1b2830 Could you check whether this PR fixes the issue? It is rather difficult to test with an integration test.

@fmeum  how to get the version with "fix" ?

@freedom1b2830 I ran the release pipeline for this branch. You should be able to download an archive from https://github.com/CodeIntelligenceTesting/jazzer/suites/10945904869/artifacts/553851165 that contains Jazzer builds for all architectures.

not fixed (
./jazzer --cp=oneclicklayout.jar --autofuzz='y.G.F.C.U$1::ā(y.G.F.C.G,y.G.F.C.G,y.G.F.G)' --autofuzz_ignore=java.lang.NullPointerException

oneclicklayout.jar.zip

The error states that the class y.G.t could not be found and that seems to be correct, as oneclicklayout.jar does not contain it. Am I misunderstanding something?


Propagate turnout and throttle events to WiThrottle

JMRI reports changes to turnout statuses, power statuses and throttle events to WiThrottle.
Attaching Wireshark captures
wireshark captures.zip

can you explain it bit more detailed?

Hi. I've looked at what JMRI sends to WiThrottle and realized that it sends throttle data and turnout change data to mobile. So in future I need to implement it as well. Though I'm not sure when since it would require major change in the architecture of the whole firmware.


Extract runWatch into separate module

Requirements
As per @juergba’s suggestion in #3912 we extract the watchRun code into its separate module to prepare for #3912.
Description of the Change
We move runWatch from lib/cli/run-helpers to lib/cli/run-watch. We also don’t use default values for the options anymore. The defaults are handled by runMocha and we want to avoid the default values getting out of sync. No other code has changed.

Coverage increased (+0.07%) to 92.419% when pulling 0d8f8dac6dcff7adbce76f0c57aee34c202dd189 on geigerzaehler:extract-watch-run into a7581542c879722986afecaa578e3734be3045ed on mochajs:master.

I addressed all your comments, @juergba.

@geigerzaehler feel free to consider anything of latest comments, otherwise your commits stand so far.
IMO: it's a 1:1 extraction of watchRun as preparation for further PRs, so it's far to early for nitting games.

I addressed all the comments, rebased, and squashed.

@juergba, again with the merge with review comments still ongoing?

@plroebuck maybe it's time to talk about reasonable comments, coding style questions, nit picking blocking, editing other people comments and OCD. We can do that in public, or by private communication.


Why use PostgresqlBuilder as a base class for RedshiftBuilder ?

Any particular reasons why you use PostgresqlBuilder as a base class for RedshiftBuilder while using RDBMSBuilder for others ?

Thank you so much for point it out. This was my mistake when I restructured the code.


Create declarative macro which helps intellij recognize individual test cases

/// FIXME:
/// Create individual test cases which are recognized by intellij as tests, similar to the ide!()
/// macro, but for individual test cases.
///
/// ```rust
///
/// #[parameterized(
///     a = { 1, 2, 3 },
///     b = { 5, 6, 7},
/// )]
/// mktest! le_test(a: i32, b: i32) {
///     assert!(a < 4 && b > 4);
/// }
/// ```
///
/// generates:
///
/// ```rust
///
/// mod le_test {
///     use super::*;
///
///     ide!();
///
///     #[parameterized(
///         a = { 1, 2, 3 },
///         b = { 5, 6, 7},
///     )]
///     fn le_test(a: i32, b: i32) {
///         assert!(a < 4 && b > 4);
///     }
/// }
/// ```

experiment:

[https://github.com/foresterre/parameterized/commit/c873e7ac15bc6eebb6ab03188369c43701ecc144](declarative macro for which wraps ide! construct, test inputs and test cases)

Doesn't work in intellij 2019.x with Intellij Rust + latest macro expansion engine.


Add alpn extension negative tests

Problem:
Need negative tests for application_layer_protocol_negotiation extension
Proposed Solution:
Add negative unit tests for CT (Certificate), CR (CertificateRequest), NST (NewSessionTicket), and HRR (HelloRetryRequest)
https://tools.ietf.org/html/rfc8446

This was addressed by https://github.com/awslabs/s2n/issues/1751.
The common extensions code ensures extensions only appear on the message types they're allowed on. alpn is only allowed on the CH and EE in TLS1.3: https://github.com/awslabs/s2n/blob/master/tls/extensions/s2n_extension_type_lists.c#L85


epochal-restart-rebuilder

This includes a new rebuild-nemo tool that can be used to recreate restart from a different run

@oloapinivad, can I merge it?

I think so, if this is the one configuration you tested and it works! We could extend it so that we can pass the number of cores from the parser, but it is not urgent


Activator not installable

Typesafe's Activator is not installable from SDKMAN. I see the following error:
% sdk install activator

Downloading: activator 1.3.10

In progress...

#######################################                                   54.4%
curl: (56) SSLRead() return error -36
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /Users/codematix/.sdkman/archives/activator-1.3.10.zip or
        /Users/codematix/.sdkman/archives/activator-1.3.10.zip.zip, and cannot find /Users/codematix/.sdkman/archives/activator-1.3.10.zip.ZIP, period.
remove /Users/codematix/.sdkman/archives/activator-1.3.10.zip? y

Stop! The archive was corrupt and has been removed! Please try installing again.

I am trying this on a macOS Sierra (10.12) with SDKMAN 5.1.4+78

Ok, so I ran the command:
% sdk flush archives
       5 archive(s) flushed, freeing 124M	/Users/codematix/.sdkman/archives.

And then tried to install Activator. This time around, it succeeded. Closing this this issue.

By the looks of it, I think your connection just hung on installation.


Video thumbnail missing in PDF

Hey, is there any way to display thumbnails in the PDF output of a sphinx project?

We were using this format of adding YouTube videos: https://docs.beagleboard.org/latest/intro/contribution/rst-cheat-sheet.html#youtube-videos
But now we want to switch from that bulky format to the sleek format sphinxcontrib-youtube provides. I am willing to work on this improvement but bit new to all this, if possible please share some material to help with the development.

I am not sure but this PR seems related to the issue we are facing.
https://github.com/sphinx-contrib/youtube/pull/43

The PDF output comes via the LaTeX backend. This plugin emits a latex command for each video, and the default implementation of that command just drops in the link that you show. It's up to the user to provide a different implementation to render the videos how they want to. The documentation contains an example of inserting a thumbnail that you could customise for your own use: https://sphinxcontrib-youtube.readthedocs.io/en/latest/usage.html#latex

@dham Thanks a lot for the reference, I managed to fix the issue.
Here is the commit link if anybody else faces the same problem,
https://openbeagle.org/lorforlinux/docs.beagleboard.io/-/commit/6949b085ea3263648fb6e8852c8362bb2065038b


[Bug]  Accented characters not working

Firstly, I would like to thank you for this great project.
I'm having problems typing accented characters such as "é", "ã", or "ô" using a PT-BR keyboard (the layout is named "ABNT2"). I can type those characters by repeatedly pressing the accent key + letter key in rapid succession, but even this way, I only get maybe two correct letters out of ten. Attempting to type at a normal speed has failed to produce even a single letter correctly. This issue occurs in both Insert and Resident modes, requiring me to completely exit the application when I need to type in Portuguese.
Steps to reproduce:
1- Simply attempt to type an accented character using a Portuguese keyboard layout such as ABNT2. To obtain an accented character under normal circumstances, you only need to press the accent key and the letter key in succession.
Environments
Windows 10 Home Edition
Version 22h2
Build 19045.2846
64bits
win-vind v 5.0.2
Installed by winget

So, I tried to program some macros in insert mode using "imap" to access the accented characters. However, when I put any of those in an external macro in my .vindrc (e.g. imap <alt><alt> {é}), win-vind crashes:

I am trying to reproduce this issue.

If you can't type accented characters just by running win-vind, then the problem may be similar to #187. Perhaps the delay is caused by the processing speed of the low-level keyboard hook.
The imap crash was fixed in #78, #151.


Statically ingest compiler-rt into builtins

Now the platform doesn't have to link it if the platform doesn't depend on it. It also fixes some dependency issue that the surgical linker was hitting. Also, simplifies a number of workarounds.

Looking at this again. I think it works, but it somehow breaks the surgical linker...


[fusesoc] some prim cells cannot be generated with fusesoc 0.2

Hi
After running "pip3 install --user -r python-requirements.txt" my fusesoc was updated to 0.2
Now fusesoc fails generating some of the prim cells.
Implementations for primitive clock_inv: xxxxxx, generic
Inspecting generic module .../opentitan/hw/ip/prim_generic/rtl/prim_generic_clock_inv.sv
'<' not supported between instances of 'BranchNode' and 'BranchNode'
Verible parser failed, using regex fallback instead.
Creating SystemVerilog module for abstract primitive
Abstract primitive written to /tmp/lowrisc_prim_clock_inv-impl_00m37hsea/prim_clock_inv.sv
Creating core file for primitive clock_inv.
Core file written to /tmp/lowrisc_prim_clock_inv-impl_00m37hsea/prim_clock_inv.core
INFO: Generating lowrisc:prim:clock_mux2-impl:0

technology prim name was replaced by xxxxxx

More ever: There's no error message, and fusesoc exit with 0 status. However prim is not generated at all.
This doesn't happen with fusesoc 0.1.
@NoamGottlieb
@Jacob-Levy

@arnonsha what python version are you running?
Because I think the process you're describing here is run every night for CI, so I am a little surprised there would be something wrong.
Just to confirm, are you seeing this error for every primitive?  Or just this one specifically?

To bypass this I returned back to fusesoc 0.1

The error message here means "You don't have verible installed, so we're falling back to a regex parser". I think you'll find that everything works despite the message. (It does here at any rate: I keep meaning to install Verible and haven't got around to it)

instructions on how to install the correct version of Verible can be found here:
https://docs.opentitan.org/doc/getting_started/#step-6a-install-verible-optional

Thanks but I do have verible installed. From the same shell:

verible-verilog-lint --version
v0.0-2135-gb534c1fe
Commit  2022-04-07 12:23:30 -0700
Built   2022-04-07T19:52:54Z

python3 --version
Python 3.8.1

The error message here means "You don't have verible installed, so we're falling back to a regex parser". I think you'll find that everything works despite the message. (It does here at any rate: I keep meaning to install Verible and haven't got around to it)

No it doesn't end up well. This is why I opened this issue. There no "generated" directory under build/lowrisc_systems_chip_earlgrey_asic_0.1/syn-icarus/
@tjaychen , This is the list of all failing prim cells:
INFO: Generating lowrisc:prim:clock_gating-impl:0
INFO: Generating lowrisc:prim:clock_inv-impl:0
INFO: Generating lowrisc:prim:flop-impl:0
INFO: Generating lowrisc:prim:flop_en-impl:0
INFO: Generating lowrisc:prim:pad_wrapper-impl:0
INFO: Generating lowrisc:prim:ram_1p-impl:0
INFO: Generating lowrisc:prim:ram_2p-impl:0
INFO: Generating lowrisc:prim:rom-impl:0
INFO: Generating lowrisc:prim:flash-impl:0
INFO: Generating lowrisc:prim:otp-impl:0
For all other prims there is no message, however I don't see them in the generated dir (and as I wrote above, there is no such dir)

The error message here means "You don't have Verible installed, so we're falling back to a regex parser". I think you'll find that everything works despite the message. (It does here at any rate: I keep meaning to install Verible and haven't got around to it)

@rswarbrick, why do you think this is Verible ? My script doesn't run Verible at all. Also I don't see Verible being called in primgen.py.

Ok, thanks. I don't think this is enough to figure out what happened. It looks like something is broken in the system (even if your environment is messed up, we should still make sure the relevant error message makes it out to top-level).
Since I understand you can't easily share log files, I think you'll have to do a bit of debugging. What I'd suggest is that you start by adding an assert 0 to the script that is supposed to generate one of the primitives that is missing. With fusesoc ot-v0.1, this should fail (hopefully!) and spit out some message that you can see. Then try fusesoc ot-v0.2. Do you see the same error message? Then you'll have to do the usual "bisection" to figure out what has come unstuck.
If this is something you absolutely can't debug yourself, I guess you'll have to ask a Google engineer for help: I understand that they have signed the relevant NDAs to be able to see more and help you further. But that's probably a discussion to have out-of-band.

So I added the "assert 0" to primgen.py .
I get the same results with both 0.1 and 0.2:
INFO: Preparing lowrisc:systems:ast:0.1
INFO: Preparing lowrisc:systems:top_earlgrey:0.1
INFO: Preparing lowrisc:systems:chip_earlgrey_asic:0.1
INFO: Generating lowrisc:prim:prim_pkg-impl:0.1
Traceback (most recent call last):
  File ".../opentitan/hw/ip/prim/util/primgen.py", line 6, in <module>
    assert 0
AssertionError
ERROR: Setup failed : "python3 .../opentitan/hw/ip/prim/util/primgen.py .../opentitan/hw/foundry/build/lowrisc_systems_chip_earlgrey_asic_0.1/syn-icarus/generated/lowrisc_prim_prim_pkg-impl_0.1/impl_input.yml" exited with an error code. See stderr for details.

Where do I go from here ?

Ok, great. So you know that primgen.py is running. Now you have to figure out what has changed between the two versions of fusesoc. There might be clever approaches, but I'd start by moving the assert 0 to where we open an output file and then moving it up the call tree until I could figure out what has come unstuck.

@tjaychen ,
The CI on every PR doesn't use any of the foundry prim cells. Maybe that is why we don't see it happening there.
Can you please check the command below at your end in foundry directory with fusesoc 0.2 ?
fusesoc --monochrome --log-file fusesoc.log --cores-root ../.. run --no-export --target=syn --tool icarus --setup lowrisc:systems:chip_earlgrey_asic:0.1
Do you see it at your end ?

Running this command with foundry seems to work on our end based on current master.
You mentioned that this only fails for specific prims... which ones are failing exactly?
Also, can you post the output of fusesoc --version?

> fusesoc --version
0.2

You can see the list of prims returning the message in this comment above
Update:
fusesoc 0.1 also returns the messages and they are not the one to blame. SO this is not related to my problem.
After further analysis, I think I have found what's breaking my freeze script:
In fusesoc 0.2 there's no "generated" directory for the prim cells any more:
For example
fusesoc 0.1: build/lowrisc_systems_chip_earlgrey_asic_0.1/syn-icarus/generated/lowrisc_prim_ram_1p-impl_0/prim_ram_1p.sv
fusesoc 0.2: build/lowrisc_systems_chip_earlgrey_asic_0.1/src/lowrisc_prim_abstract_ram_1p_0/prim_ram_1p.sv
We need to discuss this @msfschaffner @tjaychen. This breaks the foundry freeze script.

Only if I don't use the "--no-export" flag. If the flag is not used prims are left in /tmp and I cannot rely on /tmp (shared resource with other users)
Unfortunately if I don't use this flag I will lose the original location of the sv files (I was asked to use this flag so all sv files would be read from their original path in the repo, and not from the build/src dir)
Why did fusesoc change this behavior ? Is this an intentional change or a bug ?
Is there a special reason why we need fusesoc 0.2 ?

@msfschaffner has a PR open to revert the tool for now. We don't want to get stuck forever, though, so please can you get stuff working at your end in the next couple of weeks? If you need specific help with how fusesoc works, feel free to reach out to me.
Michael: would you prefer to close this issue when #12874 lands, and open another "Nuvoton can't move to recent fusesoc" issue? Or would you prefer to keep this one open to track that?


400 bad request

Hello,
I'm having a problem; 400 bad request.
I already checked and double checked the settings in the security profile. First it was on https; now it's on http. Return address is the same as Allowed Origins .
We're sorry!
An error occurred when we tried to process your request. Rest assured, we're already working on the problem and expect to resolve it shortly.

400 Bad Request
The redirect URI you provided has not been whitelisted for your application. Please add your redirect URI in the 'Allowed Return URLs' section under 'Web Settings' for your Security Profile on Amazon Developer Portal.
Request Details
scope=alexa%3Aall
redirect_uri=http%3A%2F%2F<IP_ADDRESS>%3A5000%2Fcode
response_type=code
client_id=amzn1.application-oa2-client.c17b846ecfbc40a08b67bd7dcc102391
scope_data=%7B%22alexa%3Aall%22%3A+%7B%22productInstanceAttributes%22%3A+%7B%22deviceSerialNumber%22%3A+%22001%22%7D%2C+%22productID%22%3A+%22my_device%22%7D%7D

Direct after giving the details from the portal this comes to my terminal.

Object "=" is unknown, try "ip help".
[02/Aug/2016:18:26:06] ENGINE Listening for SIGHUP.
[02/Aug/2016:18:26:06] ENGINE Listening for SIGTERM.
[02/Aug/2016:18:26:06] ENGINE Listening for SIGUSR1.
[02/Aug/2016:18:26:06] ENGINE Bus STARTING
CherryPy Checker:
The Application mounted at '' has an empty config.
[02/Aug/2016:18:26:06] ENGINE Started monitor thread '_TimeoutMonitor'.
[02/Aug/2016:18:26:06] ENGINE Started monitor thread 'Autoreloader'.
[02/Aug/2016:18:26:06] ENGINE Serving on http://<IP_ADDRESS>:5000
[02/Aug/2016:18:26:06] ENGINE Bus STARTED

Does the 'Allowed Return URL' address have /code at the end, it should be a slightly different URL to the 'Allowed Origin'

Hello,
I have the same error.

Error Summary
400 Bad Request
The redirect URI you provided has not been whitelisted for your application. Please add your redirect URI in the 'Allowed Return URLs' section under 'Web Settings' for your Security Profile on Amazon Developer Portal.
Request Details
scope=alexa%3Aall
redirect_uri=http%3A%2F%2F<IP_ADDRESS>%3A3000%2Fcode
response_type=code
client_id=amzn1.application-oa2-client.1f12f17067fa44b9a149347afeb82449
scope_data=%7B%22alexa%3Aall%22%3A+%7B%22productInstanceAttributes%22%3A+%7B%22deviceSerialNumber%22%3A+%22001%22%7D%2C+%22productID%22%3A+%22my_device%22%7D%7D

I have change
Allowed Origins   to  http://localhost:3000/code
Allowed Return URLs   to http://localhost:3000/code
But still can't work.
Any idea for this problem?

AlexaPi doesn't use port 3000.  It uses either 5000 or 5050, depending on which version you're using.
Also, the only place "localhost" will work is if you're using the browser from within the Raspberry Pi.  If you're doing that it'll be fine.  But if not, better to put the actual IP address of the pi.

@maso27 I change setting to 5000 (version 1.1) and use localhost as IP to browse it.
It's display another error.

500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/cherrypy/_cprequest.py", line 670, in respond
response.body = self.handler()
File "/usr/lib/python2.6/site-packages/cherrypy/lib/encoding.py", line 220, in call
self.body = self.oldhandler(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/cherrypy/_cpdispatch.py", line 60, in call
return self.callable(*self.args, **self.kwargs)
File "auth_web.py", line 35, in code
line = 'refresh_token = "{}"'.format(resp['refresh_token'])
ValueError: zero length field name in format

Actually I use my PC(x86) to test this . Are those error cause by different platform?

If you want to run it on your PC, try the new upstream: https://github.com/alexa-pi/AlexaPi This repo doesn't have direct support for it. Get back to us then so we can see if we can close this :) Thanks!

Hi renekliment,
I try to debug with this error message, so I print resp value

<IP_ADDRESS> - - [26/Oct/2016:10:58:46] "GET / HTTP/1.1" 303 758 "" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, li
ke Gecko) Chrome/45.0.2454.85 Safari/537.36"
<IP_ADDRESS> - - [26/Oct/2016:10:58:47] "GET / HTTP/1.1" 303 758 "" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, li
ke Gecko) Chrome/45.0.2454.85 Safari/537.36"
{u'access_token': u'Atza|IwEBIGmCbiWK9BPUDLy4qDOiz9hl0T_cldTl-C2GBruq7ExnCkEkZ2XQbcK5NIeJu63XTu3aYyOcQGZhNdEVfOv-kszZzgjVVX9fOSu2tUg49qz7nkueBQODgDqQHUwwovJGrIcvI9gwU3NjKUFK4_bDDhA6H1G409PYOXOkagQLjiylgPsrnNSWDzTG0VvV8KMYVDIvUbPfBTS-Zv3DacZMlK_7wxRPQR47s_Gu2kYkgTg_2wdYY3HT9G_rGvzh_zU1xeh8uWrWnyGBnn3AiYRyDb_G5s7xguWDqYDLGL7gcQi0qJrgZLUSo_OHn7Rsnv2xHfZGu6VlV8Q53XW0Wv-gTmBElLKmxphjvOG4Nhclxjy8h5Qj7cpeGPuuYCQTx_MiGXhJMbNdg44EJLob5I9PT3MS0wwkGN3ZLqlFB5a-oJHPZfb8lxuKz8lItXOYdKwQTFfLe3ngKIOV8E3_eyghT2XOzYVNmC-57F9BwBgzcugcBCBczkqAF25G1lbexLUaSNWHnE7wztF2QK-0WJlWRu4V', u'token_type': u'bearer', u'expires_in': 3600, u'refresh_token': u'Atzr|IwEBIGnguWIe1dgfqAUAD_EPFvrrqDTpyKF9chfzUnfrMG7YRZZuxARganYzhpDWVs0ux2VrAv05z4j3kxvOVqfuXwXFOX6N9GYE_N5huHjQRlfkjp9owfy0ZnvbqIP83W6emvzSNj-m7FthVSmZZuU4OP3VUM1snrp8szZpHIoqu85OVbHMDoQUHWC0ls4Lo__8vef8spuIen8yX3F6lUFd7I3Mgi5BwdOaDY24G9qcu405Ron9jrc29N_hhN16z9icjufk2YKB3grCsqiHM6paBrEwGjQskCxljR9VUIhq0E_0ArlFdtm72m-9WFq014_lRZgmNzFJZ-I8n-4xSZU6bYqoV2Powe_4V3e1YEaHSeJdQPzTy0gOWfH7abLEVw8SfnCs_0kDLUMH04hvkWFR_iJObhDve7qRwI_BRpLNmiBWTvk4KVNQFyEt7nmUT4zPVleOrsEi6MpXAwAem8kMZBuYjnun9lICxS06q-nRuzrlqb2y0JxIoH5SARgIHbAA7J-74Eb02cYhHerI5i35iGlu'}
[26/Oct/2016:10:58:56] HTTP
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/cherrypy/_cprequest.py", line 670, in respond
response.body = self.handler()
File "/usr/lib/python2.6/site-packages/cherrypy/lib/encoding.py", line 220, in call
self.body = self.oldhandler(args, **kwargs)
File "/usr/lib/python2.6/site-packages/cherrypy/_cpdispatch.py", line 60, in call
return self.callable(self.args, **self.kwargs)
File "auth_web.py", line 36, in code
line = 'refresh_token = "{}"'.format(resp['refresh_token'])
ValueError: zero length field name in format
[26/Oct/2016:10:58:56] HTTP
Request Headers:
CONNECTION: keep-alive
COOKIE: gsScrollPos=0
HOST: localhost:5000
UPGRADE-INSECURE-REQUESTS: 1
Remote-Addr: <IP_ADDRESS>
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
USER-AGENT: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
ACCEPT-LANGUAGE: zh-TW,zh;q=0.8,en-US;q=0.6,en;q=0.4,zh-CN;q=0.2
ACCEPT-ENCODING: gzip, deflate, sdch

It's seems server have reply refresh token , but cherrypi module can't use format
method to get it. Is it correct?
If it's correct, https://github.com/alexa-pi/AlexaPi  project also use cherrypi module
to get refresh token. Is it work?

Seems like the refresh_token is empty.
If you've got some time, just to be totally sure / confirm, please try the new upstream, according to the Installation Guide exactly - maybe even create new device at Amazon. There have been improvements in various places and one of them might have fixed it. Thanks!

Hi renekliment,
Use https://github.com/alexa-pi/AlexaPi project have another problem.

[root@localhost AlexaPi]# python src/auth_web.py
/usr/lib/python2.6/site-packages/cryptography/init.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6
DeprecationWarning
Traceback (most recent call last):
File "src/auth_web.py", line 54, in
print "Ready goto http://{}:5050 or http://localhost:5050  to begin the auth process".format(ip)
ValueError: zero length field name in format

Could it cause by my python version too old?

It's very probably not caused by the python version. This is very peculiar - what OS (+ version) and device are you using?

@renekliment
CentOS release 6.7 (Final)
PC(Intel(R) Core(TM)2 Quad CPU    Q8200  @ 2.33GHz)

Yeah, just bring that up to date. I believe this is the issue:
https://docs.python.org/dev/library/string.html#format-string-syntax

So I've just compiled python 2.6 to confirm and it indeed seems to be the issue.
Alternatively, you can change that line to
print "Ready goto http://{0}:5050 or http://localhost:5050  to begin the auth process".format(ip), which works for me.
However, we can't guarantee that other things will work as well. I guess we could change this thing, so it works, but in the long run I'm not sure we can (nor want to) support python 2.6 as it's super old.
Please upgrade to python 2.7.

@renekliment
It's work, but after login  LWA (Login With Amazon) . Web browser will show the information in below

500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.

@illperipherals
Right, I have try to get refresh_token without format method and it's work.

Yeah, that's what I was walking about. Unfortunately, I don't think we want to spend any more time on this, sorry. Please upgrade to python 2.7.
P.S.: If I were you, I'd upgrade to CentOS 7.

@renekliment Which python version does you used to develop? In CentOS 6.7 I can find version 3.4 .

Python 3.x isn't yet supported. We'll hopefully add support soon. Stick to 2.7.x. for the time being.

This project is now deprecated in favor of the new AlexaPi (https://github.com/alexa-pi/AlexaPi) which has all the features of this project and much more, such as:

support for a wide range of devices and platforms (Raspberry Pi, CHIP, Orange Pi, desktops, Magic Mirror and others)
voice activation (great PocketSphinx support and snowboy support soon to be released)
much more robust installation and configuration
better security
Arch Linux support
awesome documentation
and much, much more! You get it - it's just awesome.

Please switch over to the new project and if your issue persists there, file an issue in the new repo's issue tracker. Thank you.


ToDo app

Is your feature request related to a problem? Please describe.
it's a to do app.
Describe the solution you'd like
You can list your task and track them
Describe alternatives you've considered
No response
Additional context
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

So please assign it to me.


Release v1.0.0

feature complete as per TACAS19 description
well-founded tests and analysis
update stable external packages (as subtrees)

#148


Cannot access '' before initialization

Describe the bug
The app builds fine, but if two routes use the same *.svg asset and the same function from $lib I get the error that the function can't be accessed before initialization.
Reproduction
Files
src

lib/

api.ts
circle.svg

routes/

+page.svelte
one/

+page.svelte

two/

+page.svelte

routes/+page.svelte

one
two

routes/one/+page.svelte

Home

routes/two/+page.svelte

	import circle from '$lib/circle.svg';
	import { getURL } from '$lib/api';
	getURL();
</script>

Home

lib/circle.svg

  <circle cx="50" cy="50" r="50" />
</svg>```

>lib/api.ts

```const URL = 'host';
// or
// let URL = 'host';
export const getURL = async () => {
  return `This is the url ${URL}`;
};

For this to happen:

The function file is using a variable with the name URL
The two routes should use the same function and the same asset

Logs
ReferenceError: Cannot access 's' before initialization
    at api.0eee2cd0.js:1:16

System Info
System:
    OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (8) x64 Intel(R) Core(TM) i7-4770S CPU @ 3.10GHz
    Memory: 2.68 GB / 7.51 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.6.7 - ~/.nvm/versions/node/v18.17.1/bin/npm
  Browsers:
    Brave Browser: <IP_ADDRESS>
  npmPackages:
    @sveltejs/adapter-auto: ^2.0.0 => 2.1.0
    @sveltejs/kit: ^1.20.4 => 1.25.0
    svelte: ^4.0.5 => 4.2.0
    vite: ^4.4.2 => 4.4.9

Severity
annoyance
Additional Information
Ways to avoid it

Changing the variable name to anything other than URL - case sensitive -.
Using the function in one page.
Using the asset in one page.

Reproductions must be in the form of a clonable repository or a Webcontainer as per the issue instructions:

A link to a repository, or a fork of https://node.new/sveltekit, that reproduces the issue. Reproductions must be short, self-contained and correct and must not contain files or code that aren't relevant to the issue — please do NOT just paste a link to your project. Explaining how to reproduce is generally not enough. It pushes the burden of creating a reproduction project onto a small set of volunteer maintainers and isn't scalable. If no reproduction is provided, the issue will be closed.

Having the same issue, will have to check what exactly is causing it.

Reproductions must be in the form of a clonable repository or a Webcontainer as per the issue instructions:

Thanks for this comment
I've added the a repo for this
https://github.com/f-a-t-h-e/sveltekit-access-before-init-issue

Curiously, the client-side code gets chunked into this:
// import circle from '$lib/circle.svg';
// import { getURL } from '$lib/api';
// getURL();

// the above turns into below

// why is this referencing the s variable????
const t = '' + new s('../assets/circle.cdbfab01.svg', import.meta.url).href,
  s = 'host',
  c = async () => `This is the url ${s}`;
export { t as c, c as g };

This may be because of Vite's asset URL replacement happening after rollup has finished deconflicting any clashing variables
https://github.com/vitejs/vite/blob/941bb1610c9c9576e0b5738c9075b3eb2f16a357/packages/vite/src/node/plugins/asset.ts#L198
Good news is you're unlikely to run into this with anything except URL

Good news is you're unlikely to run into this with anything except URL

I am getting this on regular classes and svelte components, nothing to do with URLs.
Still have to replicate it though, I cant get it to work yet.

Found out the minification process thinks that const URL and new URL() are the same thing so they both get minified as such

That's making sense now for me, thank you for this.

Not sure this is something we can fix?

same thoughts.

Good news is you're unlikely to run into this with anything except URL

I just changed variable URL, it was a mistake though as I forgot about the class URL.
But as stated

I am getting this on regular classes and svelte components, nothing to do with URLs.

So it's better to solve it.
Maybe changing the variables names before any other changes that vite makes, but how to know if it's a variable or a global class like URL, personally I don't know yet, If somebody does, it will be great to share such an idea for me.

Changing the variable names does not fix the problem, vite renames the original names in an event of a conflict, but places it in the wrong place regardless.
I can easily change the order and it works with no issues to be seen, so its really just location that's screwing things up.

Changing the variable names does not fix the problem, vite renames the original names in an event of a conflict, but places it in the wrong place regardless.

But changing URL to anything else worked for me though.

Not sure if it's the same, but there's a similar issue in Vite: https://github.com/vitejs/vite/issues/11853


Newsletter styling regression

Steps to Reproduce

It used to look like this: https://user-images.githubusercontent.com/87968618/150974192-e0cdc069-798a-4fa4-b4e5-0d94042f0611.png
Now ocw.mit.edu/newsletter looks like this:

Let me know if you need access to the Mailchimp account. I have an account now.

Hey @pdpinch I checked this on Production and RC and it seems to be working for me
ocwnext.mid.edu

RC

NETLIFY App

It could have been that the css did not properly load . Could you clear cache and hard reload the page ?

Could you clear cache and hard reload the page ?

I think only doing hard reload (Hold down Ctrl and click the Reload button or Hold down Ctrl and press F5) will do the job.

I think the issue is that my Firefox is blocking the CSS file from mailchimp. I'm going to put this on hold until I get a better sense of the scope of this issue.

@pdpinch Tweet from the official Mail chimp account
https://twitter.com/mailchimp/status/1138765470813884418?lang=en

I feel like the styling could be resolved by moving the CSS to our site (where it belongs, IMO). But I don't know if that will address the functionality.


Always call onSuccess even with deduping?

Bug report
Description / Observed Behavior
In some scenarios, I'd expect onSuccess to be called, but it doesn't. E.g. a route "/foo" populate the state inside SWR's onSuccess. If I quickly navigate /foo -> /other -> /foo before the request from the first /foo finishes fetching, the onSuccess from the second /foo won't run. The result is that the state in the second /foo remains the initial state.
Expected Behavior
Since the first /foo already unmounted, I'd expected the onSuccess from the second /foo to run. Alternatively, there should be a way for configure SWR so onSuccess always runs, even if the request was deduped.
Additional Context
SWR version: 1.0.1

I realized that I misunderstood your original message and it’s indeed a problem. Will figure out a way to fix it!

Running into this issue still. Any update on when or how it might be resolved?

@shuding is there any update on this? I'm getting a similar issue here and it's breaking my whole app.

Issue is still happening.

React Query claims that onSuccess and onError are abd API design https://tkdodo.eu/blog/breaking-react-querys-api-on-purpose#a-bad-api and their plan is to remove those callbacks. Maybe SWR should do the same!
cc @shuding

I faced the same issue.
In short, the solution for me was to disable deduping globally. I put this inside my <SWRConfig value={…}>:
// Disables deduping. Mandatory for requests that modify data, otherwise we can end up
// with broken frontend states when users are interacting quickly with the application.
dedupingInterval: 0,

In my case, there is no valid case for deduping. The "read" requests I do are cached and rarely revalidated, but the "write" requests can happen in a quick succession. An example is that you can log in, log out and log in again in less than 2 s, the default dedupingInterval. In my case, it lead to a state where it was impossible to log in again, unless you did a full page refresh.
I honestly think that deduping should be disabled by default, as it can be very misleading. Caching is already enabled by default, for most users it will be enough.
I do not have an strong opinion on whether onSuccess should be called when deduping. There could be harmful consequences with both behaviours.
Note that I tried applying @isBatak’s suggestion of using useEffect, but it is not reliable. onSuccess/onError should be kept. The problem with useEffect is that there is no universal way of checking that a query just occurred. In my case, I had a useMutation call to a /logout API endpoint that is returning true when the logout is successful. If you use something like:
useEffect(() => {
  if (data) {
    actualLogoutLogicLikeClearingAnInMemoryToken();
  }
}, [data]);

then once a first logout was triggered, data will always have the same value and never run again the useEffect callback, which also leads a broken state. There can be mitigations to clear data once the useEffect callback was called, but it is unnecessarily complicated and fragile.

@BertrandBordage - From our perspective, we rely on deduping fairly heavily. For example, three different components that are all mounted at different places in the component tree might need the same information; it's convenient to assume / rely on deduping and treat useSWR as a generic "ensure that this information is available", without having to worry about this generating extra requests.
If I understand your issue correctly, the rapid sequential requests are getting deduped even though there are mutation calls interspersed? If so, that sounds like it may be worth raising as a separate issue - mutation should override any dedupe interval.

@joshkel Yes, it's somewhat related to mutations, but not necessarily. It's related to queries that modify data on the backend, so roughly POST/PUT/PATCH requests, which can be done with useSWR, even though it's a bad practice.
In my case it's always through useMutation calls that I do POST/PUT/PATCH, so your approximation would work. I will open a new issue, then.

Sorry that I went slightly off topic… The problem I faced was not onSuccess not being called nor useSWRMutation being deduped.
It was a bug with the way the cache gets "cleared" that dedupes useSWR calls, returning undefined and of course not calling onSuccess. Full report and Codebase example here: https://github.com/vercel/swr/issues/2877

I have also encountered the same issue where if a user does a back button journey to the page within the 2 second deduping interval then onSuccess is not called.
Is there any other alternative onFunction we can rely on to avoid using a useEffect to update state based on the response?

It was a bug with the way the cache gets "cleared" that dedupes useSWR calls, returning undefined and of course not calling onSuccess.

I'm also running into a similar issue where I'm calling an async fetch in the onSuccess of my SWR call. If anyone has figured out a good solution that doesn't require useEffect, I'm keen to learn more.


SyncBot: New syncs

https://www.flowdock.com/app/rulemotion/r-product/threads/qYScxhDWgXEHYS5QfHHHtKGQsaB

#hardware https://www.flowdock.com/app/rulemotion/r-hardware/threads/7_8TxPnSttgO9TsQ8OBAOsAHHI6

Transferring this to Hubot, having a (hashtag)hardware like to others is one of Hubot's jobs.


EIP-2028: Calldata gas cost reduction

For Istanbul: https://eips.ethereum.org/EIPS/eip-2028

reserving this for me.

Hah, I actually meant to suggest #1818  -- this one is more like busywork. If you already started, feel free to finish it off. Otherwise, I'm happy to wrap it up, since I just wrapped up #1829 which is similar: mostly just gas-cost changes. Feel free to take a look there, since there is some testing which is better than the testing on #1828 for example.

@carver I already started working on this. This doesn't seem too difficult. The title is a bit misleading here. I thought this would have something too with changing the gas costs for CALLs between contracts. But this EIP only changes the txdata cost. In fact the tile of the EIP has been renamed to Transaction data gas cost reduction. I had a look at aleth's implementation and It doesn't seem like it will be time-consuming.
Please correct me if I have misunderstood.


No emails folder in views

the document states that grafite:starter publish emails folder in view but there is no emails folder in resources

Oops I think the docs are out of date in that, there is no email generated anymore it uses the Notification tools built in Laravel


API issue

GSE recently stopped working for me, I get this API error each time:

Message: Interface\AddOns\GSE\API\StringFunctions.lua:60: attempt to call method ‘gsub’ (a nil value)Time: Sat Sep 17 16:52:29 2022Count: 1Stack: Interface\AddOns\GSE\API\StringFunctions.lua:60: attempt to call method ‘gsub’ (a nil value)[string “@Interface\AddOns\GSE\API\StringFunctions.lua”]:60: in function SplitMeIntolines' [string "@Interface\AddOns\GSE\API\Translator.lua"]:33: in function ProcessLoopVariables’[string “@Interface\AddOns\GSE\API\Storage.lua”]:1179: in function processAction' [string "@Interface\AddOns\GSE\API\Storage.lua"]:1386: in function CompileTemplate’[string “@Interface\AddOns\GSE\API\Storage.lua”]:536: in function OOCUpdateSequence' [string "@Interface\AddOns\GSE\API\Events.lua"]:562: in function ?’[string “@Interface\AddOns\GSE\Lib\AceTimer-3.0\AceTimer-3.0.lua”]:55: in function <…terface\AddOns\GSE\Lib\AceTimer-3.0\AceTimer-3.0.lua:50>Locals: str = {Action = “KeyPress/castsequence [combat,nochanneling] reset=combat Judgment, ConsecrationKeyRelease”Interval = 5}t =
{}PerformPrint = defined @Interface\AddOns\GSE\API\Init.lua:83ImportCompressedMacroCollection = defined @Interface\AddOns\GSE\API\Storage.lua:289LoadWeakAura = defined @Interface\AddOns\GSE\API\CharacterFunctions.lua:142UpdateIcon = defined @Interface\AddOns\GSE\API\Storage.lua:744ADDON_LOADED = defined @Interface\AddOns\GSE\API\Events.lua:195miniMapHide = defined @Interface\AddOns\GSE_LDB\LDBProvider.lua:171RegisterMessage = defined @Interface\AddOns\GSE\Lib\CallbackHandler-1.0\CallbackHandler-1.0.lua:90UnregisterMessage = defined @Interface\AddOns\GSE\Lib\CallbackHandler-1.0\CallbackHandler-1.0.lua:153

What version of GSE are you using on which version of the game?

I would suggest that if instead of using the Dragonflight test alpha 3.1.05-7. You replace that with the released 3.1.05.
in the Curseforge app you might want to change Build type from alpha to Release.

Side not - just submitting an error message doesn’t help me solve your problem.  When you hit Nee Issue - there is a Bug template that has the information I need to be able to help you.  In this case I’m guessing as the error message was reported in #1162

Sorry, new to all of this - also I am using GSE version 3.1.05 - with Retail WoW

This may sound pedantic but are you sure it’s 3.1.05 and not
3.1.05-7-gxxxxxxxx?
On Sun, 18 Sep 2022 at 6:48 am, Stargrace05 @.***>
wrote:

Sorry, new to all of this - also I am using GSE version 3.1.05 - with
Retail WoW
—
Reply to this email directly, view it on GitHub
https://github.com/TimothyLuke/GSE-Advanced-Macro-Compiler/issues/1163#issuecomment-1250141893,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEMCFLIHJDNJGXZGWOLUA3V6YYRZANCNFSM6AAAAAAQPE5E2U
.
You are receiving this because you commented.Message ID:
@.***
com>

--
Timothy Minahan**M 0406 413 680  |  E @.**

The Latest version says 3.1.05 and shows as release, not alpha - but - under the addon it says 3.1.05-7 and I'm not sure what I need to change, here's the screenshot.

Yep - Curse installed the test release for you incorrectly.  The easy fix is to go reinstall or uninstall then reinstall it.  If you go the uninstall route don’t select to delete your settings.

3.1.05-7 is the 7th internal test build since 3.1.05.  You want it to say instead 3.1.05

Thank you, that absolutely worked. Sorry again brand new and love this addon.

Np at all.


Support JSON data type Editing for MySQL 5.7+

Feature Request:
I see you have grid editing of JSON data type for MongoDB and PG, but would be really helpful to allow editing JSON data type values in place on the grid for the new data type in MySQL 5.7.
Currently it looks read only in the grid, and even in the "Edit Cell" dialog.

Yep, makes sense for MySQL 5.7.
BTW in PostgreSQL json columns are editable and even have syntax highlighting:

This doesn't seem to be working.  I can neither edit the json field in the grid, or in the value editor.  My coworkers confirmed the same.  You can double click to enter the field editing, but it ignores any keys, as if it's readonly.
On OSX Sierra.

In 4.0.8 JSON type editor is supported only for table editor.
I'll add support for custom SQL queries in the next version. Thanks for reminding.

Thanks so much!


Loosen Rails requirement to allow usage with Rails 5

There you go!

can we merge this?

@nimashariatian All set and released as 0.0.6. :)
Please let  me know if you have any problems. I haven't had a chance to test this engine with Rails 5.

@cllns thank you!! :) will report back if anything went wrong, also will attempt to create fixes and make a PR if needed

you're a hero! 👍


az ad app update Insufficient privileges in yaml build pipeline

az cli version: 2.0.73
Describe the bug
Command: az ad app update --id <xxx-yyyy-zzzz> --add replyUrls https://test.something
Error: ERROR: Insufficient privileges to complete the operation.
Command is run from a yaml multistage build pipeline with a service principle where I enabled literally all permissions from all api's and used grant permissions after
To Reproduce
Run command using the azure cli yaml task as inline script with a ARM service connection.
Expected behavior
Expected to be able to add a reply url
Environment summary
Azure cli was installed using the latest msi installer on a locally hosted VM.
Additional context
I can run the command using my own account from my own device without any problems.
Edit: I have an existing app registration which I created via the portal. I just tested what happens if I make the service principle create the app registration and than add the reply url. This works fine. I also tested if a colleague could add the url since he's not an owner on the app registration (he is an owner on subscription level) and he can also add it just fine.

As CLI is still using AAD Graph. The Service Principal used to login needs to have corresponding permissions.
Go to Azure Portal > Azure Active Directory > App registrations > {app} > API permissions > Add a permission > Add Azure Active Directory Graph related permissions.
Then click Grant admin consent for {tenant}.
Corresponding CLI commands are https://docs.microsoft.com/en-us/cli/azure/ad/app/permission?view=azure-cli-latest. But it uses GUIDs which may not be easily fetched currently. We are working on improving it.

solution provided


Monerod RPC SSL enabled in tests fails locally

Running the full tests locally on my machine doesn't work with the last argument --rpc-ssl enable, but it looks like it works in the CI.
@LeoNero I guess it works locally on your machine? Why did you introduced this flag?
  monerod:
    image: ghcr.io/farcaster-project/containers/monerod:<IP_ADDRESS>
    command: >
      /usr/bin/monerod
        --regtest
        --p2p-bind-ip <IP_ADDRESS>
        --rpc-bind-ip <IP_ADDRESS>
        --zmq-rpc-bind-ip <IP_ADDRESS>
        --confirm-external-bind
        --non-interactive
        --offline
        --fixed-difficulty 1
        --rpc-ssl enabled

EDIT: removing this flag makes my local test pass again.
Oh, for sure CI passes, the flag is not in the base container.

oh! I should have removed it and it passed in the review. Sorry about that. I am working on SSL support. I will open a PR on monero-rpc-rs today. You can remove this flag

Just to make it clear: I was doing SSL tests (and that's why command: is used in this case), but I forgot to remove it and it was not perceived in the review. You can remove this flag (and the command: key actually). Sorry about the confusion.

I will open a PR removing it.


ngx_brotli compression support ?

I just compiled Nginx ngx_brotli module support into my Nginx server https://community.centminmod.com/posts/19601/ with ngx_pagespeed enabled.
Problem:

https version of my site https://centminmod.com has non-working ngx_pagespeed when viewed in Firefox 44 nightly web browser which supports Content-Encoding: "br" - non-working as in no resources are pagespeed optimised
https version of my site https://centminmod.com works with ngx_pagespeed when viewed in Chrome, Opera and Firefox 43 dev editions which do not support Brotli encoding so fall back to gzip

using following ngx_brotli directives
brotli on;
brotli_static on;
brotli_min_length 1000;
brotli_buffers 32 8k;
brotli_comp_level 5;
brotli_types text/plain text/css text/xml application/javascript application/x-javascript application/xml application/xml+rss application/ecmascript application/json image/svg+xml;

Verified:
curl -H 'Accept-Encoding: br' -D- -o tmp.br https://centminmod.com
 ./bro --decompress --input ~/tmp2.html  | fgrep .pagespeed.

My guess is that PageSpeed is seeing the html brotli encoded and doesn't know how to decode it.  Ideally the brotli decoding would happen after PageSpeed, like gzip encoding.
I need to build this to test it.

does the order of execution of the modules change this behavior?
eg --with-module=/path/to/pagespeed --with-module=/path/to/brotli vs --with-module=/path/to/brotli --with-module=/path/to/pagespeed ?
http://forum.nginx.org/read.php?2,246978,246999

That would make sense, except the command they used is:
 --add-module=../ngx_brotli ... --add-module=../ngx_pagespeed-release-<IP_ADDRESS>-beta
I think either their config or our config needs to change to get the order we want.  I think it's us?  We have:
  # Make pagespeed run immediately before gzip.
  HTTP_FILTER_MODULES=$(echo $HTTP_FILTER_MODULES |\
    sed "s/$HTTP_GZIP_FILTER_MODULE/$HTTP_GZIP_FILTER_MODULE $ngx_addon_name/")

And brotli runs before gzip.  So I think what we need is:

Tell people to include us last  on the ./configure command line, with brotli right before
Change our regexps to run immediately before brotli if present, otherwise immediately before gzip.

I haven't tested this though.

@jeffkaufman On trunk-tracking, we also have https://github.com/pagespeed/ngx_pagespeed/commit/a8141eadd3e22a66fcbc5dacecf97b9669c3a5ef
We might want to consider defaulting to 'HTTP_AUX_FILTER_MODULES`, and let people have more control over the module positioning?
From the nginx forum [1]:
And again: the only place in the filter chain where third party
modules is expected be installed is HTTP_AUX_FILTER_MODULES. You
should have really good reason to install your module anywhere
else, and if you do it - you do it at your own risk.

[1] http://forum.nginx.org/read.php?2,152699,152727#msg-152727

HTTP_AUX_FILTER_MODULES does sound like the right place for us, but then we need to be very clear in our documentation about where people should put us in the ordering.  "After all other modules manipulating content, but before any modules compressing content" is kind of complex to get across.

@jeffkaufman: maybe inject pagespeed filter right after postpone filter instead of right before gzip?

or maybe you could just echo and inspect $HTTP_FILTER_MODULES values and check for ngx_brotli module if it exists, sed replacement after ngx_http_brotli_filter_module module instead of after $HTTP_GZIP_FILTER_MODULE - is would just a simple IF or ELSE ?


Dirty Checking on Map for HStore Type

Hi,
I have an HStore typed Map<String,String> for hibernate5 module.
if I only update the content of the map, the entity is not dirty tracked and appears clean, and is not persisted on update.
I've tried to add this scenario to the test case for this hibernate v5 module but I can't get the repo to compile as-is (mvn toolchains and other dependencies not found)
The hashCode and equals on my entity works fine - I have tests that demonstrates hashcode changes upon map content changes and equals also breaks when only the map changes.
As a workaround, I have the following Entity property
@Entity
public class MyEntity {
   ...
   private int version;
   // getters and setters omitted.  Note this does not use the @Version annotation.
}

Then (As I'm doing my own audit logging, I know when a change has occurred I can do the following:
if ( mergeUpdated ) {
    myEntity.setVersion(myEntity.getMapProp().hashcode());
}

This statement makes the entity itself dirty and is persisted as expected.
I don't know if this is something that can be adjusted by this library?  I've no idea how much of hibernate's instrumentation is in the Map implementation it provides after loading an entity and whether or not that can be forced to check a different way.
Thanks
Rob

You will have to create a replicating test case that demonstrates the issue. Use the existing tests as a reference for the one you'll have to create.

Thank you.
I did try but the pom references toolchain configuration that I’m not familiar enough with to replicate.
Do  you have any pointers for setting up maven to build the codebase?
thanks again

Sure thing. Check out this article.

Hopefully this fork/branch will work.
It currently has a failing test - expanding the original hstore test.
https://github.com/robshep/hibernate-types/tree/issue_%23448

We can see the suggestion of forcing dirty on the Book with the following alternative patch:
        doInJPA(new JPATransactionFunction<Void>() {
            @Override
            public Void apply(EntityManager entityManager) {
                Book book = entityManager.unwrap(Session.class)
                        .bySimpleNaturalId(Book.class)
                        .load("978-9730228236");

                book.getProperties().put("price", "$144.95");

                entityManager.persist(book);

                return null;
            }
        });

        doInJPA(new JPATransactionFunction<Void>() {
            @Override
            public Void apply(EntityManager entityManager) {
                Book book = entityManager.unwrap(Session.class)
                        .bySimpleNaturalId(Book.class)
                        .load("978-9730228236");

                assertEquals("$44.95", book.getProperties().get("price")); // Uh-Oh!

                return null;
            }
        });

        doInJPA(new JPATransactionFunction<Void>() {
            @Override
            public Void apply(EntityManager entityManager) {
                Book book = entityManager.unwrap(Session.class)
                        .bySimpleNaturalId(Book.class)
                        .load("978-9730228236");

                Map copyProperties = new HashMap();
                copyProperties.putAll(book.getProperties());
                copyProperties.put("price", "$144.95");
                book.setProperties(copyProperties);

                entityManager.persist(book);

                return null;
            }
        });

        doInJPA(new JPATransactionFunction<Void>() {
            @Override
            public Void apply(EntityManager entityManager) {
                Book book = entityManager.unwrap(Session.class)
                        .bySimpleNaturalId(Book.class)
                        .load("978-9730228236");

                assertEquals("$144.95", book.getProperties().get("price")); // OK

                return null;
            }
        });

If you managed to replicate it, then you can debug it and see why it fails.
Once you identify the problem, send me a Pull Request with the fix proposal to investigate it.

Sadly I've reached the limit of my knowledge in hibernate internals.
I haven't used it in a long time and it seems the use of interface proxies has disappeared in favour of presumably bytecode instrumenting or something else that doesn't show up in my debugger.
I can't see how the standard entity dirty tracking is effected, and so can't propose where to even start resolving this.
I don't expect you to fix it, but sadly I'm unable to sorry.
Feel free to close this.
My workaround is inelegant but gets me over the line at present.
Thanks for the library in any case.
Rob

FYI I saw exactly the same happen for a JSONB column, so this might not be a problem in this project but rather in Hibernate itself.


swap the training order in semisupervised_translation

it is better to train denoising autoencoder first.
for unsupervised mt, it may have better backtranslation.
ref: https://github.com/facebookresearch/XLM/blob/master/train.py#L288-L298

Is it needed? @pipibjc

This won't change how we update the model. Unlike XLM, which update the model after each trainer.xx_step, fairseq implementation only update the model after we accumulate the gradients from all three tasks after each batch, i.e. here which is after the [train_step](https://github.com/pytorch/fairseq/blob/master/fairseq/trainer.py#L258-L261).

We also compared between 1) update the model after each task (XLM implementation), and 2) update the model after all three tasks (fairseq implementation), but we didn't find any significant difference. We can get comparable unsupervised fr-en unsupervised MT result in terms of BLEU.
The latter one is easier to implement under current fairseq framework, so we went with 2).

Thank you! sorry for my carelessness. My experiments also show comparable results.

No worries. Thanks for bringing this up!

Hi! Could you tell me how to use fairseq for unsupervised translation?


Failing to load profile - KeyError: 'user'

I'm submitting a ...

[ ] bug report
[ ] feature request
[ # ] support request

General information
Prerequisites

[ # ] Are you running the latest version?
Yes - 0.13.21

Description
Slowly working my way through troubleshooting a new install. After disabling certificate verfication I can log in and see the list of my profiles, however trying to select a profiles takes a long time to load and fails with a generic ""
Looking at the logs I can see the below Stack Trace:

22:13:17.429 T:2478832448   ERROR: /home/kodi/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
22:15:19.191 T:2891553600   ERROR: Previous line repeats 1 times.
22:15:19.191 T:2891553600   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: 'user'
Traceback (most recent call last):
File "/home/kodi/.kodi/addons/plugin.video.netflix/addon.py", line 33, in
NAVIGATION.router(paramstring=REQUEST_PARAMS)
File "/home/kodi/.kodi/addons/plugin.video.netflix/resources/lib/utils.py", line 60, in wrapped
result = func(*args, **kwargs)
File "/home/kodi/.kodi/addons/plugin.video.netflix/resources/lib/Navigation.py", line 158, in router
return self.show_video_lists(widget_display=widget_display)
File "/home/kodi/.kodi/addons/plugin.video.netflix/resources/lib/Navigation.py", line 565, in show_video_lists
widget_display=widget_display)
File "/home/kodi/.kodi/addons/plugin.video.netflix/resources/lib/KodiHelper.py", line 294, in build_main_menu_listing
for video_list_id in video_list_ids['user']:
KeyError: 'user'
-->End of Python script error report<--
22:15:19.198 T:2969561920  NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 150 ms
22:15:19.298 T:2891553600 WARNING: CPythonInvoker(7, /home/kodi/.kodi/addons/plugin.video.netflix/addon.py): the python script "/home/kodi/.kodi/addons/plugin.video.netflix/addon.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
22:15:19.311 T:2743761728   ERROR: GetDirectory - Error getting plugin://plugin.video.netflix/?action=video_lists&profile_id=7XTYYBHDJBGWHO6MDSOENX3O2A
22:15:19.324 T:2987812928   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflix/?action=video_lists&profile_id=7XTYYBHDJBGWHO6MDSOENX3O2A) failed

Steps to Reproduce

[First Step]
[Second Step]
[and so on...]

Expected behavior: [What you expected to happen]
Shows are listed per profile
Actual behavior: [What actually happened]
Spinning loading wheel and failure to load
Context (Environment)
Linux Mint 17 i386, Kodi 18
Installation

[ ] I installed the plugin via zip from the Releases page
[ # ] I´m using the Netflix Repo
[ ] I´m using a different source (Please tell which)

Operating System

[ # ] Linux (x86/x64)
[ ] OSX (x86/x64)
[ ] Windows (x86/x64)
[ ] Linux (ARM)
[ ] Android

Additional informatin on the environment
[Descripe your environment a bit more detailed, are you using LibreElec f.e.]
Debug log
[Please include a link to your debug log (use something like http://sprunge.us/) or similar, please do not paste]
Other information
[e.g. detailed explanation, related issues, suggestions how to fix, links for us to have context, etc.]
Screenshots
[Please add a screenshot if that helps understanding your problem]
[You can erase any parts of this template not applicable to your Issue.]

Try to change your email, it could contain non utf-8 chars.
Where are you located?
What device are u using?
What bw do you have ?
What is the response time while pinging netflix.com?


Cocoapods

Please update cocoapods with the latest version

@zkrige the latest released version is on cocoa pods, we'll get to a new release soon!

Also as an FYI, you can always point to a specific commit with cocoa pods or just the master branch.

Thanks!
I noticed some XCode  compiler warnings, and wanted to submit a PR, but the latest code in your repo has fixed the warnings already
I am aware that you can point to the git repo, but I prefer to run everything through standard cocoapods releases.
I'll keep an eye out for the next release.
keep up the amazing work


Upgrade OpenRewrite 2.6.4 -> 2.7.0

This PR contains the following updates:

Package
Type
Update
Change

OpenRewrite
import
minor
2.6.4 -> 2.7.0

Release Notes

openrewrite/rewrite-recipe-bom (OpenRewrite)
v2.7.0
Compare Source
What's Changed

Update with rewrite 8.17.0

Full Changelog: https://github.com/openrewrite/rewrite-recipe-bom/compare/v2.6.4...v2.7.0

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade OpenRewrite 2.6.4 -> 2.7.0

See:
- https://github.com/openrewrite/rewrite-recipe-bom/releases/tag/v2.7.0
- https://github.com/openrewrite/rewrite-recipe-bom/compare/v2.6.4...v2.7.0


Move to github actions

Let's replace travis with github actions, once this is done, we can continue with also running tests on windows.
See also llorllale/cactoos-matchers#83 for some similar issue.

@paulodamaso cactoos-matchers already moved from Travis to GitHub Actions. You can see/use this PR as reference.

@0crat assign me

@0crat assign me (here)

@andreoss You can't do "Request order start", unless you have one of these roles: ARC, PO; current roles of @andreoss/z are: DEV, REV

@0crat assign @andreoss

@fabriciofx the puzzle #1088 is still not solved.

@fabriciofx seems that this puzzle has been already solved in https://github.com/yegor256/takes/pull/1085, please close

@fabriciofx seems that this puzzle has been already solved in https://github.com/yegor256/takes/pull/1085, please close

@sereshqua/z please review this job completed by @andreoss/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed

@sereshqua/z please review this job completed by @andreoss/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed

@0crat quality good

@0crat quality good

@0crat quality good

@0crat quality good

@0crat quality good (here)

@sereshqua There is no quality review for #1067, no performer

@0crat quality good (here)

@sereshqua There is no quality review for #1067, no performer

@fabriciofx the puzzle #1112 is still not solved; solved: #1088.

@fabriciofx all 2 puzzles are solved here: #1088, #1112.


Frontend: Separate macCatalyst -target-min-inlining-version floor

Add a separate inlining version floor for the macCatalyst platform, which was introduced as 13.1. Create a variant of the tests for -target-min-inlining-version specifically for macCatalyst (unfortunately, covering the macCatalyst platform in the same test file is prohibitively difficult because the tests never run with macCatalyst as the host OS and therefore the target triple substitutions need to be explicit).
Resolves rdar://90858579

@swift-ci please test


[Suggestion] Default timeout for generators

Howdy!
I incorrectly wrote a generator that called unbounded ArrayUnique from a finite Gen.OneOfConst. As a result the test hung trying to find some impossible of number of unique items. It took me a little while to understand what was happening.
What would you think of having a default timeout for Generators so that they throw exceptions after some delay if they can't produce any samples?

The sets and unique do have a fail to add throw after 1000 attempts. Where clause is 100 attempts. The where clause is configurable but not the sets. Maybe I should reduce that one or at least make it configurable.

Interesting! Unique seemed to hang indefinitely when i misconfigured it.


load images from six cameras and stack them

Based on the config of FCOS3D, I want to use all six cameras' RGB images of dataset “nuscenes”  as the input of the network.  Then, I just simply use the "LoadMultiViewImageFromFiles" or "LoadMultiChannelImageFromFiles" instead of "LoadImageFromFileMono3D" in the pipeline, but it doesn't work. There are several errors. Which stage should I change or rewrite? In the load of the pipeline or create_data.py in the data preparation, or other functions? Thanks!

Could you use the error template to post details of your errors?

Could you use the error template to post details of your errors?

When I use the function "LoadMultiViewImageFromFiles", the error is:
Traceback (most recent call last):
File "./tools/train.py", line 224, in
main()
File "./tools/train.py", line 220, in main
meta=meta)
File "/data1/jwchen/mmdetection3d/mmdet3d/apis/train.py", line 35, in train_model
meta=meta)
File "/data1/jwchen/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmdet/apis/train.py", line 170, in train_detector
runner.run(data_loaders, cfg.workflow)
File "/data1/jwchen/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 127, in run
epoch_runner(data_loaders[i], **kwargs)
File "/data1/jwchen/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 47, in train
for i, data_batch in enumerate(self.data_loader):
File "/data1/jwchen/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 345, in next
data = self._next_data()
File "/data1/jwchen/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 856, in _next_data
return self._process_data(data)
File "/data1/jwchen/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 881, in _process_data
data.reraise()
File "/data1/jwchen/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/_utils.py", line 395, in reraise
raise self.exc_type(msg)
KeyError: Caught KeyError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/data1/jwchen/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop
data = fetcher.fetch(index)
File "/data1/jwchen/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/data1/jwchen/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/data1/jwchen/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmdet/datasets/custom.py", line 194, in getitem
data = self.prepare_train_img(idx)
File "/data1/jwchen/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmdet/datasets/custom.py", line 217, in prepare_train_img
return self.pipeline(results)
File "/data1/jwchen/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmdet/datasets/pipelines/compose.py", line 40, in call
data = t(data)
File "/data1/jwchen/mmdetection3d/mmdet3d/datasets/pipelines/loading.py", line 44, in call
filename = results['img_filename']
KeyError: 'img_filename'
Traceback (most recent call last):
File "/data1/jwchen/anaconda3/envs/open-mmlab/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/data1/jwchen/anaconda3/envs/open-mmlab/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/data1/jwchen/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/distributed/launch.py", line 263, in
main()
File "/data1/jwchen/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/distributed/launch.py", line 259, in main
cmd=cmd)
subprocess.CalledProcessError: Command '['/data1/jwchen/anaconda3/envs/open-mmlab/bin/python', '-u', './tools/train.py', '--local_rank=0', 'configs/fvd/fvd.py', '--launcher', 'pytorch', '--work-dir', 'fvd']' returned non-zero exit status 1.

I debug the code and find that the filename in the result is only one.

So there will be no two or more images stacked. It may be caused when converting the formate of the dataset "nuscenes" into coco.json, I think. The convert function now is likely just for the monocular 3D object detection. I mean, for multiview RGB inputs, the construction of coco.json may need to be changed slightly.
Or any other advice from you. Thanks!

@DFLyan  hello. I guess you can probably refer to this issue. I have also faced this problem before and solved on my own similar as above link.


Bug: Linker Error When Using windows and mio (uses windows-sys)

Which crate is this about?
windows
Crate version
0.47
Summary
I'm trying to update windows to version 0.47. In my code, I used K32EnumProcesses (in 0.46 from kernel32.dll). This was removed in 0.47 and EnumProcesses was added. This function comes from psapi.dll. Using this on its own works fine. However, in the project I'm also using tokio which pulls in mio. Specifying mio in the Cargo.toml and compiling, results in a linker-error.
Toolchain version/configuration
Default host: i686-pc-windows-msvc
rustup home:  D:\Rust\rustup

installed toolchains
--------------------

stable-i686-pc-windows-gnu
stable-i686-pc-windows-msvc
stable-x86_64-pc-windows-gnu
stable-x86_64-pc-windows-msvc
nightly-2020-08-29-i686-pc-windows-msvc
nightly-2021-02-19-i686-pc-windows-msvc
nightly-2022-06-12-i686-pc-windows-msvc
nightly-2022-06-12-x86_64-pc-windows-msvc
nightly-i686-pc-windows-msvc
nightly-x86_64-pc-windows-msvc (default)
1.65-i686-pc-windows-msvc

active toolchain
----------------

nightly-x86_64-pc-windows-msvc (default)
rustc 1.70.0-nightly (2036fdd24 2023-03-27)

Note: I also tried to compile with stable (cargo +stable b).
Reproducible example
use std::mem;

use windows::{
    core::{Error as WinError, Result},
    Win32::System::ProcessStatus::EnumProcesses,
};

// some function that uses EnumProcesses
fn get_all_processes() -> Result<(Vec<u32>, u32)> {
    let mut buf = vec![0u32; 1024];
    let mut returned_bytes = 0;
    unsafe {
        if !EnumProcesses(
            buf.as_mut_ptr(),
            (mem::size_of::<u32>() * buf.len()) as u32,
            &mut returned_bytes,
        )
        .as_bool()
        {
            return Err(WinError::from_win32());
        }
    }
    Ok((buf, returned_bytes / (mem::size_of::<u32>() as u32)))
}

fn main() {
    dbg!(get_all_processes().unwrap());
}

Crate manifest
[package]
name = "example"
version = "0.1.0"
edition = "2021"

[dependencies]
windows = { version = "=0.47", features = ["Win32_Foundation", "Win32_System_ProcessStatus"] }
mio = "0.8.6"

Expected behavior
The binary should compile without any errors.
Actual behavior
Compiling results in a linker-error:
error: linking with `link.exe` failed: exit code: 1120
  |
  = note: "D:\\VisualStudio 2022\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX64\\x86\\link.exe" "/NOLOGO" "/LARGEADDRESSAWARE" "/SAFESEH" "C:\\Users\\Johannes\\AppData\\Local\\Temp\\rustc60Hp4R\\symbols.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.10v1qk6gwxxitm6u.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.143gr5jzaqncoibx.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.173ry79el3r37uy4.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.19elwrcp46qq2bow.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.19okhzq4vss3h4iv.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.28b8bnb6lcgeswq6.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.2psi4w84g5ixa6kr.rcgu.o"
"G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.2r3rqpigujbspeuv.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.2zw80lyx6zzorfjq.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.3e3tspw6xly2do2i.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.40bv0spe8ot0haw4.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.4d1y1uvd92h2wl5j.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.4jo4mj54y1i4i2w8.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.4oqyhim9mnscp3qe.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.4r8qjow4wa5sqwyc.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.5dx9ldipe9yc4ran.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.bs4r7o47zyg6ptb.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.gfqf7cso18zg8e4.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.tivyvndp2puectd.rcgu.o"
"G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.y2hygd3u8g4z4aq.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.yrbt3eor9twn9bc.rcgu.o" "G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.4aq17lx8gt5wjefb.rcgu.o" "/LIBPATH:G:\\Dev\\cargo-test\\target\\debug\\deps" "/LIBPATH:D:\\Rust\\cargo\\registry\\src\\github.com-1285ae84e5963aae\\windows_i686_msvc-0.42.2\\lib" "/LIBPATH:D:\\Rust\\cargo\\registry\\src\\github.com-1285ae84e5963aae\\windows_i686_msvc-0.47.0\\lib" "/LIBPATH:D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib" "G:\\Dev\\cargo-test\\target\\debug\\deps\\libwindows-2f7d1b1e62caa374.rlib" "D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib\\libstd-6bc3c267dccd1407.rlib" "D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib\\libpanic_unwind-f3372e197f57c25b.rlib" "D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib\\librustc_demangle-ba86a3b40dfeb436.rlib" "D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib\\libstd_detect-8067f3793b24ce83.rlib" "D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib\\libhashbrown-66106553fb55aed5.rlib" "D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib\\libminiz_oxide-279d438d7556a7e7.rlib" "D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib\\libadler-347d8776c566f0eb.rlib" "D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-0d36d7c1d6ef43af.rlib" "D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib\\libunwind-b03d01cf9bd87ee1.rlib" "D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib\\libcfg_if-f82579346fbfb791.rlib" "D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib\\liblibc-9706fd397d3b79de.rlib" "D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib\\liballoc-551058c15bbc9ba9.rlib" "D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib\\librustc_std_workspace_core-f1a86f24101b242b.rlib" "D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib\\libcore-799d8e84cd5e1cff.rlib" "D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib\\libcompiler_builtins-7c1c0e97cf8cda48.rlib" "windows.lib" "kernel32.lib" "advapi32.lib" "userenv.lib" "kernel32.lib" "ws2_32.lib" "bcrypt.lib" "msvcrt.lib" "legacy_stdio_definitions.lib" "/NXCOMPAT" "/LIBPATH:D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib" "/OUT:G:\\Dev\\cargo-test\\target\\debug\\deps\\cargo_test.exe" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis"
"/NATVIS:D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:D:\\Rust\\rustup\\toolchains\\stable-i686-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis"
  = note: cargo_test.gfqf7cso18zg8e4.rcgu.o : error LNK2019: unresolved external symbol __imp__EnumProcesses@12 referenced in function __ZN7windows7Windows5Win326System13ProcessStatus13EnumProcesses17h6e2fa32296735387E
          G:\Dev\cargo-test\target\debug\deps\cargo_test.exe : fatal error LNK1120: 1 unresolved externals

Additional comments
I couldn't lower the problem down to a specific function from windows-sys that's used by mio.

Sounds good! Not needing release for windows-sys is nice. This way the dependencies should just work without any work required for their maintainers.

Just a quick update.
I spent the last few hours digging into this issue, testing and debugging a few different scenarios including your repro - thanks! - and there are broadly two different issues here:

The Win32 metadata incorrectly yanked some functions, causing the lib files to omit those imports, causing linker issues. https://github.com/microsoft/win32metadata/issues/1496

This was the first major update to the windows-targets crate and highlighted a problem with the way that libs are versioned. This is actually the real cause of this particular issue. Even though your repro caused Cargo to download two different versions of windows-targets and include them both, the lib file names in both cases were the same so the linker, not knowing anything about semver, just picked one "randomly" based on path search order.

The Win32 metadata issue has now been resolved and we should have a fix trickling into windows-rs soon. If not, I can always merge the metadata on my end in the short term. This will avoid having to download and build different versions of windows-targets.
The solution to the larger issue I landed on is to embed the version number of the windows-targets crate in the name of the contained lib files. That way, the lib files will always be pinned to the particular version of windows-targets and even when you land up in a situation with multiple windows-targets crates in a single build, the names of the lib files won't collide.
The downside in the short term is that this does require some major surgery to the windows-targets crate and I'm reluctant to try and release a semver compatible update. I think I should instead yank the 0.47 crates and release a major new version (0.48) of all the crates. This will of course be compatible with the existing versions of windows-sys and windows since the lib names won't collide.
How does that sound?

That way, the lib files will always be pinned to the particular version of windows-targets and even when you land up in a situation with multiple windows-targets crates in a single build, the names of the lib files won't collide.

This is really important. I think it will be common for users to have at least a dependency on windows and windows-sys at the same time when more libraries adopt both crates.

This will of course be compatible with the existing versions of windows-sys and windows since the lib names won't collide.
How does that sound?

Sounds good! Especially since a release for windows-sys was requested in https://github.com/microsoft/windows-rs/issues/2411.


:sparkles: NEW: add array type for Search Params

Close in favor of: https://github.com/jycouet/kitql/pull/585


Error creating a new app from template React TypeScript (Cannot use JSX unless the '--jsx' flag is provided.(17004))

Describe the bug
Hi,
when you create a new app with the template "React TypeScript", the app runs but the editor is showing this TypeScript error (screenshot attached):

Cannot use JSX unless the '--jsx' flag is provided.(17004)

This error appears right from the beginning (i.e., without making any changes to the code or configuration).
Link to the blitz that caused the error
https://stackblitz.com/edit/vitejs-vite-gfg6bq?file=src%2FApp.tsx
Steps to reproduce

Go to https://stackblitz.com/
Create a new app with the template React TypeScript

Expected behavior
I'd expect the template to work without errors from the beginning and without having to touch ts config files.
Parity with Local

[X] I have run the project in my local machine and I could not reproduce the issue.

Screenshots

Platform
Browser name  = Chrome
Full version  = <IP_ADDRESS>
Major version = 125
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 349900517,
  "usedJSHeapSize": 336120645,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Hash = 9e2d28a3

Additional context
Note: I had to mark the checkbox "I have run the project in my local machine" (it seems to be a required field, can not submit the form template without marking it). However, I have only tested on the web version.

same issue~

The tsconfig.json file in default Reactjs project template references tsconfig.app.json which has the compiler option, but doesn't seem to pick it up.  When I put the the jsx compiler option in tsconfig.tsx, the issue was resolved.
Here is a fresh empty project with the compiler option added to the tsconfig.json.
I'm not saying this is the solution, just what I discovered.   Hopefully this helps shed some light on the issue.

it works for me
 "compilerOptions": {
    "jsx": "react-jsx"
  },

We are aware of this issue and we have a fix for it. I will try to get it released today.

This is now released. If you run into any other issues with the fix, let us know so we can address them.


Can't find variable: regeneratorRuntime

Started testing with this api, first try, this error comes up.
Pops up at min.js line 168.
Just used the HTML setup together with api from mevdschee

Hi, which version of PHP-CRUD-API are you using? Currently tests are performed against v2.11.3.

Re-installed, working now. Thanks for your reaction.

Fine!

ReferenceError: regeneratorRuntime is not defined
I also have this problem, and I have everything updated

Hi, I just tested again, everything seems fine. Can you give me some code to read. Thanks

I also encountered the same problem, all of my files are the latest version. I learned there might some errors with Wepack packaging, and then I downloaded Facebook's runtime.js to solve this problem.
Download here:
https://github.com/facebook/regenerator/blob/5703a79746fffc152600fdcef46ba9230671025a/packages/regenerator-runtime/runtime.js
Hope to resolve this error as soon as possible.