Cannot access route after response headers are sent?

Title: Cannot access route after response headers are sent?
Description:
Hi team, we have a custom filter which will log the request to our report service. And after upgrading from v1.25.4 to v1.26.3, we found one scenario will cause crash here https://github.com/GoogleCloudPlatform/esp-v2/blob/7ba0794eeb6bf4fb5f88fe6d73687f2f4a3a01b1/src/envoy/http/service_control/handler_impl.cc#L125C31-L125C65.
Here's the stack trace
[2023-07-25 19:07:10.628][456853][error][envoy_bug] [external/envoy/source/common/http/conn_manager_impl.h:322] envoy bug failure: !route_cache_blocked_. Details: Should never try to refresh or clear the route cache when it is blocked! To temporarily ignore this new constraint, set runtime flag `envoy.reloadable_features.prohibit_route_refresh_after_response_headers_sent` to `false`
[2023-07-25 19:07:10.628][456853][error][envoy_bug] [external/envoy/source/common/common/assert.h:38] stacktrace for envoy bug
[2023-07-25 19:07:10.639][456853][error][envoy_bug] [external/envoy/source/common/common/assert.h:43] #0 Envoy::Http::ConnectionManagerImpl::ActiveStream::refreshCachedRoute() [0x55721de40f66]
[2023-07-25 19:07:10.649][456853][error][envoy_bug] [external/envoy/source/common/common/assert.h:43] #1 Envoy::Http::ConnectionManagerImpl::ActiveStream::route() [0x55721de45f12]
[2023-07-25 19:07:10.663][456853][error][envoy_bug] [external/envoy/source/common/common/assert.h:43] #2 Envoy::Http::ActiveStreamFilterBase::getRoute() [0x55721e51b183]
[2023-07-25 19:07:10.676][456853][error][envoy_bug] [external/envoy/source/common/common/assert.h:43] #3 Envoy::Http::ActiveStreamFilterBase::mostSpecificPerFilterConfig() [0x55721e51b237]
[2023-07-25 19:07:10.690][456853][error][envoy_bug] [external/envoy/source/common/common/assert.h:43] #4 espv2::envoy::http_filters::service_control::ServiceControlHandlerImpl::getOperationFromPerRoute() [0x55721d9b49f5]
[2023-07-25 19:07:10.702][456853][error][envoy_bug] [external/envoy/source/common/common/assert.h:43] #5 espv2::envoy::http_filters::service_control::ServiceControlHandlerImpl::ServiceControlHandlerImpl() [0x55721d9b3e76]
[2023-07-25 19:07:10.713][456853][error][envoy_bug] [external/envoy/source/common/common/assert.h:43] #6 espv2::envoy::http_filters::service_control::ServiceControlHandlerFactoryImpl::createHandler() [0x55721d9b2b00]
[2023-07-25 19:07:10.727][456853][error][envoy_bug] [external/envoy/source/common/common/assert.h:43] #7 espv2::envoy::http_filters::service_control::ServiceControlFilter::log() [0x55721d9f5647]
[2023-07-25 19:07:10.740][456853][error][envoy_bug] [external/envoy/source/common/common/assert.h:43] #8 Envoy::Http::FilterManager::log() [0x55721de37a14]
[2023-07-25 19:07:10.755][456853][error][envoy_bug] [external/envoy/source/common/common/assert.h:43] #9 Envoy::Http::ConnectionManagerImpl::doDeferredStreamDestroy() [0x55721de3744f]
[2023-07-25 19:07:10.769][456853][error][envoy_bug] [external/envoy/source/common/common/assert.h:43] #10 Envoy::Http::ConnectionManagerImpl::doEndStream() [0x55721de36d25]
[2023-07-25 19:07:10.781][456853][error][envoy_bug] [external/envoy/source/common/common/assert.h:43] #11 Envoy::Http::FilterManager::encodeData() [0x55721e5210f6]
[2023-07-25 19:07:10.796][456853][error][envoy_bug] [external/envoy/source/common/common/assert.h:43] #12 Envoy::Http::Utility::encodeLocalReply() [0x55721e610557]
[2023-07-25 19:07:10.807][456853][error][envoy_bug] [external/envoy/source/common/common/assert.h:43] #13 Envoy::Http::Utility::sendLocalReply() [0x55721e610679]
[2023-07-25 19:07:10.821][456853][error][envoy_bug] [external/envoy/source/common/common/assert.h:43] #14 Envoy::Http::DownstreamFilterManager::sendLocalReplyViaFilterChain() [0x55721e523766]
[2023-07-25 19:07:10.833][456853][error][envoy_bug] [external/envoy/source/common/common/assert.h:43] #15 Envoy::Http::DownstreamFilterManager::sendLocalReply() [0x55721e52294e]
[2023-07-25 19:07:10.834][456853][critical][main] [external/envoy/source/exe/terminate_handler.cc:12] std::terminate called! (possible uncaught exception, see trace)
[2023-07-25 19:07:10.834][456853][critical][backtrace] [external/envoy/source/server/backtrace.h:91] Backtrace (use tools/stack_decode.py to get line numbers):
[2023-07-25 19:07:10.834][456853][critical][backtrace] [external/envoy/source/server/backtrace.h:92] Envoy version: 0/1.26.3//RELEASE/BoringSSL
[2023-07-25 19:07:10.844][456853][critical][backtrace] [external/envoy/source/server/backtrace.h:96] #0: Envoy::TerminateHandler::logOnTerminate()::$_0::__invoke() [0x55721d999060]
[2023-07-25 19:07:10.854][456853][critical][backtrace] [external/envoy/source/server/backtrace.h:96] #1: __cxxabiv1::__terminate() [0x55721eca3d3a]
[2023-07-25 19:07:10.854][456853][critical][backtrace] [external/envoy/source/server/backtrace.h:104] Caught Aborted, suspect faulting address 0x5ae550006f887
[2023-07-25 19:07:10.854][456853][critical][backtrace] [external/envoy/source/server/backtrace.h:91] Backtrace (use tools/stack_decode.py to get line numbers):
[2023-07-25 19:07:10.854][456853][critical][backtrace] [external/envoy/source/server/backtrace.h:92] Envoy version: 0/1.26.3//RELEASE/BoringSSL
[2023-07-25 19:07:10.854][456853][critical][backtrace] [external/envoy/source/server/backtrace.h:98] #0: [0x7fb1c9762f90]
[2023-07-25 19:07:10.855][456853][critical][backtrace] [external/envoy/source/server/backtrace.h:98] #1: [0x59d7f4ccd90]
ActiveStream 0x59d7f2b0e00, stream_id_:<PHONE_NUMBER>0188920096&filter_manager_:
  FilterManager 0x59d7f2b0ea8, state_.has_1xx_headers_: 0
  filter_manager_callbacks_.requestHeaders():
    ':authority', '<IP_ADDRESS>:20920'
    ':path', '/echo/123/path/'
    ':method', 'GET'
    'user-agent', 'Go-http-client/1.1'
    'accept-encoding', 'gzip'
  filter_manager_callbacks_.requestTrailers():   null
  filter_manager_callbacks_.responseHeaders():
    ':status', '307'
    'location', '/echo/123/path/'
    'content-length', '26'
    'content-type', 'application/json'
    'date', 'Tue, 25 Jul 2023 19:07:10 GMT'
    'server', 'envoy'
  filter_manager_callbacks_.responseTrailers():   null
  &streamInfo():
    StreamInfoImpl 0x59d7f2b0fd8, protocol_: 1, response_code_: 307, response_code_details_: path_normalization_failed, attempt_count_: null, health_check_request_: 0, route_name_:     upstream_info_:     null
    OverridableRemoteConnectionInfoSetterStreamInfo 0x59d7f2b0fd8, remoteAddress(): <IP_ADDRESS>:56406, directRemoteAddress(): <IP_ADDRESS>:56406, localAddress(): <IP_ADDRESS>:20920

We need the route info to report the corresponding api method. Some preliminary study showed to me we cannot access route after the response is sent and the route is empty. Is this expected? Thanks.
After setting  envoy.reloadable_features.prohibit_route_refresh_after_response_headers_sent to false, the issue disappeared.

cc @wbpcode this is likely related to the change regarding route table lifetimes. Can you look into this? Thank you.

/assign

After a quick look, here are some basic conclusions:

This crash should has nothing to do with route lifetime.
This crash is because we forbit the route refresh after response header is sent and a  ENVOY_BUG is used to notice users. But if someone clear the route cache at the response phase and then, any route() call after response header is sent will try to refresh the route and trigger the ENVOY_BUG.
This will no be triggered in the release build, it should be safe in the production env. And envoy.reloadable_features.prohibit_route_refresh_after_response_headers_sent could be used to work around this problem temporarily.
The final solution should be finding out the one who clear the route. We should never do this at response phase.

cc @shuoyang2016 and could you provide more context about the crash, for example, the complete config dump file.
I didn't found the clearRouteCache in your code base, so, maybe there are other reason (lua, wasm, etc)?

Thank you @wbpcode. This is not blocking us so we are looking for long-term solutions.

The final solution should be finding out the one who would clear the cached route at response phase. We should never do this at response phase.

May I ask the reason for this? If this is the case, should we have some precautions to prevent anyone to do this?

I didn't found the clearRouteCache in your code base, so, maybe there are other reasons (lua, wasm, etc)?

We don't use lua, wasm so it must be someone cleared the route cache. I'll try to print more logs and config dump to define this. Or is it possible the route cache is never set?

May I ask the reason for this? If this is the case, should we have some precautions to prevent anyone to do this?

Because clear route cache will force the envoy to re-search the route for the request. But we shouldn't do this at response phase because has been routed based previous route.

Or is it possible the route cache is never set?

Hmmm, it's impossible because the envoy will set route before start filter chain processing. Even the cached route may be nullptr pointer.
I saw your reponse is 307, is redirect route configured?

Hmmm, it's impossible because the envoy will set route before start filter chain processing. Even the cached route may be nullptr pointer.
I saw your reponse is 307, is redirect route configured?

I think we didn't. Shouldn't it return nullptr in this case? I thought in any case it should return some route even if it's null?

I thought in any case it should return some route even if it's null?

Yeah, route() will always return something (even a nullptr is something). But if you clear the cached route by clearRouteCache() and call the route() again, the Envoy will try to re-select the route again which is forbidden at the response phase. At the release mode, a warnning log will be printed and at the debug mode, ENVOY_BUG will be triggered.
I think we still need the complete config dump (and log) to see what acutally happened.

This is the test we run. Test log and config dump attached. Thanks.
envoy_config_dump.txt
test_log.txt

I got it. Thanks. After a quick check to your config dump file, there is the conclusion:

Or is it possible the route cache is never set?

You previous guess is right. The route never be set because the request is rejected/redirected before start filter chain processing. But the response still be processed by the encoder filter chain which will try to refresh the route and trigger the ENVOY_BUG.

Thanks for you report and we will try to fix it. cc @shuoyang2016

I still think we shouldn't refresh the route after the response header is sent. So, there would be two solutions:

remove the ENVOY_BUG. Any route clear and route refresh still be forbiden. Any related operations after response headers is sent will just do nothing.
try refresh route cache before start the procossing of encoder filter chain.

cc @mattklein123 wdyt?

Thanks @wbpcode for confirming.

Hi @wbpcode, for the corner case The local response is sent before the initial route is set. This may occur because the request lost some necessary headers. as you mentioned in https://github.com/envoyproxy/envoy/pull/28875, seems the only option for us is to set envoy.reloadable_features.prohibit_route_refresh_after_response_headers_sent to false to workaround the ENVOY_BUG.
Wanna confirm with u?

@TAOXUY I think we have fixed that corner case. And if you cannot upgrade your Envoy, then set the runtime flag to false is the ony option.


Sync logout or stop session to devices list on phone

I tried logging out and stopping the session endpoint. It succeeded on the API side, as when I checked the /api/sessions endpoint, the session was no longer there. However, the connected device list on the WhatsApp phone app still showed, and manual logout was necessary. I compared it with the WhatsApp web and desktop versions, where upon logging out, the connected device list on the phone also logged out (synchronized). Does this mean the session stop or logout endpoint is a bug? Because I require this logout synchronization. I am a Waha Plus user.

Yes, it's a bug. Right now, you have to log out from the device manually.
https://github.com/devlikeapro/whatsapp-http-api/issues/148
We'll look at this!

I am a Waha Plus user.

By the way, you can specify your GitHub username at https://portal.devlike.pro/ and you'll get that mark to highlight your support!
:point_down:


Update mongodb-driver-core to 3.11.0

Updates org.mongodb:mongodb-driver-core from 3.10.2 to 3.11.0.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention @scala-steward in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [{ groupId = "org.mongodb", artifactId = "mongodb-driver-core" }]

labels: semver-minor

https://github.com/mongodb/mongo-java-driver/releases/tag/r3.11.0

Applications using the mongo scala driver are recommended to update to the 2.7 version:
http://mongodb.github.io/mongo-scala-driver/2.7/changelog/


Quiz Question Grading Bug

The grade for the last person on the list is often not saved.
Need to have the next/prev/finish buttons pause for a second before going to the next page (so that the ajax call can go through)

Added a fix for this near the end of my last course. Forgot to close the issue


updated link for framework file

Fixed the invalid link referred by "framework file" in "Most of the common code are located in the framework file that leaves only one function to be implemented for different conversions.".
This fix is for the issue #13759 .

@shub-asa1 thanks for this fix. Your link is referring file from version 1.13 but current document version is 1.14. So this document should refer file from 1.14 version branch.

/lgtm

/approve
although I'm also gonna go look for a variable/shortcode we might have to help avoid having to update these paths with every release. (unless, of course, I'm remembering something from a completely different docset ...)


Jax slow on cuda 11.0

Hey, I updated to:
cuda: 11.0
cuDNN: v8.0.4
jaxlib==0.1.56+cuda110

Suddenly JAX is super slow. Am I getting the requirements right?

Can you try jaxlib==0.1.57? (Looks like our readme isn't updated to indicate 0.1.57.)

Thanks
Don't know exactly what happened but speed is on par now, I think it was somehow the drivers.


Wiki - Main -  Deleted documentation folder and related scripts

Description of change
Wiki - Deleted documentation folder and related scripts as it's moved to the wiki
Links to any relevant issues
fixes https://github.com/iotaledger/devx/issues/159
Type of change

[x] Documentation Fix

How the change has been tested
docs were compared and dumped in the wiki
Change checklist

[x] I have followed the contribution guidelines for this project
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation

@eike-hass , could someone who's authorized merge this?


balloons: add PreferSpreadOnPhysicalCores

Enable using different CPU allocators in different balloon types. So far the same CPU allocator was used with the same options for all CPU allocations in the policy.
Add new PreferSpreadOnPhysicalCores option to toggle CPU allocations packing or spreading on physical CPU cores. This option is specific to balloon type with a policy level default.
Make existing AllocatorTopologyBalancing option specific to balloon type, too.

@askervin Please add the missing sign-offs ?

@askervin Thats 1 out of 2 ;-) If you could fix the other commit, too ?

@askervin Thats 1 out of 2 ;-) If you could fix the other commit, too ?

Uh-oh. Luckily this monkey doesn't need to type all the Shakespeare. That would take longer. Thanks @klihub!


Visual mode: use a lighter guibg color

The guibg value for Visual mode highlighting is set to #7f7f7f, a
lighter grey color that makes visual selection more visually appealing.

Changes to the colorscheme should be done with estilo


feat: Add isSuggested value to templates for all plugins

This PR adds an isSuggested value to templates for all plugins
Fixes # (issue number)

New feature (non-breaking change which adds functionality)

Testing

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration.
Delete anything that is not relevant

[ ] Manual
[ ] JUnit
[ ] Jest
[ ] Cypress

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Speedbreak features have been covered
[ ] Test plan covers all impacted features and areas of interest
[ ] Test plan has been peer reviewed by project stakeholders and other QA members
[ ] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

/ok-to-test

@Irongade could we please attach the issue that we are fixing with this change? It helps for anyone outside of the immediate team working on this to gain context of what's up even when they look back at this PR in the future.

@Irongade could we please attach the issue that we are fixing with this change? It helps for anyone outside of the immediate team working on this to gain context of what's up even when they look back at this PR in the future.

Sure, I just created one and I've attached it.

/ok-to-test

/ok-to-test


Outdated provision docs for Ubuntu 24.04 LTS (package vagrant not found)

On this page:
https://zulip.readthedocs.io/en/latest/development/setup-recommended.html#requirements
I click the "Ubuntu/Debian" tab.  Then under "Step 1", the first item is to install packages including vagrant.  But on Ubuntu 24.04 LTS the package vagrant does not exist.
As noted on Vagrant's website (https://developer.hashicorp.com/vagrant/downloads), to install on Ubuntu you must run:
wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt install vagrant

This affects both the stable and latest versions of the documentation.
Zulip Server and web app version:

[ ] Zulip Cloud (*.zulipchat.com)
[X] Zulip Server 9.x
[ ] Zulip Server 8.x
[ ] Zulip Server 7.x
[ ] Zulip Server 6.x or older
[ ] Other or not sure

@psybers can i work on this issue.

hello, I also faced same problem, this solution worked for me :
wget https://releases.hashicorp.com/vagrant/2.4.1/vagrant_2.4.1-1_amd64.deb

sudo dpkg -i vagrant_2.4.1-1_amd64.deb

done, check installation by this command:
vagrant --version

@ShreyTanna29 Don’t do that, because you won’t get any updates that way. The directions on the Vagrant website are the correct ones to follow.


Fix incorrect find regex

I intended this regex to match \., but instead, it was matching \ followed by any character.

Codecov Report
Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:

Coverage data is based on head (01dfd82) compared to base (ab8847f).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #99   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            4         4
  Lines           61        61
=========================================
  Hits            61        61

Impacted Files
Coverage Δ

ioc_fanger/regexes_fang.py
100.00% <ø> (ø)

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

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


fix for android tv and stremio web

having catalogElement.behaviorHints.defaultVideoId equal to catalogElement.id is the only way to get streams to show properly on android tv and stremio web

Thanks @dexter21767

@anime-src dont forget to deploy the update

Sorry, Im not deploying, never did, it's up to who needs it to deploy it, private hosting or public to share

@dexter21767-dev  deployed on https://86f0740f37f6-hanime-stremio.baby-beamup.club/manifest.json


Can't sync EA app

Origin is discontinued, now I can't sync anything
Please update this

Please update EA login, we need it!!

Yes please

+1

+1

+1

I have updated the code on a fork of https://github.com/FriendsOfGalaxy/galaxy-integration-origin. The fix is to open
%localappdata%\GOG.com\Galaxy\plugins\installed\origin_ {UNIQUE-ID-STRING} and replace plugin.py with the one in this zipped file.
plugin.zip

Can't login

I have updated the code on a fork of https://github.com/FriendsOfGalaxy/galaxy-integration-origin. The fix is to open %localappdata%\GOG.com\Galaxy\plugins\installed\origin_ {UNIQUE-ID-STRING} and replace plugin.py with the one in this zipped file. plugin.zip

This worked thank you
Only AUTH_PARAMS updated.

Is there going to be an update fix for the integration or we have to manually fix it every time? 😕

Is there going to be an update fix for the integration or we have to manually fix it every time? 😕

Repo seems to have been dormant for a long time. GOG needs to do something about this. @goggalaxy

@mbanczerowski Can you please fix this already we are waiting for months?

Same here.

+1 on this. We really need to get the origin repo updated or they start a new repo for the EA Client specifically.  I understand its a community integration but considering how GOG was pushing these community integrations its crazy how unusable some of them are nowadays.

works    Download this https://github.com/FriendsOfGalaxy/galaxy-integration-origin/releases/download/v0.40/windows.zip
Replace  in  %localappdata%\GOG.com\Galaxy\plugins\installed\origin  , and replace the plugin.py  with  https://github.com/gogcom/galaxy-integrations-python-api/files/12849055/plugin.zip

This needs to be changed in the code, what if someone uses the Galaxy client and doesn't have GitHub

i am able to login, but the window does not disappear but looks like the webpage and wants me to sign up for an EA Plan for xx $ / month; i just want it to login and do nothing more..

i am able to login, but the window does not disappear but looks like the webpage and wants me to sign up for an EA Plan for xx $ / month; i just want it to login and do nothing more..

Just connected and It only had the login box and then went away. No signing up.

Seems like the only real change you need to do is to go to the install location for your Origin integration (the one you "install" when on the GOG Galaxy app)
(uuid after "origin_" should be unique, but that wasn't true for the steam integration, so adding it on)
%localappdata%\GOG.com\Galaxy\plugins\installed\origin_7f53219b-4e2b-4591-9f4f-dfc5f4ba9eb0
and then open up plugin.py
and replace lines 38-47 with the following (only things changed are the client_id and some of the uris.
AUTH_PARAMS = {
"window_title": "Login to EA Play",
"window_width": 495 if is_windows() else 480,
"window_height": 746 if is_windows() else 708,
"start_uri": "https://accounts.ea.com/connect/auth"
"?response_type=code&client_id=EADOTCOM-WEB-SERVER&display=junoWeb/login"
"&locale=en_US&release_type=prod"
"&redirect_uri=https://www.ea.com/ea-play",
"end_uri_regex":r"^https://www\.ea\.com/ea-play.*"
}

Confirm this at your leisure, and make sure the above is not sending you to a malicious link. This fixed it for me!

retried again and it's magically working now, didn't change anything since the last try

Not working for me even with these changes to plugin.py as of 17.10.2024

Yes. Most community plugins and Galaxy support to them has been abandoned

Where is the official post about abandoning

Just chiming in here as an interested party, but it does seem like GOG hasn't be focusing on the client (or third party plugins) very much at all. IIRC, the latest update or two were in direct support of GOG's own services and very little to do with the client holistically. If anyone has some leada on a good FOSS game client, I'm all ears.

Wow, that's a cool looking project, and in a language I like! Thanks.

I have updated the code on a fork of https://github.com/FriendsOfGalaxy/galaxy-integration-origin. The fix is to open %localappdata%\GOG.com\Galaxy\plugins\installed\origin_ {UNIQUE-ID-STRING} and replace plugin.py with the one in this zipped file. plugin.zip

Can confirm. That fork is still working if you encounter this problem

i would let all integrations die, as long gog dont start to maintain the integrations.
I switched to Playnite and im more than happy.
GOG Galaxy was a good app , when its starts; now you only can use it for gog itself


Typo in index.html

There is this part: "AM tuner at 1560 Hz". The k for Kilo is missing. It should be: "AM tuner at 1560 kHz".
Right?

I believe this was fixed, thank you. If you see one we missed, please reopen.

Sorry.
No. It's here: docs/index.html, line 15. Still missing a little "k".

Aha, thank you, fixed at https://github.com/fulldecent/system-bus-radio/commit/bc9bc6c8c0336a04180c9bdb22f7b49ee28c2686


[Candidate 2v2 District 10 ZH v5] Units can drive and shoot through Oil Derricks

Issue Description
Units can drive and shoot through Oil Derricks.
Expected behavior
Units can not drive and shoot through Oil Derricks
Screenshots

Perhaps the map uses scripts to place Oils. Any other building will also allow units to move through and shoot non projectiles through them.

if the bottom oil was the only one that was able to be driven through, then the bug is fixed

Not fixed.

hmm... that is weird, those oils are preplaced - maybe it is due to the water being originally there before being lowered down

Map "Battleship Bay ZH v1" also has an Oil Derrick in a flood zone and there collision works normally. Perhaps check how it is setup there and try replicate it if applicable.

Did not find any difference to the Oil in Battleship Bay. Made the ground beneath impassable to hotfix it. Works now as intended

This is not a good solution.
Soldier can no longer capture the Oil Derrick
https://github.com/TheSuperHackers/GeneralsRankedMaps/assets/4720891/2f2f190b-f453-4b09-b267-1314f463f81b
Soldier has to move to specific spot at Oil Derrick and start capture. Vehicle cannot properly drive all around the Oil Derrick to try crush the soldiers.
https://github.com/TheSuperHackers/GeneralsRankedMaps/assets/4720891/ad5399ed-1355-4dbf-b52a-93fce42e5c93

But I see Battleship Bay has done the same. I suggest make the impassable area smaller, so that units can comfortably approach the structure from all directions.

fixed


[BUG] Namespace pending on terminating

Describe the bug
User can delete the namespace having resources(vm/volumes/images) under it, then it will trigger VMs be deleted automatically.
And if there have some resource can not be removed automatically, the namespace will pending on Terminating state and can not be recovered.
To Reproduce
Steps to reproduce the behavior:

Install Harvester with any nodes
Create a Image in namespace harvester-public
Create a VM vm1 in namespace harvester-public
Create a VM vm2 in namespcae default which using the Image under namespace harvester-public
Delete the namespace harvester-public

Expected behavior
It is dangerous that to remove resource automatically, which means if any unexpected operation, we can't recovered those deleted volume.
so I would expected that we should block and notify user there have how many resources they need to handle it by themselves.
Environment:

Harvester ISO version: v1.0.3-rc1
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630): Baremetal DL360 4 nodes

Additional context
https://user-images.githubusercontent.com/5169694/181486566-e4ff43ac-b046-499d-92be-fbc226ac8f0b.mp4

Verified this bug has been resolved.
Warning message added.

Test Information

Environment: qemu/KVM single node
Harvester Version: master-9631b136-head
ui-source Option: Auto

Verify Steps:

Install Harvester with any nodes
Login to dashboard and navigate to Namespaces
Trying to delete any namespaces, prompt windows should shows warning message


Refactor namespace.go to use OpCap client instead of kubernetes client

Description of PR
Fixes #212.
Changes

add operatorClient to namespace functions
remove kubernetes clientset and add Namespace functions to client interface
make changes to operator_install and operator_cleanup with updated fuctions
Add mock Client
unit tests for namespace functions

Deprecations
Removed Kubernetes client for client.go
Checklist

[x] I have reviewed and followed the contribution guidelines
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation if needed
[x] I have checked that my changes pass all tests

Fixes #214.


Bug: batch_index in raw_curp will overflow eventually

Now batch_index[i] is the sum of serialized size of entries[0..i-1].
The log.compact() cannot reset the batch_index, so it will overflow eventually.
A better way to calculate the batch of log entries is calculate it at push_back().
struct LogEntryVecDeque<C: Command> {
    entries: VecDeque<LogEntry<C>>,
    entry_size: VecDeque<u64>,
    /// the right index of the batch
    /// batch_range: [i, batch_index[i]]
    batch_index: VecDeque<usize>,
    first_entry_at_last_batch: usize,
    last_batch_size: u64,
    batch_limit: u64,
}
...
    fn push_back(&mut self, entry: LogEntry<C>) -> Result<(), bincode::Error> {
        let entry_size = serialized_size(&entry)?;

        self.entries.push_back(entry);
        self.entry_size.push_back(entry_size);
        self.batch_index.push_back(0)

        while self.last_batch_size + entry_size > self.batch_limit {
            self.batch_index[self.first_entry_at_last_batch] = entries.len() - 1;
            self.last_batch_size = self.last_batch_size - self.entry_size[self.first_entry_at_last_batch];
            self.first_entry_at_last_batch++;
        }
        Ok(())
    }
...
    /// `binary_search` can be optimized in `get_range_by_batch`
    fn get_range_by_batch(&self, left: usize) -> Range<usize> {
        Range<usize>{
            start: left,
            end: self.batch_index[left],
        }
    }

Let me try.


Importing JSX syntax breaks application

Current behaviour
When import 'prismjs/components/prism-jsx'  it breaks the application with error
Cannot set property 'comment' of undefined

Code sample
https://codesandbox.io/s/prismjs-error-cannot-set-property-comment-of-undefined-7v6zk

Your Environment

software
version

react-simple-code-editor
0.10.0

prismjs
1.17.1

I found the solution. Before importing import 'prismjs/components/prism-jsx' make sure you import import 'prismjs/components/prism-markup'

My order of import that worked for me, ,as your solution is throwing Prism is not defined error
import { highlight } from "prismjs/components/prism-core";
import "prismjs/components/prism-markup";
import "prismjs/components/prism-jsx";
import { languages } from "prismjs/components/prism-core";

import "prismjs/components/prism-clike";
import "prismjs/components/prism-javascript";
import "prismjs/components/prism-ruby";


Cannot build with create-react-app

Hi,
I have those dependencies:
"@feathersjs/feathers": "^3.0.2",
"react-scripts": "1.0.14",

The build command failed to compile files from "commons" module because they are not in es5:
Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file:

        ./node_modules/@feathersjs/commons/lib/utils.js:8

Read more here: http://bit.ly/2tRViJ9

error Command failed with exit code 1.

No problem with former feathersjs versions on my project.
Thanks for your help!

Why is this not an issue that Feathers is willing to solve? create-react-app is extremely common.


Pi Monte Carlo example

An adaptation of the micro:bit Pi Monte Carlo example.

[x] Text, example code, and thumb pic for "Pi Monte Carlo".
[x] Card page for "Graphics and Math" examples.

Note: Working with the sample just now, its seems that forever() doesn't schedule right away unless it's placed inline. Any changes to that in the latest commits?

Use game update

The fill doesn't happen until the circle slide finishes in the second (game update loop) example:
Inline forever:
https://makecode.com/_3g6UVKfod6c6
-- vs --
Game update:
https://makecode.com/_R0JeRbPbohFz


Not returning custom fields in version 6

Сustom fields are not returned when I use the getDeals()/getDeal()/getPersons()/getPerson() methods.
During debugging, I see custom fields in the response, but after deserialization, they don't get into the object.
In version 4, the fields are present.

Same, this makes the sdk unusable for us!

Hey, thank you for noticing and reporting. It seems this sadly really is the case. But I'm closing this issue as it is a duplicate of that one and keep the conversation going on there: https://github.com/pipedrive/client-php/issues/105


AS data processing algorithm

Pull Attestation Data
Alice attests Bob has transferred to her successfully
Alice attests Carol works with her
Bob attests Alice has done a successful swap with him
Carol says Bob tried to scam her
Alice attests Bob is part of the same DAO

Create an opinion matrix, by aggregating attestations.
[0 2 1] Alice
[1 0 0] Bob
[0 -1 0] Carol

Taken from: https://pse-team.notion.site/Example-Flow-dcbf477b952b49c48970851924dcfa98

Research completed with https://github.com/eigen-trust/protocol/pull/203


Stack on 17.09 #c882c4d fails on stack new complaining about AesonException

Issue description
When using 17.09 https://github.com/NixOS/nixpkgs-channels/commit/c882c4dd55e36dda57532fb830fad0882c4d770b and running stack new inside a nix-shell, it reports:
AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']: Invalid flag name: \"bytestring--lt-0_10_4\""

When I made my nix-shell instead use the latest commit hash in nixpkgs-unstable https://github.com/NixOS/nixpkgs-channels/commit/8b1cf100cd8badad6e1b6d4650b904b88aa870db, it works without problems.
The main issue appears that stack 1.5.1 simply has this error, and they recommend people to update their stack. Perhaps 17.09 should have its stack upgraded? https://github.com/fpco/stackage/issues/3132
Technical details
Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.
 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.11, Matrix Central, noversion`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 1.11.16`
 - channels(cmcdragonkai): `""`
 - channels(root): `""`
 - nixpkgs: `/nix/nixpkgs`

(Funny, I hit this yesterday.) I worked around it by specifying --resolver=lts-9.14.

@bjornfor this works for me.
Can we update stack for nixos - I'm a second day nixos user, if someone help me I try to do it :+1:

I think @peti is the right person to answer that.

Updating stack is no trivial matter, unfortunately, because it has a rather large and complex dependency tree. There's a decent chance that we'd have to update other packages, too, to accommodate the new stack version. But then we run the risk of breaking other build that share the same dependencies but which cannot cope with the new versions. This gets messy quick.
I'll give it a shot and try whether an update is easy. If it's not, however, then I'd rather spend my time working on the release-18.03 release which is going to come out in ~4 weeks anyway.

Fixed by https://github.com/NixOS/nixpkgs/pull/36204.


update helm pkg

Signed-off-by: Sherin Varughese<EMAIL_ADDRESS>Related Issue:  stolostron/backlog#25417
Description of changes

/lgtm


fix: use the renamed api repo

Codecov Report

Merging #223 (31d68e9) into main (87b4906) will decrease coverage by 0.13%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #223      +/-   ##
==========================================
- Coverage   40.48%   40.35%   -0.14%
==========================================
  Files          37       37
  Lines        3409     3420      +11
==========================================
  Hits         1380     1380
- Misses       1849     1860      +11
  Partials      180      180

Impacted Files
Coverage Δ

api/server/v1/marshaler.go
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 87b4906...31d68e9. Read the comment docs.


#337 fix classCastException

fixes #337

Current coverage is 42.79%

Merging #338 into master will increase coverage by +0.09% as of 71cf264

@@            master    #338   diff @@
======================================
  Files          121     121
  Stmts         2522    2526     +4
  Branches       210     210
  Methods          0       0
======================================
+ Hit           1077    1081     +4
  Partial         41      41
  Missed        1404    1404

Review entire Coverage Diff as of 71cf264

Powered by Codecov. Updated on successful CI builds.


Support CLI usage

I would like to just $ jjv my-schema.json  :)

pull-requests to implement this feature are welcome. Given that this is a javascript application it will probably still require installing nodejs, but perhaps its possible to bundle this in an executable.


Force output from certain linter to "warning" or "error"

Say, I have tsserver and tslint enabbled for my .ts files. Both of them emits error messages, but while tsserver points on actual syntax errors, tslint marks as "errors" some minor things, e.g. missing space between braces. This pollutes sign column with red and there is no quick way to distinguish real erros of style advices. So I wonder, is there an option to configure Ale to mark output from different linters with different signs and colors?

Yep, see :help g:ale_type_map.


server: fix initialize raft group

The underlying raft-rs crate isn't allow empty configs enter joint state, so have to add replicas one by one.

@w41ter CI failed


archive link with ACCESS-OM3 driver

It's a trivial cosmetic thing, but the ACCESS-OM3 driver makes archive links that look like this
archive -> /./scratch/v45/aek156/access-om3/archive/MOM6-CICE6_ACCESS-OM3
whereas the work link lacks the leading /. as it should:
work -> /scratch/v45/aek156/access-om3/work/MOM6-CICE6_ACCESS-OM3

I'm guessing it is this logic:
https://github.com/payu-org/payu/blob/aacfd92570d6f33487ec4de47f9ad8b7a7fa8f12/payu/laboratory.py#L43-L46
but I'm not sure why it would apply in this case, unless when the symlink was created there was no /scratch directory visible?
Is it reproducible for all ACCESS-OM3 control directories?

I just tried to reproduce this and couldn't, so I'll close this issue.


pull request for e2e test at 11/12/2016 15:15:11

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

Details

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


Search not functional?

First of all, thanks for making this plugin. It works very well, mostly. I'm having issues searching for things, though. No results are showing up...
I'm on Chrome 48 on a 64-bit Ubuntu machine.

Hi there, can you shed some light on where your music is stored?
Did you install the app via the"install and run locally" section in the README? This should give you access to the chrome debugger, and you should be able to tell me some error codes  etc.

I'm using Spotify. I haven't installed the app locally yet, simply pulled it from the Chrome app store. I could do the local thing tho.

Ok, spotify is a 3rd party music service, and those are not yet working in my app, and maybe never will properly, due to the constraints of Sonos not letting you poach auth tokens easily.
You can try my "music services" branch, follow the instructions about installing locally, and let me know how you go. It requires  re-authing spotify  as a service for the player (i cannot get the auth token out of spotify), and might not work for all services, but spotify seemed to work.
This of course is WIP and not ready for the chrome store yet.


Provide more accessibility helpers

Accordingly
https://www.deque.com/blog/creating-accessible-svgs/
https://css-tricks.com/accessible-svgs/
We need a simple way to add default "aria-hidden='true'" attribute when icons used just like icons near descriptive texts
And ability to set descriptive title and text inside a svg tag if we need to add some description
for ex.
<x-icon-o-bell  "role"="image">
   <title>Notificatons</title>
</x-icon-o-bell>

or
@svg('heroicon-o-bell', ['class'=>'w-8 h-8', 'role'=>'image', 'a11y-title'=>'Notifications', 'a11y-desc'=>'Show recent notification list'])

Gonna close this as a duplicate for https://github.com/adamwathan/blade-svg/issues/12
Please add any additional info you have over there, thanks.


Token Authorization

I have followed the steps to get a API Token, however when i use the Set-Info or use the parameters for -url -apikey, I get:
$snipeUser = Get-User -search "username"  -url $url -apiKey $apikey -Verbose
VERBOSE: [ConvertTo-GetParameter] Making HTTP get parameter string out of a hashtable
VERBOSE: [Invoke-SnipeitMethod] Invoking method Get to URI http://snipeit/api/v1/users?search=username&limit=50&order=desc
VERBOSE: GET http://snipeit/api/v1/users?search=username&limit=50&order=desc with 0-byte payload
VERBOSE: [Invoke-SnipeitMethod] Failed to get an answer from the server
VERBOSE: [Invoke-SnipeitMethod] Status code: Unauthorized
Invoke-SnipeitMethod : [Invoke-SnipeitMethod] You are not Authorized to access the resource, check your token is correct
At C:\Program Files\WindowsPowerShell\Modules\SnipeitPS\1.0.70\Public\Get-User.ps1:53 char:15

$result = Invoke-SnipeitMethod @Parameters

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

CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-SnipeitMethod

I have re-made the multiple times on the Administrators account (SuperUsers). Still no tomatoes...

It clearly sais "unauthorized". So something is wrong in auth.
In my scripts I mainly use Set-Info to set the auth and be able to skip the overhead when pulling data from snipe.
Eg:
# Set connection details for Snipe-IT
Set-Info -URL $config.url -apiKey $config.apikey
# get all the Snipe Users into an array
$SnipeitUsers = Get-User -limit 1000

Correct, but i'm not sure what to look for when it's unauthorized.

What error message do you receive when running Set-Info? make sure your API token is not cut. My one is extremely long and contains characters the "double-click to copy" feature will stop copying.
Alternatively I can only imagine youre querying something you're not permission#ed to. E.g. an asset for another company, etc.
Good luck

Set-Info i don't have any errors. I have made sure to copy the complete key, multiple different ways. I am a SuperUser, which i have also created a API Token from the original administrator account and neither has worked.
All i am trying to do is Get-User command at this point, but clearly it something to do with API Token permissions, I just don't know where else to look.
Example:
$apikey = 'Very Long API Token'
$url = "http://snipeit/"
Set-Info -url $url -apiKey $apikey
Get-User -search "shadowwolfing"
I have also tried not using variables and input the website and key directly into Set-Info
Any other suggestions?
Thank you for taking time MrMontesa

@Shadowwolfing Are you using https?
And just to be sure, can you confirm that you are using your own snipeit url instead of "http://snipeit/" ?

And are you using self signed certificates?

Closing this for inactivity. Reopen if needed.


Update percentile-disc-transact-sql.md

Formatted the partial result sets for both examples.

@renjieliu : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Docs Build status updates of commit 6c293f6:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/t-sql/functions/percentile-disc-transact-sql.md
:white_check_mark:Succeeded

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

Migrated to private repo to resolve merge conflict.
Thanks to @renjieliu for your contribution.
#please-close


User getting net::ERR_FILE_NOT_FOUND on the options javascript

Work out why this is happening, and why a reinstalling of the plugin doesnt fix it. If not, just put the js file content into the html file

After a bunch of testing, I couldn't replicate this. Think it might be an error with the download? In either case, doesn't seem to be widespread enough to devote any further time to


Make the symbol table a hash table

According to the literate source:

The lookup function bel_sym_table_find does a linear search for the presented literal on the symbol table.

Scanning linearly is no doubt the simplest thing we can do, but the access time is O(n) on the size n of the table. If we turned it into a hash table, it'd be O(1).
I'm curious to try this, so I'm assigning myself. I still don't have a development environment set up; I will work on that. Expect a PR soon.
The hash table won't have to be so complicated. We'll need a hash function for the strings; Java's seems perfectly OK. And then some simple code for adding and lookup, as well as doubling/re-hashing.
The one outstanding question is what to do when there's a hash bucket collision. This will happen sometimes. Using linked lists seems the most straightforward approach, and shouldn't be all that slow, so I'll go with that.

Oh; seems I can't assign myself.

This is a very good idea.

If we turned it into a hash table, it'd be O(1).
(...)
Java's seems perfectly OK. And then some simple code for adding and lookup, as well as doubling/re-hashing.

Yes. The probability of collisions also seems very low, which would leave things at O(1). Which leads us to...

Using linked lists seems the most straightforward approach, and shouldn't be all that slow, so I'll go with that.

This would also be my choice. Unless there are a lot of different symbols being interned, lookup does not seem to be a big problem. These lists might probably be short.


Feature/auto index

I made this modification to allow creation of indexes on specific columns while creating tables.
Please let me know what you think.

@akariv
Sorry I've totally misunderstood the scope of this PR at first place. Thought it's about Storage API instead of just feature for SQL driver. And it requires some massive time to work on it thru the whole stack.
It seems pretty solid. One things - indexes_fields vs index_fields vs indexes? Last option could be later used to provide not only names but also sqlalchemy.schema.Index instances to provide more flexibility.
Would you like me to reabase by myself to try to heal the :broken_heart:?

@roll ready for review

Im on it. Will finish tomorrow morning

@roll ready for re-review


MMCV Error(mmcv-full 1.2.2 torch1.6 python3.7)

Can you help me solve this problem? I use the dataset in VOC format.
Traceback (most recent call last):
File "tools/train.py", line 163, in
main()
File "tools/train.py", line 159, in main
meta=meta)
File "/home/ubuntu/disk1/user/SETR-main/mmseg/apis/train.py", line 91, in train_segmentor
val_dataset = build_dataset(cfg.data.val, dict(test_mode=True))
File "/home/ubuntu/disk1/user/SETR-main/mmseg/datasets/builder.py", line 73, in build_dataset
dataset = build_from_cfg(cfg, DATASETS, default_args)
File "/home/ubuntu/anaconda3/envs/setr/lib/python3.7/site-packages/mmcv/utils/registry.py", line 171, in build_from_cfg
return obj_cls(**args)
File "/home/ubuntu/disk1/user/SETR-main/mmseg/datasets/pascal_context.py", line 53, in init
**kwargs)
File "/home/ubuntu/disk1/user/SETR-main/mmseg/datasets/custom.py", line 86, in init
self.pipeline = Compose(pipeline)
File "/home/ubuntu/disk1/user/SETR-main/mmseg/datasets/pipelines/compose.py", line 22, in init
transform = build_from_cfg(transform, PIPELINES)
File "/home/ubuntu/anaconda3/envs/setr/lib/python3.7/site-packages/mmcv/utils/registry.py", line 171, in build_from_cfg
return obj_cls(**args)
File "/home/ubuntu/disk1/user/SETR-main/mmseg/datasets/pipelines/test_time_aug.py", line 59, in init
self.transforms = Compose(transforms)
File "/home/ubuntu/disk1/user/SETR-main/mmseg/datasets/pipelines/compose.py", line 22, in init
transform = build_from_cfg(transform, PIPELINES)
File "/home/ubuntu/anaconda3/envs/setr/lib/python3.7/site-packages/mmcv/utils/registry.py", line 171, in build_from_cfg
return obj_cls(**args)
TypeError: init() got an unexpected keyword argument 'dataset'

Have you solved it? I have the same problem?

No!!! I give it up.

Maybe your environment is installed incorrectly, please refer to the A from-scratch setup script in the README.md to reinstall the environment.


No compilation Error when defining method's return value

I ran the following code (in Visual Studio code editor) and didn't get a compilation error (for the "deposit" method), even though the method's return value definition in the object type definition doesn't correlate to the return type that was defined in the method itself.

TypeScript Version:  3.2.0-dev.201xxxxx

Search Terms:
Code
type BankAccount = { money: number, deposit: (val: number) => void };
let bankAccount: BankAccount = {
money: 2000,
deposit(value: number): number {
return this.money += value;
}

};
let myself: { name: string, bankAccount: BankAccount, hobbies: string[] } = {
name: "Adir",
bankAccount: bankAccount,
hobbies: ["Sports", "Cooking"]
};
console.log(myself.bankAccount.deposit(3000));
// A *self-contained* demonstration of the problem follows...
// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.

Expected behavior:
Compilation error for the "deposit" method (returns a number when in the objects ("bankAccount") definition it wasn't supposed to return anything (void).
Actual behavior:
No compilation error was raised and I got output in the browser.
Playground Link:
Related Issues:

All return types are assignable to a function with a void return type, as void indicates the return type is unused. There are lint rules to make this stricter in your own codebase.


Fixed space on about.html

This has been a big problem on all of our html files...

This should be merged soon...


Sync channels more promptly

At least for popular channels (either by YT status, IAPI subs, or both)

duplicate of https://github.com/lbryio/ytsync/issues/44 and possibly https://github.com/lbryio/lbry-desktop/issues/3284#issuecomment-558335852


ngx-admin timeline

I'm submitting a ...
[x ] feature request

**Do you want to request a feature **

Just a short question, I have looked in the ngx repository and must say the most changes are extremly awesome. So I would like to now if there is any time planning than the next major release will be.
Nothing specified, just something like Q3 2017 or Q4 2018.

Hey @darklinki, thanks for you kind words. As usual, we don't want to promise, but our plan is Q3 2017, so upcoming months.

Thanks this is exactly what I wanted to hear. That way I dont have to build some parts by my own.
Thank you!
If there is ever a donation system tell it us.

Any new development here?


How to get started? Are docs wrong?

Hi All,
Looking at bgfx for an idea.
I am here: https://bkaradzic.github.io/bgfx/build.html
trying to build bgfx and run examples on iOS.
I managed to run
cd bgfx
make
make projgen

I don't see this piece anymore:
Due to inability to set working directory for an Xcode project from GENie configuration file, it has to be set manually for each example project:

    Open “Edit scheme...” dialog for a given project.
    Select “Run” settings.
    Check “Use custom working directory” and enter following path: ${PROJECT_DIR}/../../../examples/runtime.

but when I try and run anything from within XCode, I just get errors upon errors. Probably because I can set a working directory.
Does anyone know how to fix this?

You can't set working directory for iOS. I am adding the contents of examples/runtime (font, images, .. folders) as folder references to the example project.
Without setting this only 00-helloworld example works,

Can you tell me how to get the examples working?
I'm using the Xcode workspace and actually nothing compiles. I can comile bgfx into libraries on the command-line though.

Ah this just happening since I switch to new option in GENie...

@attilaz Thank you. Yes, switching to c++11 did fix everything and I can run examples. Yes, just 00, the rest crash as you mentioned. Is there a forum for bgfx discussion?

https://gitter.im/bkaradzic/bgfx

@slackmoehrle
see: https://bkaradzic.github.io/bgfx/build.html?highlight=scheme#xcode
Here's my steps:
// git clone 3 bgxx repos into ~/bgfx/ (or wherever)
cd bgfx/
../bx/tools/bin/darwin/genie --with-examples xcode9
open ./.build/projects/xcode9/bgfx.xcworkspace
// Select Target 'example-01-cubes'
// Edit Scheme ...
// Select 'Options' "tab"
// Check 'use custom working directory'
// Fill in full path (or use open dialog) 'xxxxx/bgfx/examples/01-cubes'
// ** I don't know the valid relative path, should be possible

Unfortunately you have to do this for any project you want to run. There's got to be a way to use some tool to automate the editing of these?

I need to fix GENie for Xcode.
If you revert this locally, you won't need to set -std=c++11 manually...
https://github.com/bkaradzic/bx/commit/468e39c2570786aac1d8a4003084b5d3ced025cd

Actually looks like the latest HEAD has combined the examples using imgui as simplified launcher. So you only need to set the working directory in one or a few example projects.
// either full path
/Users/name/path/to/bgfx/examples/runtime
// or possibly relative to proj
$(PROJECT_DIR)/../../../examples/runtime


.github: only renovate pseudo-versions once per week

I'm updating system_tests.sh at the same time to give better error handling. The original test run for this failed with a cryptic error and system_tests.sh didn't give enough detail.
But, I want to make sure the git diff command compares only the .github changes. So, I modified system_tests.sh to only git diff the last commit, marked this as do not merge, and will rebase+force push to remove that change once it's working.


Load GenericFile from Solr for show view #146

Fixes #146

@awead  Looking good!  Do you think you would want to deploy this fix on Monday or Tuesday?

@awead I tried rerunning the travis failure.  It is in the GF show page.  Strange that it is only in the PR.

@cam156 I updated it with a helper method and additional partial.


DSCI 551 launch

[x] Wipe the DB for the current MDS classy instance
[x] Point Classy to the new Org

Classy is running and live.


Jonathan 1996 terrain builder

Please review and comment on commit from 4/21 req. 9

Going to delete these changes, Req. 9 to be removed from requirements.


Gamma Permission issues

How to reproduce the bug

Go to a Dashboard
Click on the chart title or 'edit chart'
can't  view chart page and show a error

Expected results
IN [superset version: 1.5.0] when i click the chart title or 'edit chart'  on Dashboard,I can view the chart for detail, but in 2.0.0 I can't. It seem like a permission issues, so which permission  should I add.

what you expected to happen.
Actual results
what actually happens.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment

browser type and version:
superset version:  2.0.0
python version: 3.8

Checklist
Make sure to follow these steps before submitting your issue - thank you!

[x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[x] I have reproduced the issue with at least the latest released version of superset.
[x] I have checked the issue tracker for the same issue and I haven't found one similar.

This is likely fixed by now, and is pretty out of date if not. If people are still encountering this in current versions (3.x) please open a new Issue or a PR to address the problem.


Pokeminer Support for MoveToMapPokemon

Short Description
Support the pokeminer API for MoveToMapPokemon
Possible solution
Add an option in the MoveToMapPokemon section that defines which map is running, use the appropriate API.
How it would help others
Pokeminer tends to be quite a bit faster, have a much larger range, and can save the pokemon data for analysis later.

#3672


B2B-1157 Transfer from Oauth broker (i.e. Coinbase) flow breaks in a RN SDK app

https://front-finance.atlassian.net/browse/B2B-1157

Plz use correct title Plz attach Jira link in PR description Plz resolve conflicts

done


[bug]: slow performance with array list form after validation

Describe the bug
slow performance with array list form after validation,
it seems to trigger all input filed after call validation even if you change 1 field value.
Affected component/components
FormField
How to reproduce

https://ui.shadcn.com/docs/components/form
create array list of the form

Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Chrome

Before submitting

[X] I've made research efforts and searched the documentation
[X] I've searched for existing issues

I am experiencing the same issue.

https://github.com/shadcn-ui/ui/pull/1339


Swift Compiler Error (Xcode): Using bridging headers with module interfaces is unsupported

So after I ran:
flutter build ipa
I got the output like this in visual studio code:

💪 Building with sound null safety 💪

Archiving com.ehealth.EMSdailysurvey...
Automatically signing iOS for device deployment using specified development team in Xcode project: 54GG7M63R4
Running pod install...                                             786ms
Running Xcode build...
 └─Compiling, linking and signing...                         5.4s
Xcode archive done.                                         39.1s
Failed to build iOS app
Error output from Xcode build:
↳
    error: using bridging headers with module interfaces is unsupported
    ** ARCHIVE FAILED **

Xcode's output:
↳
    Writing result bundle at path:
        /var/folders/9p/bw8m2_ns5kx4hppr37mzz1zr0000gn/T/flutter_tools.9yTkx8/flutter_ios_build_temp_dir6Hgplm/temporary_xcresult_bundle

    error: Using bridging headers with module interfaces is unsupported (in target 'Runner' from project 'Runner')
    Command SwiftDriver emitted errors but did not return a nonzero exit code to indicate failure
    note: Building targets in dependency order
    warning: Run script build phase '[CP-User] Config codegen' will be run during every build because it does not specify any outputs. To address this
    warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the
    script phase. (in target 'flutter_config' from project 'Pods')
    warning: no rule to process file '/Users/wendasai/opt/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_config-2.0.0/ios/Classes/BuildDotenvConfig.rb'
    of type 'text.script.ruby' for architecture 'arm64' (in target 'flutter_config' from project 'Pods')
    warning: no rule to process file '/Users/wendasai/opt/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_config-2.0.0/ios/Classes/BuildXCConfig.rb' of
    type 'text.script.ruby' for architecture 'arm64' (in target 'flutter_config' from project 'Pods')
    warning: no rule to process file '/Users/wendasai/opt/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_config-2.0.0/ios/Classes/ReadDotEnv.rb' of type
    'text.script.ruby' for architecture 'arm64' (in target 'flutter_config' from project 'Pods')
    note: Run script build phase 'Run Script' will be run during every build because the option to run the script phase "Based on dependency analysis" is
    unchecked. (in target 'Runner' from project 'Runner')
    note: Run script build phase 'Thin Binary' will be run during every build because the option to run the script phase "Based on dependency analysis" is
    unchecked. (in target 'Runner' from project 'Runner')

    Result bundle written to path:
        /var/folders/9p/bw8m2_ns5kx4hppr37mzz1zr0000gn/T/flutter_tools.9yTkx8/flutter_ios_build_temp_dir6Hgplm/temporary_xcresult_bundle

Swift Compiler Error (Xcode): Using bridging headers with module interfaces is unsupported

Uncategorized (Xcode): Command SwiftDriver emitted errors but did not return a nonzero exit code to indicate failure

Encountered error while archiving for device.

The application can be built properly using IOS simulator. I really start to get very confuse about why it does not allow me to build the ipa file. Any one have any idea why this is happening? I am trying to compile the ipa for a IOS program I wrote but I have been stuck on this bug for a week... I do not know how to solve this. I googled online and it seems there are no similar solutions... Can anyone help me please! Thank you in advance!
Regards

@bhz020418
Please check this and see if it helps in your case.

I have this same issue, setting Build Libraries for Distribution to NO doesn't resolve this.

@bhz020418 Please check this and see if it helps in your case.

Hello @darshankawar:
I tried the method listed in this post but is still not resolved, I am using Xcode version 14.2. So I decided to send the post on GitHub because I really failed to understand individually about why this is happening...
But still thank you for sending me this post, if you have any other idea about how to solve this issue please let me know. Thank you in advance and wish you a nice day! (^-^)
Regards
bhz020418

I have this same issue, setting Build Libraries for Distribution to NO doesn't resolve this.
`Xcode archive done. 236.0s Failed to build iOS app Swift Compiler Error (Xcode): Using bridging headers with module interfaces is unsupported
Uncategorized (Xcode): Command SwiftDriver emitted errors but did not return a nonzero exit code to indicate failure
Encountered error while archiving for device.
Build failed :| Failed to build for iOS`
Flutter version 3.7.3 Xcode Version 14.2

Hello @farhanvk8:
Same here, I tried the method listed above by @darshankawar few days ago and it is not solved, I am using flutter version 3.7.0 and Xcode version 14.2. I am using mac computer with 2020 M1 chip. I did not upgrade to 3.7.3 for my flutter yet because after I updated the flutter to 3.7.3, the application wrote cannot simulate properly on the IOS simulator so I changed it back to 3.7.0.
If you have any new update about how to solve this issue please let me know. Thank you so much and wish you a nice day. I will also work on trying other methods and if I solved the issue I will let you know at once.
Regards
bhz020418

@bhz020418
Please provide your flutter doctor -v. Also provide the entire verbose log by running flutter build ipa -v. The log will be huge so you can put that in a text file and attach the file here.

@bhz020418 Please provide your flutter doctor -v. Also provide the entire verbose log by running flutter build ipa -v. The log will be huge so you can put that in a text file and attach the file here.

Hello @darshankawar:
Here is my flutter doctor -v and my flutter build ipa -v. If there is any other things that you need me to provide please let me know.
Looking forward to your response, thank you so much and wish you a nice day.
Regards
bhz020418
flutter doctor -v.txt
flutter build ipa -v.txt

@bhz020418 Please provide your flutter doctor -v. Also provide the entire verbose log by running flutter build ipa -v. The log will be huge so you can put that in a text file and attach the file here.

And @darshankawar here is the error I can see after I entered flutter build ipa. Hope this can also help. (^-^)

Regards
bhz020418

@bhz020418 Can you also provide your podfile ?
Do you by any chance have checked "For install builds only" in the Xcode build phase ?

@bhz020418 Can you also provide your podfile ? Do you by any chance have checked "For install builds only" in the Xcode build phase ?

Hello @darshankawar:
Sure! Here is my Podfile.lock and my Podfile. I did not check "for install builds only".
Regards
bhz020418
Podfile.txt
Podfile_dot_lock.txt

I see that in your podfile, you have ios 12 platform support and target set to 12 as well:
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
I am not sure but this maybe restricting other pods or plugins you might be using which may not be targeting to iOS 12 yet, so can you try to comment or remove above line from podfile and try again to see if it helps ?

I see that in your podfile, you have ios 12 platform support and target set to 12 as well:
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
I am not sure but this maybe restricting other pods or plugins you might be using which may not be targeting to iOS 12 yet, so can you try to comment or remove above line from podfile and try again to see if it helps ?

Hello @darshankawar:
I changed commented the line as shown in the figure attached below. But when I entered flutter build ipa it still output the same error... The IOS simulator is still running properly.
Looking forward to your response.
Regards
bhz020418

@bhz020418 Thanks for the update and your patience on this while we figure this out.
From your podfile.lock, I see the the pods you are using are not on latest versions. Can you try to delete the podfile.lock file or update the pods you are using to latest versions available and run your app again ?

Hello @darshankawar:
I deleted the podfile.lock and then ran flutter build ipa again. The error I am encountering with is as shown in figure 1 (after I ran flutter build ipa, the podfile.lock is back again). Moreover, I also tried to run it in xcode and the output I got is shown in figure 2 - figure 3 or figure 4 - figure 13 (sometimes I got the errors and warnings as shown in figure 2 - figure 3(1 error and 7 warnings), sometimes I got the errors and warnings as shown in figure 4 - figure 13 (1 error and 137 warnings)). Also, If I am using the simulator on my computer, the code can be run properly (as shown in figure 14). I just really do not quite understand why my xcode is stopping me from building the ipa package, which is making feeling so frustrating. (T-T)
Also I do not know how to update the pods I am using to latest versions available. If possible, can you tell me how to do it?
Looking forward to your response, Thank you so much and wish you a nice day.
Regards
bhz020418

@bhz020418
Please avoid sharing screenshots as they don't help much for searching for errors mentioned in it. Please provide the error messages in properly formatted text.
Also, if possible, please provide a sample repo that we can clone and run it at our end to analyze further.

@bhz020418 Please avoid sharing screenshots as they don't help much for searching for errors mentioned in it. Please provide the error messages in properly formatted text.
Also, if possible, please provide a sample repo that we can clone and run it at our end to analyze further.

Hello @darshankawar:
Sure! I asked my group members and we reached to the consensus that we can provide the sample repo. But before that we need to change some parts in our programming relating to the customer data, which will take some time to do the adjustment. So sorry for cannot providing it right now and so sorry for previously sending the screenshots because we were thinking perhaps that will help solving the problem...
When we finished adjusting the part relating to the user's data, we will reply back with the sample repo as soon as possible. Thank you so much for helping us all along the road and wish you the best.
Regards
bhz020418

I had the same error. Tried everything didn't work.
I deleted the ios folder and recreated it with flutter create . now everything works again.


Fix attributes typo: unattended_upgrades->enabled

The template uses note['apt']['unattended_upgrades']['enabled'].

Apparently not anymore.  Closing...


[Bug]: Wrong role set in group chat

Describe the bug
When running a group chat and retrieving the chat_result, all user messages are flagged as role="assistant".
This causes an issue, e.g. when using the chat_result to later on resume the conversation (or when relying on the role value to display whether a message came from the user in a UI).
Steps to reproduce

Initiate a group chat

chat_result = user_proxy.initiate_chat(group_chat_manager, message="Hello world!")

Send a few messages, exit & inspect the chat results

Model Used
gpt-4o
Expected Behavior
Messages coming from users (i.e. via UserProxyAgent) should be marked as role="user"
Screenshots and logs
No response
Additional Information
I noticed that https://github.com/microsoft/autogen/blob/main/autogen/agentchat/conversable_agent.py#L653 hardcodes "assistent", which is the value that ends up in self._oai_messages. Since GroupChatManager doesn't override the send function, I believe (!) this might be the culprit.
P.S.: I noticed https://github.com/microsoft/autogen/blob/main/autogen/agentchat/conversable_agent.py#L774 hardcoding "user" on the receiver side, which might cause a similar issue.

Hi @hardchor, would you be able to provide some code that shows the resume failing?
As a note, the use of the user roles on the internal messages may not reflect a human input, I believe they are more aligned with the alternating interaction between agents.

@marklysze sorry for the delay, I was travelling.

Hi @hardchor, would you be able to provide some code that shows the resume failing?

The issue actually shows up in another bug report I came across: https://github.com/microsoft/autogen/issues/2968. You can see that the initial message (create a resource in x) has 'role': 'assistant', when it arguably should be user.
Otherwise, just following the example in https://microsoft.github.io/autogen/docs/topics/groupchat/resuming_groupchat/ gives the same result. I worked around this issue by expanding UserProxy and AssistantAgent with an additional role attribute (that I then read in my custom GroupChatManager), but it's a lot of copy & pasting of code for what is essentially a couple of lines changed.

As a note, the use of the user roles on the internal messages may not reflect a human input, I believe they are more aligned with the alternating interaction between agents.

I'm not sure I understand fully - in the OpenAI protocol, messages marked with "user" (as opposed to "system" or "assistant") signifies a message coming from the user, doesn't it?

As a note, the use of the user roles on the internal messages may not reflect a human input, I believe they are more aligned with the alternating interaction between agents.

I'm not sure I understand fully - in the OpenAI protocol, messages marked with "user" (as opposed to "system" or "assistant") signifies a message coming from the user, doesn't it?

I don't believe the messages structure aligns completely with a normal back-and-forth chat as one or more agents are involved. The "assistant" role is used for agents when they send messages, see here.
The use of the name field is what helps OpenAI's models distinguish between the different agents. OpenAI can use this 'name' field (and does), however non-OpenAI inference does not (hence I created this).
OpenAI doesn't seem that strict on the user/assistant roles and alternating messages. This isn't so much the case with other LLM providers, who are generally strict on it.

@marklysze I understand how autogen works under the hood, and that OpenAI doesn't actually care all that much about the role parameter (maybe). But don't you agree that (from a purely logical point of view) the roles that autogen is setting on the messages are just wrong? From the OpenAI docs:

role
string
Required
The role of the entity that is creating the message. Allowed values include:
user: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.
assistant: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.

Admittedly, documentation around this is very sparse, and they are even omitting the system role from their documentation.

Yes, can totally see where you're coming from in terms of the use of the role user. For back and forth conversations between an LLM that definitely should be the case.
With the overlay of agents and non-human input (there may be no human input in an AutoGen group chat / conversation), the term user in AutoGen is not exactly aligned with humans/UserAgentProxy. This is the reason that many of the non-OpenAI client classes need to adjust the messages to adhere to user/assistant/user/assistant sequences.
I think it's a worthwhile point you bring up and is something I've heard the AutoGen team discussing from time-to-time. Perhaps the role in the messages in AutoGen isn't strictly necessary and can be derived from the associated agent, instead.
If you had thoughts on what a future set of messages may look like it would be good to discuss in Discord's ideas-and-feedback channel.
For the time-being, to check if a message is from a UserProxyAgent, the name field could be used to then get the agent and check the type.

I'm instead extending UserProxyAgent and AssistantAgent with a role parameter. I don't like it, but the alternative (looking up roles by name in a slightly more complex system) felt even less clean.

With the overlay of agents and non-human input (there may be no human input in an AutoGen group chat / conversation), the term user in AutoGen is not exactly aligned with humans/UserAgentProxy.

I'd love to understand in what case you'd use user in autogen (but only if you have time, otherwise feel free to close).

I'm instead extending UserProxyAgent and AssistantAgent with a role parameter. I don't like it, but the alternative (looking up roles by name in a slightly more complex system) felt even less clean.

With the overlay of agents and non-human input (there may be no human input in an AutoGen group chat / conversation), the term user in AutoGen is not exactly aligned with humans/UserAgentProxy.

I'd love to understand in what case you'd use user in autogen (but only if you have time, otherwise feel free to close).

For my use to date, I haven't had a need for the user value. I've been focused on working with non-OpenAI models so have been having to cater for the user/assistant alternating role requirements of these other models, so it hasn't been overly helpful as is. I haven't thought too much about what I'd prefer to see, but if I was to put something out there I'd say replace name with a sender agent/object and a recipients containing agents/objects, would be useful so I can look at the full flow and understand it.
I'll close this soon, but please feel free to open another issue or re-open if you want to propose something that would be help you.


fixing typo where var was used instead of mu

Hello,
I apologize, but I must issue a correction my previous PR #5. It contained an error in line 167 of tvt.eSIR.R.
I had removed the rounding in the function lognorm.parm and converted its output to a named list with mu and var for easier reading. I had done so because otherwise I ran into an issue of dividing by zero with my inputs.
Unfortunately, in copy-pasting the new code, I failed to change lognorm_R0_parm$var to lognorm_R0_parm$mu.
The correction is below. Again, I deeply apologize for the error.

Hi Paul,
No problem. Thanks for double-checking.
Best,
Lili


🐛 시장가 주문 시 가격 처리

#124  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @mingi3314 and the rest of your teammates on  Graphite


SegFault when freeing on a different thread > 2 MB

This test fails (using C# P/Invoke).
[Test, Explicit]
public void CouldFreeOnDifferentThread()
{
    var length = 2 * 1024 * 1024 + 1; // fails > 2MB
    for (int i = 0; i < 100; i++)
    {
        var pm = Mem.Malloc((UIntPtr) (length));
        // Mem.Free(pm); // works
        Task.Run(() =>
        {
            Mem.Free(pm); // fails
        }).Wait();
    }
}

This escaped my original testing due to small buffers, but same behavior with real threads, not tasks:
[Test]
public void CouldAllocFreeFromDifferentThreads()
{
    var bc = new BlockingCollection<IntPtr>();
    var are = new AutoResetEvent(false);
    var count = 100;
    var t1 = new Thread(() =>
    {
        for (int i = 0; i < count; i++)
        {
            var ptr = Mem.MallocAligned((UIntPtr) (2 * 1024 * 1024 + 1), (UIntPtr) (8));
            bc.Add((IntPtr) ptr);
            are.WaitOne();
        }

        bc.CompleteAdding();
    });
    t1.Start();

    var t2 = new Thread(() =>
    {
        foreach (var intPtr in bc.GetConsumingEnumerable())
        {
            Mem.Free((byte*) intPtr);
            are.Set();
        }
    });
    t2.Start();
    t1.Join();
    t2.Join();
}

I'm still using 1.6.1 release, haven't yet recompiled for #212.

Yikes --  that would be terrible as it is a basic use case. Also, this use case should normally probed by "test-stress" on every build. I tried to reproduce it in the latest dev; I checked in a test case on the latest dev branch in main-override.cpp (use the mimalloc-test-override project in VS2019 to repro), as:
// Issue #221
void* shared_p;

void heap_thread_free_large_worker() {
  mi_free(shared_p);
}

void heap_thread_free_large() {
  for (int i = 0; i < 100; i++) {
    shared_p = mi_malloc(2*1024*1024 + 1);
    auto t1 = std::thread(heap_thread_free_large_worker);
    t1.join();
  }
}

but it all just works.  Can you try to run it with debug mode on? I wonder if the bug is on the C# side perhaps?. Mmm, on the other hand it is suspicious though it happens with over 2MiB allocations as that is the point where mimalloc starts to use (abandoned) "huge" page allocations where one pages spans a full segment. Not sure what is happening here.

There could be something wrong with native build config, I copied it from somewhere on GitHub and reviewed it to my quite limited knowledge of native compiler flags. Other than that it's direct P/Invoke call to a shared native lib and I verified the signatures for DllImport are correct. I will rebuild to test #212 and review the config once more.

Could you please run the test with MI_DEBUG=0 if it's not at 0 already? I had it set to 0, if I set MI_DEBUG_FULL=1 the test works. Using latest dev branch.

Will try

Ah, too strange. I cannot repro; tried various MI_DEBUG setting, in release and debug mode, also tried mi_malloc_aligned vs. mi_malloc.
In the first Task example, can you check the pointer passed to MemFree, i.e. pm is actually the correct one? Perhaps it is captured by value or not updated after the first run?
(btw. did you know I wrote the original Task abstraction and Task.Parallel etc. with its work stealing queues :-); after it landed in .NET lots of people contributed and it changed quite a bit over the years but the core is still there -- still make me happy every time I see it in action, and glad that I chose a nice short name like Task instead of ThreadedWorker or something  :-) )

just to confirm: it works if you pass less than 2MiB ? and also it works if you use the Debug version?  and also if you free in the same thread.  But it always crashes in Release + more than 2MiB + free from different thread?

In the first Task example, can you check the pointer passed to MemFree, i.e. pm is actually the correct one? Perhaps it is captured by value or not updated after the first run?

It fails on the first iteration. Originally it failed from a finalizer where it's properly stored as a field.

(btw. did you know I wrote the original Task abstraction and Task.Parallel etc. with its work stealing queues :-); after it landed in .NET lots of people contributed and it changed quite a bit over the years but the core is still there -- still make me happy every time I see it in action, and glad that I chose a nice short name like Task instead of ThreadedWorker or something :-) )

Cool! :) I didn't know.

just to confirm: it works if you pass less than 2MiB ? and also it works if you use the Debug version? and also if you free in the same thread. But it always crashes in Release + more than 2MiB + free from different thread?

It works when I set MI_DEBUG_FULL=1. It fails if I do not touch the flags or set MI_DEBUG=0.
I have cflags for Release:
/DWIN32 /D_WINDOWS /W3 /MD /O2 /Ob2

and for Debug:
`/DWIN32 /D_WINDOWS /W3 /MDd /Zi /Ob0 /Od /RTC1`

But Relase/Debug doesn't change anything, or commenting out those flags and leaving CMake's default. Only MI_DEBUG_FULL=1 fixes the test so far.

Ah, that is so strange that MI_DEBUG_FULL=1 works but without it fails -- let me think on this what could possibly be different (as MI_DEBUG_FULL just adds assertion as far I as I can tell)

Is there any way you could attach the Visual Studio debugger to see where it crashes?

Is there any way you could attach the Visual Studio debugger to see where it crashes?
(or send me detailed build instructions so I can reproduce it locally?)

It's more complex. I build a number of useful C libraries into one shared library via Rust's cargo, with some additional glue code in Rust. For mimalloc it's pass-through and I checked there is nothing that starts with MI_ in other libraries.
I will now try to reproduce this is Rust test to rule out C# side and find a way to build .pdb.

Ah I see. Is the mimalloc-redirect.dll used to override malloc/free ? Or are you using direct mi_ prefixed calls? (= better).  I wonder if there is some interaction between the runtime systems?

I use direct mi_ calls. Also I linked C runtime statically, but I tried mimalloc's cflags with /MT as well. I also did a number of stress tests (all with small buffers), so if linkage was incorrect it should have blown up somewhere for sure. Rust toolchain is msvc, not gnu.
On Rust side it fails as well
    fn it_could_free_on_different_thread() {
        let x = spreads_mem_malloc(2 * 1024 * 1024 + 1) as i64;

        let t = std::thread::spawn(move || {
            spreads_mem_free(x as *mut libc::c_void);
        });
        t.join();
    }

with debugger stopping at the second from the end line below:
; id = {0x000008be}, range = [0x00000001400c1550-0x00000001400c16ce), name="void _mi_segment_huge_page_free(struct mi_segment_s *, struct mi_page_s *, struct mi_block_s *)", mangled="?_mi_segment_huge_page_free@@YAXPEAUmi_segment_s@@PEAUmi_page_s@@PEAUmi_block_s@@@Z"
; Source location: unknown
7FF719771550: 48 89 5C 24 10             movq   %rbx, 0x10(%rsp)
7FF719771555: 48 89 6C 24 18             movq   %rbp, 0x18(%rsp)
7FF71977155A: 56                         pushq  %rsi
7FF71977155B: 48 83 EC 20                subq   $0x20, %rsp
7FF71977155F: 44 8B 0D 2A D0 06 00       movl   0x6d02a(%rip), %r9d  ; _tls_index
7FF719771566: 48 8B EA                   movq   %rdx, %rbp
7FF719771569: 65 48 8B 04 25 58 00 00 >  movq   %gs:0x58, %rax
7FF719771572: 48 8B D9                   movq   %rcx, %rbx
7FF719771575: BE E8 00 00 00             movl   $0xe8, %esi
7FF71977157A: 4A 8B 04 C8                movq   (%rax,%r9,8), %rax
7FF71977157E: 48 8B 34 06                movq   (%rsi,%rax), %rsi
7FF719771582: 33 C0                      xorl   %eax, %eax
7FF719771584: 4C 8B 8E 20 0B 00 00       movq   0xb20(%rsi), %r9
7FF71977158B: F0                         lock
7FF71977158C: 4C 0F B1 49 68             cmpxchgq %r9, 0x68(%rcx)
7FF719771591: 0F 85 27 01 00 00          jne    0x7ff7197716be  ; <+366>
7FF719771597: 48 8B 42 08                movq   0x8(%rdx), %rax
7FF71977159B: 48 8B CA                   movq   %rdx, %rcx
7FF71977159E: 49 89 00                   movq   %rax, (%r8)
7FF7197715A1: FF 4A 10                   decl   0x10(%rdx)
7FF7197715A4: 80 62 07 FE                andb   $-0x2, 0x7(%rdx)
7FF7197715A8: 4C 89 42 08                movq   %r8, 0x8(%rdx)
7FF7197715AC: 48 8B 36                   movq   (%rsi), %rsi
7FF7197715AF: 48 89 7C 24 30             movq   %rdi, 0x30(%rsp)
7FF7197715B4: 48 8D 7E 20                leaq   0x20(%rsi), %rdi
7FF7197715B8: E8 83 05 00 00             callq  0x7ff719771b40
7FF7197715BD: 48 3D 00 00 00 04          cmpq   $0x4000000, %rax  ; imm = 0x4000000
7FF7197715C3: 41 B8 40 01 00 00          movl   $0x140, %r8d  ; imm = 0x140
7FF7197715C9: B9 20 01 00 00             movl   $0x120, %ecx  ; imm = 0x120
7FF7197715CE: 48 8B D0                   movq   %rax, %rdx
7FF7197715D1: 41 0F 47 C8                cmoval %r8d, %ecx
7FF7197715D5: 48 03 8E 90 00 00 00       addq   0x90(%rsi), %rcx  <-- debugger stop here
7FF7197715DC: E8 8F D2 FF FF             callq  0x7ff71976e870  ; void _mi_stat_decrease(struct mi_stat_count_s *, unsigned __int64)

Thanks for the trace -- I cannot see why it is going wrong though :-(  -- nevertheless, I checked in a possible fix, can you try the latest dev?   The weird part is that it seems to crash at maintaining statistics (which may explain why it works in debug mode)

Ah, I have a repro! It happens when static linking on Windows in release mode. Investigating now! :-)

btw. why does the debugger stop? is it a seg fault (no write permission? or read permission?)

 :)

I think I got it fixed now with afc4f79 -- tricky issue! Glad you found it. Initialization of thread local data is very tricky to get right across all configurations and I missed a case here for static initialization.
 Online 24/7 :)

I will push a new release (1.6.2) soon with this fix in.

Thanks again! I waited for a release for previous performance issue, but it was not blocking.


uploaded file size 0 bytes

I made an Dropbox API for my project. while uploading any file from my host , the file was uploaded as empty file.
and I need more detail on dropboxFile file path specification. how to take full path of the file from the web.
I guess it is not writing the file because dropbox API v1 has Writemode but here its not.

According to Dropbox's API Documentation, the default mode is add.
Please share more information, preferably the code block.

I m working on project in ubuntu. when i upload and download via localhost using xampp/lampp it works.
But in web host only the files located in opt/lampp/htdocs/ works , for any other file the host web page or a image file shows 'This page isn’t working'.
here is my code.
` if (isset($_POST["file"])) {
$file = $_POST['file'];
$dropboxFile = new DropboxFile($file);
$files = $dropbox->upload($dropboxFile, "/".$file, ['autorename' => true]);`
i tried to change DropboxFile param but same error  'This page isn’t working'.

can u explain how to dynamically take the file from any location of local storage and upload it to dropbox using live server ( not  local host )

I'm not sure I understand the question. What do you mean by local storage?
From what I understand (quite limited), you want to upload a user's uploaded file to Dropbox. The code you're using seems to be incorrect. Here's how you can handle file uploads:
// File: upload.php

// Configure and instantiate the Dropbox class
// ...

if (isset($_FILES["file"])) {
    // File to Upload
    $file = $_FILES['file'];

    // File details
    $fileName = $file['name'];
    $filePath = $file['tmp_name'];

    // Create stream from temporary file path
    $stream = fopen($filePath, "r");

    // Create Dropbox File from Stream
    $dropboxFile = DropboxFile::createByStream($fileName, $stream);

    // Upload the file to Dropbox
    $uploadedFile = $dropbox->upload($dropboxFile, "/" . $fileName, ['autorename' => true]);
}

Your HTML form could be something like this:
<form action="upload.php" method="POST" enctype="multipart/form-data">
    <input type="file" name="file">
    <button type="submit">Upload</button>
</form>

Unfortunately code didn't worked . gives http 500 error.


Unable to identify in which file (filename) I got error

I am using react-native-bugsnag to monitor error and crash in my app. While generating any error, It not showing in which file the error get occurred.
If I make any changes in my app it always showing the same log and not showing the error file.
Error:
ReferenceError: Can't find variable: TouchableOpacity This error is located at: in App (at renderApplication.js:34) in RCTView (at View.js:45) in View (at AppContainer.js:98) in RCTView (at View.js:45) in View (at AppContainer.js:115) in AppContainer (at renderApplication.js:33)

Please contact<EMAIL_ADDRESS>to get support on this issue.


Question:  Is halyard.js a possible alternative for QVX?

Description
Considering what it takes to build a qvx connector, the concept of using halyard.js to create a data connection for Qlik Sense is something I've started to wonder is possible.  Where I'm getting stuck is the part of the data connector that surfaces the ui in the Qlik Sense client.
If that part isn't part of qvx requirement, is it possible that a data connector could be created with halyard?

Interesting idea! halyard.js are only using the native connectors like local-folder or web-file. If the raw-data pushed through halyard.js then it will be inline loaded in the script without the need for a connector.
It would be possible to build your own halyard.js connectors to abstract away the connector logic but they would need to use inline load. This would require all reloads to be done with halyard.

I guess the question becomes can I package that into something that is available through the add data / load editor ui?  Inline load for lots of records isn't great, but something less complex than qvx is very intriguing.

We are currently not planning on adding that kind of functionality to halyard.js. We have another approach that can make it easier to create connector and that is https://github.com/qlik-oss/core-file-connectivity-service. Also the new connectors API will make it easier compared to qvx https://www.qlikcore.com/docs/services/qix-engine/apis/data-loading/introduction/


Add spellcheck to CI

As above, so below.

Ported to typos as per the decision in https://github.com/rust-windowing/winit/pull/3565


Add "How to write a training loop in Chainer" tutorial

Related to #2576
Converted from Ota-san and Brian-san's translation work: https://github.com/mitmul/chainer-handson/pull/1

Sorry all, now I'm revising many parts of this tutorial to fix many wrong explanations raised due to the version up to v2. So please wait till I finish revising this.

@mattya @niboshi @beam2d Sorry for the delay. I reorganized this tutorial. It had included many topics in this single tutorial, so it was messy as just one article. Then I removed many precise explanations that aren't essentially related to how to write a training loop without Trainer, to have this article focus on the main topic. I'd appreciate it if you could check the content again.
@bkvogel @Crissman I revised this tutorial. Could one of you guys check the English of this article? Well, I think this can be one part of the new tutorial contents we discussed yesterday.
Thanks,

@Crissman Thank you for your review! I reflected all points.
@beam2d Could you take a look at this and approve this PR?

@Crissman @beam2d Could you approve this PR? English review has finished.

@niboshi Thanks for the comments. Fixed all parts. Please merge this :)

I think it may confusing that the training procedure steps presented in the earlier part of the tutorial and actual sections do not match, even though they look they do.
Maybe they need some fix.
For example (just idea):

Change section headers to something like (Tutorial 1: Prepare the dataset) and refer to them from the procedure steps: 1. Prepare a dataset (Tutorial 1).

@niboshi Thank you for your suggestions! I revised the beginning part that summarizes the content of this tutorial to match it to actual subtitles. Do you think this modification is appropriate?

Can you fix test failures on jenkins?
Otherwise, LGTM.

jenkins, test this please.

LGTM!