1.19.2 crash with no other mods

Decided to download a bunch of performance mods and got surprised that I cannot start minecraft with a single FerriteCore:
https://paste.gg/p/anonymous/99492fa9581648aaa7a6f7e7ade9fd2f

2.1.1 is a build for 1.16.5, I released that to deal with some MC launcher changes a few days ago. You need to use 5.0.0 for Fabric 1.19.2.

Oh... Sorry. This build got marked as main download file on curseforge and
I did not notice that.
Thank you
On Thu., Nov. 10, 2022, 12:14 a.m. malte0811, @.***>
wrote:

Closed #100 https://github.com/malte0811/FerriteCore/issues/100 as not
planned.
—
Reply to this email directly, view it on GitHub
https://github.com/malte0811/FerriteCore/issues/100#event-7779943207,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKL5TIEH6UDVALJIN7GNNCDWHSHCVANCNFSM6AAAAAAR4DWPHE
.
You are receiving this because you authored the thread.Message ID:
@.***>


noisy build on boost 1.40

3: note: #pragma message: Ignoring signed-unsigned comparison in boost::serialization in 1.40
Is this necessary?

I thought it was better than total suppression.  It does not appear as
a warning on the buildbots.
On Mon, Oct 10, 2011 at 12:23 PM, Ethan Rublee
<EMAIL_ADDRESS>wrote:

3: note: #pragma message: Ignoring signed-unsigned comparison in boost::serialization in 1.40
Is this necessary?
--
Reply to this email directly or view it on GitHub:
https://github.com/plasmodic/ecto/issues/197


Best branch

To summarize what Lindsey and I have been working on tonight, we started a landing page and got cards with the characters' images to show up. To do this, we created a json file that holds each character's starting stats (like we did for our portfolios). We also have been working in CreateChar.js, which will be a child component of Landing. We made duplicates of some files to try different things, and anything we decided to currently not use, we are storing in a new folder called depreciated.
Next steps will be to set up a user selection method on landing to show a character was selected.
then that needs passed to charContext and the data in the input field should capture the name, then the create character button will write that data to mongo, and the user will be moved into /overworld.


Empty ranges

dwarfdump panics on optimized Firefox libxul.so. The problem is that dwarfdump iterates through location lists and range lists by running "raw" and "cooked" iterators in parallel to print both raw and cooked results. My libxul.so contains empty ranges so the "cooked" iterator finishes early and dwarfdump panics trying to unwrap None.
I think any code processing ranges should be able to handle empty ranges without writing special cases for them.

Coverage decreased (-1.8%) to 91.022% when pulling 65a48c6a99f1b5c44a0aa18f60cc77747506a006 on rocallahan:empty-ranges into 03281b66a4e969ed463fa9ef5dce85d46a25d114 on gimli-rs:master.

We do need to have the tests passing before merging this, however:

failures:
---- loclists::tests::test_loclists_32 stdout ----
	thread 'loclists::tests::test_loclists_32' panicked at 'assertion failed: `(left == right)`
  left: `Ok(Some(LocationListEntry { range: Range { begin: 33621504, end: 33621504 }, data: Expression(EndianBuf { buf: [4, 0, 0, 0], endian: LittleEndian }) }))`,
 right: `Ok(Some(LocationListEntry { range: Range { begin: 33622016, end: 33622272 }, data: Expression(EndianBuf { buf: [5, 0, 0, 0], endian: LittleEndian }) }))`', src/loclists.rs:587:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::_print
             at libstd/sys_common/backtrace.rs:71
   2: std::panicking::default_hook::{{closure}}
             at libstd/sys_common/backtrace.rs:59
             at libstd/panicking.rs:206
   3: std::panicking::default_hook
             at libstd/panicking.rs:216
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:400
   5: std::panicking::begin_panic_fmt
             at libstd/panicking.rs:347
   6: gimli::loclists::tests::test_loclists_32
             at src/loclists.rs:587
   7: gimli::__test::TESTS::{{closure}}
             at src/loclists.rs:517
   8: core::ops::function::FnOnce::call_once
             at /checkout/src/libcore/ops/function.rs:223
   9: <F as alloc::boxed::FnBox<A>>::call_box
             at libtest/lib.rs:1471
             at /checkout/src/libcore/ops/function.rs:223
             at /checkout/src/liballoc/boxed.rs:783
  10: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:102
---- loclists::tests::test_loclists_64 stdout ----
	thread 'loclists::tests::test_loclists_64' panicked at 'assertion failed: `(left == right)`
  left: `Ok(Some(LocationListEntry { range: Range { begin: 33621504, end: 33621504 }, data: Expression(EndianBuf { buf: [4, 0, 0, 0], endian: LittleEndian }) }))`,
 right: `Ok(Some(LocationListEntry { range: Range { begin: 33622016, end: 33622272 }, data: Expression(EndianBuf { buf: [5, 0, 0, 0], endian: LittleEndian }) }))`', src/loclists.rs:740:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::_print
             at libstd/sys_common/backtrace.rs:71
   2: std::panicking::default_hook::{{closure}}
             at libstd/sys_common/backtrace.rs:59
             at libstd/panicking.rs:206
   3: std::panicking::default_hook
             at libstd/panicking.rs:216
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:400
   5: std::panicking::begin_panic_fmt
             at libstd/panicking.rs:347
   6: gimli::loclists::tests::test_loclists_64
             at src/loclists.rs:740
   7: gimli::__test::TESTS::{{closure}}
             at src/loclists.rs:669
   8: core::ops::function::FnOnce::call_once
             at /checkout/src/libcore/ops/function.rs:223
   9: <F as alloc::boxed::FnBox<A>>::call_box
             at libtest/lib.rs:1471
             at /checkout/src/libcore/ops/function.rs:223
             at /checkout/src/liballoc/boxed.rs:783
  10: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:102
---- loclists::tests::test_location_list_32 stdout ----
	thread 'loclists::tests::test_location_list_32' panicked at 'assertion failed: `(left == right)`
  left: `Ok(Some(LocationListEntry { range: Range { begin: 33621504, end: 33621504 }, data: Expression(EndianBuf { buf: [4, 0, 0, 0], endian: LittleEndian }) }))`,
 right: `Ok(Some(LocationListEntry { range: Range { begin: 33622016, end: 33622272 }, data: Expression(EndianBuf { buf: [5, 0, 0, 0], endian: LittleEndian }) }))`', src/loclists.rs:881:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::_print
             at libstd/sys_common/backtrace.rs:71
   2: std::panicking::default_hook::{{closure}}
             at libstd/sys_common/backtrace.rs:59
             at libstd/panicking.rs:206
   3: std::panicking::default_hook
             at libstd/panicking.rs:216
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:400
   5: std::panicking::begin_panic_fmt
             at libstd/panicking.rs:347
   6: gimli::loclists::tests::test_location_list_32
             at src/loclists.rs:881
   7: gimli::__test::TESTS::{{closure}}
             at src/loclists.rs:822
   8: core::ops::function::FnOnce::call_once
             at /checkout/src/libcore/ops/function.rs:223
   9: <F as alloc::boxed::FnBox<A>>::call_box
             at libtest/lib.rs:1471
             at /checkout/src/libcore/ops/function.rs:223
             at /checkout/src/liballoc/boxed.rs:783
  10: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:102
---- loclists::tests::test_location_list_64 stdout ----
	thread 'loclists::tests::test_location_list_64' panicked at 'assertion failed: `(left == right)`
  left: `Ok(Some(LocationListEntry { range: Range { begin: 33621504, end: 33621504 }, data: Expression(EndianBuf { buf: [4, 0, 0, 0], endian: LittleEndian }) }))`,
 right: `Ok(Some(LocationListEntry { range: Range { begin: 33622016, end: 33622272 }, data: Expression(EndianBuf { buf: [5, 0, 0, 0], endian: LittleEndian }) }))`', src/loclists.rs:986:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::_print
             at libstd/sys_common/backtrace.rs:71
   2: std::panicking::default_hook::{{closure}}
             at libstd/sys_common/backtrace.rs:59
             at libstd/panicking.rs:206
   3: std::panicking::default_hook
             at libstd/panicking.rs:216
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:400
   5: std::panicking::begin_panic_fmt
             at libstd/panicking.rs:347
   6: gimli::loclists::tests::test_location_list_64
             at src/loclists.rs:986
   7: gimli::__test::TESTS::{{closure}}
             at src/loclists.rs:927
   8: core::ops::function::FnOnce::call_once
             at /checkout/src/libcore/ops/function.rs:223
   9: <F as alloc::boxed::FnBox<A>>::call_box
             at libtest/lib.rs:1471
             at /checkout/src/libcore/ops/function.rs:223
             at /checkout/src/liballoc/boxed.rs:783
  10: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:102
---- rnglists::tests::test_ranges_64 stdout ----
	thread 'rnglists::tests::test_ranges_64' panicked at 'assertion failed: `(left == right)`
  left: `Ok(Some(Range { begin: 33621504, end: 33621504 }))`,
 right: `Ok(Some(Range { begin: 33622016, end: 33622272 }))`', src/rnglists.rs:937:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::_print
             at libstd/sys_common/backtrace.rs:71
   2: std::panicking::default_hook::{{closure}}
             at libstd/sys_common/backtrace.rs:59
             at libstd/panicking.rs:206
   3: std::panicking::default_hook
             at libstd/panicking.rs:216
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:400
   5: std::panicking::begin_panic_fmt
             at libstd/panicking.rs:347
   6: gimli::rnglists::tests::test_ranges_64
             at src/rnglists.rs:937
   7: gimli::__test::TESTS::{{closure}}
             at src/rnglists.rs:884
   8: core::ops::function::FnOnce::call_once
             at /checkout/src/libcore/ops/function.rs:223
   9: <F as alloc::boxed::FnBox<A>>::call_box
             at libtest/lib.rs:1471
             at /checkout/src/libcore/ops/function.rs:223
             at /checkout/src/liballoc/boxed.rs:783
  10: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:102
---- rnglists::tests::test_ranges_32 stdout ----
	thread 'rnglists::tests::test_ranges_32' panicked at 'assertion failed: `(left == right)`
  left: `Ok(Some(Range { begin: 33621504, end: 33621504 }))`,
 right: `Ok(Some(Range { begin: 33622016, end: 33622272 }))`', src/rnglists.rs:847:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::_print
             at libstd/sys_common/backtrace.rs:71
   2: std::panicking::default_hook::{{closure}}
             at libstd/sys_common/backtrace.rs:59
             at libstd/panicking.rs:206
   3: std::panicking::default_hook
             at libstd/panicking.rs:216
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:400
   5: std::panicking::begin_panic_fmt
             at libstd/panicking.rs:347
   6: gimli::rnglists::tests::test_ranges_32
             at src/rnglists.rs:847
   7: gimli::__test::TESTS::{{closure}}
             at src/rnglists.rs:794
   8: core::ops::function::FnOnce::call_once
             at /checkout/src/libcore/ops/function.rs:223
   9: <F as alloc::boxed::FnBox<A>>::call_box
             at libtest/lib.rs:1471
             at /checkout/src/libcore/ops/function.rs:223
             at /checkout/src/liballoc/boxed.rs:783
  10: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:102
---- rnglists::tests::test_rnglists_32 stdout ----
	thread 'rnglists::tests::test_rnglists_32' panicked at 'assertion failed: `(left == right)`
  left: `Ok(Some(Range { begin: 33621504, end: 33621504 }))`,
 right: `Ok(Some(Range { begin: 33622016, end: 33622272 }))`', src/rnglists.rs:589:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::_print
             at libstd/sys_common/backtrace.rs:71
   2: std::panicking::default_hook::{{closure}}
             at libstd/sys_common/backtrace.rs:59
             at libstd/panicking.rs:206
   3: std::panicking::default_hook
             at libstd/panicking.rs:216
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:400
   5: std::panicking::begin_panic_fmt
             at libstd/panicking.rs:347
   6: gimli::rnglists::tests::test_rnglists_32
             at src/rnglists.rs:589
   7: gimli::__test::TESTS::{{closure}}
             at src/rnglists.rs:527
   8: core::ops::function::FnOnce::call_once
             at /checkout/src/libcore/ops/function.rs:223
   9: <F as alloc::boxed::FnBox<A>>::call_box
             at libtest/lib.rs:1471
             at /checkout/src/libcore/ops/function.rs:223
             at /checkout/src/liballoc/boxed.rs:783
  10: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:102
---- rnglists::tests::test_rnglists_64 stdout ----
	thread 'rnglists::tests::test_rnglists_64' panicked at 'assertion failed: `(left == right)`
  left: `Ok(Some(Range { begin: 33621504, end: 33621504 }))`,
 right: `Ok(Some(Range { begin: 33622016, end: 33622272 }))`', src/rnglists.rs:707:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::_print
             at libstd/sys_common/backtrace.rs:71
   2: std::panicking::default_hook::{{closure}}
             at libstd/sys_common/backtrace.rs:59
             at libstd/panicking.rs:206
   3: std::panicking::default_hook
             at libstd/panicking.rs:216
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:400
   5: std::panicking::begin_panic_fmt
             at libstd/panicking.rs:347
   6: gimli::rnglists::tests::test_rnglists_64
             at src/rnglists.rs:707
   7: gimli::__test::TESTS::{{closure}}
             at src/rnglists.rs:644
   8: core::ops::function::FnOnce::call_once
             at /checkout/src/libcore/ops/function.rs:223
   9: <F as alloc::boxed::FnBox<A>>::call_box
             at libtest/lib.rs:1471
             at /checkout/src/libcore/ops/function.rs:223
             at /checkout/src/liballoc/boxed.rs:783
  10: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:102
failures:
    loclists::tests::test_location_list_32
    loclists::tests::test_location_list_64
    loclists::tests::test_loclists_32
    loclists::tests::test_loclists_64
    rnglists::tests::test_ranges_32
    rnglists::tests::test_ranges_64
    rnglists::tests::test_rnglists_32
    rnglists::tests::test_rnglists_64

Sorry about not running the tests. I've updated them.

Thanks!

I'm not completely convinced we should do this just for dwarfdump. Most consumers will want to discard those entries. An alternative fix would have been to add a method to the iterators to return both the cooked and raw entries, so that dwarfdump didn't need its own raw iterator. Not something I feel strongly enough about to go and change though :)


PowerShell does not support automatic activation of conda virtual environment

It seems that the powershell terminal does not support automatic activation of the conda virtual environment?I am not sure if this is my problem or it is currently the case.
If we need a way to activate the conda virtual environment from the powershell terminal, I hope the following information can provide some help
Anaconda supports powershell terminal.The following is an example of the startup command provided by Anaconda:
%windir%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy ByPass -NoExit -Command "& 'F:\ProgramData\Anaconda3\shell\condabin\conda-hook.ps1' ; conda activate 'F:\ProgramData\Anaconda3' "

According to the above information, I activated the conda virtual environment in the powershell terminal of VSCode

@alexzshl Our recommendation for now is to activate conda first and then start code using code . in your workspace/project folder. https://github.com/microsoft/vscode-python/issues/10626

For anyone working on this issue: If we need to run two commands in a shell, right now there is no easy way to it. We have to use sendText and provide the command string. We need a API from VS to sendCommand, otherwise we have to duplicate shell detection and shell escaping in our extension to send the two commands correctly. Although this issue is for PS only, the activation mechanism impacts any shell that we try to send the command to.

Thank you for solving some of my doubts.  Before I asked the question, I already understood that it was a long-standing problem after several discussions.
I am not very familiar with VSCode's extension development technology. But I still tried to modify the file extension.js to test the command execution
async getPowershellCommands(e){return[& 'F:\ProgramData\Anaconda3\shell\condabin\conda-hook.ps1' ; conda activate 'F:\ProgramData\Anaconda3' ; conda activate ${e.toCommandArgument()}]}
Back to VSCode, it really works. Perhaps the path of the condabin folder can be known through conda path, making the command applicable

However, it was so smooth that I doubted what I did wrong. Are there any potential problems with this?If you think this is a repeated stupid idea, just tell me not to do this and close the issue, thank you!

@karthiknadig
Thank you for solving some of my doubts.  Before I asked the question, I already understood that it was a long-standing problem after several discussions.
I am not very familiar with VSCode's extension development technology. But I still tried to modify the file extension.js to test the command execution
async getPowershellCommands(e){return[& 'F:\ProgramData\Anaconda3\shell\condabin\conda-hook.ps1' ; conda activate 'F:\ProgramData\Anaconda3' ; conda activate ${e.toCommandArgument()}]}
Back to VSCode, it really works. Perhaps the path of the condabin folder can be known through conda path, making the command applicable

However, it was so smooth that I doubted what I did wrong. Are there any potential problems with this?If you think this is a repeated stupid idea, just tell me not to do this and close the issue, thank you!

@alexzshl the right way to do this is conda init powershell followed by conda activate <name>. This is recommended by conda. One of the issues with directly referring to conda-hook.ps1 is that some times we cannot locate condabin directory. So we have to rely on conda that is available on the path. The problem with conda init powershell is that you may need to close and open your shell after running it.

As I thought, I did miss something.conda init powershell creates a profile. As you said, the globalized profile may not be what everyone wants, and it does not seem to support PowershellCore yet. I have noticed that the role of profile is completely equivalent to the file conda-hook.ps1, but the profile does not need the file conda-hook.ps1. The hook operation may be a function already built in conda.exe.
I ’m not sure if I can delegate the work of the profile to extension(located at src\client\common\terminal\environmentActivationProviders\condaActivationProvider.ts):
async getPowershellCommands (e) {return [`(&" F: \\ ProgramData \\ Anaconda3 \\ Scripts \\ conda.exe "" shell.powershell "" hook ") | Out-String | Invoke-Expression; conda activate $ {e.toCommandArgument ()} `]}

But it seems equally effective.

As before, I do n’t know if this is a useful idea, it depends entirely on your assessment.

Yeah conda, VSCode and Powershell  is still a mess for the average programmer. Microsoft are now launching Windows Terminal. They make VSCode look easy, but it does not play nice with conda.
I can run python scripts from an Anaconda shell, but not from VS Code, because hat defaults to Powershell, conda .
(base) >conda init powershell, throws up errors, from my Anaconda shell (conda version 4.8.2)
UnicodeDecodeError 'utf-8' codec can't decode  ... in codecs.py line 32.
I have seen suggestions to change the VS Code terminal to cmd, and avoid the use of powershell.

I am having the same issue when opening a PowerShell terminal, which just tries to run "conda activate XYZ", but fails since conda is not in the path by default. Strangely it works with a cmd terminal, so I wonder why it works there, but not for PowerShell.
Also I found that there is a dedicated setting in VS Code called "Python: Conda Path". However, no matter what path I put there, PowerShell terminals always open and try to run "conda activate XYZ" without considering the "Conda Path" setting.

We need you to set conda up on your machine before we can use it, and that includes configuring your preferred shell appropriately so that a command like conda activate will work.
As I said in my previous comment, in the case of powershell, you have to run conda init powershell from the anaconda prompt to set it up.
There are several issues that we have run into with conda, See here https://github.com/microsoft/vscode-python/issues/5344. We even attempted using conda run to avoid activation issues, we had to revert all of that. The best option right now until we figure out a better way to integrate with conda here is what I recommend:

Turn off auto activation. To do this, disable these two settings, ideally only for the project you are working on:

Exit VS Code.
Open Anaconda Prompt or powershell (assuming you have setup conda for powershell), navigate to your project.
Activate the environment that you want.
Run code . or code project.code-workspace to launch VS Code.

This will give you an activated environment, and the extension will not have to try and activate every time a terminal is created.

Does this relate to #13464? Running into it again, and Google searches landed on this issue.

I was able to get this working with the following steps:
1: Run conda init powershell
2. add "args": "-ExecutionPolicy ByPass" to your PowerShell terminal profile in VSCode, e.g.,
    "terminal.integrated.profiles.windows": {
        "PowerShell": {
            "source": "PowerShell",
            "icon": "terminal-powershell",
            "args": "-ExecutionPolicy ByPass"
        }

You do get a warning that args expects and array, but wrapping "-ExecutionPolicy ByPass" in [] causes an error.

Python extension can automatically identify conda in cmd without any settings, "conda path"  in settings  seems useless in pwsh, I have tried many methods, the most convenient one is to use cmd directly.

Now that conda run is stable and VSCode provided us an alternative to activate environments: https://github.com/microsoft/vscode-python/issues/11039, this should be fixed along with fixing the other issues. Closing this.


TypeDoc won't ignore NOTICE Headers when trying to create @module or @packageDocumentation blocks

Search terms
notice, @module, @packageDocumentation
Question
This might be relevant
As stated in the documentation of the @module tag and the @packageDocumentation tag: NOTE: A comment block where the @packageDocumentation tag is used must be the first comment in the file.
However, all our files contain a block comment GNU license in them as a header. Is it still possible to generate module comments?
The following example will not generate a module description:
/**
 *  API service.
 *  Copyright (C) 2024
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as published
 *  by the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

/**
 * Specify this is a module comment without renaming it:
 * @module
 */

If you add @license to the license comment, typedoc will ignore it

Thanks!


EventHub consumer groups not used due to reversed partition metadata logic

Expected Behavior
Dapr using the set consumerGroup metadata in Event Hub component.
Actual Behavior
EventHub component doesn't use set consumerGroup resulting in only one application receiving the events.

P0 as there may be users who currently do not know that their app is missing events

Steps to Reproduce the Problem
The specific portion of the Event Hub component code responsible for receiving with a consumer group is not being executed.  This appears to be related to the inverse logic in the way the metadata.partitioned metadata element is being interpreted.
Currently when consumerGroup is set in metadata, line 214 (eventhubs: using consumer group...) is not output to Dapr log. When partitionID is explicitly set, the code executes as expected.

The logic pointed out in the description is correct and not inverted. I talked to Mark C. and I will focus on reproducing the problem first. The root cause is still TBD.

Changed it to medium since it requires some more investigation.

I used the binding quickstart to replay this scenario. These are the yaml files needed to replay this scenario in kubernetes:
Pre-reqs:

Create one EventHub namespace + topic.
Create a storage account and container.

all.yaml
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: sample-topic
spec:
  type: bindings.azure.eventhubs
  metadata:
  - name: connectionString
    value: Endpoint=sb://XXXXXX.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=KFknfiVshbBABqtxk+ByJQXfq4brYz95PW416BAC5Fk=;EntityPath=XXXXXXXXXX
  - name: consumerGroup
    value: $Default
  - name: storageAccountName
    value: XXXXXXXX
  - name: storageAccountKey
    value: XXXXXXXXX
  - name: storageContainerName
    value: XXXXXXXXX
---
kind: Service
apiVersion: v1
metadata:
  name: bindings-nodeapp
  labels:
    app: bindingsnodeapp
spec:
  selector:
    app: bindingsnodeapp
  ports:
  - protocol: TCP
    port: 80
    targetPort: 3000
  type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: bindings-nodeapp
  labels:
    app: bindingsnodeapp
spec:
  replicas: 3
  selector:
    matchLabels:
      app: bindingsnodeapp
  template:
    metadata:
      labels:
        app: bindingsnodeapp
      annotations:
        dapr.io/enabled: "true"
        dapr.io/app-id: "bindings-nodeapp"
        dapr.io/app-port: "3000"
    spec:
      containers:
      - name: node
        image: docker.io/dapriosamples/bindings-nodeapp:edge
        ports:
        - containerPort: 3000
        imagePullPolicy: Always
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: bindings-pythonapp
  labels:
    app: bindingspythonapp
spec:
  replicas: 4
  selector:
    matchLabels:
      app: bindingspythonapp
  template:
    metadata:
      labels:
        app: bindingspythonapp
      annotations:
        dapr.io/enabled: "true"
        dapr.io/app-id: "bindings-pythonapp"
    spec:
      containers:
      - name: python
        image: docker.io/dapriosamples/bindings-pythonapp:edge

kubectl apply -f all.yaml
Wait for 1 minute or two. Then count how many rows are output per subscriber pod:
$ kubectl  get pods | grep nodeapp | cut -d\  -f1 | xargs -I {} bash -c "kubectl logs {} node | wc -l "
    9053
    9055
   17787

Load seems to be somewhat distributed among the pods. One is getting more load but we are not seeing the issue where only one takes load.

OK, let me try to get this replicated with my setup. For now, I'm going to remove the P1 label and do some more research.

I also reduced the number of replicas of the subscriber from 3 to 1 and then back to 3. After some seconds, all instances start to get traffic:
$ k  get pods | grep nodeapp | cut -d\  -f1 | xargs -I {} bash -c "kubectl logs {} node | wc -l "
      51
     109
   20839

Just for ref, how did you create EventHub namespace and topic? Was this scripted somewhere?

I created manually in ms portal. I can give you the yaml off-line so you can reuse it.

The test shown the distribution of messages to be working correctly. Closing it as not reproducible.


Change request: remove users from sql backup

Script output:
BcContainerHelper version 1.0.15
BcContainerHelper is version 1.0.15
BcContainerHelper is running as administrator
Host is Microsoft Windows 10 Pro - 20H2
Docker Client Version is 19.03.13
Docker Server Version is 19.03.13
Removing container -Test
Removing C:\ProgramData\BcContainerHelper\Extensions*-Test
Fetching all docker images
Using image mcr.microsoft.com/businesscentral:10.0.19042.630
Creating Container -Test
Version: 16.7.18411.0-w1
Style: onprem
Multitenant: No
Platform: 16.0.18359.0
Generic Tag: <IP_ADDRESS>
Container OS Version: 10.0.19042.630 (20H2)
Host OS Version: 10.0.19042.630 (20H2)
Using process isolation
Using locale en-US
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file c:\mprise\project\Licenties\BC*.flf
Additional Parameters:
--volume "c:\mprise\project*****-Test\Docker\Share:c:\project\dockershare" --env bakfile="c:\project\dockershare\bak\201208 **_BC16_SANDBOX.bak"
Files in C:\ProgramData\BcContainerHelper\Extensions*-Test\my:

AdditionalOutput.ps1
license.flf
MainLoop.ps1
SetupVariables.ps1
updatecontainerhosts.ps1
Creating container ****-Test from image mcr.microsoft.com/businesscentral:10.0.19042.630
1187b82dee4649f25d13d7e4c0d426b7ccd0dab678da95ee4ea580351a34a0b1
Waiting for container *****-Test to be ready
Using artifactUrl https://bcartifacts.azureedge.net/onprem/16.7.18411.0/w1
Using installer from C:\Run\150-new
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Copying PowerShell Scripts
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Skipping restore of Cronus database
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Copying Web Client Files
Copying Client Files
Copying ModernDev Files
Copying additional files
Copying ConfigurationPackages
Copying Test Assemblies
Copying Applications
Installation took 27 seconds
Installation complete
Initializing...
Setting host.containerhelper.internal to <IP_ADDRESS> in container hosts file
Starting Container
Hostname is *****-Test
PublicDnsName is Ball-Test
Using NavUserPassword Authentication
Using Database .bak file 'c:\project\dockershare\bak\201208 *****_BC16_SANDBOX.bak'
Using database server localhost\SQLEXPRESS
Setting CompatibilityLevel for mydatabase on localhost\SQLEXPRESS
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 155FD343423B9174BA49A36AA3B5AB0DFCAF4885
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Using license file 'c:\run\my\license.flf'
Import License
Creating http download site
Setting SA Password and enabling SA
Creating Admin as SQL User and add to sysadmin
Creating SUPER user
The new users do not meet the terms of the current license. The current license allows 10 full users and 20 limited users.
at , C:\Run\SetupNavUsers.ps1: line 20
at , C:\Run\navstart.ps1: line 202
at , C:\Run\start.ps1: line 350
at , : line 1Error
Using artifactUrl https://bcartifacts.azureedge.net/onprem/16.7.18411.0/w1
Using installer from C:\Run\150-new
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Copying PowerShell Scripts
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Skipping restore of Cronus database
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Copying Web Client Files
Copying Client Files
Copying ModernDev Files
Copying additional files
Copying ConfigurationPackages
Copying Test Assemblies
Copying Applications
Installation took 27 seconds
Installation complete
Initializing...
Setting host.containerhelper.internal to <IP_ADDRESS> in container hosts file
Starting Container
Hostname is *****-Test
PublicDnsName is ******-Test
Using NavUserPassword Authentication
Using Database .bak file 'c:\project\dockershare\bak\201208 ******_BC16_SANDBOX.bak'
Using database server localhost\SQLEXPRESS
Setting CompatibilityLevel for mydatabase on localhost\SQLEXPRESS
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 155FD343423B9174BA49A36AA3B5AB0DFCAF4885
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Using license file 'c:\run\my\license.flf'
Import License
Creating http download site
Setting SA Password and enabling SA
Creating Admin as SQL User and add to sysadmin
Creating SUPER user
The new users do not meet the terms of the current license. The current license allows 10 full users and 20 limited users.
at , C:\Run\SetupNavUsers.ps1: line 20
at , C:\Run\navstart.ps1: line 202
at , C:\Run\start.ps1: line 350
at , : line 1
Initialization of container *****-Test failed
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.15\ContainerHandling\Wait-NavContainerReady.ps1:43 char:17

...             throw "Initialization of container $containerName failed" ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : OperationStopped: (Initialization ****-Test failed:String) [], RuntimeException
FullyQualifiedErrorId : Initialization of container *****-Test failed

Change Request:
As you can see I am trying to use a sql backup  which contains too many users for my BC development license).
Is it possible to remove all users before creating the ADMIN users?
Any other way which results in a working docker environment is also fine

The SetupNavUsers will check whether the user you specified as -credential already exists.
If it does, it will not create the user. I see two options for you:

To reuse a user who is already in the database
to override SetupNavUsers.ps1 and use:

Get-NAVServerUser $ServerInstance -Tenant default | % { Set-NAVServerUser -ServerInstance $ServerInstance -Tenant default -UserName $_.Username -State Disabled -ErrorAction SilentlyContinue }

Before calling the default SetupNavUsers.ps1. This will disable all users (except for one SUPER user)


Makefile (CXXFLAGS): Add -Wall

Thanks for merging!

Any chance that you'll find time to address the compiler warnings? It makes the output of make quite noisy, and in my experience a non-negligible fraction of them may be actual bugs.

I can address some portion of them, and the terminal vomit will be a nice reminder to do so. But yeah there may be a week or two of ugly compiles.


New Notebook file is not created in S3

Hi,
When I right-click and select 'New notebook,' a new notebook is opened, but it is not saved to S3; instead, it is saved in the default directory alongside 'lost+found.' Is this the intended behavior, or I am missing something and I should be able to create new notebooks directly from the plugin UI and have them automatically saved to S3?
When I use 'New File' or 'New Folder,' these actions successfully create files (excluding .ipynb) and folders in S3 storage.
Also notebooks that are uploaded to S3 storage from an external tool, such as Minio, can be opened, and any changes made to them are successfully saved.

Macos 12.4
Chrome 120.0.6099.199
jupyterlab-s3-browser 0.12.0
jupyterlab 4.0.10

Hello everyone, saving .ipynb file is not supported?

I am experiencing the same issue. Is there a way to make jupyterlab (with extension jupyterlab-s3-browser) open a new notebook on S3?

@DavidReeve, can you offer some help here?

I tried to save .ipynb file in the S3 storage through S3 browser without success. Did you find any workaround ?


Linux hosts file is writen with CRLF line endings

I ran into a situation in which the the hosts file in the guest (ubuntu 14.04) had CRLF line endings when vagranted from a Windows server 2012 R2, with Vagrant 1.7.2 and hostmanager 1.5.0 . The vagrant commands where run from a cygwin shell.
As per Ruby documentation, I replaced open mode to binary since it "... suppresses EOL <-> CRLF conversion on Windows.", on the file hosts_file.rb:69.
That seems to resolve the issue (on this particular situation, untested on other guests).
I stand ready for further testing.

This has been released. Thank you!

Hi,
I'm updating this issue beacuse I think it could have broke something. Actually, when you have a windows host and a linux guest, the linux host and the linux guest seems to have LF line endings.
Obviously, windows doesn't like LF too much :smiley:
I have tested it under the release 1.6.1, vagrant command where run from the old-fashioned cmd tool.
Please let me know if I can provide more feedback.
PS : Many thanks @seth-reeser to keep this plugin going !


[vda-common] Update contract name

Updated
Following packages are updated. Their package versions are also upgraded:

vda-common
vda-did-resolver
vda-did
vda-sbt-client

Test
VDA-XX packages
Following packages are passed in tests:

vda-did
vda-did-resolver
vda-name0client
vda-sbt-client

Other packages


Handle variable parse error

This fixes #130
TODO:

[x] Update CHANGELOG.md with your change (include reference to issue & this PR)
[x] Make sure all of the significant new logic is covered by tests
[x] Rebase your changes on master so that they can be merged easily
[x] Make sure all tests and linter rules pass

@helfer don't look at the commits this was built on top of the hapi-refactor branch.  It's ready to be merged if you agree


Move license matching code which removes underlines

Fixes an issue with matching caused by PR #156

@pmonks This should resolve the issue you found with the matchingStandardLicenseIds not matching the MPL-2.0 text.


Update workflow and sync script

Switch workflow to run manually, add audio/
Update sync script to download audio files
Update page template to use basic HTML5 <audio>

Nice 😎


[Smotrim.ru] Source removed from supported?

Checklist

[x] I'm reporting a broken site support issue
[x] I've verified that I'm running youtube-dl version 2021.12.17
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar bug reports including closed ones
[x] I've read bugs section in FAQ

Verbose log

[generic] 2426877: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 2426877: Downloading webpage
[generic] 2426877: Extracting information
ERROR: Unsupported URL: https://smotrim.ru/video/2426877
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 815, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 836, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 534, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\generic.py", line 3489, in _real_extract
youtube_dl.utils.UnsupportedError: Unsupported URL: https://smotrim.ru/video/2426877

Description

Just several days ago I was able to download vids from smotrim.ru (via generic extractor; example vid), but not anymore. Is this due to the change in their architecture, or is this some kind of ban on your side?

is this some kind of ban on your side?

Yeah, youtube-dl (which was last updated in December) includes a hidden virus in it that lets them modify your copy of the program, such as to block websites, without them even needing to release an update!
Just kidding, youtube-dl isn't Windows XP
Jokes aside, youtube-dl currently doesn't block Russian propaganda, and I honestly feel like Russia would rejoice if they did (because Russia's lies and propaganda would stop being so easy to archive). That is all just my opinion though, and I'm absolutely not an expert

Or perhaps there should be a bolshiy Translation Movement to show the rest of the world the nonsense that passes for news in today's Russia. Fortunately Putin Godwinned as his first move so there's no shame in others pointing out how he recapitulates Goebbels.
Anyhow smotrim.ru doesn't know about HTML syntax:
Error: The main element must not appear as a descendant of the main element.

From line 270, column 17; to line 270, column 51

          <main class="layout layout--video">↩

Error: A document must not include more than one visible main element.

From line 270, column 17; to line 270, column 51

          <main class="layout layout--video">↩

Apart from that it has nice ld+json that should be handled by the generic extractor, but (a) the ld+json extraction doesn't handle the embedUrl property (b) the URL there would need additional extraction to get player JSON from window.pl.data.dataUrl = '...'. In this case the link is //player.smotrim.ru/iframe/datavideo/id/2426877/sid/vh and the contents include this:
          "sources": {
            "m3u8": {
              "auto": "https://cdn-v.rtr-vesti.ru/_cdn_auth/secure/v/vh/vod_hls/definst/smil:vh/smil/002/582/836_d20220616020530.smil/playlist.m3u8?auth=mh&vid=2582836&uid=wKgcM2Ky+KW0HQx2yUfiAg=="
            },
            "http": {
              "234": "https://cdn-v.rtr-vesti.ru/_cdn_auth/secure/v/vh/mp4/low-wide/002/582/836.mp4?auth=mh&vid=2582836",
              "360": "https://cdn-v.rtr-vesti.ru/_cdn_auth/secure/v/vh/mp4/medium-wide/002/582/836.mp4?auth=mh&vid=2582836",
              "540": "https://cdn-v.rtr-vesti.ru/_cdn_auth/secure/v/vh/mp4/high-wide/002/582/836.mp4?auth=mh&vid=2582836",
              "720": "https://cdn-v.rtr-vesti.ru/_cdn_auth/secure/v/vh/mp4/hd-wide/002/582/836.mp4?auth=mh&vid=2582836",
              "1080": "https://cdn-v.rtr-vesti.ru/_cdn_auth/secure/v/vh/mp4/fhd-wide/002/582/836.mp4?auth=mh&vid=2582836"
            }
          }

Together with the ld+json metadata, that's all that's needed for extraction.

The link to your site is your owner's link

I see what you mean.  :D Here's the public view link.
Thanks for working on the issue!

Wow. Thank you. Didn't know about this. I guess, what I'm doing then could be called a 'small translation movement'.

 Sorry

I owe you an apology, because I initially assumed that you were a pro-Putin conspiracy theorist (which is why my original message was rude and sarcastic). Sorry

All is cool :) And just so you know: what you think is rude is actually childplay in comparison with what these people say in their endless ramblings. The definition of toxic, they are.

Indeed. From the UK player.rutv.ru is not responding, but player.smotrim.ru is fine:
--- old/youtube_dl/extractor/rutv.py
+++ new/youtube_dl/extractor/rutv.py
@@ -15,11 +15,12 @@ class RUTVIE(InfoExtractor):
     IE_DESC = 'RUTV.RU'
     _VALID_URL = r'''(?x)
                     https?://
-                        (?:test)?player\.(?:rutv\.ru|vgtrk\.com)/
+                        (?:(?:test)?player\.)?(?:rutv\.ru|vgtrk\.com|smotrim\.ru)/
                         (?P<path>
                             flash\d+v/container\.swf\?id=|
                             iframe/(?P<type>swf|video|live)/id/|
-                            index/iframe/cast_id/
+                            index/iframe/cast_id/|
+                            (?<=smotrim\.ru/)video/
                         )
                         (?P<id>\d+)
                     '''
@@ -52,6 +53,7 @@ class RUTVIE(InfoExtractor):
                 # m3u8 download
                 'skip_download': True,
             },
+            'skip': 'Not found -- 1113: Видео недоступно для просмотра (404)',
         },
         {
             'url': 'http://player.rutv.ru/iframe/swf/id/766888/sid/hitech/?acc_video_id=4000',
@@ -97,6 +99,7 @@ class RUTVIE(InfoExtractor):
                 'id': '21',
                 'ext': 'mp4',
                 'title': 're:^Россия 24. Прямой эфир [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$',
+                'description': 'Прямой эфир информационного телеканала "Россия 24". Новости, интервью, репортажи 24 часа в сутки.',
                 'is_live': True,
             },
             'params': {
@@ -108,6 +111,19 @@ class RUTVIE(InfoExtractor):
             'url': 'https://testplayer.vgtrk.com/iframe/live/id/19201/showZoomBtn/false/isPlay/true/',
             'only_matching': True,
         },
+        {
+            'url': 'https://smotrim.ru/video/2426877',
+            'info_dict': {
+                'id': '2426877',
+                'ext': 'mp4',
+                'title': 'Вечер с Владимиром Соловьевым. Украина, Запад и политические кидалы. Эфир от 15.06.2022',
+                'description': 'md5:cf87249921fe6877ab439cf6d41c730f',
+            },
+            'params': {
+                # m3u8 download
+                'skip_download': True,
+            },
+        },
     ]

     @classmethod
@@ -127,24 +143,25 @@ class RUTVIE(InfoExtractor):
         mobj = re.match(self._VALID_URL, url)
         video_id = mobj.group('id')
         video_path = mobj.group('path')
+        player = 'http://player.smotrim.ru'

-        if re.match(r'flash\d+v', video_path):
-            video_type = 'video'
-        elif video_path.startswith('iframe'):
+        if video_path.startswith('iframe'):
             video_type = mobj.group('type')
             if video_type == 'swf':
                 video_type = 'video'
         elif video_path.startswith('index/iframe/cast_id'):
             video_type = 'live'
+        else:
+            video_type = 'video'

         is_live = video_type == 'live'

         json_data = self._download_json(
-            'http://player.rutv.ru/iframe/data%s/id/%s' % ('live' if is_live else 'video', video_id),
+            '%s/iframe/data%s/id/%s' % (player, 'live' if is_live else 'video', video_id),
             video_id, 'Downloading JSON')

-        if json_data['errors']:
-            raise ExtractorError('%s said: %s' % (self.IE_NAME, json_data['errors']), expected=True)
+        if json_data.get('errors'):
+            raise ExtractorError('%s said: %s (%s)' % (self.IE_NAME, json_data['errors'], json_data.get('status', '-')), expected=True)

         playlist = json_data['data']['playlist']
         medialist = playlist['medialist']
@@ -153,7 +170,7 @@ class RUTVIE(InfoExtractor):
         if media['errors']:
             raise ExtractorError('%s said: %s' % (self.IE_NAME, media['errors']), expected=True)

-        view_count = playlist.get('count_views')
+        view_count = int_or_none(playlist.get('count_views'))
         priority_transport = playlist['priority_transport']

         thumbnail = media['picture']
@@ -176,8 +193,8 @@ class RUTVIE(InfoExtractor):
                         'url': mobj.group('url'),
                         'play_path': mobj.group('playpath'),
                         'app': mobj.group('app'),
-                        'page_url': 'http://player.rutv.ru',
-                        'player_url': 'http://player.rutv.ru/flash3v/osmf.swf?i=22',
+                        'page_url': player,
+                        'player_url': player + '/flash3v/osmf.swf?i=22',
                         'rtmp_live': True,
                         'ext': 'flv',
                         'vbr': str_to_int(quality),


update goveralls

What changed?
Switching repos for goveralls package. Pickup newest version

Why?

How did you test it?

Potential risks

Coverage increased (+0.1%) to 64.594% when pulling 71398deabe468eb578a64ed197a1651526a92e96 on mantas-sidlauskas:gover into b877308b294b25b5edf3897e0d089ce527188271 on uber:master.


[Monitor] Increasing nuget package and dll version to unblock publication of the SDK.

…tion of the SDK.

Description
Increasing nuget package and dll version from 0.17.0 to 0.18.0 to unblock publication of the SDK.
The code was generated using the latest merged version of the Swagger spec (Azure/azure-rest-api-specs#1693)

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] I have read the contribution guidelines.
[x] The pull request does not introduce breaking changes.

General Guidelines

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

SDK Generation Guidelines

[x] If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
[x] The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code.
[x] The *.csproj and AssemblyInfo.cs files have been updated with the new version of the SDK.

This improves the PR (less commits) https://github.com/Azure/azure-sdk-for-net/pull/3719


[10.x] Allow route:list command to filter middleware

This PR allows filter middleware in route:list command by using --middleware option

Your CLI middleware option doesn't event accept a value so not sure how this was tested.


time out exploit

remove playerparticles because you can mass add particles to another (bot or player) and time them out

and uh /pp reload

and uh /pp reload

yes

yes

nobody uses it

nobody uses it

Comeon mathias. Merge this my dude.

PlayerParticles is currently disabled on the server.


urllib3 (1.26.1) or chardet (3.0.4) doesn't match a supported version

In the startup logs is a warning
ready(): initializing watson
/home/valentijn/venv/lib/python3.8/site-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.1) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "

pip install
requests 2.24.0 requires urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1, but you'll have urllib3 1.26.2 which is incompatible.

I got the same warning on a twine upload. Updating the packages fixed it for me.
pip install -U urllib3 requests

don't think this is an issue any longer

I got the same warning on a twine upload. Updating the packages fixed it for me.
pip install -U urllib3 requests

thank mate, its work. great help

pip3 install requests

hello no work for me:(

Click

hello

Click

hello

">

Modal Login Form
Login

×

  Username
  <input type="text" placeholder="Enter Username" name="uname" required>

  Password
  <input type="password" placeholder="Enter Password" name="psw" required>

  <button type="submit">Login</button>

    <input type="checkbox" checked="checked" name="remember"> Remember me

  <button type="button" onclick="document.getElementById('id01').style.display='none'" class="cancelbtn">Cancel</button>
  Forgot password?

https://www.evil.com


Post-Traumatic Stress Disorder Detection

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
Post-Traumatic Stress Disorder (PTSD) is a mental health condition triggered by experiencing or witnessing a traumatic event. It can manifest in various symptoms such as flashbacks, nightmares, severe anxiety, and uncontrollable thoughts about the event.
Use Case
.
Benefits
No response
Add ScreenShots
No response
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@mahek0620 assigned!


Latent discretization

I am curious about the performance of discretizing latent representations.
I found the VQVAE code in the GitHub repository and would like to ask if you have already tried the discretization?

Hello, I have not tried to utilize the discrete representation.

Thank you for your response.
If you try it, I would appreciate it if you could share the results.


the bbox of the large object is not as exact as the smaller object

When I use maskrcnn to do instance segmentation, I found that the bbox of large object is not as exact as the smaller ones. And I want to know which possible reasons may lead to this result?
Thanks

I have the same issue as you @gaosanyuan

@Fenax79 Any ideas for that? I just would like to increase the weights of the larger objects, and I don't know if it should work.

@gaosanyuan Sorry, no idea now. Could you share your results if possible?


Add ability to let users choose edge weight and node coloring

As described in https://github.com/benmaier/netwulf/issues/2, this pull request adds two things:

The ability to choose which numerical edge attribute to use as the weight for the layout algo in the tool: By passing edge_weight='attribute' (default 'weight') to the visualize function the chosen (numerical) edge attribute will be exported to JSON as the weight of the edge.

The ability to choose the coloring of the nodes. This is done in a layered way: By passing node_color to visualize() with any other value than 'None' (which is the default and leads to the standard lime green being used for all nodes) the user gets two possible ways of assigning color: She could either specify a categorical node attribute encoded as a string inside each node, or pass a valid hex color directly.

This works as follows:
('Acinetobacter baumannii komplex',
{'color': '#724c28',
'type_': 'pathogen',
'group': 'Acinetobacter baumannii Komplex'})
If 'color' is specified the value given must be a color (hex, rgb, ...) accepted by the tool. If a category like 'group' is given, the groups of all nodes will be enumerated and replaced with an integer for which the tool will choose a color automatically.

I took some of your code and used it in the filtering function, see https://github.com/benmaier/netwulf/blob/master/netwulf/tools.py#L30


detect-copy-paste fork

Hey @danielstjules I needed to make some changes to be able to fix build breaks asap, so I created a fork at:
https://github.com/detect-copy-paste/detect-copy-paste and invited you to it.

No problem, and thanks for the PR! :)
https://github.com/danielstjules/jsinspect/releases/tag/0.12.7


LibWeb: Refactor WebAssembly API to use spec-defined promise AOs

Euhh. This ASAN error looks pretty bad. Looks like module instantiation created and then freed some memory that is later referenced by JS? https://github.com/LadybirdBrowser/ladybird/actions/runs/11534938625/job/32109500454?pr=1982#step:17:1149

Worked around the ASAN bug and filed an issue. It's prettttty bad. https://github.com/LadybirdBrowser/ladybird/issues/1986

follow-up compile fix: https://github.com/LadybirdBrowser/ladybird/commit/72f5fac2ffb48f1caab332baa3e0d1ed2581df99


Initial version of AGE Meta

@muhammadshoaib Please update this PR to resolve the issues with the Makefile.


_pickle.UnpicklingError: invalid load key, 'v'.

_pickle.UnpicklingError: invalid load key, 'v'.

You probably didn't download the backbone checkpoint files correctly. These files were uploaded with git-lfs. If the files in your ./ckpt/backbone/ are less than 1MB, then you might only pull the links to them.


About Sparse-conv module

hi, thanks for your project, I would like to know how to construct sparse-conv that mentioned in your paper?

Seem like this PyTorch project only simulates the skip-conv with the nn.Conv2d. 🤔
Does this mean I won't have speed improvement from deploying these codes in my project as sparse-conv isn't truly implemented?

Looks like it. This implementation uses a dense convolution + extra work, so it is even slower than the dense version. This is only a proof of concept

Looks like it. This implementation uses a dense convolution + extra work, so it is even slower than the dense version. This is only a proof of concept

This seems the implementation of sparse-conv (paper). I guess the skip-conv can be achieved  by deploying the NormGate/NormGate into it.

I tried SBNet's lib but weirdly seeing my network is heavily slower. I started an issue but since this repo is 2018's, I'm unlikely to get responses there. 😥
Their paper said they implemented skip-conv with img2col based approach from More is less: A more complicated network with less inference complexity. I wonder where these codes are released.

＠IwakuraRein　I've been working on this problem recently, have you found a solution?

CBInfer is the only working sparse video framework that can actually improve frame rates of some CNNs. However, it does not support batched inference - you will probably only see speedups over cuDNN on low end GPUs because of that.

@dabeschte
I followed the semantic segmentation example provided by cbinfer and  found that the time cost is similar:
time_cb: 0.13297295570373535
time_ref: 0.13713407516479492
accuracy (reference): 94.11%
accuracy (CBinfer): 93.88%
Am I doing something wrong? GPU: 2060s, cuda10.0, pytorch: 1.4.0

yes, the problem here is that CBInfer does not support batched inference out of the box and your GPU is not fully utilized with a batch size of 1 - utilizing less of it does not make inference faster, because you always have to wait on the one core that is actually processing a pixel.
It can make a difference when you use huge feature maps (I guess mainly with large resolutions).

@dabeschte I get it, thank you


gcc-arm-embedded: use numVersion as version, rename version to release

Motivation for this change

followup to 009668465ed07712a51d0b00e33e2d9e00d203ad (merged with https://github.com/NixOS/nixpkgs/pull/130005)

Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

@siriobalmelli What do you think about this change? That way we could use gcc-arm-embedded.version (same as we can use gcc.version).

@GrahamcOfBorg build gcc-arm-embedded-6 gcc-arm-embedded-7 gcc-arm-embedded-8 gcc-arm-embedded-9 gcc-arm-embedded-10

Result of nixpkgs-review pr 130008 at d66917c4 run on aarch64-linux 1

1 package skipped due to time constraints:

tinygo

4 packages built successfully:

blackmagic
gcc-arm-embedded (gcc-arm-embedded-10)
gcc-arm-embedded-9
opentx

10 suggestions:

warning: unclear-gpl
gpl3 is a deprecated license, please check if project uses gpl3Plus or gpl3Only and change meta.license accordingly.
Near pkgs/development/compilers/gcc-arm-embedded/9/default.nix:50:5:
   |
50 |     license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ];
   |     ^

warning: unclear-gpl
lgpl3 is a deprecated license, please check if project uses lgpl3Plus or lgpl3Only and change meta.license accordingly.
Near pkgs/development/compilers/gcc-arm-embedded/10/default.nix:50:5:
   |
50 |     license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ];
   |     ^

warning: unclear-gpl
gpl2 is a deprecated license, please check if project uses gpl2Plus or gpl2Only and change meta.license accordingly.
Near pkgs/development/compilers/gcc-arm-embedded/10/default.nix:50:5:
   |
50 |     license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ];
   |     ^

warning: unclear-gpl
lgpl3 is a deprecated license, please check if project uses lgpl3Plus or lgpl3Only and change meta.license accordingly.
Near pkgs/development/compilers/gcc-arm-embedded/9/default.nix:50:5:
   |
50 |     license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ];
   |     ^

warning: unclear-gpl
lgpl21 is a deprecated license, please check if project uses lgpl21Plus or lgpl21Only and change meta.license accordingly.
Near pkgs/development/compilers/gcc-arm-embedded/9/default.nix:50:5:
   |
50 |     license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ];
   |     ^

warning: missing-phase-hooks
installPhase should probably contain runHook preInstall and runHook postInstall.
Near pkgs/development/compilers/gcc-arm-embedded/10/default.nix:33:3:
   |
33 |   installPhase = ''
   |   ^

warning: missing-phase-hooks
installPhase should probably contain runHook preInstall and runHook postInstall.
Near pkgs/development/compilers/gcc-arm-embedded/9/default.nix:33:3:
   |
33 |   installPhase = ''
   |   ^

warning: unclear-gpl
gpl3 is a deprecated license, please check if project uses gpl3Plus or gpl3Only and change meta.license accordingly.
Near pkgs/development/compilers/gcc-arm-embedded/10/default.nix:50:5:
   |
50 |     license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ];
   |     ^

warning: unclear-gpl
gpl2 is a deprecated license, please check if project uses gpl2Plus or gpl2Only and change meta.license accordingly.
Near pkgs/development/compilers/gcc-arm-embedded/9/default.nix:50:5:
   |
50 |     license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ];
   |     ^

warning: unclear-gpl
lgpl21 is a deprecated license, please check if project uses lgpl21Plus or lgpl21Only and change meta.license accordingly.
Near pkgs/development/compilers/gcc-arm-embedded/10/default.nix:50:5:
   |
50 |     license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ];
   |     ^

@siriobalmelli What do you think about this change? That way we could use gcc-arm-embedded.version (same as we can use gcc.version).

This is brilliant, thank you :)


General Code Smell Eliminations

General changes to code for more neatness and readability. Let me know on Discord if something is wrong. I tried to make sure not to ruin the formatting, but sometimes my IDE protests :(

Oops. But thank you!


[error handling]: Ensure all arguments are dropped

Another entry in fixing unwinding: In the C-wrappers, all Robj derived from SEXPs should be moved to the closure, that evaluates the user-provided function. This way, when the closure is finished, either by panic or otherwise, the arguments all dropped.
This actually solves 90% of the problem we have with unwinding.
There are others that does it similarly: See https://github.com/jrobsonchase/easy_ffi/blob/master/src/lib.rs#L128 from the easy_ffi crate.

This is such a simple and clean change! This makes quite a bit of sensed. By moving the robj's into the unwind closure, they will be appropriately handled. In this case seeing the macro snapshots has been quite helpful!—in that we can see exactly how the macro generation changed to address this change. In the macro snapshots we see that there is a move || ensuring that everything is appropriately unwound.
Beautiful!


Use new default value for server.auth_method

Description
Use a newer version of inmanta-core that uses a new default value for the server.auth_method config option (oidc instead of None).
This PR is part of a bugfix for https://inmanta.slack.com/archives/C045Y42N49W/p1709125944031899.
Self Check:

[ ] Attached issue to pull request
[x] Changelog entry
[x] Type annotations are present
[x] Code is clear and sufficiently documented
[x] No (preventable) type errors
[x] Sufficient test cases (reproduces the bug/tests the requested feature)
[x] Correct, in line with design
[] End user documentation is included or an issue is created for end-user documentation

Processing this pull request

Merged into branches master, iso7 in 730407cff1702b3e4ede6e73c0c3457fcd4a9113


feat(deck.gl): add color range for deck.gl 3D chart

SUMMARY

Currently deck.gl 3D Hexagon and deck.gl Grid cannot set the color of the extruded bar.  Here we use color scheme control to give these two charts the ability to set colors.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

before
https://user-images.githubusercontent.com/11830681/161592471-149825bc-2ecc-420b-9dda-5a9a82f3cc30.mov
after
https://user-images.githubusercontent.com/11830681/161592239-3efa6199-f41f-451d-962a-466107be9057.mov
TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[x] Has associated issue:

https://github.com/apache/superset/issues/9697
https://github.com/apache/superset/issues/8022

[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

/testenv up


Filter referral spam

Hi, is it possible to implement a referral spam filter?
I have similar spikes like in this issue #958 I think this is related.
~Possible solution: https://github.com/matomo-org/referrer-spam-list~
I have investigated for some time and found that the traffic was coming from Amazon AWS servers.

We don't have anything planned for this at the moment. We can probably come up with a global solution that will let you filter all traffic with custom code.


chore: set +x on rgbenv script

Hm, I was trying to get your CI to fire again on this branch... *shrug*


Behat 3.0 does not allow suite names that contain a hyphen

Well, the title describes the issue pretty much. When using a hyphen in the name of a suite, Behat does not detect that suite;
./bin/behat --suite=my-test-suite
throws:
  [Behat\Testwork\Suite\Exception\SuiteNotFoundException]
  `my-test-suite` suite is not found or has not been properly registered.

As soon as I remove the hyphens, the exception is gone.
This is not a blocking issue, but I thought it might be interesting to share this.

This is because of the config normalization replacing hyphens with underscores in the config keys. We should disable this normalization for keys of prototyped nodes (I hope we could make it the default behavior in Symfony 3.0 as this is the logical behavior but it is not the default on for legacy reasons).
With the current code, your suite is actually named my_test_suite

Indeed. Executing ./bin/behat --suite=my_test_suite works, but isn't the expected behavior of course. Maybe a remark needs to be added to the documentation?

I'd rather fix this issue (it is a one-line addition in the code) than documenting it.


Parameter block binding set changes when changed from global to entry-point parameter

(Originally posted as discussion https://github.com/shader-slang/slang/discussions/3778, please close if not an issue.)
Changing a parameter block from a global to an entry-point parameter seems to change its binding set (descriptor set index) from 0 to 1.  This seems like unexpected behaviour, as there are no other bindings, but I am not clear on the specification.
To reproduce this use the following shader (tested on v2024.1.2) with -o test.glsl -entry main:
Input (global):
struct Params {
    Sampler2D<float4> tex;
}
ParameterBlock<Params> params;
[shader("pixel")]
float4 main(float2 uv) {
    return params.tex.Sample(uv);
}

Output (global), set 0 as expected:
layout(binding = 0)
uniform sampler2D params_tex_0;

Input (entry-point parameter):
struct Params {
    Sampler2D<float4> tex;
}
[shader("pixel")]
float4 main(float2 uv, ParameterBlock<Params> params) {
    return params.tex.Sample(uv);
}

Output (entry-point parameter), set 1 unexpectedly:
layout(binding = 0, set = 1)
uniform sampler2D entryPointParams_params_tex_0;

My mental model of entry-point parameters is that they should be equivalent to declaring extra globals only for that entry-point, so these two cases should generate identical bindings, but perhaps my mental model is wrong? In general, using entry-point parameters seems useful when a file contains multiple entry-points (so you don't want to use global variables), so it would be useful to know what the expected behaviour is here.  Thanks!

You are right, they should be identical in this case. I am going to take a look.

Thank you for looking into this, and for the fix! I'll update the discussion as answered.


Set-DbaLogin - implement warning message if policy settings are not enabled for -MustChange

Set-DbaLogin - implement warning message if policy settings are not enabled for -MustChange

Type of Change

[x] Bug fix (non-breaking change, fixes #7089 )
[ ] New feature (non-breaking change, adds functionality, fixes # )
[ ] Breaking change (effects multiple commands or functionality, fixes # )
[x] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[x] Adding code coverage to existing functionality
[x] Pester test is included
[ ] If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
[ ] Nunit test is included
[x] Documentation
[ ] Build system

Purpose

Ensure that the caller gets a warning message if they try to use the -MustChange but the login does not have the policy settings enabled.
Approach

Check the policy settings and return a warning if they are not enabled
Change the password after the login has been altered in case they are setting the policy settings and -MustChange all in one call.

Commands to test

See the new integration test.

So good! Thanks, @lancasteradam !


Add an accessor class to the Runtime and added Sparse Accessor related model groups

Accessor_Sparse Readme
Accessor_SparseType Readme

@bghgary Did you view the changes? And shall I create a new PR?

No, I haven't reviewed the latest yet. Thanks for the reminder.

Closing in favor of #552


Describe the feature
Thanks for your work!. I think a very useful component could be an Autocomplete.
Additional information

[ ] I intend to submit a PR for this feature.
[ ] I have already implemented and/or tested this feature.

@zernonia Thanks for your reply and sorry for the delay.
You are right, the combobox component is enough. I am creating a custom component based on the combobox. I need to emit a custom on enter keypress for the input. Currently if there are suggestions, this selects the highlighted element. How can I prevent this behavior? Can you point me in the right direction ?
Thanks!

@asiz15 It's possible to prevent default select behavior by calling event.preventDefault() for @select event on ComboboxItem. Here's an example in the docs.


ACodec  : [OMX.google.h264.encoder] ERROR(0x80001001)

Sorry guys for just dumping that here, but I've no clue what to look for. I guess my devices doesn't have hardware acceleration when it comes to video encoding:
C:\scrcpy-win64-v1.5\scrcpy-win64>scrcpy.exe
scrcpy-server.jar: 1 file pushed. 1.5 MB/s (19178 bytes in 0.012s)
ERROR: Exception on thread Thread[main,5,main]
java.lang.IllegalStateException
        at android.media.MediaCodec.native_stop(Native Method)
        at android.media.MediaCodec.stop(MediaCodec.java:1901)
        at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:75)
        at com.genymobile.scrcpy.Server.scrcpy(Server.java:25)
        at com.genymobile.scrcpy.Server.main(Server.java:109)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:256)
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
ERROR: Could not open video stream
INFO: Initial texture: 480x800
Press any key to continue...

11-20 17:03:03.885 10176 10176 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
11-20 17:03:03.896 10176 10176 D AndroidRuntime: CheckJNI is OFF
11-20 17:03:03.896 10176 10176 E cutils-trace: Error opening trace file: No such file or directory (2)
11-20 17:03:03.918 10176 10176 W art     :
  [...stripped...]
11-20 17:03:04.030 10176 10176 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
11-20 17:03:04.215 10176 10176 I Radio-JNI: register_android_hardware_Radio DONE
11-20 17:03:04.291 10176 10176 D AndroidRuntime: Calling main entry com.genymobile.scrcpy.Server
11-20 17:03:04.355 10176 10176 I art     : Thread[1,tid=10176,Native,Thread*=0x1a66e50,peer=0x12c2b1c0,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
11-20 17:03:04.356 10176 10176 D MtpDeviceJNI: register_android_mtp_MtpDevice
11-20 17:03:04.357 10176 10176 I art     : Thread[1,tid=10176,Native,Thread*=0x1a66e50,peer=0x12c2b1c0,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
11-20 17:03:04.358 10176 10176 I art     : Thread[1,tid=10176,Native,Thread*=0x1a66e50,peer=0x12c2b1c0,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
11-20 17:03:04.371 10176 10189 I OMXClient: Using client-side OMX mux.
11-20 17:03:04.430 10176 10189 W ACodec  : do not know color format 0x7f000789 =<PHONE_NUMBER>
11-20 17:03:04.430 10176 10189 I ACodec  : setupVideoEncoder succeeded
11-20 17:03:04.430 10176 10189 W ACodec  : do not know color format 0x7f000789 =<PHONE_NUMBER>
11-20 17:03:04.460 10176 10194 D SoftAVCEnc: Params width 480 height 800 level 41 colorFormat 0
11-20 17:03:04.514 10176 10194 E SoftVideoEncoderOMXComponent: Unsupported pixel format 0x2
11-20 17:03:04.514 10176 10194 E SoftAVCEnc: Error in extractGraphicBuffer
11-20 17:03:04.514 10176 10189 E ACodec  : [OMX.google.h264.encoder] ERROR(0x80001001)
11-20 17:03:04.514 10176 10189 E ACodec  : signalError(omxError 0x80001001, internalError -2147483648)
11-20 17:03:04.514 10176 10189 E ACodec  : [OMX.google.h264.encoder] ERROR(0x80001001)
11-20 17:03:04.514 10176 10189 E ACodec  : signalError(omxError 0x80001001, internalError -2147483648)
11-20 17:03:04.514 10176 10188 E MediaCodec: Codec reported err 0x80001001, actionCode 0, while in state 6
11-20 17:03:04.516 10176 10188 E MediaCodec: Codec reported err 0x80001001, actionCode 0, while in state 0
11-20 17:03:04.517 10176 10176 D AndroidRuntime: Shutting down VM
11-20 17:03:04.521 10176 10176 E scrcpy  : Exception on thread Thread[main,5,main]
11-20 17:03:04.521 10176 10176 E scrcpy  : java.lang.IllegalStateException
11-20 17:03:04.521 10176 10176 E scrcpy  :      at android.media.MediaCodec.native_stop(Native Method)
11-20 17:03:04.521 10176 10176 E scrcpy  :      at android.media.MediaCodec.stop(MediaCodec.java:1901)
11-20 17:03:04.521 10176 10176 E scrcpy  :      at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:75)
11-20 17:03:04.521 10176 10176 E scrcpy  :      at com.genymobile.scrcpy.Server.scrcpy(Server.java:25)
11-20 17:03:04.521 10176 10176 E scrcpy  :      at com.genymobile.scrcpy.Server.main(Server.java:109)
11-20 17:03:04.521 10176 10176 E scrcpy  :      at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
11-20 17:03:04.521 10176 10176 E scrcpy  :      at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:256)
11-20 17:03:04.760  1386  1386 W libEGL  : EGLNativeWindowType 0x629610 disconnect failed

Which Android version?

Hey ,I had this similar problem but it was caused due to  the  permission for usb debugging  not set correctly. i  just revoke the USB debugging authorization
and turned off the developer options and then turned it on again
turned the usb debugging on, the restarted  scrcpy
and it worked for me !

@rom1v 6.0.1
@NixonNelson thanks, didn't help, also unplugged USB and tried Wifi, same error

@sbeh
Could you try:
adb shell screenrecord /sdcard/file.mp4
adb pull /sdcard/file.mp4

Does it work?

Nope, doesn't work:
C:\> adb shell
root@:/ # screenrecord /sdcard/file.mp4
Encoder failed (err=-38)
root@:/ # logcat
11-21 10:37:53.562  7377  7382 I OMXClient: Using client-side OMX mux.
11-21 10:37:53.600  7377  7382 W ACodec  : do not know color format 0x7f000789 =<PHONE_NUMBER>
11-21 10:37:53.600  7377  7382 I ACodec  : setupVideoEncoder succeeded
11-21 10:37:53.600  7377  7382 W ACodec  : do not know color format 0x7f000789 =<PHONE_NUMBER>
11-21 10:37:53.617  7377  7382 E cutils-trace: Error opening trace file: No such file or directory (2)
11-21 10:37:53.623  7377  7384 D SoftAVCEnc: Params width 1280 height 720 level 41 colorFormat 0
11-21 10:37:53.678  7377  7377 I MPEG4Writer: limits:<PHONE_NUMBER>/0 bytes/us, bit rate: -1 bps and the estimated moov size 3195 bytes
11-21 10:37:53.701  7377  7384 E SoftVideoEncoderOMXComponent: Unsupported pixel format 0x2
11-21 10:37:53.701  7377  7384 E SoftAVCEnc: Error in extractGraphicBuffer
11-21 10:37:53.701  7377  7382 E ACodec  : [OMX.google.h264.encoder] ERROR(0x80001001)
11-21 10:37:53.701  7377  7382 E ACodec  : signalError(omxError 0x80001001, internalError -2147483648)
11-21 10:37:53.701  7377  7382 E ACodec  : [OMX.google.h264.encoder] ERROR(0x80001001)
11-21 10:37:53.701  7377  7382 E ACodec  : signalError(omxError 0x80001001, internalError -2147483648)
11-21 10:37:53.702  7377  7381 E MediaCodec: Codec reported err 0x80001001, actionCode 0, while in state 6
11-21 10:37:53.702  7377  7377 W ScreenRecord: dequeueOutputBuffer returned INVALID_OPERATION
11-21 10:37:53.704  7377  7381 E MediaCodec: Codec reported err 0x80001001, actionCode 0, while in state 0
11-21 10:37:53.704  7377  7377 D MPEG4Writer: Video track stopping
11-21 10:37:53.704  7377  7377 D MPEG4Writer: Video track source stopping
11-21 10:37:53.704  7377  7377 D MPEG4Writer: Video track source stopped
11-21 10:37:53.705  7377  7388 E MPEG4Writer: The number of recorded samples is 0
11-21 10:37:53.705  7377  7388 W MPEG4Writer: 0-duration samples found: 1
11-21 10:37:53.705  7377  7388 W MPEG4Writer: 0-duration samples found: 1
11-21 10:37:53.705  7377  7388 I MPEG4Writer: Received total/0-length (0/0) buffers and encoded 0 frames. - Video
11-21 10:37:53.705  7377  7377 D MPEG4Writer: Video track stopped
11-21 10:37:53.705  7377  7377 D MPEG4Writer: Stopping writer thread
11-21 10:37:53.705  7377  7387 D MPEG4Writer: 0 chunks are written in the last batch
11-21 10:37:53.705  7377  7377 D MPEG4Writer: Writer thread stopped
11-21 10:37:53.706  7377  7382 W GraphicBufferSource: Dropped back down to Loaded without Executing
11-21 10:37:53.712  7377  7377 D MPEG4Writer: Video track stopping
11-21 10:37:53.714  7377  7377 D ScreenRecord: failed
11-21 10:37:53.769  4959  4995 W ProcessCpuTracker: Skipping unknown process pid 7377

OK, so yes your device have a problem to encode :) It's surprising for an Android 6 device. Which is it?

Don't worry, it's some cheapass ASUS tablet ;)

I encountered the same mistake. Is it a version problem?

i encounter this mistake on emulator api 21.  and don't know how to fix it

I'm closing, since the problem also occurs with adb screenrecord (so it is not related to scrcpy).


use raw strings for generated code

closes https://github.com/dart-lang/reflectable/issues/12

Also fixed up the test which had some type errors, is this being ran on the package bots?

Very good, we'll make it a rule to use raw strings for generated code!
About running in checked mode: We use a script, bottest, which is intended to emulate a large subset of the procedure on the package bots as precisely as possible (in particular, it runs the same 'annotated_steps.py'), so I'm surprised that it isn't running checked mode already (during bottest and on the package bots). For now, I've changed the Makefile goals used to run smaller/quicker test procedures to run in checked mode in my local repo, such that it will be effective from the next git cl land.
Merging now.


Refactor passing Foreman client id to InsertDest.

As a follow-up to #44, this PR refactors passing the Foreman client id to InsertDestination using QueryContext instead of the optimizer.

LTGM. Merging. @hbdeshmukh Merging this, but if you see any issues with this please let us know. Would be great for you to take a quick look after your deadline.


Updated EKS-D to latest releases

Issue #, if available:
Description of changes:
Updated EKS-D for latest releases
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/cherrypick release-0.15

/unhold