ng new generates wrong file type

🐞 Bug report
Command (mark with an x)

- [x] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

I don't know, as I'm a new Angular user.
Description
 A clear and concise description of the problem...
C:\my_projects>ng new --help
arguments:
  name
    The name of the new workspace and initial project.

options:
...
  --style
    The file extension or preprocessor to use for style files.
...

As you can see, --style specifies the file extension and preprocessor. However, from the output of below command, you can see .scss files are generated even I specified --style sass.

C:\my_projects>ng new my-app --style sass
? Would you like to add Angular routing? No
...
CREATE my-app/src/styles.scss (80 bytes)
...
CREATE my-app/src/app/app.component.scss (0 bytes)
...
C:\my_projects>

I tried both --style sass and --style scss but in either cases only .scss files are generated.

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.13.5
@angular-devkit/core         7.3.5
@angular-devkit/schematics   7.3.5
@schematics/angular          7.3.5
@schematics/update           0.13.5
rxjs                         6.3.3
typescript                   3.2.4

C:\my_projects>

Anything else relevant?

Hi, I re-opened this as this is indeed an open issue which should have been resolved in the latest patch but didn’t as one of the commit was not merged in the patch version.
Sass syntax and extension is fully supported by the Sass team and we should accept both SCSS and Sass.
Kindly see: https://github.com/angular/angular-cli/pull/13867

Closed via m https://github.com/angular/angular-cli/commit/0fca5f7389b4c86bde1c9f79e21f51e19921d3ec


Publish nightlies to Apache Nexus Repository

Draft, TDB

PR now ready to review. Note that there is a chance that it may not work (i.e. some credential or repository setting is wrong), but we will find out when the nightly job runs and then if there is a problem I will fix it in a follow up PR.


Decomposition of volume into ellipsoids

Hi,
I want to know if the decomposition of a mesh (closed volume) into ellipsoids is supported in this repository.
If the decomposition is available could you make reference to it in code please ?
Thanks.


spelling

<string>This app needs access location when open.</string>
should be
<string>This app needs location access when open.</string>

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

ID: f0acf3fa-b705-f0cc-b676-eeca60176dfa
Version Independent ID: 1788a5d5-a3cb-15c8-927c-b6a24810245a
Content: Xamarin.Essentials: Geolocation - Xamarin
Content Source: docs/essentials/geolocation.md
Product: xamarin
Technology: xamarin-essentials
GitHub Login: @jamesmontemagno
Microsoft Alias: jamont

https://github.com/MicrosoftDocs/xamarin-docs/pull/1623


Service URL Truncated

We have a third party application that uses URLs with an encoded data parameter. These are used for registration and other purposes and following these links prior to authentication result in any URL encoded characters at the end of the URL being lost during the CAS login process. See the URLs below from the resulting login chain which were captured from the browser developer tools:
https://login.denison.edu/cas/login?service=https%3a%2f%2fevents.denison.edu%2fMasterCalendar%2fManageSubscription.aspx%3fdata%3d7J%2fMlsKOh99bxaaUpZSeJRD0avGuP%2brv%2fRo48w4%2brHTk%2bSQ628pOYLZ0zyUzj2M7TwhZdt6mrtyb7419rMmsSQ%3d%3d

https://events.denison.edu/MasterCalendar/ManageSubscription.aspx?data=7J/MlsKOh99bxaaUpZSeJRD0avGuP+rv/Ro48w4+rHTk+SQ628pOYLZ0zyUzj2M7TwhZdt6mrtyb7419rMmsSQ==&ticket=ST-1261537-bwgiAsqkfoewNA7tmuOS-login.denison.edu

https://events.denison.edu/MasterCalendar/ManageSubscription.aspx?data=7J/MlsKOh99bxaaUpZSeJRD0avGuP%20rv/Ro48w4%20rHTk%20SQ628pOYLZ0zyUzj2M7TwhZdt6mrtyb7419rMmsSQ

As you'll note when the ticket was removed from the URL so were the two equal signs (=) which resulted in the application failing to load the correct subscription.
If the user previously authenticated; clicking and following this link (which is delivered via an email) works as expected. It only appears to happen when the CAS client parses the URL to retrieve the CAS ticket.
Any help or guidance is appreciated!

@scottt732 I have built the assembly using your url-encoding-bugfix branch fixes and found that there is still an unresolved issue when no valid ticket exists and the module redirects the client to the CAS server for authentication. Using your fix and a simple query string field value of a plus character ('+'):

Make sure there is no currently existing login with the CAS server.
Navigate to https://example.server.com/default.asxp?data=%2B.
Client is redirected to https://cas.server.com/cas/login?TARGET=https%3a%2f%2fexample.server.com%2fdefault.aspx%3fdata%3d%2b.
Notice how the value of the data field is still %2B instead of being double URL encoded to %252B.

I narrowed down this issue to UrlUtils.cs. In ConstructServiceUrl(), line 101, when the 'QueryString' NameValueCollection is added to the service URL, it is URL decoded instead of being left as is. I'm not sure exactly where, but it seems to be happening somewhere in the EnhancedUriBuilder class. Since the query string parameters are being decoded, they end up being fully decoded once the client redirects after the authentication and validation steps are complete. Thus, in my example above, data would end up becoming a space since a plus character is treated as a space.
Instead of the current line 101 in UrlUtil.cs I'd recommend the following change:
foreach(string name in request.QueryString.AllKeys)
{
    ub.QueryItems.Add(HttpUtility.UrlEncode(name), HttpUtility.UrlEncode(request.QueryString[name]));
}

I'm not 100% sure if the field names need to be URL encoded, or more specifically if the query string spec allows for it, but in my testing Google Chrome allowed it.  With this fix, any query string is preserved regardless of the authentication roundtrip happening.

@hokiecoder can you please fork @scottt732's url-encoding-bugfix branch and make the change you suggested above? I'd be happy to review the full patch in context.

@serac agreed, I smell unit tests coming! :D
@hokiecoder see the question I just added in PR #53.  If you don't have the time to actually work on the unit test project that's fine, but I'd still like to hear your opinion on the question I asked since we'll be working on this project together in the future.

Fix was merged in #53.


Allow customizing workspace look on taskbar

For each workspace tab shown on taskbar (my case is Windows11) allow some customization, e.g. individual tab background colour or icon.
My usecase is:

several similar workspaces opened (versions of the same project - so pretty much identical content)
And I would like to be able to tell them apart by glancing on taskbar.

I have customized workspace windows themselves, my research show there is no way to customize taskbar look per workspace.

Great idea! I think the custom icon is the most easier way (and supported by all OS) to implement the visual difference between several VS Code windows with different projects.

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Assign attributes to servers/users/nodes/locations etc

Assign attributes to each object for easier use of the API

This will be released soon


Send an onError on when permissions is denied by user and a rationale has to be show to the user

Send an onError on when permissions is denied by user and a rationale has to be show to the user.
When there is a situation that user has chosen to not to ask for permission again then the request permission does not work. This is intended as documented in permissions. However, https://developer.android.com/reference/android/support/v4/app/ActivityCompat.html#shouldShowRequestPermissionRationale(android.app.Activity, java.lang.String) allows the app to show a rationale dialog box. Passing this flag in onError would help.

You can simply check it using android api
if (ActivityCompat.shouldShowRequestPermissionRationale(thisActivity,
            Manifest.permission. WRITE_EXTERNAL_STORAGE)) {
//show rationale
}


FPU registers not properly switched for ESP32-S3 (IDFGH-10439)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
5.1-rc1
Operating System used.
macOS
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-S3-MINI1N8
Power Supply used.
USB
What is the expected behavior?
FPU registers properly filled at context switch.
What is the actual behavior?
race condition where sometimes the FPU registers stay the same.
Steps to reproduce.
This behavior depends heavily on internal code but I can describe the problem:
I have a quite similar issue recently with an assertion in fmtlib hits which checks for wrong signs of a float value. However in a previous function this value has been set with a non-negative value. And upon more checking it revealed that this negative value is the register content of another thread. This indicates that the FPU context switch is indeed not done correctly (in IDF v5.1-rc).
Debug Logs.
++
R,<PHONE_NUMBER>, dc:54:75:c2:00:10:00:00, 45.34956
I,<PHONE_NUMBER>,    -488.4880,    +867.1760,      +2.1960,   +0.00489,   -0.00611,   -0.00122
R,<PHONE_NUMBER>, 60:55:f9:f5:7f:b0:00:00, 38.438126

abort() was called at PC 0x42029603 on core 0
0x42029603: __cxxabiv1::__terminate(void (*)()) at /Users/brnomac003/.gitlab-runner/builds/qR2TxTby/1/idf/crosstool-NG/.build/xtensa-esp32s3-elf/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:48

Backtrace: 0x40375c2a:0x3fca2cd0 0x4037bf91:0x3fca2cf0 0x4038256e:0x3fca2d10 0x42029603:0x3fca2d80 0x42029638:0x3fca2da0 0x420085cf:0x3fca2dc0 0x4200e353:0x3fca2de0 0x42010cad:0x3fca2e90 0x420113c7:0x3fca3110 0x4201393b:0x3fca3280 0x4037e8cd:0x3fca3470
0x40375c2a: panic_abort at /Users/<redacted>/esp/esp-idf/components/esp_system/panic.c:452

0x4037bf91: esp_system_abort at /Users/<redacted>/esp/esp-idf/components/esp_system/port/esp_system_chip.c:84

0x4038256e: abort at /Users/<redacted>/esp/esp-idf/components/newlib/abort.c:38

0x42029603: __cxxabiv1::__terminate(void (*)()) at /Users/brnomac003/.gitlab-runner/builds/qR2TxTby/1/idf/crosstool-NG/.build/xtensa-esp32s3-elf/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:48

0x42029638: std::terminate() at /Users/brnomac003/.gitlab-runner/builds/qR2TxTby/1/idf/crosstool-NG/.build/xtensa-esp32s3-elf/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:58

0x420085cf: fmt::v10::detail::assert_fail(char const*, int, char const*) at /Users/<redacted>/project_fw/esp_fw/s3_fw/cxxsp_component/fmtlib/fmt/include/fmt/format-inl.h:36

0x4200e353: int fmt::v10::detail::format_float<double>(double, int, fmt::v10::detail::float_specs, fmt::v10::detail::buffer<char>&) at /Users/<redacted>/project_fw/esp_fw/s3_fw/cxxsp_component/fmtlib/fmt/include/fmt/format.h:3494 (discriminator 1)

0x42010cad: std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > fmt::v10::detail::write_float<char, std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, float>(std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, float, fmt::v10::format_specs<char>, fmt::v10::detail::locale_ref) at /Users/<redacted>/project_fw/esp_fw/s3_fw/cxxsp_component/fmtlib/fmt/include/fmt/format.h:3861 (discriminator 1)

0x420113c7: std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > fmt::v10::detail::write<char, std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, float, 0>(std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, float, fmt::v10::format_specs<char>, fmt::v10::detail::locale_ref) at /Users/<redacted>/project_fw/esp_fw/s3_fw/cxxsp_component/fmtlib/fmt/include/fmt/format.h:3874
 (inlined by) decltype (({parm#2}.out)()) fmt::v10::formatter<float, char, void>::format<fmt::v10::basic_format_context<std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, char> >(float const&, fmt::v10::basic_format_context<std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, char>&) const at /Users/<redacted>/project_fw/esp_fw/s3_fw/cxxsp_component/fmtlib/fmt/include/fmt/format.h:4723
 (inlined by) decltype (({parm#2}.out)()) fmt::v10::formatter<fmt::v10::join_view<float*, float*, char>, char, void>::format<fmt::v10::basic_format_context<std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, char> >(fmt::v10::join_view<float*, float*, char> const&, fmt::v10::basic_format_context<std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, char>&) const at /Users/<redacted>/project_fw/esp_fw/s3_fw/cxxsp_component/fmtlib/fmt/include/fmt/format.h:4476

0x4201393b: std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > fmt::v10::detail::spec_field<char, fmt::v10::join_view<float*, float*, char>, 2>::format<std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, long long, fmt::v10::join_view<float*, float*, char>, fmt::v10::join_view<float*, float*, char> >(std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, long long const&, fmt::v10::join_view<float*, float*, char> const&, fmt::v10::join_view<float*, float*, char> const&) const at /Users/<redacted>/project_fw/esp_fw/s3_fw/cxxsp_component/fmtlib/fmt/include/fmt/compile.h:273
 (inlined by) std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > fmt::v10::detail::concat<fmt::v10::detail::spec_field<char, fmt::v10::join_view<float*, float*, char>, 2>, fmt::v10::detail::code_unit<char> >::format<std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, long long, fmt::v10::join_view<float*, float*, char>, fmt::v10::join_view<float*, float*, char> >(std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, long long const&, fmt::v10::join_view<float*, float*, char> const&, fmt::v10::join_view<float*, float*, char> const&) const at /Users/<redacted>/project_fw/esp_fw/s3_fw/cxxsp_component/fmtlib/fmt/include/fmt/compile.h:287
 (inlined by) std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > fmt::v10::detail::concat<fmt::v10::detail::text<char>, fmt::v10::detail::concat<fmt::v10::detail::spec_field<char, fmt::v10::join_view<float*, float*, char>, 2>, fmt::v10::detail::code_unit<char> > >::format<std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, long long, fmt::v10::join_view<float*, float*, char>, fmt::v10::join_view<float*, float*, char> >(std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, long long const&, fmt::v10::join_view<float*, float*, char> const&, fmt::v10::join_view<float*, float*, char> const&) const at /Users/<redacted>/project_fw/esp_fw/s3_fw/cxxsp_component/fmtlib/fmt/include/fmt/compile.h:288
 (inlined by) std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > fmt::v10::detail::concat<fmt::v10::detail::spec_field<char, fmt::v10::join_view<float*, float*, char>, 1>, fmt::v10::detail::concat<fmt::v10::detail::text<char>, fmt::v10::detail::concat<fmt::v10::detail::spec_field<char, fmt::v10::join_view<float*, float*, char>, 2>, fmt::v10::detail::code_unit<char> > > >::format<std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, long long, fmt::v10::join_view<float*, float*, char>, fmt::v10::join_view<float*, float*, char> >(std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, long long const&, fmt::v10::join_view<float*, float*, char> const&, fmt::v10::join_view<float*, float*, char> const&) const at /Users/<redacted>/project_fw/esp_fw/s3_fw/cxxsp_component/fmtlib/fmt/include/fmt/compile.h:288
 (inlined by) std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > fmt::v10::detail::concat<fmt::v10::detail::text<char>, fmt::v10::detail::concat<fmt::v10::detail::spec_field<char, fmt::v10::join_view<float*, float*, char>, 1>, fmt::v10::detail::concat<fmt::v10::detail::text<char>, fmt::v10::detail::concat<fmt::v10::detail::spec_field<char, fmt::v10::join_view<float*, float*, char>, 2>, fmt::v10::detail::code_unit<char> > > > >::format<std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, long long, fmt::v10::join_view<float*, float*, char>, fmt::v10::join_view<float*, float*, char> >(std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, long long const&, fmt::v10::join_view<float*, float*, char> const&, fmt::v10::join_view<float*, float*, char> const&) const at /Users/<redacted>/project_fw/esp_fw/s3_fw/cxxsp_component/fmtlib/fmt/include/fmt/compile.h:288
 (inlined by) std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > fmt::v10::detail::concat<fmt::v10::detail::field<char, long long, 0>, fmt::v10::detail::concat<fmt::v10::detail::text<char>, fmt::v10::detail::concat<fmt::v10::detail::spec_field<char, fmt::v10::join_view<float*, float*, char>, 1>, fmt::v10::detail::concat<fmt::v10::detail::text<char>, fmt::v10::detail::concat<fmt::v10::detail::spec_field<char, fmt::v10::join_view<float*, float*, char>, 2>, fmt::v10::detail::code_unit<char> > > > > >::format<std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, long long, fmt::v10::join_view<float*, float*, char>, fmt::v10::join_view<float*, float*, char> >(std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, long long const&, fmt::v10::join_view<float*, float*, char> const&, fmt::v10::join_view<float*, float*, char> const&) const at /Users/<redacted>/project_fw/esp_fw/s3_fw/cxxsp_component/fmtlib/fmt/include/fmt/compile.h:288
 (inlined by) std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > fmt::v10::detail::concat<fmt::v10::detail::text<char>, fmt::v10::detail::concat<fmt::v10::detail::field<char, long long, 0>, fmt::v10::detail::concat<fmt::v10::detail::text<char>, fmt::v10::detail::concat<fmt::v10::detail::spec_field<char, fmt::v10::join_view<float*, float*, char>, 1>, fmt::v10::detail::concat<fmt::v10::detail::text<char>, fmt::v10::detail::concat<fmt::v10::detail::spec_field<char, fmt::v10::join_view<float*, float*, char>, 2>, fmt::v10::detail::code_unit<char> > > > > > >::format<std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, long long, fmt::v10::join_view<float*, float*, char>, fmt::v10::join_view<float*, float*, char> >(std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, long long const&, fmt::v10::join_view<float*, float*, char> const&, fmt::v10::join_view<float*, float*, char> const&) const at /Users/<redacted>/project_fw/esp_fw/s3_fw/cxxsp_component/fmtlib/fmt/include/fmt/compile.h:288
 (inlined by) std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > fmt::v10::format<fmt::v10::detail::concat<fmt::v10::detail::text<char>, fmt::v10::detail::concat<fmt::v10::detail::field<char, long long, 0>, fmt::v10::detail::concat<fmt::v10::detail::text<char>, fmt::v10::detail::concat<fmt::v10::detail::spec_field<char, fmt::v10::join_view<float*, float*, char>, 1>, fmt::v10::detail::concat<fmt::v10::detail::text<char>, fmt::v10::detail::concat<fmt::v10::detail::spec_field<char, fmt::v10::join_view<float*, float*, char>, 2>, fmt::v10::detail::code_unit<char> > > > > > >, long long, fmt::v10::join_view<float*, float*, char>, fmt::v10::join_view<float*, float*, char>, char, 0>(fmt::v10::detail::concat<fmt::v10::detail::text<char>, fmt::v10::detail::concat<fmt::v10::detail::field<char, long long, 0>, fmt::v10::detail::concat<fmt::v10::detail::text<char>, fmt::v10::detail::concat<fmt::v10::detail::spec_field<char, fmt::v10::join_view<float*, float*, char>, 1>, fmt::v10::detail::concat<fmt::v10::detail::text<char>, fmt::v10::detail::concat<fmt::v10::detail::spec_field<char, fmt::v10::join_view<float*, float*, char>, 2>, fmt::v10::detail::code_unit<char> > > > > > > const&, long long const&, fmt::v10::join_view<float*, float*, char> const&, fmt::v10::join_view<float*, float*, char> const&) at /Users/<redacted>/project_fw/esp_fw/s3_fw/cxxsp_component/fmtlib/fmt/include/fmt/compile.h:510
 (inlined by) format<imu_task(void*)::<lambda()>::FMT_COMPILE_STRING, long long int, fmt::v10::join_view<float*, float*, char>, fmt::v10::join_view<float*, float*, char> > at /Users/<redacted>/project_fw/esp_fw/s3_fw/cxxsp_component/fmtlib/fmt/include/fmt/compile.h:544
 (inlined by) imu_task(void*) at /Users/<redacted>/project_fw/esp_fw/s3_fw/main/imu_task.cpp:258

0x4037e8cd: vPortTaskWrapper at /Users/<redacted>/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162

More Information.
Similar to #11225

a pair of vTaskSuspendAll() and xTaskResumeAll() calls fixed the issue immediately, so it's definitely something related to a context switch.

Since the context switch is caused by an interrupt I suspect portYIELD_FROM_ISR is not FPU-safe.

I think I'm running into this issue with my own project as well. It manifests itself as mainly assertion failures in the library I'm using (Codec2). An example of such a failure is below:
assert failed: ofdm_esno_est_calc ofdm.c:1891 (isnan(EsNodB) == 0)

Backtrace: 0x40375fc6:0x3fccfdd0 0x40380bfd:0x3fccfdf0 0x4038870e:0x3fccfe10 0x42059fa7:0x3fccff30 0x4205a158:0x3fccff70 0x4204fece:0x3fccffa0 0x4204eebc:0x3fcd1330 0x4204ef86:0x3fcd1350 0x4200dc8e:0x3fcd1380 0x4201f12b:0x3fcd2950 0x4201f141:0x3fcd2970 0x40384141:0x3fcd2990
0x40375fc6: panic_abort at /Users/mooneer/esp-idf/components/esp_system/panic.c:452

0x40380bfd: esp_system_abort at /Users/mooneer/esp-idf/components/esp_system/port/esp_system_chip.c:84

0x4038870e: __assert_func at /Users/mooneer/esp-idf/components/newlib/assert.c:81

0x42059fa7: ofdm_esno_est_calc at /Users/mooneer/ezDV/firmware/build/_deps/codec2-src/src/ofdm.c:1891 (discriminator 1)

0x4205a158: ofdm_get_demod_stats at /Users/mooneer/ezDV/firmware/build/_deps/codec2-src/src/ofdm.c:2230

0x4204fece: freedv_comp_short_rx_ofdm at /Users/mooneer/ezDV/firmware/build/_deps/codec2-src/src/freedv_700.c:508

0x4204eebc: freedv_shortrx at /Users/mooneer/ezDV/firmware/build/_deps/codec2-src/src/freedv_api.c:812

0x4204ef86: freedv_rx at /Users/mooneer/ezDV/firmware/build/_deps/codec2-src/src/freedv_api.c:753

0x4200dc8e: ezdv::audio::FreeDVTask::onTaskTick_() at /Users/mooneer/ezDV/firmware/main/audio/FreeDVTask.cpp:157

0x4201f12b: ezdv::task::DVTask::threadEntry_() at /Users/mooneer/ezDV/firmware/main/task/DVTask.cpp:323

0x4201f141: ezdv::task::DVTask::ThreadEntry_(ezdv::task::DVTask*) at /Users/mooneer/ezDV/firmware/main/task/DVTask.cpp:341

0x40384141: vPortTaskWrapper at /Users/mooneer/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162

For me, this didn't start happening until I switched from ESP-IDF 5.0 to 5.1. Additionally, I seem to be able to work around this by pinning the Codec2-using task on core 1 and all other tasks that use the FPU onto core 0 (but I could easily be running into issues with incorrect calculations on core 0 tasks instead, just harder to tell as no assertions are thrown).
Anyway, I can try backing out the changes I made and recompiling using ESP-IDF master to see if that helps. It sounds like it might per #11225, anyway.

@tmiw In the meantime you can try vTaskSuspendAll() during your FP operations, for me this fixed everything.

@tmiw In the meantime you can try vTaskSuspendAll() during your FP operations, for me this fixed everything.

I actually tried this on the Codec2 task and while it did work, it introduced unacceptable latency in the resulting network traffic (the output from the library I mentioned basically gets sent to a radio on the same LAN as the ESP32-S3).
However, ensuring that only one task per core uses FP operations seems to be working so far. I'll probably try vTaskSuspendAll() on the battery task (which still manipulates the battery data received via I2C as FP) as that only fires once every 10 seconds or so.

Hello @NaivelyWritten ,
This issue is currently under investigation on our side, we will come back to you as soon as we have information.

@NaivelyWritten  @tmiw,
Can you please try the following patch and tell me if it fixes your issues?
fpu.diff.txt
You need to be able to modify your IDF installation:
cd $IDF_PATH
patch -p1 < /path/to/fpu.diff.txt

If it does fix your issue, it will first be merged internally before making it to the next release.

@o-marshmallow, I was looking at the patch and wanted to confirm that spinlock_release should unlock a4 and a3. I ask because it looks like spinlock_take locks a4 and a2, which is a different set of registers. If that's okay, I'll give it a try.

Same question as @tmiw, it seems they are not paired.

The register numbers passed to this macro are scratch registers used within the macro. The actual spinlock variable is the third argument. So the patch is fine, please give it a try!

glad to see someone manage to pin the root of this issue. I got into this in #11225 but didn't dig much because it was unable to reproduce promptly.  Thanks for the efforts!

I'm currently running that patch here. So far, so good, although the original issue was pretty intermittent for me before. I'll keep running with it over the long weekend and see how it goes.

Is this in 5.1.1 now? Didn't see this in the release notes, maybe worth to check

Hello @ProfFan ,
This fix is part of the release v5.1.1. In the release notes, look for the line:
xtensa: Fixed a bug that altered Tasks' FPU registers (https://github.com/espressif/esp-idf/issues/11690) (https://github.com/espressif/esp-idf/commit/cadf80e8751caffaf25207a12bb65e5b188683ae)

Hello,
i have a similar problem using ESP32 WROOM with previous IDF (using arduino-esp32 2.1.7 / IDF 4.4).
Floating point calculation get wierd sometimes with NaN or inf values in place of 0 result.
I am using also context switching. (i am using a task to make ADC acquisition and do floating point calculation afterward to transform step to volt).
I can not upgrade to latest arduino-esp32 (v3.0.4) so can't check with lastest IDF release.
I will try to revert to an older version of arduino-esp32


Error text in generated test

Description
Generated tests with the UTBot plugin, got comments that some of them couldn`t have been generated.
To Reproduce
Steps to reproduce the behavior:

Run IDEA Commit https://github.com/UnitTestBot/UTBotJava/commit/cab4799cb7ff61fbd00571125d6e35a1c23857d5
Use org.utbot.examples.mock.MockRandomExamples.java to generate tests
Check the result
Find testRandomAsLocalVariable_errors() and testUseSecureRandom_errors()

Expected behavior
Tests are supposed to be generated.
Actual behavior
An error test is generated with information about errors in the concrete executor.
Visual proofs (screenshots, logs, images)
Example:
  public void testRandomAsLocalVariable_errors() {
        // Couldn't generate some tests. List of errors:
        //
        // 2 occurrences of:
        // org.mockito.MockedConstruction

    }

public void testUseSecureRandom_errors() {
        // Couldn't generate some tests. List of errors:
        //
        // 2 occurrences of:
        // org.mockito.MockedConstruction

    }

Environment
IDEA Commit https://github.com/UnitTestBot/UTBotJava/commit/cab4799cb7ff61fbd00571125d6e35a1c23857d5
Additional context
Daily manual testing. Possible regression.

This problem is described in https://github.com/UnitTestBot/UTBotJava/issues/190 and will be fixed there.


KeyError: 258

Describe the Bug
Traceback (most recent call last):
  File "test_case.py", line 886, in <module>
    run_cam.check_gain_mean_img()
  File "test_case.py", line 822, in check_gain_mean_img
    with self.ia.fetch_buffer() as buffer:
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 2816, in fetch_buffer
    logger=self._logger
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 1135, in __init__
    logger=self._logger
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 1268, in _build_payload
    buffer=buffer, node_map=node_map, logger=logger
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 1447, in __init__
    buffer=buffer, node_map=node_map
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 1363, in _build_component
    symbolic = dict_by_ints[data_format]
KeyError: 258

The above message show when I run my code to start the acquisition on PC B. My code can run on another PC A with cxp1.0 frame grabber. But when I run on this PC then it will show this error. The harvesters version is 1.3.2 and python is 3.7.6 in both PC. If I use euresys genicam browser I am able to start the streaming from both PC.  If I change harvesters to 1.3.4 it will show another error message.
 self.ia.start_acquisition()
Traceback (most recent call last):
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\genicam\genapi.py", line 2080, in __getattr__
    return self.get_node(attribute)
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\genicam\genapi.py", line 2032, in get_node
    return _genapi.NodeMap_get_node(self, key)
_genapi.LogicalErrorException: Node not existing

To Reproduce
Steps to reproduce the behavior:

run below code will see the error

from harvesters.core import Harvester
from PIL import Image
from time import sleep
h = Harvester()
h.add_file('C:\\Program Files\\Euresys\\eGrabber\\cti\\x86_64\\coaxlink.cti')
h.update()
ia = h.create_image_acquirer(0)
ia.start_acquisition()
count =0
firstmean = 0
fail_dict ={}
diff_mean = 0
img_list = []

for i in range(1,17,1):
    gain =i*1000

    with ia.fetch_buffer() as buffer:

        component = buffer.payload.components[0]

        _2d = component.data.reshape(
            component.height, component.width
        )
        img_list.append(_2d)

        print(f'img with gain{i}')
        img = Image.fromarray(_2d)

        #img.show()
    ia.stop_acquisition()
    sleep(0.1)

Traceback (most recent call last):
  File "test_hr.py", line 26, in <module>
    with ia.fetch_buffer() as buffer:
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 2816, in fetch_buffer
    logger=self._logger
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 1135, in __init__
    logger=self._logger
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 1268, in _build_payload
    buffer=buffer, node_map=node_map, logger=logger
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 1447, in __init__
    buffer=buffer, node_map=node_map
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 1363, in _build_component
    symbolic = dict_by_ints[data_format]
KeyError: 258

Expected Behavior
To able capture image
Screenshots
Configuration

PC A (working fine)

OS: [windows 10]
Python: [3.7.6]
Harvester: [1.3.2]
GenTL Producer: [Euresys GenICam Browser, <IP_ADDRESS>6]
Camera: [self]
cxp 1.0

PC B (bug occur)

OS: [windows 11]
Python: [3.7.6]
Harvester: [1.3.2]
GenTL Producer: [Euresys GenICam Browser, <IP_ADDRESS>]
Camera: [self]
cxp 2.0
Reproducibility

This phenomenon can be reproduced by other versions:

Yes, but will show another error message

If so, please list up the reproducible versions you have confirmed:
PC B (bug occur)

OS: [windows 11]
Python: [3.7.6]
Harvester: [1.3.4]
GenTL Producer: [Euresys GenICam Browser, <IP_ADDRESS>]
Camera: [self]
cxp 2.0
new error message

Traceback (most recent call last):
  File "test_hr.py", line 26, in <module>
    with ia.fetch_buffer() as buffer:
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 2823, in fetch_buffer
    logger=self._logger
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 1135, in __init__
    logger=self._logger
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 1268, in _build_payload
    buffer=buffer, node_map=node_map, logger=logger
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 1454, in __init__
    buffer=buffer, node_map=node_map
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 1374, in _build_component
    logger=self._logger
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 838, in __init__
    proxy = Dictionary.get_proxy(symbolic=self.data_format)
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 999, in data_format
    return dict_by_ints[self.data_format_value]
KeyError: 258

Actions You Have Taken
for harvester 1.3.2 if I change the below code in (site-packages\harvesters\core.py)

to

then the error will change to
Traceback (most recent call last):
  File "test_hr.py", line 26, in <module>
    with ia.fetch_buffer() as buffer:
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 2823, in fetch_buffer
    logger=self._logger
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 1135, in __init__
    logger=self._logger
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 1268, in _build_payload
    buffer=buffer, node_map=node_map, logger=logger
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 1454, in __init__
    buffer=buffer, node_map=node_map
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 1374, in _build_component
    logger=self._logger
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 838, in __init__
    proxy = Dictionary.get_proxy(symbolic=self.data_format)
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\harvesters\core.py", line 999, in data_format
    return dict_by_ints[self.data_format_value]
KeyError: 258

I suspect don't know why the harvester did not catch the GenericException. Hence, it did not get the pixel format from the node map. If it get the pixel format value from the node map then should be no problem. The second error actually is the same as the first error, it just happens in different part of the code.

I've read the Harvester FAQ page.

Additional context
I am not sure is it because the gentl producer version is different or because both PC have different cxp frame grabber.

@junneng-my Hi, thank you for the report. I will look into this issue further later and let you know once the issue is resolved. Thanks, Kazunari.

@kazunarikudo Hi, the pixel format is Mono10. However according to my camera XML file, Mono10 is 0x0102, but in the _pfnc.py Mono10 refer to 0x01100003. When I use Euresys <IP_ADDRESS>6, the buffer.pixel_format is working to give the 0x01100003, but when I use Euresys <IP_ADDRESS>, the GenericException will occur and then get the value from node_map.PixelFormat.value.
According to your message then I think the number 258 is because the XML file state Mono10 is 0x0102. Btw, is it genicam compliance camera must follow Mono10 equal to 0x01100003. Sorry if this is a simple question. Because the camera firmware is write by my company and the XML file also write by ourselves.
Also today I try with Euresys 16 version. The harvesters is working fine on the PC B above.
Yes, I will try to report to Euresys.
`try:
if part:
            data_format = part.data_format
        else:

            data_format = buffer.pixel_format
    except GenericException:
        # As a workaround, we are going to retrive a data format
        # value from the remote device node map; note that there
        # could be a case where the value is not synchronized with
        # the delivered buffer; in addition, note that it:

        if node_map:

            name = node_map.PixelFormat.value
            if name in dict_by_names:
                data_format = dict_by_names[name]
            else:
                raise
        else:
            raise

    symbolic = dict_by_ints[data_format]`

Closing: Please feel free to re-open when needed. Thanks.


Merged SqlFilestream

Relates to issue #1261.
This merges SqlFileStream between .NET Core and Framework. In the process, I've also implicitly dropped a code path to set the process-level or thread-level exception mode. This code path would set the thread-level exception mode on Windows 7 or higher, and the process-level exception mode on Windows XP or below; I've discarded the latter path.
SqlFileStream depends on a handful of PInvokes and a PathInternal class. I've merged these too, trimming unused methods where applicable. The removal of the former instances of these accounts for 70-80% of the removals.
I've also added ReadAsync and WriteAsync methods to SqlFileStream in .NET Core. The underlying FileStream supports these, so it doesn't do any harm to pass them through.

Hey @edwardneal to be honest I started on merging this class before seeing your PR (I guess our list of class merges with open PRs wasn't completely up to date). Since it looks like there's a lot of conflicts in this PR now, would it be alright if we close this one and look at the one(s) I put together? I'd also really appreciate your feedback on them, since I see you made some changes to this class that I may have overlooked.

Yes - no problem at all. I was hoping that the combination of our PInvoke moves/merges would tidy up a lot of the diff here, and wasn't looking forward to the merge which resulted from that. Your PRs already have that, so it makes sense to proceed with one of those.


Configure the git remote repository

It would be nice to make the git remote configurable. Possibly, on a per-directory-basis
https://github.com/henrikdahl/hyper-statusline/blob/master/index.js#L167
e.g: I want to be able to use upstream instead of origin

Good idea! I was curious about this and found a solution - will open a PR. 👍


Handle mismatches between existing db and schema

This PR attempts to detect and give a user option to how they want to handle a schema mismatch in the database and fast_app function. Right now a user can just specify to overwrite the current table. However, it doesn't currently handle types.

@jph00 do you know of any fancy way to compare dataclass type hints? Could try looking at manual validation like this SO answer: https://stackoverflow.com/questions/50563546/validating-detailed-types-in-python-dataclasses, but curious if you know of an easier way that doesn't require having pydantic as a dep

fastlite has a transform method (actually from sqlite-utils) -- I'd suggest looking into whether that has a solution (i.e just update the DB so it matches the class).

omg that was so much easier 😅 Thanks @jph00! I think it is ready to go now!


update @uniswap/sdk to ^3.0.2

closes #49

Thanks dude! Better change the base branch to staging, so we can include it a minor version bump.

Ah whoops, I forgot to change that.


Update issue Add_Identity_Zone_Active DB extend

We have seen twice an UAA update issue on different CF installations.
On both environments we started the update from UAA v62.0 to v64.0 and in one case to v66.0.
The update of the first instance (canary) failed during post-start:
post-start scripts failed. Failed Jobs: uaa
Unfortunately we did not have enough time to investigate why this happened and
we cannot provide any logs. But in one case we observed a database duplicate error.
On both situations it helped to revert the sql statement and delete the schema_version entry:
https://github.com/cloudfoundry/uaa/blob/develop/server/src/main/resources/org/cloudfoundry/identity/uaa/db/mysql/V4_21_0__Add_Identity_Zone_Active.sql
Action:
ALTER TABLE identity_zone drop column active;
DELETE FROM schema_version where installed_rank='73';

Afterwards UAA solved the problem by itself, the DB extend was back again and UAA could start successfully.

outdated


set dnsSettings get timeout exception

if remove dnsSetting can work

I also encountered this problem and after checking, it was confirmed that the rhttp library was causing the problem.
The specific questions are in the following lines
https://github.com/Tienisto/rhttp/blob/51135a3a88fb9d29c1cafa07617d5079efceb7b2/rhttp/rust/src/api/client.rs#L15
https://github.com/Tienisto/rhttp/blob/51135a3a88fb9d29c1cafa07617d5079efceb7b2/rhttp/rust/src/api/client.rs#L250
https://github.com/Tienisto/rhttp/blob/51135a3a88fb9d29c1cafa07617d5079efceb7b2/rhttp/rust/src/api/client.rs#L263
Since the port DUMMY_PORT=1111 was pre-defined in the rhttp library and SocketAddr was created with it, it ended up not connecting to the server correctly.
Solution (either one).

change DUMMY_PORT to 80 or 443 (your server port)
change both {ip}:{DUMMY_PORT} to {ip} and change your DnsSettings to return an address that includes the port, e.g. <IP_ADDRESS>:443.

Fixed in v0.9.4


Update documentation and annotations for ChartCalculator #4

ChartCalculator has some method that have no or inconsistent Kotlindoc.
Please update/fix the documentation accordingly.
The annotations that mark the "type" of the return types and parameters are also sometimes inconsistent or missing. Please add them, too.

@autopilot please try work on thise one.

@autopilot: Please try again


[FEATURE] sankey diagram

It's pretty cool charts.
https://en.wikipedia.org/wiki/Sankey_diagram
like https://sankey.csaladen.es/
like https://developers.google.com/chart/interactive/docs/gallery/sankey

I do like them :-)  But they're so different from the charts we support today that we're unlikely to support this
I love these charts, but you're probably better off using another library for them

I started one: https://github.com/kurkle/chartjs-chart-sankey
Examples: https://codepen.io/kurkle/pen/bGVKPOM

Amazing! (you might want to add it to chartjs/awesome at some point)


LoRA applied to encoder and decoder block of a seq-to-seq model

Feature request
Hi there!
Is it possible to take the encoder and decoder block of a seq-to-seq model like T5 and apply LoRA to each module instead of loading an  AutoModelForSeq2SeqLM directly?
Motivation
If we want to have a conditional T5 model where I want to have a conditional module in between encoder and decoder and mix the encoder last hidden state with the conditional module before passing to the decoder, I want to load the encoder and decoder separately.
Your contribution
I was thinking of loading the full model and splitting as below
MODEL_NAME = "google/flan-t5-small"
T5model = T5Model.from_pretrained(MODEL_NAME)
enc_model = T5model.encoder
dec_model = T5model.decoder

Can I then apply LoRA with FEATURE_EXTRACTION task for encoder and CAUSAL_LM task for the decoder?

In principle, this should be possible. You could call get_peft_model on encoder and decoder separately, which will result in the PEFT adapters being injected into them inplace. You could also use peft.inject_adapter_into_model to directly inject the adapters into encoder and decoder.
A possible issue with this approach is that you will only have the inplace-modified modules, not a PeftModel instance. This means that you'll lose some of the comfort features that PeftModel provides, e.g. the ability to save and load only the additional adapter weights instead of the whole model, merging of adapter layers etc. If you can live without those features, I think your suggested approach should work.

Thank you. Good point about the missing benefits in this approach, I will dig deeper.


BUG: Issue with block events

Bug description:
When using block events, the size of the events only in first column is decreasing, My using case is that on every scroll I am appending an event of block type for a particular time in 7 days of the week as shown in the screen shot, but for the first column events size is decreasing
Visual demo:

Code to reproduce
I am appending the the block event something like:
<WeekView
      events={[getLunchHoursObject(), ...tasks]}
     .... other props
    />

  const getLunchHoursObject = () => {
    return {
      id: '1000',
      description: 'Lunch',
      startDate: getDateForLunchHours(0),
      endDate: getDateForLunchHours(6),
      style: { borderRadius: 0 },
      disableDrag: true,
      disablePress: true,
      color: Colors.calendarLunchHourBlock,
      eventKind: 'block',
    }
  }

Environment:

react-native-week-view: 0.28.0
react-native: 0.66.0
react: 17
OS: iOS

Additional context (optional):

Error message or traceback (if any)
Steps to reproduce
...

I will check this out

Still happens if you delete the block event?
Happens on the first render? or only after adding more events on the fly

@pdpino
So I am adding the block events on the fly, so initially the events are properly rendered but once the block event is added (Lunch hours) the events ui gets distorted

Hi, sorry the late reply.
I was able to reproduce this with the following events:
  {
    id: 1,
    description: 'Event 1',
    startDate: new Date(2023, 1, 21, 10),
    endDate: new Date(2023, 1, 21, 11, 30),
    color: 'blue',
  },
  {
    id: 2,
    description: 'Event 2',
    startDate: new Date(2023, 1, 21, 13),
    endDate: new Date(2023, 1, 21, 14, 30),
    color: 'orange',
  },
  {
    id: 3,
    description: 'Event 3',
    startDate: new Date(2023, 1, 21, 12),
    endDate: new Date(2023, 1, 21, 16),
    color: 'red',
  },
  // If this event is present, Event1 is shrank (should keep maximum width)
  {
    id: 10,
    startDate: new Date(2023, 1, 21, 12, 30),
    endDate: new Date(2023, 1, 25, 17),
    description: '',
    color: 'rgba(0,255,0,0.2)',
    eventKind: 'block',
    style: {
      borderWidth: 0,
    },
  },


Error when scrolling through long ListView.builder (earliestUsefulChild != null is not true)

Steps to reproduce
The error message is as follows:
The following assertion was thrown during performLayout():
'package:flutter/src/rendering/sliver_list.dart': Failed assertion: line 184 pos 16: 'earliestUsefulChild != null': is not true.
Context
I was trying to create a World Clock app, and I was up to the point where I was creating a list of locations using the timezone package. I tried to create the list many times, but for some reason, duplicates of the time zones kept appearing. To resolve this issue, I created a duplicateChecker map Map<String, List<String>> duplicateChecker = {}; and kept track of all the currently seen locations. When I tried it though, a few of the ListTiles (which had the location name on them) were there and no duplicates were there so far but then when I tried to scroll down, after a few more ListTiles, the above error message came and the application just froze.
Expected results
A list of locations - created with a ListView.Builder and ListTiles - without duplicates should be displayed on the screen
Actual results
There were some locations - created with a ListView.Builder and ListTiles - and no duplicates but after a bit of scrolling down, the application crashed
Code sample
Code sample
import 'package:flutter/material.dart';
import 'package:timezone/timezone.dart' as tz;
import 'package:timezone/data/latest.dart' as tz;
import 'package:timezone/src/location.dart';

class LocationScreen extends StatefulWidget {
  const LocationScreen({super.key});

  @override
  State<LocationScreen> createState() => _LocationScreenState();
}

class _LocationScreenState extends State<LocationScreen> {
  var locationNames = tz.timeZoneDatabase.locations;
  late String outputLocation;
  Map<String, List<String>> duplicateChecker = {};
  void ContAndCountry(Map<String, Location> locationsMap, int index) {
    String locationAtKey = locationNames.keys.elementAt(index);
    List<String> allowedContinents = [
      "Africa",
      "America",
      "Antarctica",
      "Arctic",
      "Asia",
      "Atlantic",
      "Australia",
      "Brazil",
      "Canada",
      "Chile",
      "Cuba",
      "EST",
      "Egypt",
      "Eire",
      "Etc",
      "Europe",
      "Greenwich",
      "Hongkong",
      "Iceland",
      "Indian",
      "Iran",
      "Israel",
      "Jamaica",
      "Japan",
      "Kwajalein",
      "Libya",
      "Mexico",
      "Pacific",
      "Poland",
      "Portugal",
      "Singapore",
      "Turkey",
      "US",
      "UTC",
      "Zulu"
    ];
    var firstPartLocation = locationAtKey.split("/").first;
    var lastPartLocation = locationAtKey.split("/").last;

    // Check if the location is allowed and for duplicates
    if (allowedContinents.contains(firstPartLocation)) {
      // Only has the ones which are allowed
      if (locationAtKey.contains("Etc")) {
        // Now check for duplicates
        if (duplicateChecker.containsKey("Etc")) {
          if (duplicateChecker["Etc"]!.contains(locationAtKey)) {
            // Is a duplicate
            outputLocation = "not allowed";
            print("Found Duplicate in ETC");
          } else {
            // Has the key, so etc has been done before but current one is not a duplicate
            duplicateChecker["Etc"]!.add(locationAtKey);
            outputLocation = "Etc - $lastPartLocation";
          }
        } else {
          duplicateChecker["Etc"] = [locationAtKey];
          outputLocation = "Etc - $lastPartLocation";
        }
      } else if (locationAtKey.contains("/")) {
        String continent = "";
        String country = "";
        String city = "";
        String timezoneAbbrev = tz.TZDateTime.now(tz.getLocation(locationAtKey)).timeZoneName;
        continent = firstPartLocation;
        if (duplicateChecker.containsKey(continent)) {
          // Has the continent
          if (duplicateChecker[continent]!.contains(lastPartLocation)) {
            // Is a duplicate
            outputLocation = "not allowed";
            print("Found duplicate in / form");
          } else {
            // Is not a duplicate
            duplicateChecker[continent]!.add(lastPartLocation);
            if ("/".allMatches(locationAtKey).length > 1) {
              // Has a continent, country and a city (in the form continent/country/city)
              country = locationAtKey.split("/")[1];
              city = lastPartLocation;
            } else {
              // Has just a continent and a country (in the form continent/country)
              country = lastPartLocation;
            }
            outputLocation = city == ""
                ? "$country, $continent | $timezoneAbbrev"
                : "$city, $country, $continent | $timezoneAbbrev";
          }
        } else {
          // No duplicates
          duplicateChecker[continent] = [lastPartLocation];
          if ("/".allMatches(locationAtKey).length > 1) {
            // Has a continent, country and a city (in the form continent/country/city)
            country = locationAtKey.split("/")[1];
            city = lastPartLocation;
          } else {
            // Has just a continent and a country (in the form continent/country)
            country = lastPartLocation;
          }
          outputLocation = city == ""
              ? "$country, $continent | $timezoneAbbrev"
              : "$city, $country, $continent | $timezoneAbbrev";
        }
      } else {
        // LocationAtKey only has a single word (no '/'s or 'Est's)
        if (duplicateChecker.containsKey(locationAtKey)) {
          // Is a duplicate
          outputLocation = "not allowed";
          print("Found duplicate in single word form");
        } else {
          // Is not a duplicate
          outputLocation = locationAtKey;
        }
      }
    } else {
      print("Found a not allowed");
      outputLocation = "not allowed";
    }
  }

  @override
  Widget build(BuildContext context) {
    tz.initializeTimeZones();
    return Scaffold(
      appBar: AppBar(
        title: Text(
          "Location Choose Page",
          style: Theme.of(context).textTheme.bodyLarge,
        ),
        centerTitle: true,
      ),
      body: ListView.builder(
        shrinkWrap: false,
        itemCount: 431,
        itemBuilder: (context, index) {
          ContAndCountry(locationNames, index);
          if (outputLocation != "not allowed") {
            return Card(
              child: ListTile(
                onTap: () {},
                title: Text(outputLocation),
              ),
            );
          }
        },
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.16.4, on Microsoft Windows [Version 10.0.22621.2861], locale en-AU)
    • Flutter version 3.16.4 on channel stable at C:\Flutter\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2e9cb0aa71 (2 weeks ago), 2023-12-11 14:35:13 -0700
    • Engine revision 54a7145303
    • Dart version 3.2.3
    • DevTools version 2.28.4

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\RainG\AppData\Local\Android\sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.8.3)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.8.34330.188
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2023.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)

[√] VS Code (version 1.85.1)
    • VS Code at C:\Users\RainG\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.78.0

[√] Connected device (4 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Windows (desktop)                  • windows       • windows-x64    • Microsoft Windows [Version 10.0.22621.2861]
    • Chrome (web)                       • chrome        • web-javascript • Google Chrome 120.0.6099.129
    • Edge (web)                         • edge          • web-javascript • Microsoft Edge 120.0.2210.91

[√] Network resources
    • All expected network resources are available.

• No issues found!

The issue is with fixed itemcount
can you check against this code
class _LocationScreenState extends State<LocationScreen> {
  var locationNames = tz.timeZoneDatabase.locations;
  late String outputLocation;
  Map<String, List<String>> duplicateChecker = {};

  List<String> allowedContinents = [
    "Africa",
    "America",
    "Antarctica",
    "Arctic",
    "Asia",
    "Atlantic",
    "Australia",
    "Brazil",
    "Canada",
    "Chile",
    "Cuba",
    "EST",
    "Egypt",
    "Eire",
    "Etc",
    "Europe",
    "Greenwich",
    "Hongkong",
    "Iceland",
    "Indian",
    "Iran",
    "Israel",
    "Jamaica",
    "Japan",
    "Kwajalein",
    "Libya",
    "Mexico",
    "Pacific",
    "Poland",
    "Portugal",
    "Singapore",
    "Turkey",
    "US",
    "UTC",
    "Zulu"
  ];

  Set<String> validLocation = Set();

  void ContAndCountry(Map<String, Location> locationsMap, int index) {
    String locationAtKey = locationNames.keys.elementAt(index);

    var firstPartLocation = locationAtKey.split("/").first;
    var lastPartLocation = locationAtKey.split("/").last;

    // Check if the location is allowed and for duplicates
    if (allowedContinents.contains(firstPartLocation)) {
      // Only has the ones which are allowed
      if (locationAtKey.contains("Etc")) {
        // Now check for duplicates
        if (duplicateChecker.containsKey("Etc")) {
          if (duplicateChecker["Etc"]!.contains(locationAtKey)) {
            // Is a duplicate
            outputLocation = "not allowed";
            print("Found Duplicate in ETC");
          } else {
            // Has the key, so etc has been done before but current one is not a duplicate
            duplicateChecker["Etc"]!.add(locationAtKey);
            outputLocation = "Etc - $lastPartLocation";
          }
        } else {
          duplicateChecker["Etc"] = [locationAtKey];
          outputLocation = "Etc - $lastPartLocation";
        }
      } else if (locationAtKey.contains("/")) {
        String continent = "";
        String country = "";
        String city = "";
        String timezoneAbbrev =
            tz.TZDateTime.now(tz.getLocation(locationAtKey)).timeZoneName;
        continent = firstPartLocation;
        if (duplicateChecker.containsKey(continent)) {
          // Has the continent
          if (duplicateChecker[continent]!.contains(lastPartLocation)) {
            // Is a duplicate
            outputLocation = "not allowed";
            print("Found duplicate in / form");
          } else {
            // Is not a duplicate
            duplicateChecker[continent]!.add(lastPartLocation);
            if ("/".allMatches(locationAtKey).length > 1) {
              // Has a continent, country and a city (in the form continent/country/city)
              country = locationAtKey.split("/")[1];
              city = lastPartLocation;
            } else {
              // Has just a continent and a country (in the form continent/country)
              country = lastPartLocation;
            }
            outputLocation = city == ""
                ? "$country, $continent | $timezoneAbbrev"
                : "$city, $country, $continent | $timezoneAbbrev";
            validLocation.add(outputLocation);
          }
        } else {
          // No duplicates
          duplicateChecker[continent] = [lastPartLocation];
          if ("/".allMatches(locationAtKey).length > 1) {
            // Has a continent, country and a city (in the form continent/country/city)
            country = locationAtKey.split("/")[1];
            city = lastPartLocation;
          } else {
            // Has just a continent and a country (in the form continent/country)
            country = lastPartLocation;
          }
          outputLocation = city == ""
              ? "$country, $continent | $timezoneAbbrev"
              : "$city, $country, $continent | $timezoneAbbrev";
          validLocation.add(outputLocation);
        }
      } else {
        // LocationAtKey only has a single word (no '/'s or 'Est's)
        if (duplicateChecker.containsKey(locationAtKey)) {
          // Is a duplicate
          outputLocation = "not allowed";
          print("Found duplicate in single word form");
        } else {
          // Is not a duplicate
          outputLocation = locationAtKey;
          validLocation.add(locationAtKey);
        }
      }
    } else {
      print("Found a not allowed");
      outputLocation = "not allowed";
    }
  }

  @override
  void initState() {
    tz.initializeTimeZones();
    super.initState();

    for (int i = 0; i <= 430; i++) {
      ContAndCountry(locationNames, i);
    }
  }

  @override
  Widget build(BuildContext context) {
    //
    return Scaffold(
      appBar: AppBar(
        title: Text(
          "Location Choose Page",
          style: Theme.of(context).textTheme.bodyLarge,
        ),
        centerTitle: true,
      ),
      body: ListView.builder(
        shrinkWrap: false,
        itemCount: validLocation.length,
        itemBuilder: (context, index) {
          return Card(
            child: ListTile(
              onTap: () {},
              title: Text(validLocation.elementAt(index)),
            ),
          );
        },
      ),
    );
  }
}

Don't store outputLocation in the parent widget it's really confusing, return it from ContAndCountry. You may have confusing results because of this, the outputLocation should not leak from the itembuilder.

Don't store outputLocation in the parent widget it's really confusing, return it from ContAndCountry. You may have confusing results because of this, the outputLocation should not leak from the itembuilder.

When I returned the output location from ContAndCountry, I just got a list of tiles saying 'not allowed'. Can you please check my code and give me some code I have tried all I can think of and I don't know if I am implementing your solution correctly.
This is contAndCountry
var locationNames = tz.timeZoneDatabase.locations;
  // late String outputLocation;
  Map<String, List<String>> duplicateChecker = {};
  String contAndCountry(Map<String, Location> locationsMap, int index) {
    String locationAtKey = locationNames.keys.elementAt(index);
    String outputLocation;
    List<String> allowedContinents = [
      "Africa",
      "America",
      "Antarctica",
      "Arctic",
      "Asia",
      "Atlantic",
      "Australia",
      "Brazil",
      "Canada",
      "Chile",
      "Cuba",
      "EST",
      "Egypt",
      "Eire",
      "Etc",
      "Europe",
      "Greenwich",
      "Hongkong",
      "Iceland",
      "Indian",
      "Iran",
      "Israel",
      "Jamaica",
      "Japan",
      "Kwajalein",
      "Libya",
      "Mexico",
      "Pacific",
      "Poland",
      "Portugal",
      "Singapore",
      "Turkey",
      "US",
      "UTC",
      "Zulu"
    ];
    var firstPartLocation = locationAtKey.split("/").first;
    var lastPartLocation = locationAtKey.split("/").last;

    // Check if the location is allowed and for duplicates
    if (allowedContinents.contains(firstPartLocation)) {
      // Only has the ones which are allowed
      if (locationAtKey.contains("Etc")) {
        // Now check for duplicates
        if (duplicateChecker.containsKey("Etc")) {
          if (duplicateChecker["Etc"]!.contains(locationAtKey)) {
            // Is a duplicate
            outputLocation = "not allowed";
            print("Found Duplicate in ETC");
            return outputLocation;
          } else {
            // Has the key, so etc has been done before but current one is not a duplicate
            duplicateChecker["Etc"]!.add(locationAtKey);
            outputLocation = "Etc - $lastPartLocation";
            return outputLocation;
          }
        } else {
          duplicateChecker["Etc"] = [locationAtKey];
          outputLocation = "Etc - $lastPartLocation";
          return outputLocation;
        }
      } else if (locationAtKey.contains("/")) {
        String continent = "";
        String country = "";
        String city = "";
        String timezoneAbbrev = tz.TZDateTime.now(tz.getLocation(locationAtKey)).timeZoneName;
        continent = firstPartLocation;
        if (duplicateChecker.containsKey(continent)) {
          // Has the continent
          if (duplicateChecker[continent]!.contains(lastPartLocation)) {
            // Is a duplicate
            outputLocation = "not allowed";
            print("Found duplicate in / form");
            return outputLocation;
          } else {
            // Is not a duplicate
            duplicateChecker[continent]!.add(lastPartLocation);
            if ("/".allMatches(locationAtKey).length > 1) {
              // Has a continent, country and a city (in the form continent/country/city)
              country = locationAtKey.split("/")[1];
              city = lastPartLocation;
            } else {
              // Has just a continent and a country (in the form continent/country)
              country = lastPartLocation;
            }
            outputLocation = city == ""
                ? "$country, $continent | $timezoneAbbrev"
                : "$city, $country, $continent | $timezoneAbbrev";
            return outputLocation;
          }
        } else {
          // No duplicates
          duplicateChecker[continent] = [lastPartLocation];
          if ("/".allMatches(locationAtKey).length > 1) {
            // Has a continent, country and a city (in the form continent/country/city)
            country = locationAtKey.split("/")[1];
            city = lastPartLocation;
          } else {
            // Has just a continent and a country (in the form continent/country)
            country = lastPartLocation;
          }
          outputLocation = city == ""
              ? "$country, $continent | $timezoneAbbrev"
              : "$city, $country, $continent | $timezoneAbbrev";
          return outputLocation;
        }
      } else {
        // LocationAtKey only has a single word (no '/'s or 'Est's)
        if (duplicateChecker.containsKey(locationAtKey)) {
          // Is a duplicate
          outputLocation = "not allowed";
          print("Found duplicate in single word form");
          return outputLocation;
        } else {
          // Is not a duplicate
          outputLocation = locationAtKey;
          // return outputLocation;
          return locationAtKey;
        }
      }
    } else {
      print("Found a not allowed");
      outputLocation = "not allowed";
      // return outputLocation;
      return "not allowed";
    }
    // return outputLocation;
  }

This is the Body of the scaffold
body: ListView.builder(
        shrinkWrap: true,
        itemCount: 431,
        itemBuilder: (context, index) {
          // ContAndCountry(locationNames, index);
          if (ContAndCountry(locationNames, index) != "not allowed") {
            return Card(
              child: ListTile(
                onTap: () {},
                title: Text(ContAndCountry(locationNames, index)),
              ),
            );
          }
        },
      ),

I've rearranged it to work better
Main points

The main confusion came from mixing generation and iteration. In my new way, all the locations are calculated at the beginning within initState. Then within build, the exact count of items is already known and the exact item can be fetched by index quickly
I don't think the duplicate thing did anything at all, it didn't find any duplicates. But in any case I rearranged it to be more simple
Maybe my time zone database is different as I didn't get any Etc timezones
Now that all data is calculated upfront, you can sort it etc first too

class MyAppState30 extends State<MyApp> {
  late final List<({String name, tz.Location location})> locations;
  @override
  void initState() {
    super.initState();
    tzdata.initializeTimeZones();
    final Set<String> duplicates = {};
    locations = [];
    for (final location in tz.timeZoneDatabase.locations.entries) {
      final Set<String> allowedContinents = {
        "Africa",
        "America",
        "Antarctica",
        "Arctic",
        "Asia",
        "Atlantic",
        "Australia",
        "Brazil",
        "Canada",
        "Chile",
        "Cuba",
        "EST",
        "Egypt",
        "Eire",
        "Etc",
        "Europe",
        "Greenwich",
        "Hongkong",
        "Iceland",
        "Indian",
        "Iran",
        "Israel",
        "Jamaica",
        "Japan",
        "Kwajalein",
        "Libya",
        "Mexico",
        "Pacific",
        "Poland",
        "Portugal",
        "Singapore",
        "Turkey",
        "US",
        "UTC",
        "Zulu"
      };
      final List<String> parts = location.key.split('/');

      if (!allowedContinents.contains(parts.first)) {
        // Not allowed, skip
        print("Found a not allowed $location");
        continue;
      }
      final String name;
      if (parts.length > 1) {
        if (parts.first == 'Etc') {
          // Etc/x
          name = "Etc - ${parts.last}";
        } else {
          // Multiple parts
          name = '${parts.join(', ')} | ${tz.TZDateTime.now(location.value).timeZoneName}';
        }
      }
      else {
        // Only one part
        name = location.key;
      }
      if (duplicates.contains(name)) {
        // Duplicate, skip
        print('Found duplicate $name');
        continue;
      }
      locations.add((name: name, location: location.value));
      duplicates.add(name);
    }
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text(
            "Location Choose Page",
            style: Theme.of(context).textTheme.bodyLarge,
          ),
          centerTitle: true,
        ),
        body: ListView.builder(
          shrinkWrap: false,
          itemCount: locations.length,
          itemBuilder: (context, index) {
            return Card(
              child: ListTile(
                onTap: () {},
                title: Text(locations[index].name),
              ),
            );
          },
        ),
      ),
    );
  }
}

Thank you, the code resolved my problem


clarified that the currently common OneNote for Windows 10 is actuall…

…y not supported

Merged. Thanks @SR-- !


The VRAM usage is too high and cannot be released.

The model will not be unloaded from the VRAM after each generation, and using multiple identical nodes will load the model multiple times, resulting in high VRAM usage.
The screenshot shows the LLM VRAM usage after running the workflow once after a fresh boot and automatically unloading the SD model.
Even using --disable-smart-memory doesn't help.
Even if I use a 4090 graphics card, I still can't bear this consumption.
Is there any way to automatically unload the model from the VRAM after each generation? Or is there any other solution that can reduce the model's video memory usage?

im working on the gpu memory release after generation. i will add this to all of the vlm nodes.


Support a way to retrieve last processed SAMLResponse Message ID and Assertion ID

As we do at php-saml toolkit with getLastMessageId and getLastAssertionId

Done https://github.com/onelogin/python-saml/commit/e70d0cd8f3c772ebd0b4606fd7ce02b5d3cce97d


Ignore usage statistics file

Reasons for making this change:
.idea/misc.xml used to contain usage statistics.  This was broken out to usage.statistics.xml in the latest EAP (2018.2 EAP).  It should be excluded from git.
Links to documentation supporting these rule changes:
See https://youtrack.jetbrains.com/issue/IDEA-192913

@bamapookie thanks!


Android, react-native-cli init project, Invariant Violation: requireNativeComponent: "RNCWebView" was not found in the UIManager.

Bug description:
Invariant Violation: requireNativeComponent: "RNCWebView" was not found in the UIManager.
This error is located at:
in RNCWebView (at WebView.android.js:241)
in RCTView (at WebView.android.js:244)
in WebView (at App.js:34)
in RCTView (at App.js:24)
in App (at renderApplication.js:40)
in RCTView (at AppContainer.js:101)
in RCTView (at AppContainer.js:119)
in AppContainer (at renderApplication.js:39)
and I has try this method:
react-native link
react-native start --reset-cache
uninstall the app from the device
react-native run-android
To Reproduce:
https://github.com/YanYuanFE/react-native-signature-canvas/tree/master/example/signapp
Expected behavior:
no error
Screenshots/Videos:

Environment:

OS: MacOS
OS version: 10.15.2
react-native version: v0.61.5
react-native-webview version: v8.1.2

I do have the same issue on Android,
React native : 0.59.10
react-native-webview : 8.1.2
Did you find any solution ?

Same, looks like running react-native link isn't actually linking the android project. I got it working by manually linking. You can add the following to manually link the project:
In android/settings.gradle add:
project(':react-native-webview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-webview/android')```

in android/app/src/main/java/com/outpatient/MainApplication.java import the package in your imports section:
`import com.reactnativecommunity.webview.RNCWebViewPackage;`
and also init the package where you see the other bits that look like this:
`new RNCWebViewPackage()`

in android/app/build.gradle look for the other bits that look like this and add it:
`implementation project(':react-native-webview')`

Hi LorienHW,
Thanks for the reply, that did work for me !

Thanks @LorienHW,
you saved the day :)