Roll Flutter Engine from c090055485cf to 2965ffb927f7 (5 revisions)

https://github.com/flutter/engine/compare/c090055485cf...2965ffb927f7
2022-08-18<EMAIL_ADDRESS>Roll Skia from 439c4708a042 to 9a51e6deb112 (4 revisions) (flutter/engine#35504)
2022-08-18<EMAIL_ADDRESS>Roll Fuchsia Mac SDK from 1hIAHHOhq9Acf2u3d... to 5jtXFOH7XU5RNDLkY... (flutter/engine#35503)
2022-08-18<EMAIL_ADDRESS>Roll Clang Windows from d9e02a30b16e to 60d276923902 (flutter/engine#35509)
2022-08-18<EMAIL_ADDRESS>[Impeller] Linear Gamma to sRGB filter implementation. (flutter/engine#35388)
2022-08-18<EMAIL_ADDRESS>Avoid object creation during each frame (flutter/engine#35343)
Also rolling transitive DEPS:
fuchsia/sdk/core/mac-amd64 from 1hIAHHOhq9Ac to 5jtXFOH7XU5R
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Add support for elevation requirement in COM

Changes:

Modify PackageManager.idl to add support for ElevationRequirement

Microsoft Reviewers: Open in CodeFlow

/azp run


chore: Remove callback from local audit log

The callback is in the write path and blocks until the Hub log is done
with its work using its internal timer. By removing this dependency, we
can let the two logs work independently. Even if the Hub sync falls
behind and adds delays to the internal timer, the local log saving
thread can continue to work without being blocked.
The down side of this change is that tests are a bit more flaky.
Signed-off-by: Charith Ellawala<EMAIL_ADDRESS>

The callback only blocks on shut-down, not in normal operation (in an attempt to flush any logs that might still make it up to hub).
Triggering the hub sync immediately after local batch writes (or at least, on the ticker) means that we'd effectively continue to do house keeping on any written local logs as they came in. During normal operation, it runs the hub sync in a separate goroutine (and it's the responsibility of the callback function in this case to deal with any concurrency issues, which is attempts to do via the mutexTimer).
If the hub sync cycle were to run independently, I feel like we'd have less predictable syncs with a higher number of no-ops 🤔


Integration with Reflexion

Is there any plan or example to integrate the gpt-engineer with reflection? In order to complete the templates it generates. Because for me it generated just templates of the files only with the class and function names without the actual implementation.

I don't think so.
Although, many changes have been applied since you posted this, give the latest version a try.
If you wish to reopen the issue please do following the new issue template.


eventsource: readyState should be unsigned char instead of byte.

Fixes #32.

I don't think this is relevant to the Go implementation. byte was fine.


Column state gets lost on rows load

Hello,
I'm using ag-grid-react and setting the column state on onGridReady with something like:
api.columnpApi.setColumnState(previously_saved_state)

I can see that works but as soon as the row-data gets loaded (the ReactJS way), the column state gets reset to the default one.
I have also tried setting the state in onRowDataChanged and other callbacks and they either fail or ignore the restored state.
Thanks.

I've raised a high priority issue (AG-353) our side for this. We'll update this thread with updates as soon as we have any

cannot reproduce. i went to main demo and set some column state (sort, filter, reorder) and then called gridOptions.api.setRowData([]); (using the debug console) and the data reset, but all column state was retained.
maybe you are loosing filter because you don't have newRowsAction='keep'

@pupeno are you referring to filter state when you say its being reset?
If so, set filterParams: {newRowsAction: 'keep'} on the column(s) you want to maintain state, or on
gridOptions.defaultColDef to be global

What gets lost is not sort, filter, reorder, but which rows were selected (I'm using checkbox multi selection).


Set the title tag in the HTML5 export immediately

Follow-up to #35381.
This makes the project title display without having to wait for the project to finish loading.
If this is merged, the Customizing the Web export page should be updated to mention the new $GODOT_PROJECT_NAME placeholder.

Seems good to merge once rebased.
Can you also do a PR to update the docs?

Still needs a rebase.

@akien-mga Sorry for the delay. I just rebased the PR.

Merged, thanks :)

Cherry-picked for 3.2.2.


Take into account offline setting

coursier has offline capabilities, that can be triggered via the COURSIER_MODE env var, or the coursier.mode Java property. For example, setting COURSIER_MODE=offline makes coursier not attempt to download things (it only relies on its cache).
sbt-coursier currently ignores the offline setting in sbt. This setting could be taken into account via the coursierCachePolicies setting of sbt-coursier.
If offline is true, the default value of coursierCachePolicies could be set to offline, instead of following the value of COURSIER_MODE in the env, or the coursier.mode Java property.
Alternatively, offline could be taken into account only if the COURSIER_MODE env var or coursier.mode Java property are not set.

Is it proper one-liner for offline build?
sbt ";set offline := true ;set coursierCachePolicies := coursier.CachePolicy.LocalOnly :: Nil" shell


Localeswitcher returning whitespace

the code:
{{ localeswitcher('localeswitcher.twig')|raw }}

localeswitcher.twig located in my theme:

    {% for iso, locale in locales %}
        {% if app.request.get('slug') %}
            {% set newslug = get_slug_from_locale(record, iso) ?: record.slug %}
        {% endif %}

                {{ locale.label }}

    {% endfor %}

It returns whitespace and nothing more. Even when I remove the |raw part. Not even the ul is displayed in the document. yet no error is thrown in the system log
This is as much info as I have.

Would it be possible to get access to your backend to "poke" at the issue? Just looking at this it's hard to tell where the issue originates.

Closing since fixed in IRC


Zscalar entitilements group setup by Cloud team

Need to  add an entitlements for the below group as same below screenshot

Groups list:
1. gp-u-dex-celr-developer-dev
2. gp-u-dex-celr-developer-tst
3. gp-u-dex-celr-developer-stg
4. gp-u-dex-celr-developer-prd

Raised the cloud service request for the AD team in order to take care. Please find the request number " RITM0109982"

All 4 groups have been granted entitlements for ZPA/ZIA.


Add  and

These props allow selecting pushState and replaceState for navigating to
the next state.
Fix #3903.

@mjackson or @ryanflorence any thoughts on this? I think it's fine for what it is.

I ended up implementing a custom <Navigate> component in my app to deal with this same use case. It definitely feels like a missing gap for a common use case.
import {Component, PropTypes} from 'react';
import {router as routerShape} from 'react-router/PropTypes';

export default class Navigate extends Component {
  static contextTypes = {
    router: routerShape.isRequired,
  };

  static propTypes = {
    to: PropTypes.oneOfType([
      PropTypes.string,
      PropTypes.object
    ]).isRequired,
  };

  componentDidMount() {
    this.context.router.transitionTo(this.props.to);
  }

  render() {
    return null;
  }
}


WebSocket connection to 'wss://www.domain.com:6001/app/test?protocol=7&client=js&version=4.3.1&flash=false' failed

I'm getting this error only on production on localhost everything works perfect.
My configuration
- Apache2 server
- "laravel/framework": "^7.24",
- "beyondcode/laravel-websockets": "^1.13",
- "pusher/pusher-php-server": "~4.0"
- "pusher-js": "^4.3.1",

bootstrap.js
window.Echo = new Echo({
    broadcaster: "pusher",
    key: process.env.MIX_PUSHER_APP_KEY,
    cluster: process.env.MIX_PUSHER_APP_CLUSTER,
    wsHost: window.location.hostname,
    wsPort: 6001,
    wssPort: 6001,
    disableStats: true,
    //enabledTransports: ["ws", "wss"],
    forceTLS: false,
})

websockets.php
'apps' => [
        [
            'id' => env('PUSHER_APP_ID'),
            'name' => env('APP_NAME'),
            'key' => env('PUSHER_APP_KEY'),
            'secret' => env('PUSHER_APP_SECRET'),
            'enable_client_messages' => true,
            'enable_statistics' => false,
            'encrypted' => true,
        ],
    ],
'ssl' => [
	'local_cert' => '/home/myuser/public_html/storage/ssl/fullchain.pem', //env('LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT', null),
	'local_pk' => '/home/myuser/public_html/storage/ssl/privkey.pem', //env('LARAVEL_WEBSOCKETS_SSL_LOCAL_PK', null),
	'verify_peer' => false,
]

broadcasting.php
'pusher' => [
	'driver' => 'pusher',
	'key' => env('PUSHER_APP_KEY'),
	'secret' => env('PUSHER_APP_SECRET'),
	'app_id' => env('PUSHER_APP_ID'),
	'options' => [
		'cluster' => env('PUSHER_APP_CLUSTER'),
		//'useTLS' => true,
		'encrypted' => true,
		'host' => 'www.domain.com', //I tried also <IP_ADDRESS>
		'port' => env('PUSHER_PORT'),
		//'scheme' => 'https',
		'curl_options' => [
			CURLOPT_SSL_VERIFYHOST => 0,
			CURLOPT_SSL_VERIFYPEER => 0,
		]
	],
]

/etc/supervisor/conf.d/websockets.conf
[program:websockets]
process_name=%(program_name)s
#command=sudo php artisan websockets:serve --host=<IP_ADDRESS>
command=php /home/myuser/public_html/artisan websockets:serve
#directory=/home/myuser/public_html
autostart=true
autorestart=true
user=myuser
redirect_stderr=true
stderr_logfile=/home/myuser/public_html/storage/logs/websockets/websockets.err.log
stdout_logfile=/home/myuser/public_html/storage/logs/websockets/websockets.out.log

.env
BROADCAST_DRIVER=pusher
PUSHER_APP_ID="test"
PUSHER_APP_KEY="test"
PUSHER_APP_SECRET="test"
PUSHER_HOST=domain.com
PUSHER_PORT=6001

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
MIX_PUSHER_HOST="${PUSHER_HOST}"
MIX_PUSHER_PORT="${PUSHER_PORT}"

If anyone has managed to get wss working, can you tell me where I am going wrong.

My configuration is:
bootstrap.js
window.Echo = new Echo({   broadcaster: "pusher",   key: process.env.MIX_PUSHER_APP_KEY,   wsHost: window.location.hostname,   wsPort: 2053,   wssPort: 2053,   transports: ['websocket'],   enabledTransports: ["ws", "wss"],   forceTLS: true,   disableStats: true,   encrypted: true });
broadcasting
 'pusher' => [             'driver' => 'pusher',             'key' => env('PUSHER_APP_KEY'),             'secret' => env('PUSHER_APP_SECRET'),             'app_id' => env('PUSHER_APP_ID'),             'options' => [                 'cluster' => env('PUSHER_APP_CLUSTER'),                 'encrypted' => env('PUSHER_APP_ENCRYPTED'),                 'host' => env('PUSHER_APP_HOST'),                 'port' => env('PUSHER_APP_PORT'),                 'scheme' => env('PUSHER_APP_SCHEME'),                 'curl_options' => [                     CURLOPT_SSL_VERIFYHOST => 0,                     CURLOPT_SSL_VERIFYPEER => 0,                 ]             ],         ],
.env
PUSHER_APP_ID=895516 PUSHER_APP_KEY=c113c0efd96785ea2f2f PUSHER_APP_SECRET=8c654e999936b3a15526 PUSHER_APP_CLUSTER=us2
SOME IMPORTANT THING: Check your PORTS are opened. In my case, Cloudflare was blocking port 6001. I changed to another opened port, exactly to 2053 and worked.

In bootstrap.js,

a. Discomment enabledTransports. b. Change forceTLS to true.

In your SSL configuration, check permission for folders and files. The folder where SSL cert and key are need (folder = 700, files 600).
Try to check to another port, like 2053. In my case Cloudflare was blocking 6001.

**IMPORTANT: Check the ports are opened. **

I have the same issue. im using cloudflare and i was changing the port, but its still doesnt work. do u have any advice to me? and also when im checking with my view files,it showing "Failed to connect to Pusher.".
thanks and im sorry for my poor english.

I have update this answer here. :) Answer


Some questions abot Dueling DQN

Hello, I am new in this field, and my question is: where I can find your structure of your Neural Network in your code about the algorithm Dueling DQN?
Thanks very much!!

here: https://github.com/p-christ/Deep-Reinforcement-Learning-Algorithms-with-PyTorch/blob/79fc69c1010f91795ca5319bc263f5c3442b0d25/agents/DQN_agents/Dueling_DDQN.py#L47


Update gradients.json

I want to request an gradient for your website. Sorry if I did it wrong I'm new to this.

Thanks for contributing 👍


Refactor circle config

use different cache of node_modules for test and publish-docs
Drop display and chrome env settings.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@7bee0ec). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #2351   +/-   ##
=========================================
  Coverage          ?   77.12%
=========================================
  Files             ?       51
  Lines             ?     4131
  Branches          ?        0
=========================================
  Hits              ?     3186
  Misses            ?      945
  Partials          ?        0

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 7bee0ec...5f1ff64. Read the comment docs.


A snapshot backup has been created (but not really...)

Hello everyone,
I've noticed that when I take a backup, I see the percentage progress bar reaching 100%, then I get the notification that "A snapshot backup has been created for ...". The backup section clearly shows the new snapshot and everything appears ok.
But that is not true. Unfortunately, it seems the backup procedure takes a lot longer, a looooooot loooonger. During this unknown loooong time, it is impossible to use the backup image.
I am not sure if this is a bug in linode manager, but the percentage progress bar should actually show the real duration of the backup.
Thank you.

Hey @robo2bobo, the issue is that there's a "needsPostProcessing" status we're not surfacing in the Manager. This can be seen in the API response to /linode/instances/:linodeId/backups:
...
"status": "needsPostProcessing"
...

It's already in our backlog to add this info to the Backups table, and I'll make a note of your request as well. Thanks again.

The backups table now has more information on the status of a backup

https://github.com/linode/manager/pull/8781


Fix oit/picking bug

Fixes #6817
@lilleyse suggested this fix.
@bagnell can you review?

Thanks for the pull request @hpinkos!

:heavy_check_mark: Signed CLA found.
:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.
[ ] Works (or fails gracefully) in IE11.

I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.
:earth_africa: :earth_americas: :earth_asia:

This would break picking for polygons and lines on terrain. Try the picking in this example:
http://localhost:8080/Apps/Sandcastle/index.html?src=development%2FGround Primitive.html&label=Development
If the command doesn't have a derived pick command, it executes the derived depth command. Classification primitives can't use the derived commands for reasons, so they have custom pick commands that are executed.
Can you try moving that if block to right before the line derivedCommands.depth = //...? I can't reproduce the issue this fixes.

Can you try moving that if block to right before the line derivedCommands.depth = //...? I can't reproduce the issue this fixes.

That worked for me for #6817.
@hpinkos does this also fix your use case?

@bagnell yep, that seems to have worked

:+1:


update Data Structures to es6

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

Update Data Structures code to es6 classes to be more consistent.

@UziTech To be more consistent with what?

To be more consistent with the other code in the Data Structures group. Right now some are using functions and some are using classes. I am also making the comments and other parts more consistent with each other.

@UziTech Again, it would be better to create an issue first, so these kinds of changes can be discussed and agreed upon before a PR is created.  I personally don't see any reason to make these changes.  I think it is good to show different ways of approaching these problems (i.e. different syntax).  The user can choose to code the challenges the way they want as long as the tests pass.

@RandellDawson I created issue #37820 to discuss this


The object reference wasn't defined as an object instance.

A aplicação também tem de ser compilada com a depuração
activada.
Por exemplo:

Quando a depuração JIT está activada, qualquer excepção não processada
será enviada para o depurador JIT registado no computador
em vez de ser processada por esta caixa de diálogo.
Last version that worked in my system was the 21.09 version. I am not using the store version.

To enable just-in-time debugging (JIT), the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
activated.
For example:
When JIT debugging is enabled, any unhandled exceptions
will be sent to the registered JIT debugger on the computer
instead of being processed by this dialog box.

I think whats happening here is that FalconX couldn't find the handle of the taskbar.
What version of Windows are you on?
What build?
x64 or x86/x32?

Windows 10 Home, latest update x64...

I am also getting this error.
Windows 10 Enterprise x64
Version 1903 (Build 18632.418)

Store version or just the normal version?

I tested both, same error for both versions.

And <IP_ADDRESS> is also the last version you can run? If yes, something is going on in the new animation library. I will take a look at what is going on.

I'm not sure, I cannot find a <IP_ADDRESS> download link. I just found this program from a news article that showed up in my feed yesterday.

This is where you can find them. https://chrisandriessen.nl/web/downloads/falconx/

Confirmed. <IP_ADDRESS> does work.

Thanks! Can you also try <IP_ADDRESS> (The animations overhaul update)

<IP_ADDRESS> crashes and doesn't give me any error information. I will dig through some event logs.

These are the 2 event logs I have for the <IP_ADDRESS> executable.
Application: FalconX.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
   at FalconX3.Form1..ctor()

Exception Info: System.InvalidOperationException
   at FalconX3.My.MyProject+MyForms.Create__Instance__[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.__Canon)
   at FalconX3.My.MyApplication.OnCreateMainForm()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(System.String[])
   at FalconX3.My.MyApplication.Main(System.String[])

Faulting application name: FalconX.exe, version: <IP_ADDRESS>, time stamp: 0xd768fa9f
Faulting module name: KERNELBASE.dll, version: 10.0.18362.418, time stamp: 0x2b181c2c
Exception code: 0xe0434352
Fault offset: 0x00113572
Faulting process id: 0x4d84
Faulting application start time: 0x01d5837829ceb127
Faulting application path: C:\Program Files (x86)\FalconX\<IP_ADDRESS>\FalconX.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: 8c54bb7e-9ccb-4c0d-8b67-428138794f44
Faulting package full name:
Faulting package-relative application ID:

Allright, the event log doesn't tell me whats going on exactly only that it fails when the first form got created.
I have been changing some stuff up and merged the VisualEffect libary right into FalconX.
Here is the current testing build i just uploaded. Does it make a difference?
https://chrisandriessen.nl/web/downloads/falconx/?dir=Testing

That build is also not working, throwing the same event logs as above.

I am still trying to fix this issue. The weird thing is that this error is very rare and i don't know why it happens.

A NullReferenceException exception is thrown when you try to access a member on a type whose value is null

So what i did now is giving every Reference a default value so it can't be "NULL"
I hope this will fix it. If not i will continue trying.
FalconX_TESTING_<IP_ADDRESS>_v2.zip
https://chrisandriessen.nl/web/downloads/falconx/?dir=Testing

I also enabled every possible warnings in the project and fixed every warning that could lead to a NullReferenceException error according to the warning.
FalconX_TESTING_<IP_ADDRESS>_v3.zip
https://chrisandriessen.nl/web/downloads/falconx/?dir=Testing

Someone else has confirmed that it's fixed now. So i am going to close this issue for now.

Still crashes for me with the same errors on my end. Sorry for not getting back to you sooner. No worries though, I will continue to use the old version that does work.

Thanks for letting me know, i really don't know what could fix this issue anymore. I have been trying and trying as I can't reproduce this bug on my own pc and others. I hope to find a fix in the future.

The <IP_ADDRESS> version is working for me!!! And I finally have the centered toolbar in my secondary monitor! woohoo!!!

Very nice! 😁😁😁

Confirmed. <IP_ADDRESS> works for me also.

Thanks for letting me know 😁


IntoRequest and IntoStreamingRequest traits

Motivation
This PR implements IntoRequest and IntoStreamingRequest traits, as outlined in #34. At the moment, both unary and streaming requests work but interop crate needs to be updated for this PR to be complete. I'll wait for feedback and implement what is remaining if it's decided we should move forward with this.
Solution
Implementation is almost exactly what is discussed in #34.

I've fixed the issue with interop. This implementation seems to work well with different .proto setups.
The only way I found to make it work without the RequestMessage trait is to generate IntoRequest implementations for all input types. I could not find a way to make a blanket implementation for T without the bound.
I'm happy to make that change if you prefer, it's easy.

@hawkw what do you think about having a RequestMessage trait to enforce the type that can be intoed?

and @alce sorry for the delay on this I just wanna see what eliza has to say since she came up with the original spec other wise this looks good!

@alce can you resolve the conflicts? I think CI may not be running because of that?

Goofed. Fixing...

I am having second thoughts about this PR.
On the one hand, as Carl and Eliza pointed out, it makes writing client calls a lot nicer. Every time I write client code I moan about having to write Request::new() explicitly.
On the other hand, it just doesn't feel entirely right to me. I can't really put my finger on it but it makes the API sort of asymmetrical. Even if we were to implement something similar for Response::new() (which btw doesn't really bother me much).
Maybe if we had to call .into_request() and .into_streaming_request() it wouldn't feel so magical.
let message = HelloRequest{name: "hello".into()}
let response = client.say_hello(message.into_request())

Thoughts?

@alce I kinda agree with you, that actually might be better. What do you think @hawkw @carllerche ?

Maybe if we had to call .into_request() and .into_streaming_request() explicitly it wouldn't feel so weird?.
let message = HelloRequest{name: "hello".into()}
let response = client.say_hello(message.into_request())

Thoughts?

I don't really see much of a difference between making users write out into_request explicitly, and making them write Request::new? If we're going to require users to call the into_request method, I think it would be better to just close this PR and continue with the current state of things.
With that said, I don't think we should close this PR. I'd rather merge the code as-is, and call into_request implicitly. While having to call Request::new is not a major issue, not having to does make the new user experience and basic examples much simpler, which I think is worth something. If the concern is  that

[...] it makes the API sort of asymmetrical.

I think we should just make the same change on the server side and add an IntoResponse trait as well.
Just my two cents.

The comment about asymmetry was not so much about request vs response. The weirdness I get is  more about client vs server.
This client code
let point = Point { lat: 1, lon: 2 };
let response = client.get_feature(point).await?;

and this server's signature
async fn get_feature(&self, request: Request<Point>) -> Result<Response<...>;

are surprising, particularly when the client's function signature is not easily available, as is the case when following the default getting started.
But then, as I was writing this, I realized that:

As things are now, you kinda need to hunt around for the generated code to get anything going beyond hello world, in which case people will see the sneaky IntoRequest in the client's signature.
My gripe is, and always has been, with how deeply hidden the generated code is.

As things are now, you kinda need to hunt around for the generated code to get anything going beyond hello world anyway, in which case people will see the sneaky IntoRequest in the client's signature.

My gripe is, and always has been, with how deeply hidden the generated code is.

@alce do you think we can replace the generated IntoRequest impls with blanket impls, like the ones @carllerche proposed in https://github.com/hyperium/tonic/issues/34#issuecomment-539296206? Then, the impl IntoRequest for ... would be in tonic's docs, rather than in the generated code.

I couldn't figure out how to do it without a bound. That's one of the reasons why I had the RequestMessage  marker trait before, which was akin to Carl's Message trait in the comment.
I will give it another go tomorrow to see if I can find another way.

I couldn't figure out how to do it without a bound. That's one of the reasons why I had the RequestMessage  marker trait before, which was akin to Carl's Message trait in the comment.
I will give it another go tomorrow to see if I can find another way.

I'm still not convinced that this indirection is worth it honestly. I think the Request type is a good line between too verbose and being just explicit enough.

@LucioFranco  I think I've found a more natural way to do it, I'll push the changes later today.
With regards to the so-called asymmetry I speak of, I think I'm splitting hairs and considering only my own workflow and bias. In a larger, more realistic context, this is almost irrelevant.

Here's a cleaner implementation that combines approaches discussed before. It introduces only one new trait and does not generate any code.


[Universal banner]: Image stretching

Description
At the desktop breakpoints, the image in the Universal banner is being too condensed as the screen is resized. We should figure out a solution to keep the image clear as the window is resized.

@RichKummer and @oliviaflory to check the CTA alignment to the grid: https://ibm.ent.box.com/folder/142303458357?s=fas5qv5zrscudr63y85g28v0k657p83u
Component(s) impacted
Universal banner
Browser
Chrome
Carbon for IBM.com version
v1.16.0-rc.1
Severity
Severity 3 = The problem is visible or noticeable to users but does not impede the usability or functionality. Affects minor functionality, has a workaround.
Application/website
C4IBM.com
Package
@carbon/ibmdotcom-web-components
CodeSandbox example
https://codesandbox.io/s/github/carbon-design-system/carbon-for-ibm-dotcom/tree/main/packages/web-components/examples/codesandbox/components/universal-banner
Steps to reproduce the issue (if applicable)
No response
Release date (if applicable)
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate issues

Design to do additional testing and update functional specs. Consider keeping fixed width until next breakpoint where image will become hidden. See example.

Feedback:

simplify type

Semi bold
Semi bold + regular ?
Try 14px

left align type
Try primary and tertiary buttons. Don't think secondary is the right choice
Should we allow for colors other than the default themes
option for video or image ?
Review in context (masthead) @ each breakpoint

Asset needs more space around it so it doesn't get cropped
Or adaptively change space around it so it doesn't get cropped.
Need detailed guidance on how to position and crop image. Has enough room to scale without being cropped.


Can't access Rutorrent

I am using Ubnutu 15.10
I used the script and there were no errors. Yet when I access /rutorrent I get nothing.
I figured it would be an nginx issue  /var/log/nginx/error.log only shows nothing.

What do you mean by nothing. No error message at all?

Same thing with Debian 8. It is an issue with the nginx install not having a defined server port in nginx.conf.

There was an issue with the ssl redirect causing this problem. It has been resolved if you use the latest script


Support stdout

I wanna emit dbml to just stdout, and redirect it to other place
Perhaps making it as default behavior is more sensible. And --file $path as an option (which is useful some cases, but POSIX-style redirection is simpler)

What's your use case for such functionality?

I want to decide the output path in the exexution context, not in the script.
node generate.js > out.dbml

I can make it so it returns a string and then you're able to manipulate it however you'd like to.


🚸 Building Shared Libraries

Description
This PR started out as a PR that should "just" improve the project installation before top-level projects eventually switch to the new mqt-core version. As part of that, it tried to address #530 by switching the library to build dynamic libraries by default. This considerably decreases the binary size and would, in general, be nice to support.
However, producing shared libraries also means explicitly managing symbol visibility and, as it turned out, this is not such an easy endeavor.
The corresponding changes need appropriate testing across all different projects to make sure that nothing is missed.
In its current state, this PR is merely a draft that contains the best effort so far.
I will open corresponding PRs in all top-level projects that use mqt-core to make sure that the new library structure works for all those projects.
In particular:

mqt-qcec: cda-tum/mqt-qcec#352
...

Checklist:

[ ] The pull request only contains commits that are related to it.
[ ] I have added appropriate tests and documentation.
[ ] I have made sure that all CI jobs on GitHub pass.
[ ] The pull request introduces no new warnings and follows the project's style guidelines.

Ok. Getting shared libraries to work properly is more work than anticipated.
I am going to split this PR apart and will focus on getting the changes that are not related to shared libraries merged as soon as possible so that development in the top-level projects can resume.

Just rebased this PR on top of main and cleaned up the commits a little bit.
This should be a solid start once there is more time to look into this.

Ok. Further progress here. To keep the history of this PR, I just squashed the previous commits and added another commit that reverts the respective changes.
It turns out, that it might actually not be as hard as expected to get this working since hidden symbol visibility apparently is not a must.
The current state of the PR just changes very few things and, at least locally, that was enough to allow building all of our top-level Python packages based on the installed mqt.core package.

Adding some interesting articles on C++ ABI compatibility here:

https://uwekorn.com/2019/09/15/how-we-build-apache-arrows-manylinux-wheels.html
https://discuss.python.org/t/how-to-set-glibcxx-use-cxx11-abi-for-manylinux2014-and-manylinux2010-wheels/10551

The Python errors on Windows are interesting as I can't quite make sense of them. This needs some further investigation. It has something to do with the mqt-core-python target. So maybe (finally) removing that resolves the error.
Interestingly, the C++ tests work just fine on Windows.
The package check failure is due to the SONAME and Version symlinks as well as the shared libraries in a non-importable location. I am fairly sure it is fine to simply ignore these, but this also needs further investigation.

Alright. The C++ tests working under Windows were simply because no shared libraries were built there.
The reason for the failure in the Python module was symbol visibility, which is hidden by default on Windows.
However, there is a convenient CMAKE option to export all symbols under Windows.
Once that was working, Python could not finde the mqt-core DLLs, which was fixed by adding the bin directory of the package installation to the DLL path.

Closing in favor of #662


[uss_qualifier] Test DSS Subscription limitations (too many subscriptions)

Adds a test to cover DSS0050: for a given area modelled by the DSS, we should only be allowed to create 10 subscriptions, not more.

v19 and v22a both show success for ASTM NetRID DSS: Subscription Validation, this is ready for review.


fix mapvote alignment

Hello
I have been noticed about an alignment issue caused by changing the game resolution, and after doing some tests i noticed the issue in the map list
using a fixed font for the hud element fixes the issue (thanks to IzNoGoD from Killtube)
this pull requests also improves a bit the general alignment, it's not perfect but i hope you will think it's better too
here are some screenshots:

Please let me know if any modifications are needed for the changes to be accepted
Regards

and i also added another commit to update the libcod1 link in the readme file
github redirects the old link to the current one but i guess it's better to update anyway


updatemodulepaths stdout.write error

Issue Summary
updatemodulepaths uses sys.stdout.write(line.encode("utf-8")) which is not supported in python3.
I think this should be sys.stdout.write(line)
Steps to Reproduce

run wagtail updatemodulepaths in a project where updates need to be made.

Technical details

Python version: 3.7.11
Wagtail version: 3.0.1

Hi @adi1 - thanks for the report.
The line.encode("utf-8") was introduced in #8450, and is needed when running on Windows because it opens files in Windows-1252 encoding rather than UTF-8 by default, and there's no way to override this when using the fileinput library (until Python 3.10).
This line of code runs inside a with fileinput.FileInput(...) block, where sys.stdout has been substituted with a file opened in binary mode, so sys.stdout.write(line.encode("utf-8")) should be correct as far as I can see. Can you give more detail about the error you're getting, and the OS you're running on?

Thanks - I can confirm I'm seeing the same issue on Python 3.7.12, but not 3.8.
(This is when testing the wagtail updatemodulepaths command directly - running sys.stdout.write('foo'.encode('utf-8')) on the python command line isn't a valid test for this, as it needs to be run inside a with fileinput.FileInput block to match what updatemodulepaths is doing.)

PR: #8973


Strange wording on Command Center visibility menu

Not sure what "Launch" means in this case. Looks unintentional to me?

verified but we also changed this again, see https://github.com/microsoft/vscode/issues/170621#issuecomment-1372467459


Add session awareness to nav.js

When logged in, "EDIT ACCOUNT" and "LOGOUT" links should be added. Also, currently "MANAGE PETITIONS" link changes to "{firstname}'S DASHBOARD" on legacy site, but not sure whether or not new design intends to maintain that switch.
If we can't do this entirely client-side with the current login process (e.g. by reading a cookie), this issue should maybe be deferred until we have a new login process.

i think this issue needs login & sign up routes first? but maybe not?

@shakalee14 https://github.com/MoveOnOrg/mop-frontend/pull/65 should provide session state which you can use in nav, as well.  (just testing store.userStore.signonId as long as you've hooked the component up to redux)


Use troika directives instead of slurm for TroikaHost object

Is your feature request related to a problem? Please describe.
The current implementation of the TroikaHost uses slurm directives (SBATCH), meaning we can only run the TroikaHost on HPC using slurm as job scheduler.
Describe the solution you'd like
The slurm directives should be replaced by troika compatible directives (TROIKA) to be able to run on any system where troika is installed.
Describe alternatives you've considered
No response
Additional context
No response
Organisation
No response

Merged to develop


an :add command

just like set but it increments the value? and in the case of array [and targets] it appends

i don't think so.. for precise movements it's not difficult to copy the value into a temporary circle then flip the connection and add to it.
and with arrays there's push now

okay maybe push for arrays and targets

:push [id] x
if x is an id push to targets, if it's a float, push to array

2156153

delta movement

i'd like it to be an argument to :set, to avoiding duplication

this has changed a little bit. you don't need nom, just give the commands some attention, and a delta movement would be nice


up local command: add flag operator-flags

operator-flags gives the ability to pass flags to the local operator.
Fixes #255

lgtm

One last nit, could you update the commit title to use operator-flags instead of extra-flags?


CSRF token mismatch

I am trying to make an ajax post request.
The first request passed successfully and give 200 status code.
But the second one give me error with "419" status code and an error message "CSRF token mismatch.".
Note: i sent this csrf token in the request but still get the same error in the second request.
This is my request code
$.ajax({
url: "/test",
type: 'POST',
headers: {
'X-CSRF-TOKEN': "{{ csrf_token() }}"
},
success: function (data) {
console.log(data);
return true;
},
error: function(error) {
console.log(error);
return false;
}
});

disable csrf checking .
since jwt tokens are used, this is not necessary

@enmaboya
At First thinks so much for your reply.
Do we use the jwt tokens??
I mean the jwt is used by default in the laravel shopify package??
Beacuse i did not use jwt package :)

using this package you are using JWT anyway, otherwise your application simply will not pass moderation.
even if you don't have a spa application, you still pass the token every time you request it, just in the get parameter or with a hidden input

using this package you are using JWT anyway, otherwise your application simply will not pass moderation.
even if you don't have a spa application, you still pass the token every time you request it, just in the get parameter or with a hidden input

Further information on this package's use of JWT in v17 can be found at:
https://github.com/osiset/laravel-shopify/wiki/Authentication-Process
https://github.com/osiset/laravel-shopify/wiki/Installation#csrf

@enmaboya is right - you need to use the JWT token helpers.
https://github.com/osiset/laravel-shopify/wiki/Authentication-Process
Closing this.


Multiple path parameters and multiple endpoints

Hi there,
I currently have a flask_restful Resource with 2 path parameters: one compulsory, and one optional. I followed this recommendations of writing it this way:
api.add_resource(ProductsResource, '/products/<string:slug>', '/products/<string:slug>/<string:color>')
class ProductsResource(Resource):
      @marshal_with(products_fields)
      def get(self, slug, color=None):
           ....

Then, i have the following YML documentation in the docstring regarding parameters:
...
- name: slug
   in: path
   description: product's slug
   type: string
   required: true
- name: color
   in: path
   description: product's color
   type: string
   required: true

When I go to my project on http://localhost:5000/spec, I see that I have 2 endpoint generated:

http://localhost:5000/products/{slug}
http://localhost:5000/products/{slug}/{color}

But, for both endpoints there are those 2 required parameters, resulting in a swagger error: Path parameter is defined but is not declared: color.
Do you think it would be possible to filter the path parameters based on the endpoints used ? Here it would mean filter out 'color' for the first endpoint.
Thanks,
Pierre.

I'm also open to alternative solutions in order to avoid this problem, in case it is possible to do it without changing flask-swagger's code. Like, changing the Resource's structure by creating 2 functions instead of one, or anything.

I'm not saying it's optimal but yes you could create "wrapper" methods for resources. The wrappers have separate YAML but call a shared method internally.
It's not obvious to me how to do this via flask_swagger without refactoring the YAML format.

Alright, i'll see what I can do using wrapper methods, thanks for your help.


trying a reset the second time

Iet me see if I can approve it...

Oh. I don't have write access.


Support for wildcard query (computed_usersets with prefixes)

This stuff looks awesome! I want to know whether there is plan to support the LIKE operator, which is very important in my use case.
For example, salesrep_* is allowed to edit broucher_*.doc will allow usernames with prefix salesrep_ to edit docs that match wildcard pattern broucher_*.doc.
This is really useful in cases where you have many apis in your app that follows some kind of naming pattern, and specifying each of them explicitly becomes tedious.

Aha I see. I've just started reading up on Zanzibar this week, so pls bear with me.
A typical scenario is where I want access control to an API endpoint. I will design my API such that I can parse out the "action" from the url prefix. For example, /api/DeleteFile/lalala.txt will have the action DeleteFile. Now since the user is already authenticated, I will want the authz engine to answer something like "can Johnny performance action delete file on file lalala.txt".
Now alongside DeleteFile, the reality is there will often be dozens or even hundreds of "action" in an API endpoint. If my understanding of spicedb is correct, an end-user/operators writing their own ACL will need to first define an action set (permission in authzed) by explicitly stating its members (DeleteFile, DeleteFolder, DeleteTimestamp, ...), and then establish the relationship between Johnny and file lalala.txt as that action set. Now, I want a query to the engine for DeleteFile, etc. to match a wildcard relation label Delete*, i.e. I can define a permission named Delete*, and all defined relationships that match this wildcard will be auto included.
Sometimes it is not only an issue of tediousness. The resource itself may not be ascertainable beforehand, so it is impossible to define its set. For instance, how do I say "Johnny can delete file lalala.*"? The only solution I can think of is to use the expand API and then filter in code.

@josephschorr tks for the clarification. My issue is that I cannot parse code in the scenario. Let me describe the bigger picture: I have a web drive app that allow operator users to create other users or groups, and have files. User, group and file names are arbitrary.
User/group can perform an action on a file. Actions are predefined (EditTag, EditFilename, etc.) and I can figure out the action from the request URL. I want operators to be able to self-service create acls like group:salesreps can webdrv:Edit* on file:broucher_*.doc. Query to authzed for a request may look like check(file:broucher_foo.doc, webdrv:EditTag, user:johnny).
I can imagine creating a

It is through my application, but I won't for instance be able to know to check for Edit* when the request is for EditTag.

This is equivalent to a computed_userset with some sort of prefix-matching rule definition


Add example for config

I just installed your configuration, it seems to be great, but I cannot use it lol.
Maybe I need some more coffee, but to me this makes no sense:
const withAnimations = require('animated-tailwindcss');

module.exports = withAnimations({
  // ... your config here ...
});

What config goes there?

Okay, it was that I needed more coffee.... ;) haha, sorry for the confusion.
I understand it now, it is optional config, it just works right out of the box after install, I just had to use the custom class names.
Thanks for making this, pretty cool stuff.

Thanks for the feedback. I'll try to add complete working examples and much detailed installation. Coming from Next.js background, it appeared to me quite clear, but the case may not be same for everyone.
Just to clarify, when you install tailwind (and initialize it using npx tailwindcss init), it will generate a file tailwind.config.js with the following content:
// https://tailwindcss.com/docs/installation#create-your-configuration-file

// tailwind.config.js
module.exports = {
  purge: [],
  darkMode: false, // or 'media' or 'class'
  theme: {
    extend: {},
  },
  variants: {},
  plugins: [],
}

Now a minimal setup to use animated-tailwindcss will look something like this:
// tailwind.config.js

const withAnimations = require('animated-tailwindcss');

module.exports = withAnimations({
  purge: [],
  darkMode: false, // or 'media' or 'class'
  theme: {
    extend: {},
  },
  variants: {},
  plugins: [],
})

The comment // ... your config here ... basically meant that you have to wrap your existing Tailwind configuration with withAnimations.
You can try this on Tailwind playground: https://play.tailwindcss.com/vLSZhGUMTz
Also, thanks for using the configuration. And indirectly pointing a bug -- actually you can't pass an empty object (or simply pass nothing) for now. Currently, at least withAnimations({plugins: []}) is needed. I'll fix this in the next patch release.

Fixed the bug in v2.2.1. The below configuration is now the minimal configuration to use this package:
// tailwind..config.js

module.exports = require('animated-tailwindcss')()

Thanks for the explanation, I actually still wasn't using it right :)
Now with this, everything is working:
// tailwind.config.js

const withAnimations = require('animated-tailwindcss');

module.exports = withAnimations({
  purge: [],
  darkMode: false, // or 'media' or 'class'
  theme: {
    extend: {},
  },
  variants: {},
  plugins: [],
})


✨ Add Static Code Analysis

Add the following to Directory.Build.props
<Project>
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>

    <!-- Configure code analysis. -->
    <AnalysisLevel>latest</AnalysisLevel>
    <AnalysisMode>All</AnalysisMode>
    <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
    <CodeAnalysisTreatWarningsAsErrors>false</CodeAnalysisTreatWarningsAsErrors>
    <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
  </PropertyGroup>
</Project>

Source: https://www.milanjovanovic.tech/blog/improving-code-quality-in-csharp-with-static-code-analysis
Consider only promoting warnings to errors in Release builds

Once we've added the static code analysis we'll also need to fix up all the warnings.
May need to disable a few if we strongly disagree.


Fix w_tophat expression

Fixes issue #607

Pull Request Test Coverage Report for Build 3245

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 88.235%

Totals

Change from base Build 3233:
0.0%

Covered Lines:
555

Relevant Lines:
629

💛  - Coveralls

argh, changelog

just merge when the tests pass


Can't send direct message (problem with InstagramDirectShareRequest.builder())

To share a message, the readme says to call
instagram.sendRequest(InstagramDirectShareRequest.builder(ShareType.MESSAGE, recipients).message(message).build());
but when I call it, Eclipse says
The method builder() in the type InstagramDirectShareRequest is not applicable for the arguments (InstagramDirectShareRequest.ShareType, List<String>)

Update: I didn't know how builders worked in Java, and after quite a while of research I realized that I had to call it like
...InstagramDirectShareRequest.builder().shareType(ShareType.MESSAGE).recipients(recipients).message("message")...

Addressed in rewrite or no longer relevant.

Could you please suggest what classes need to be used to send message in 2.0.7 version? There is no InstagramDirectShareRequest, there are only sendRrequest but can't find anything that fits for sending direct messages

See #716 & shift to EasyInsta now


Explicitly use Go 1.4 during CircleCI testing

I will have to ask the CircleCI guys about this.

CircleCI already uses Go 1.4, nothing to see here.


arm-none-gnueabi-gcc does not support threading

Example program:
#include "pthread.h"
#include "stdio.h"
#include "stdlib.h"

void *worker_thread(void *arg)
{
    printf("This is worker_thread()\n");
    pthread_exit(NULL);
}

int main()
{
    pthread_t my_thread;
    int ret;
    printf("In main: creating thread\n");
    ret = pthread_create(&my_thread, NULL, &worker_thread, NULL);
    if(ret != 0)
    {
        printf("Error: pthread_create() failed\n");
        exit(EXIT_FAILURE);
    }
    pthread_exit(NULL);
}

Compilation error:
pthread.c: In function 'void* worker_thread(void*)':

pthread.c:8:18: error: 'pthread_exit' was not declared in this scope
pthread_exit(NULL);
                  ^
pthread.c: In function 'int main()':
pthread.c:15:1: error: 'pthread_t' was not declared in this scope
 pthread_t my_thread;
 ^
pthread.c:15:11: error: expected ';' before 'my_thread'
 pthread_t my_thread;
           ^
pthread.c:18:23: error: 'my_thread' was not declared in this scope
 ret = pthread_create(&my_thread, NULL, &worker_thread, NULL);
                       ^
pthread.c:18:60: error: 'pthread_create' was not declared in this scope
 ret = pthread_create(&my_thread, NULL, &worker_thread, NULL);
                                                            ^
pthread.c:24:21: error: 'pthread_exit' was not declared in this scope
  } pthread_exit(NULL);

Hey @amikhail48, I think the phtread libraries are not available for embedded implementations of libc. You might need to link a platform specific implementation for this to work, similar to the dynamic memory allocation options.


AttributeError: 'Remote' object has no attribute 'url'

Weights and Biases version: 0.6.27
Python version: 3.6
Operating System: Ubuntu 16.04

Description
Hi!
First of all, As one of PyTorch users, I appreciate wandb :D
Unfortunately I had a problem(seen below logs) when my project has git & remotes
but don't have a remote named 'origin'.
So When i add a remote named 'origin', the errors are solved.
And i knew that I have to remote named 'origin'.
Although 'origin' is ordinary for name of remote, even so why i should have it?
What I Did
wandb: Started W&B process version 0.6.27 with PID 13381
/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
Traceback (most recent call last):
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/configparser.py", line 789, in get
    value = d[option]
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/collections/__init__.py", line 883, in __getitem__
    return self.__missing__(key)            # support subclasses that define __missing__
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/collections/__init__.py", line 875, in __missing__
    raise KeyError(key)
KeyError: 'url'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/site-packages/git/remote.py", line 428, in __getattr__
    return self._config_reader.get(attr)
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/site-packages/git/config.py", line 124, in <lambda>
    return lambda *args, **kwargs: self._call_config(attr, *args, **kwargs)
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/site-packages/git/config.py", line 130, in _call_config
    return getattr(self._config, method)(self._section_name, *args, **kwargs)
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/site-packages/git/config.py", line 79, in assure_data_present
    return func(self, *args, **kwargs)
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/configparser.py", line 792, in get
    raise NoOptionError(option, section)
configparser.NoOptionError: No option 'url' in section: 'remote "origin"'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/site-packages/wandb/internal_cli.py", line 101, in <module>
    main()
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/site-packages/wandb/internal_cli.py", line 93, in main
    headless(args)
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/site-packages/wandb/internal_cli.py", line 46, in headless
    raise e
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/site-packages/wandb/internal_cli.py", line 41, in headless
    port=args['port'])
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/site-packages/wandb/run_manager.py", line 395, in __init__
    self._meta = meta.Meta(api, self._run.dir)
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/site-packages/wandb/meta.py", line 29, in __init__
    self.setup()
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/site-packages/wandb/meta.py", line 40, in setup
    "remote": self._api.git.remote_url,
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/site-packages/wandb/git_repo.py", line 96, in remote_url
    return self.remote.url
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/site-packages/git/remote.py", line 430, in __getattr__
    return super(Remote, self).__getattr__(attr)
  File "/home/visionnoob/anaconda3/envs/py36tf17/lib/python3.6/site-packages/gitdb/util.py", line 255, in __getattr__
    return object.__getattribute__(self, attr)
AttributeError: 'Remote' object has no attribute 'url'
Terminated

Ahh, it is incorrect of us to assume there is a remote on origin.  We'll update the code to handle this.

@vanpelt
I got it! Thank you 👍

I've also just experienced this issue. The fix is the following:
cd [root of project with .git directory]
git remote add origin https://github.com/[Username]/[Repository name].git

Basically, wandb expects a URL for the origin. If this doesn't exist - which oddly enough it seems can be a circumstance - then it crashes. @vanpelt would it be possible to integrate some sort of descriptive error message for this case? It's not a big issue, but just one that would benefit from an error message. Thanks!


Error: unsupported CUDA toolkit 11.5

When building cudarc, a user reported the following error:
error: failed to run custom build command for cudarc v0.11.4

Caused by:
process didn't exit successfully: /root/mistral.rs/target/release/build/cudarc-7276cb883fd7b801/build-script-build (exit status: 101)
--- stdout
cargo:rerun-if-changed=build.rs
cargo:rerun-if-env-changed=CUDA_ROOT
cargo:rerun-if-env-changed=CUDA_PATH
cargo:rerun-if-env-changed=CUDA_TOOLKIT_ROOT_DIR

--- stderr
thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cudarc-0.11.4/build.rs:73:14:
Unsupported cuda toolkit version: 11.5. Please raise a github issue.
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Is this a feature to be a added to cudarc? Refs EricLBuehler/mistral.rs#396.

Yes we can add 11.5/11.6

Thank you! Would you please write a release for this?

@EricLBuehler just released under cudarc 0.11.5

@coreylowman great, thank you for being so quick!


Add secrets

Description of changes:
Add two secrets to the helm chart.

The concern with this design is how are expecting these values to be based in? I assume they will be passed in already base64 encoded. Will this be done via the CLI during helm install? If so we will need to update the logging in the CLI as I believe with helm install the values do show up in the log.

The concern with this design is how are expecting these values to be based in? I assume they will be passed in already base64 encoded. Will this be done via the CLI during helm install? If so we will need to update the logging in the CLI as I believe with helm install the values do show up in the log.

Yes, CLI does the encoding and stores them into a temporary file which helm install may read. The logging in the CLI only shows that temporary file name, not those encoded values.


Error with ternary in if/else block

While compiling /vg/station, the following error occurs:
Error at code\game\machinery\doors\airlock.dm:1153:9: Expected ':'
1151 if(M.client)
1152 	density ? open(1):close(1)
1153 else if(density)
1154	open(1)

Dupe of one of the other ternary issues IIRC

Dupe of one of the other ternary issues IIRC

There's #416 which I think is an issue with parsing a "String":property expression, and this looks to be an issue with parsing a ternary with proc calls in both the b and c expressions.

Also the error in the above comment occurs within a for() loop:
/swapmap/proc/ConsiderRegion(X1,Y1,X2,Y2,Z1,Z2)
	while(1)
		var/nextz=0
		var/swapmap/M
		for(M in swapmaps_loaded)
			if(M.z2<Z1 || (Z2 && M.z1>Z2) || M.z1>=Z1+z2 ||\
				M.x1>X2 || M.x2<X1 || M.x1>=X1+x2 ||\
				M.y1>Y2 || M.y2<Y1 || M.y1>=Y1+y2)
				continue
			// look for sub-regions with a defined ceiling
			var/nz2=Z2?(Z2):Z1+z2-1+M.z2-M.z1
			if(M.x1>=X1+x2)
				.=ConsiderRegion(X1,Y1,M.x1-1,Y2,Z1,nz2)
				if(.)
					return
			else if(M.x2<=X2-x2)
				.=ConsiderRegion(M.x2+1,Y1,X2,Y2,Z1,nz2)
				if(.)
					return
			if(M.y1>=Y1+y2)
				.=ConsiderRegion(X1,Y1,X2,M.y1-1,Z1,nz2)
				if(.)
					return
			else if(M.y2<=Y2-y2)
				.=ConsiderRegion(X1,M.y2+1,X2,Y2,Z1,nz2)
				if(.)
					return
			nextz=nextz?min(nextz,M.z2+1):(M.z2+1)
		if(!M)
			/* If nextz is not 0, then at some point there was an overlap that
				could not be resolved by using an area to the side */
			if(nextz)
				Z1=nextz
			if(!nextz || (Z2 && Z2-Z1+1<z2))
				return (!Z2 || Z2-Z1+1>=z2)?list(X1,Y1,Z1):null
			X1=1;X2=world.maxx
			Y1=1;Y2=world.maxy

So it may be that fixing #656 may fix it.

This is no longer an issue.


Logging Filter

https://github.com/opentracing-contrib/java-spring-cloud/pull/97 introduced redirect of standard logging into span logs.
Logback supports filters https://logback.qos.ch/manual/filters.html to change a decision on appending log. Right now we send all logs to span (log of the level of root logger). However, this might overload tracing system. Just note that some tracing systems might strip long log strings.
Question if how to support this. Autowire list of Filter<E>? This might autowire other filters from the context, a solution might be to use classifier like tracingLogFilter.
cc @jfbreault

I would suggest simply leaving it to custom configuration, as it does Spring Boot on its own.
Moment logback-spring.xml (or other variants) are found, it is used, and logging properties are ignored.
Problem is, currently SpanLogsAppender requires Tracer reference. When used in logback manually, it would have to use GlobalTracer.
Note that TracerRegisterAutoConfiguration does not reregister GlobalTracer when already registered, which might break soft-restarts of the app (mainly devtools).

Would SpanLogsAppender.java be a good place to add a configurable Level. check before executing the append using the int values of the levels?


restarting containers get killed if attachment fails

When executing docker run or docker start against the proxy, and a failure occurs when attaching the container to the weave network, we want the run/start to fail. We do this by docker killing the container - the --or-die variant of weave attach. So far so good...
But the very same code is used for re-attaching a restarting container. And docker killing a restarting container will prevent it from ever restarting. Which is (probably?) wrong.
The same "or die" behaviour is exhibited by weave restart.
I wonder whether killing the process might have the desired effect of returning an error to the CLI, while keeping docker's restart logic operational.

Here's how docker behaves for a container with --net=weave --restart=always when the weave router isn't running:
$ weave launch
$ weave stop-router
$ docker create --name=foo --net=weave --restart=always -ti alpine /bin/sh
4b03a39fdbccab477cf64ce5aadf161c4339f8dd52424b15d9dd4769529b865c
$ docker inspect -f '{{json .State}}' foo
{"Status":"created","Running":false,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":0,"ExitCode":0,"Error":"","StartedAt":"0001-01-01T00:00:00Z","FinishedAt":"0001-01-01T00:00:00Z"}
$ docker start foo
Error response from daemon: IpamDriver.RequestAddress: Post http://<IP_ADDRESS>:6784/ip/_/<IP_ADDRESS>/12: dial tcp <IP_ADDRESS>:6784: getsockopt: connection refused
Error: failed to start containers: foo
$ docker inspect -f '{{json .State}}' foo
{"Status":"created","Running":false,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":0,"ExitCode":128,"Error":"IpamDriver.RequestAddress: Post http://<IP_ADDRESS>:6784/ip/_/<IP_ADDRESS>/12: dial tcp <IP_ADDRESS>:6784: getsockopt: connection refused","StartedAt":"0001-01-01T00:00:00Z","FinishedAt":"0001-01-01T00:00:00Z"}
$ weave launch-router
179e90b7d702e067641c86715f042a5764f04908c369b10509c38813459c7f7b
$ docker start foo
foo
$ docker inspect -f '{{json .State}}' foo
{"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":4266,"ExitCode":0,"Error":"","StartedAt":"2016-04-05T07:47:54.001133538Z","FinishedAt":"0001-01-01T00:00:00Z"}
$ weave stop-router
$ sudo kill -9 $(docker inspect -f '{{.State.Pid}}' foo)
$ docker inspect -f '{{json .State}}' foo
{"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":4386,"ExitCode":0,"Error":"","StartedAt":"2016-04-05T07:48:56.816988236Z","FinishedAt":"2016-04-05T07:48:56.458846139Z"}
$ docker restart foo
Failed to kill container (foo): Error response from daemon: Cannot restart container foo: IpamDriver.RequestAddress: Post http://<IP_ADDRESS>:6784/ip/_/<IP_ADDRESS>/12: dial tcp <IP_ADDRESS>:6784: getsockopt: connection refused
$ docker inspect -f '{{json .State}}' foo
{"Status":"exited","Running":false,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":0,"ExitCode":137,"Error":"IpamDriver.RequestAddress: Post http://<IP_ADDRESS>:6784/ip/_/<IP_ADDRESS>/12: dial tcp <IP_ADDRESS>:6784: getsockopt: connection refused","StartedAt":"2016-04-05T07:48:56.816988236Z","FinishedAt":"2016-04-05T07:49:33.322989297Z"}

So....

docker starting the container fails, and no restart attempts are made
killing the container process causes the container to successfully restart - that is because no plugin interactions occur for this at all
docker restarting the container fails after a few seconds, and no further restart attempts are made

which means weave's current behaviour is somewhat defensible, though IMO killing the container when it was restarted automatically by docker is still wrong.


bug: Do u guys know why it doesn't work on safari?

Prerequisites

[X] I have searched for existing issues that already report this problem, without success.

Script Version
1.1.8
Platform
Webapp
Current Behavior
I dowloaded the script and everything but it doesnt activate I think.
I attach a screenshot to let u understand

Expected Behavior
.
Steps to Reproduce
.
Additional Information

This script is tested only in chrome and there is no plan to support other browsers


command naming: network commands still have 'list' and 'list-all'

we have get rid of the list-all for vm. But we still have that at least under lb and nic

@yugangw-msft since you merged PR #533 can this be closed?

List/list-all have been resolved on the CLI side as of PR #533


Configuration Backup

Hi,
I have custom roles, users etc made via the kibana security plugin. I have a requirement to backup this configuration.n
I have tried using snapshots however bootstrapping a new node overrides it. There is no way to dump the config to yaml for importing via securityadmin.sh
There is an API method to dump the config as JSON, however the documentation gives a big fat warning saying that this can ruin your security configuration.
Please advise.

Please see backup, restore and migrate section in the security admin documentation.


Convert result data to Float64

Result data is converted to Float64 before passing it to PyPlot.  Therefore, Julia numbers can be plotted, even if the types of the numbers are not supported by PyPlot (for example rational numbers can be plotted).
If a vector or matrix of subplots is defined, then the x-axis labels are only displayed for the last subplot row.

Codecov Report

Merging #16 into master will decrease coverage by 45.73%.
The diff coverage is 14.28%.

@@             Coverage Diff             @@
##           master      #16       +/-   ##
===========================================
- Coverage   92.11%   46.38%   -45.74%
===========================================
  Files          20       25        +5
  Lines         850     1688      +838
===========================================
  Hits          783      783
- Misses         67      905      +838

Impacted Files
Coverage Δ

src/Result/plotResult.jl
100% <ø> (ø)
:arrow_up:

src/ModiaMath.jl
0% <ø> (ø)

src/Result/_module.jl
8.69% <0%> (-57.98%)
:arrow_down:

src/Result/plotResult_with_PyPlot.jl
0% <0%> (ø)

src/Result/result.jl
23.02% <33.33%> (-63.47%)
:arrow_down:

src/DAE/functionsForUserModels.jl
10.25% <0%> (-89.75%)
:arrow_down:

src/Logging.jl
27.16% <0%> (-72.84%)
:arrow_down:

src/DAE/events.jl
36.63% <0%> (-63.37%)
:arrow_down:

src/NonlinearEquations/sundials_kinsol.jl
34.78% <0%> (-59.34%)
:arrow_down:

... and 18 more

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 3b7a785...31d9eda. Read the comment docs.


[DOCFIX] Update Caching.md

Correct typos for Caching.md.

Hi @maobaolong , could you please take a look. Thanks you.

Thanks for the improvement, it look good to me. Look forward to see your further contribution start with this.

Thanks @maobaolong for your review and encouragement.

alluxio-bot, merge this please

Thanks @apc999 for the review.


Getting list index out of range error when fetching boxes from model

I trained the yolo8 nano model from Ultrlytics and downloaded the .tflite model for inferencing. Now when I am running the code I am getting this error. I don't know how to solve this issue. So, that I can get boxes, classes, and scores. This is how I'm importing Interpreter.
Import tensorflow as tf
interpreter = tf.lite.Interpreter(model_path=modelpath)
This is the error I'm getting:
Traceback (most recent call last):
File "E:\PycharmProjects\tflitemodel\modeltest2.py", line 130, in
tflite_detect_images(PATH_TO_MODEL, PATH_TO_IMAGES, PATH_TO_LABELS, min_conf_threshold, images_to_test)
File "E:\PycharmProjects\tflitemodel\modeltest2.py", line 68, in tflite_detect_images
boxes = interpreter.get_tensor(output_details[1]['index'])[0] # Bounding box coordinates of detected objects
~~~~~~~~~~~~~~^^^
IndexError: list index out of range
Please help me to solve this issue.
Thanks

I have same issue. Did you find any solution for it?

Sorry guys, this code doesn't support YOLOv8 models, even if they've been converted to .tflite format. You have to add some extra post-processing of the results. You can find more info on the Ultralytics repository. Good luck!


Issue with auth and Docker GCE VM instance

From an internal bug report:
--- SNIP ---
I tried to use gcloud-node from a Node application running inside of a docker container on a GCE container-optimized VM instance.  I expected authentication to work automatically given the README (https://github.com/GoogleCloudPlatform/gcloud-node#on-google-compute-engine) but it didn't work.
What did you expect to happen?
gcloud-node should work inside docker containers on GCE container-optimized VM instances (or the README should be updated to specify cases in which authentication doesn't work automatically on GCE)
--- SNIP ---

Thanks for sharing! Is there a time stamp when that was filed? Also would be great to get the reporter here for further questions.
All that should be required in GCE is a project ID. If this is managed VMs, authentication is manual. It's been a while since I've dug into this though, perhaps things have changed. I'll try to look into this soon.

Oh you're right, time of file was Dec 1, 2014 :( This might be obsolete.

I've learned a few things while digging into this. I used a new GCE vm with all scopes enabled.

We have a bug with how we instantiate Datastore (PR coming soon)
From GCE, getting a bearer token from the google auth library is successful
Making requests to the Storage API works
Making requests to the Datastore API does not work

Here's my app: http://<IP_ADDRESS>:8080/
Here's a detailed view of the failed Datastore API request.
var query = dataset.createQuery(["Users"])
dataset.runQuery(query, function() {...});

Which makes the request:
{ method: 'POST',
  uri: 'https://www.googleapis.com/datastore/v1beta2/datasets/nth-circlet-705/runQuery',
  headers:
   { 'Content-Type': 'application/x-protobuf',
     Authorization: 'Bearer ya29....', // same token that works with Storage calls
     'User-Agent': 'gcloud-node/0.20.0',
     'Content-Length': 13 } }

And responds with:
{ statusCode: 401,
  body: undefined,
  headers:
   { vary: 'X-Origin, Origin,Accept-Encoding',
     'www-authenticate': 'Bearer realm="https://accounts.google.com/", error=invalid_token',
     'content-type': 'text/html; charset=UTF-8',
     date: 'Wed, 02 Sep 2015 17:50:38 GMT',
     expires: 'Wed, 02 Sep 2015 17:50:38 GMT',
     'cache-control': 'private, max-age=0',
     'x-content-type-options': 'nosniff',
     'x-frame-options': 'SAMEORIGIN',
     'x-xss-protection': '1; mode=block',
     server: 'GSE',
     'alternate-protocol': '443:quic,p=1',
     'alt-svc': 'quic=":443"; p="1"; ma=604800',
     'accept-ranges': 'none',
     connection: 'close' }

// @jgeewax not sure where to go from here.

From @jonparrott (thanks!):

cloud-platform doesn't include userinfo.email. userinfo.email was just recently added to the default scopes for [managed VMs] but it will be a few weeks before it hits prod. In the meantime, add the scopes to your app.yaml like this: https://github.com/GoogleCloudPlatform/nodejs-getting-started/blob/2-structured-data/app.yaml

Should be in production now, verified last week. :)

Actually, this only applies for MVMs. GCE instances will still need to explicitly request userinfo.email until datastore v1beta3. example

Sweet, thanks for the info!


Appveyor: Enable build matrix for parallel CI targets

Describe problem solved by the proposed pull request
Currently the Appveyor CI builds px4_sitl_test, px4_fmu-v4_default and tests sequentially and a build matrix resulting in multiple parallel build jobs would accelerate CI execution times.
Additional context
Follow up to #10865

Seems to be absolutely worth it. This reduces Appveyor CI time by ~40%.


Support for Advanced Numpy dtypes

Feature request

Hey Numba team,
Numba currently has limited support for advanced NumPy dtypes.
While it handles basic dtypes, such as integers or floats, it fails to compile functions if advanced dtypes are used as function arguments.
import numpy as np
from numba import njit

def make_zeros_np(shape, dtype):
    return np.zeros(shape, dtype)

@njit
def make_zeros_nb(shape, dtype):
    return np.zeros(shape, dtype)

# *********************************
# basic dtype
# *********************************
shape = (2, 3)
dtype = np.dtype('<i8')

print(make_zeros_np(shape, dtype))
# [[0 0 0]
#  [0 0 0]]

print(make_zeros_nb(shape, dtype))
# [[0 0 0]
#  [0 0 0]]

# *********************************
# advanced dtype
# *********************************
shape = (2,)
dtype = np.dtype(('<i8', (3,)))

print(make_zeros_np(shape, dtype))
# [[0 0 0]
#  [0 0 0]]

print(make_zeros_nb(shape, dtype))
# TypingError: No implementation of function Function(<built-in function zeros>) found for signature:
# zeros(UniTuple(int64 x 1), dtype(nestedarray(int64, (3,))))

The functionality could be useful to implement functions like "numpy.fromiter(iter, dtype)".
Having an advanced dtype would allow reading iterables of 1-D arrays from a generator function to create 2D-arrays.
np.fromiter(iter, dtype=np.dtype(('<i8', (3,))))
Have a great day!

Noting from discussion in the triage meeting that NumPy 2.0 also has some dtype extension mechanisms that might help us here - worth revisiting once NumPy 2.0 support is added to Numba.


TypeError: Cannot read properties of undefined (reading 'call')

Further details , refer the issue in https://github.com/module-federation/universe/issues/604

Call of undefined means that webpack attempted to execute something like this:
webpack_modules[id].call(__webpack_require,factory)(exports)
what this actually means is webpack is requiring something before its in the module graph. This is often seen when eager modules are missing or shared module isn't there but someone expected it to be.
the 400 error from react is hydration failure, typically thrown from react 18 in prod codebases.
hard to diagnose without knowing the webpack configs and how MF imports are done/where

I'm getting this when deploying a vastly differing refactoring code on top of old bundle in cloud.
As soon as I clear my browser cache after the deployment, i'm getting this error, until i refresh and let my browser cache the new bundle.

#1268 fixes it and also resolves the async issue of federation, you now do not need a import() for its to work
Resolves "call of undefined" and "eager consumption" issues.
Currently not released but will be pushed as prerelease next week


RuntimeError: merge_sort: failed to synchronize: an illegal memory access was encountered

Same.
Ububntu 16.04
Pytorch 0.3.1
cuda 9.0

Same here, using batch_size=8 and all other params to default.
'''
Ubuntu 16.04
Pytorch 0.3.1
cuda 9.0.176
'''

Same.
centos7
Pytorch 0.3.1
cuda 9.0

I met  the same problem too when training on my own dataset. I soved the problem with 'num_classes' =num of object classes + background class, this is in the data/config.py . So don't  forget the background class!!

Adding num_classes by 1 fixed the problem for batch_size=4
but if I increase the batch_size to 12 the problem appeared again
I decrease the batch_size to 8 seems the whole things are working
Feel it's still a bug but not reproducible every time

It indeed looks like a bug, although one which is hard to reproduce. In my case it tends to happen when the batch size is over 100 (in total) and I'm using multiple GPUs.
The main source seems to be the classification loss blowing up:
Epoch: 0 2018-06-26 13:44:54 loc_loss: 11.278 | cls_loss: 13.128 | Epoch 0 train_loss: 24.406 | avg_loss: 24.406 [1/877] loc_loss: 8.562 | cls_loss: 10.213 | Epoch 0 train_loss: 18.775 | avg_loss: 21.590 [2/877] loc_loss: 9.041 | cls_loss: 9.963 | Epoch 0 train_loss: 19.004 | avg_loss: 20.728 [3/877] loc_loss: 7.867 | cls_loss: 10.340 | Epoch 0 train_loss: 18.207 | avg_loss: 20.098 [4/877] loc_loss: 6.692 | cls_loss: 9.695 | Epoch 0 train_loss: 16.387 | avg_loss: 19.356 [5/877] loc_loss: 6.141 | cls_loss: 12.809 | Epoch 0 train_loss: 18.950 | avg_loss: 19.288 [6/877] loc_loss: 5.894 | cls_loss: 13.218 | Epoch 0 train_loss: 19.112 | avg_loss: 19.263 [7/877] loc_loss: 6.039 | cls_loss: 12.399 | Epoch 0 train_loss: 18.438 | avg_loss: 19.160 [8/877] loc_loss: 6.676 | cls_loss: 12.464 | Epoch 0 train_loss: 19.140 | avg_loss: 19.158 [9/877] loc_loss: 5.516 | cls_loss: 10.459 | Epoch 0 train_loss: 15.975 | avg_loss: 18.840 [10/877] loc_loss: 5.279 | cls_loss: 16.400 | Epoch 0 train_loss: 21.679 | avg_loss: 19.098 [11/877] loc_loss: 9.847 | cls_loss: 16.355 | Epoch 0 train_loss: 26.201 | avg_loss: 19.690 [12/877] loc_loss: 7.636 | cls_loss: 10.949 | Epoch 0 train_loss: 18.585 | avg_loss: 19.605 [13/877] loc_loss: 7.970 | cls_loss: 23.531 | Epoch 0 train_loss: 31.501 | avg_loss: 20.454 [14/877] loc_loss: 6.999 | cls_loss: 21.177 | Epoch 0 train_loss: 28.177 | avg_loss: 20.969 [15/877] loc_loss: 7.463 | cls_loss: 29.432 | Epoch 0 train_loss: 36.895 | avg_loss: 21.965 [16/877] loc_loss: 2610.023 | cls_loss: 78130.476 | Epoch 0 train_loss: 80740.500 | avg_loss: 4770.114 [17/877] loc_loss:<PHONE_NUMBER>12667671953408000.000 | cls_loss:<PHONE_NUMBER>548307309214302208.000 | Epoch 0 train_loss:<PHONE_NUMBER>807607175016087552.000 | avg_loss:<PHONE_NUMBER>44867071005294592.000 [18/877] Traceback (most recent call last):   File "train_day.py", line 122, in <module>     train(epoch)   File "train_day.py", line 76, in train     loss = criterion(loc_preds, loc_targets, cls_preds, cls_targets)   File "/u/home/heinzerm/anaconda2/envs/py35/lib/python3.5/site-packages/torch/nn/modules/module.py", line 491, in __call__     result = self.forward(*input, **kwargs)   File "/u/home/heinzerm/PycharmProjects/TorchCV/torchcv/loss/ssd_loss.py", line 61, in forward     neg = self._hard_negative_mining(cls_loss, pos)  # [N,#anchors]   File "/u/home/heinzerm/PycharmProjects/TorchCV/torchcv/loss/ssd_loss.py", line 25, in _hard_negative_mining     _, idx = cls_loss.sort(1)  # sort by negative losses RuntimeError: merge_sort: failed to synchronize: an illegal memory access was encountered

same here
Ububntu 16.04
Pytorch 0.3.1
cuda 9.1

anyone solve this problem???
:(

Kind of, the easiest way to get rid of the problem for me was to decrease the learning rate (start with a factor of 10). Once I did that the problem disappeared and I could choose an arbitrary batch size. Before a bigger batch size meant a bigger likelihood of an exploding loss, which leads to the above error

same bug here

after changing the --lr i went through for me but ended up with
iter 119990 || Loss: 2.8278 || Fatal Python error: deallocating None

Thread 0x00007f358ae12700 (most recent call first):

Thread 0x00007f358d7fe700 (most recent call first):

Thread 0x00007f358dfff700 (most recent call first):

Thread 0x00007f358cffd700 (most recent call first):

Thread 0x00007f358c7fc700 (most recent call first):

Current thread 0x00007f361dab7700 (most recent call first):
Aborted (core dumped)

please note that in my case, it's not related to learning-rate. I'm just doing plain sorting

Same here. Difficult to reproduce, but it seems to occur less often with smaller lr.

for me, use contiguous() before view() works!

If you use only one GPU, you can comment line 99-100
if args.cuda:
    net = torch.nn.DataParallel(ssd_net)
    cudnn.benchmark = True

in train.py. It works for me.

any update on this?

batch_size=16,lr=1e-4 is work for me

after changing the --lr i went through for me but ended up with
iter 119990 || Loss: 2.8278 || Fatal Python error: deallocating None

Thread 0x00007f358ae12700 (most recent call first):

Thread 0x00007f358d7fe700 (most recent call first):

Thread 0x00007f358dfff700 (most recent call first):

Thread 0x00007f358cffd700 (most recent call first):

Thread 0x00007f358c7fc700 (most recent call first):

Current thread 0x00007f361dab7700 (most recent call first):
Aborted (core dumped)

And i have no idea why

Hello, I met the same error, and have no idea. Have you solved it? Can you tell you me how can solve that error?

Same bug here.
cuda 9.0 pytorch 0.4.1 ubuntu 16.04

@heinzermch's clue about exploding cross-entropy loss helped me fix it.  I had multiple losses so I reduced the weight of the cross-entropy loss by a factor of 10 to stabilize learning.  Reducing the learning rate should have a similar effect to reduce the weight update w.r.t. to CE loss. Possibly this is a symptom of too-high LR early in training, when CE loss on an untrained model can cause strong gradients.


Release 146

Hi @curtisgibby,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!


error when using sending connection:close header in tests

I'm seeing odd behavior where the server works fine when run directly, but in tests, using the Oneshot client, I get an error like below. If I don't send the connection close parameter, the test passes. I only sent it as I saw it in some of the piaf client tests and assumed that it was convenient for more quickly cleaning up connections during tests. I can't tell if this is an error that is possible to happen normally in the server, of if it's an issue with the Oneshot client and will only happen in tests.
[ERROR] Error in connection handler: End_of_file
                         Raised by primitive operation at Unix in file "unix.ml" (inlined), line 602, characters 0-99
Called from Eio_posix__Low_level.shutdown.(fun) in file "lib_eio_posix/low_level.ml", line 80, characters 40-60
Called from Eio_unix__Rcfd.use in file "lib_eio/unix/rcfd.ml", line 161, characters 10-14
Re-raised at Eio_unix__Rcfd.use in file "lib_eio/unix/rcfd.ml", line 166, characters 6-41
Called from Eio_posix__Flow.Impl.shutdown in file "lib_eio_posix/flow.ml", line 55, characters 6-156
Re-raised at Eio__core__Switch.maybe_raise_exs in file "lib_eio/core/switch.ml" (inlined), line 118, characters 21-56
Called from Eio__core__Switch.run_internal in file "lib_eio/core/switch.ml" (inlined), line 139, characters 4-21
Called from Eio__core__Switch.run.(fun) in file "lib_eio/core/switch.ml" (inlined), line 153, characters 35-62
Called from Eio__core__Cancel.sub.(fun) in file "lib_eio/core/cancel.ml", line 171, characters 2-6
Called from Eio__core__Cancel.sub.(fun) in file "lib_eio/core/cancel.ml" (inlined), line 170, characters 43-58
Called from Eio__core__Cancel.with_cc in file "lib_eio/core/cancel.ml" (inlined), line 116, characters 8-12
Called from Eio__core__Cancel.sub in file "lib_eio/core/cancel.ml" (inlined), line 170, characters 2-58
Called from Eio__core__Switch.run in file "lib_eio/core/switch.ml" (inlined), line 153, characters 13-63
Called from Piaf__Server.Command.listen.accept_loop.accept.(fun) in file "lib/server.ml" (inlined), line 253, characters 15-417
Called from Eio__core__Cancel.sub in file "lib_eio/core/cancel.ml" (inlined), line 170, characters 2-58
Called from Eio__core__Switch.run in file "lib_eio/core/switch.ml" (inlined), line 153, characters 13-63
Called from Piaf__Server.Command.listen.accept_loop.accept.(fun) in file "lib/server.ml", line 253, characters 15-417
Re-raised at Eio__core__Cancel.with_cc in file "lib_eio/core/cancel.ml" (inlined), line 118, characters 32-40
Called from Eio__core__Cancel.sub in file "lib_eio/core/cancel.ml" (inlined), line 170, characters 2-58
Called from Eio__core__Switch.run in file "lib_eio/core/switch.ml" (inlined), line 153, characters 13-63
Called from Piaf__Server.Command.listen.accept_loop.accept.(fun) in file "lib/server.ml", line 253, characters 15-417
Called from Eio__Net.accept_fork.(fun) in file "lib_eio/net.ml", line 269, characters 40-83```

This should have been fixed by improvements such as https://github.com/anmonteiro/eio-ssl/pull/23