tools_tests-commands-macos segmentation fault

link: https://cirrus-ci.com/task/6037175961649152
si_signo=Segmentation fault: 11(11), si_code=1, si_addr=0x100118a29300
version=2.9.0-11.0.dev.flutter-6489a0c68d (be) (Wed May 27 05:50:13 2020 +0000) on "macos_x64"
pid=76996, thread=13315, isolate=(nil)(0x0)
isolate_instructions=0, vm_instructions=108bc0260
  pc 0x0000000108f384db fp 0x000070000c7e0e40 dart::MarkingVisitorBase<true>::DrainMarkingStack()+0x1bb
  pc 0x0000000108f38e8c fp 0x000070000c7e0eb0 dart::ConcurrentMarkTask::Run()+0x6c
  pc 0x0000000108f03302 fp 0x000070000c7e0f40 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*)+0x152
  pc 0x0000000108f035cf fp 0x000070000c7e0f70 dart::ThreadPool::Worker::Main(unsigned long)+0x6f
  pc 0x0000000108e66d51 fp 0x000070000c7e0fb0 dart::ThreadStart(void*)+0x61
  pc 0x00007fff6ab6ee65 fp 0x000070000c7e0fd0 _pthread_start+0x94
  pc 0x00007fff6ab6a83b fp 0x000070000c7e0ff0 thread_start+0xf
-- End of DumpStackTrace
analysis server exited: -6
Expected: <0>
  Actual: <1>
#0      fail (package:test_api/src/frontend/expect.dart:154:30)
#1      _expect (package:test_api/src/frontend/expect.dart:148:3)
#2      expect (package:test_api/src/frontend/expect.dart:60:3)
#3      _analyzeProject (file:///private/tmp/flutter%20sdk/packages/flutter_tools/test/commands.shard/permeable/create_test.dart:1593:3)
<asynchronous suspension>
#4      _createAndAnalyzeProject (file:///private/tmp/flutter%20sdk/packages/flutter_tools/test/commands.shard/permeable/create_test.dart:1510:9)
<asynchronous suspension>
#5      main.<anonymous closure> (file:///private/tmp/flutter%20sdk/packages/flutter_tools/test/commands.shard/permeable/create_test.dart:124:11)
#6      testUsingContext.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///private/tmp/flutter%20sdk/packages/flutter_tools/test/src/context.dart:152:42)
#7      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#8      _rootRun (dart:async/zone.dart:1190:13)
#9      _CustomZone.run (dart:async/zone.dart:1093:19)
#10     _runZoned (dart:async/zone.dart:1630:10)
#11     runZoned (dart:async/zone.dart:1550:10)
#12     AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#13     testUsingContext.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///private/tmp/flutter%20sdk/packages/flutter_tools/test/src/context.dart:141:30)
#14     _rootRun (dart:async/zone.dart:1190:13)
#15     _CustomZone.run (dart:async/zone.dart:1093:19)
#16     _runZoned (dart:async/zone.dart:1630:10)
#17     runZonedGuarded (dart:async/zone.dart:1618:12)
#18     runZoned (dart:async/zone.dart:1547:12)
#19     testUsingContext.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///private/tmp/flutter%20sdk/packages/flutter_tools/test/src/context.dart:139:18)
#20     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#21     _rootRun (dart:async/zone.dart:1190:13)
#22     _CustomZone.run (dart:async/zone.dart:1093:19)
#23     _runZoned (dart:async/zone.dart:1630:10)
#24     runZoned (dart:async/zone.dart:1550:10)
#25     AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#26     testUsingContext.<anonymous closure>.<anonymous closure> (file:///private/tmp/flutter%20sdk/packages/flutter_tools/test/src/context.dart:105:22)
#27     runInContext.runnerWrapper (package:flutter_tools/src/context_runner.dart:62:18)
<asynchronous suspension>
#28     runInContext.runnerWrapper (package:flutter_tools/src/context_runner.dart)
#29     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#30     _rootRun (dart:async/zone.dart:1190:13)
#31     _CustomZone.run (dart:async/zone.dart:1093:19)
#32     _runZoned (dart:async/zone.dart:1630:10)
#33     runZoned (dart:async/zone.dart:1550:10)
#34     AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#35     runInContext (package:flutter_tools/src/context_runner.dart:65:24)
#36     testUsingContext.<anonymous closure> (file:///private/tmp/flutter%20sdk/packages/flutter_tools/test/src/context.dart:104:11)
#37     test.<anonymous closure> (file:///private/tmp/flutter%20sdk/packages/flutter_tools/test/src/common.dart:169:18)
#38     Declarer.test.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:test_api/src/backend/declarer.dart:172:27)
<asynchronous suspension>
#39     Declarer.test.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:test_api/src/backend/declarer.dart)
#40     Invoker.waitForOutstandingCallbacks.<anonymous closure> (package:test_api/src/backend/invoker.dart:246:15)
#41     _rootRun (dart:async/zone.dart:1190:13)
#42     _CustomZone.run (dart:async/zone.dart:1093:19)
#43     _runZoned (dart:async/zone.dart:1630:10)
#44     runZoned (dart:async/zone.dart:1550:10)
#45     Invoker.waitForOutstandingCallbacks (package:test_api/src/backend/invoker.dart:243:5)
#46     Declarer.test.<anonymous closure>.<anonymous closure> (package:test_api/src/backend/declarer.dart:170:33)
#47     _rootRun (dart:async/zone.dart:1190:13)
#48     _CustomZone.run (dart:async/zone.dart:1093:19)
#49     _runZoned (dart:async/zone.dart:1630:10)
#50     runZoned (dart:async/zone.dart:1550:10)
#51     Declarer.test.<anonymous closure> (package:test_api/src/backend/declarer.dart:169:13)
#52     Invoker._onRun.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:test_api/src/backend/invoker.dart:400:30)
#53     new Future.<anonymous closure> (dart:async/future.dart:174:37)
#54     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#55     StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119:48)
#56     _rootRun (dart:async/zone.dart:1182:47)
#57     _CustomZone.run (dart:async/zone.dart:1093:19)
#58     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#59     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
#60     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#61     StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119:48)
#62     _rootRun (dart:async/zone.dart:1190:13)
#63     _CustomZone.run (dart:async/zone.dart:1093:19)
#64     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1021:23)
#65     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
#66     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:397:19)
#67     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:428:5)
#68     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
05:00 +29 -1: test/commands.shard/permeable/create_test.dart: creates a module project correctly [E]
  Expected: <0>
    Actual: <1>
  package:test_api                                       expect
  test/commands.shard/permeable/create_test.dart 1593:3  _analyzeProject
  ===== asynchronous gap ===========================
  dart:async                                             _asyncErrorWrapperHelper
  test/src/context.dart 141:30                           testUsingContext.<fn>.<fn>.<fn>.<fn>
  dart:async                                             runZoned
  test/src/context.dart 139:18                           testUsingContext.<fn>.<fn>.<fn>
  package:flutter_tools/src/base/context.dart 150:29     AppContext.run.<fn>
  dart:async                                             runZoned
  package:flutter_tools/src/base/context.dart 149:18     AppContext.run
  test/src/context.dart 105:22                           testUsingContext.<fn>.<fn>
  package:flutter_tools/src/context_runner.dart 62:18    runInContext.runnerWrapper
  ===== asynchronous gap ===========================
  dart:async                                             _asyncThenWrapperHelper
  package:flutter_tools/src/context_runner.dart          runInContext.runnerWrapper
  package:flutter_tools/src/base/context.dart 150:29     AppContext.run.<fn>
  dart:async                                             runZoned
  package:flutter_tools/src/base/context.dart 149:18     AppContext.run
  package:flutter_tools/src/context_runner.dart 65:24    runInContext
  test/src/context.dart 104:11                           testUsingContext.<fn>
  test/src/common.dart 169:18                            test.<fn>

It passed on re-run https://cirrus-ci.com/task/6484488861515776

With flutter/flutter at df45748de68bd50d6487feca4e122ab2ee744c21
From the logs it looks like the VM GC marker thread segfaulted while running the analyzer while running the test test/commands.shard/permeable/create_test.dart:
Under packages/flutter_tools run:
$ pub run test test/commands.shard/permeable/create_test.dart

@a-siva @rmacnak-google

Does not reproduce.

@rmacnak-google do you have any advice for what we can do to file a more useful issue if we see this crasher again?

In decreasing order of usefulness: rr traces, reproducible failures, core dumps. Unfortunately a stack trace alone is almost never sufficient to debug a GC crash.

How worried are you about this crash? Should we expend a lot of effort trying to get something more useful?
Also, what's an 'rr trace'? =)

Also, what's an 'rr trace'? =)

Trace produced by rr record (using https://github.com/mozilla/rr) which can be replayed using rr replay :)


osbuild-composer: cleanup main.go

main.go was quite unwieldy and hard to see what's going on. This series of patches try to clean it up a bit, mainly by splitting running the actual service into its own file.
This has the additional benefit that it is a step towards running osbuild-composer in an environment different than what systemd sets up (:wave: @major).

This has the additional benefit that it is a step towards running osbuild-composer in an environment different than what systemd sets up ( @major).

@larskarlitski  🥰 😍 🤗

CI failures are unrelated.


Networking-level http instrumentation

Is it possible to break down the http instrumentation even further to expose networking-level events such as dns lookup, tls handshake, time to first header, time to first byte, etc?
This would be super helpful in identifying network-level optimizations such as IP caching, connection reuse, etc.
Edit: proxy networking events would also be helpful
Thanks 🙏

Hi @mattfysh,
Thanks for the feature request. We don't have the bandwidth to add this today, but would always be open to a pull request. This feature would likely have to be opt-in since otherwise it could greatly increase trace size for some users with many HTTP subsegments.

Thanks @willarmiros - I'll send through a PR in the next month or so.
Quick question - is there any way to prevent the X-Amzn-Trace-Id from being sent with http/s requests? ta!

Ended up going with this:
const capture = lib => {
  const origRequest = lib.request
  const interceptRequest = (...args) => {
    const options = typeof args[1] === 'object' ? args[1] : args[0]
    delete options.headers['X-Amzn-Trace-Id']
    return origRequest(...args)
  }
  Object.defineProperties(lib, {
    request: {
      value: interceptRequest,
      configurable: true,
      enumerable: true,
      writable: true,
    },
  })
  AWSXRay.captureHTTPsGlobal(http, false, subsegmentCallback)
}

capture(http)
capture(https)


Implicitly trigger build graph generation when creating a SwiftPMBuildSystem and migrate targets(dependingOn:) and topologicalSort to BSP

@swift-ci Please test


Completed adding the function

Created a box for contributors button and given a arrow beside it which is more attractive

thanks


object issue

Hello, how do you consider the situation where the current frame of an object exists, but the next frame does not exist in the townmap?

OK，Thanks！


Add ISIS Virgilio School to your list.

Domain: https://www.isisvirgilio.edu.it/index.php
IT Projects: https://www.isisvirgilio.edu.it/index.php/progetti-pon-virgilio

@zGolden Pull request merged. Thank you!


Add Categorical color palette

Add categorical color palette
Light / dark equivalence
Add ramps to palette to allow for greater flexibility

18th Jan meeting notes:

Will be known as 'Category' palette.
Will be part of Salt Theming release (formally 2.0).
Full set of colours will be available at Foundations, with 3 levels per colour, per mode.
Will be mapped to the palette layer (not characteristic).
Palette layer naming will be colour agnostic (ie., --cat-1, --cat-2, --cat-3, etc).
Levels will be defined as --weak, --default and --strong.

@pseys @dplsek @origami-z @joshwooding

Token structure and relationship mapped in Figma.
In the process of adding colors to variables-driven library

Reopen until characteristics token is in


Fixing a small issue

The docs say to backup, start a new application called new-etcd, but then to restore to etcd/0 and not new-etcd/0. Fixing that so it restores to that newly created unit.

@tvansteenburgh Can you take a look at this as well?

@hyperbolic2346 Have you run this locally and does it work?

@zparnold I have run this locally. It didn't run properly for me until I used the new etcd name, so the changes I listed. It also didn't work even when I did update the name, but I think that is a different issue.

@hyperbolic2346 interesting. Do you know what that issue was? Seems that this tutorial may need some re-work.

@zparnold It is a code issue and I've filed an issue for it. I understand that there is work to be done on the backup/restore front of CDK, so this might turn into a moot point. Either way, it seems much more correct with my change and hopefully, the code fix will follow soon.

/lgtm

LGTM

/approve


confusing example on helper - color for prompt only needed - no matching brackets, completions etc.

Hello,
I have seen the example file but i find it quite confusing.
I do not need bracket matching, file completions or hinting, just plain colored prompt with some ANSI string (i got e.g. from colored crate, or manually written).
Can I add highlight_prompt functionality, without all the "underlated" traits (completion, hints, validations, ...)?
There are some references to colored_prompt in the example code, but helper has extra methods & traits that seem completely unrelated to the prompt higlighting, and it's not clear whether they can/should be replaced with some placeholder code to keep other functionality intact.

There is also an example with only an highlighter: https://github.com/kkawakam/rustyline/blob/master/examples/read_password.rs#L30-L32
And all Highlighter trait methods have a default implementation that does nothing (no highlighting) so you just have to overwrite highlight_prompt impl.

perfect, thank you for direction! :)


Alexa: Discovery description can be None

Home Assistant release with the issue: 0.99
Last working Home Assistant release (if known): ?
Operating environment (Hass.io/Docker/Windows/etc.): All
Component/platform: Alexa
Description of problem:
Email from Amazon:

This is to inform you that your skill “Home Assistant” is Live in the catalog from 05/30/2019. However, we observed that the customers are facing issues in device discovery response.
We are reaching out to help you get this issue resolved.
While building a smart home skill, if the “description” field is kept empty, the users will not get a response during device discovery. As per Alexa Discovery public document, the "description" field is required to get a successful discovery response.
Please find the below Alexa Discovery public doc for your reference:
https://developer.amazon.com/docs/device-apis/alexa-discovery.html#endpoint-object
Therefore, to solve for this we request you to add “description” details in your skill and resubmit for certification. The description should have the manufacturer name or details on how the device is connected, for example, "Smart Lock by Sample Manufacturer" or "WiFi Thermostat connected via SmartHub". It can contain up to 128 characters.

From my 5 second looking at the code, I think that we should just change https://github.com/home-assistant/home-assistant/blob/770ad86f126eb890f6c4021dc72261af62acd862/homeassistant/components/alexa/entities.py#L139-L141
to be
return self.entity_conf.get(CONF_DESCRIPTION) or self.entity.entity_id)

to guarantee that we always return something.

I've asked Alexa for endpoints that were impacted, and got this reply:

The description field of the skill is kept empty and due to this we observed the issue in the device discovery response. Almost all the endpoint ID's are getting impacted because of this. This might be because due to special characters included in it.
Please find the below example for your reference:
"uuid:Socket-1_0-Rainmachine Home Irrigation.Zone Front Hedges"
These identifiers have special characters that are not permitted in the documentation as it appears, they leverage the user specified name in the identifier. Examples of further bad characters include: "/|()]+~!>*%" and these special characters are not permitted. This would lead to bad customer impact.
Please find the below document on how the Endpoint ID is to be formed:
https://developer.amazon.com/docs/device-apis/alexa-discovery.html#endpoint-object
Therefore, we request you to consider/correct the way of forming the Endpoint ID's in order to avoid this. Please check the same from your end and update the description field and device discovery response with the required details.

What is weird about this response from Alexa is that it's a type that we would never generate, as our code is based on entity IDs: https://github.com/home-assistant/home-assistant/blob/c194f4a8137a2ca06cfc5545510c5fe552c4b546/homeassistant/components/alexa/entities.py#L143-L145

So either Amazon is copying the wrong endpoint IDs or someone is running custom Alexa config that doesn't work.


npm install ionic error - fetch failed

npm install -g ionic is returning:
npm ERR! fetch failed https://registry.npmjs.org/ionic/-/ionic-1.7.16.tgz
npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 502

Tested from multiple setups!

I'm having the same error from babel-plugin-syntax-do-expressions - I think this could be an issue w/ npm

Looks like NPM are having CDN issues.
See https://github.com/npm/npm/issues/13284

See https://github.com/npm/npm/issues/13284

Hello all! After reviewing this issue it does in fact seem to be an npm issue and not an ionic issue. Because of this I will be closing this issue, but if it continues to happen please feel free to comment on this issue and I will take a look again! Thanks for using Ionic!


Kubernetes SD: Use node name as instance label

:+1: will merge upon docs change PR into next-release docs branch so we don't forget.


Missing constraints for purchase_orders ?

Table purchase_orders has created_by column that "points to an employee" declaring constraint fk_purchase_orders_employees1
I have the suspect that also approved_by and submitted_by should have a similar constraint.
Thanks !

Hi @eleumik, sorry for the long delay in responding. I will update the model and credit you in the commit. Thanks!


Linker Error on OSX

That would be great if a release can be pushed with the fix that was made 3 months ago.
Seems like the last version was pushed 5 months ago and doesn't contain it.
🙏

+1, Seems like #68 is pretty essential to make it work on OSX

The new version is published on crates.io now.


hyprpicker-debug is missing debug sections

Describe the bug
According to this file package has debug option, but it seems to do nothing with the resulting executable.
Steps To Reproduce
Steps to reproduce the behavior:

Create dev shell with hyprpicker (with debug option set true)
nix develop --impure --expr "with import <nixpkgs> {}; pkgs.mkShell { packages = [ (hyprpicker.override { debug = true; }) ]; }"
Inspect the executable with readelf
readelf -SW $(which hyprpicker)

Expected behavior
The executable has debug sections
Additional context
After installation hyprpicker have fallen with segmentation fault, and I cant debug it because of missing debug sections. I managed to buiild it with debug symbols. (Btw the problem was the empty environment variable XCURSOR_THEME)
Notify maintainers
@fufexan

Metadata
The result of nix-shell -p nix-info --run "nix-info -m":
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.79, NixOS, 23.11 (Tapir), 23.11.20240301.79baff8`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - nixpkgs: `/etc/nix/path/nixpkgs`

Add a :+1: reaction to issues you find important.

My thoughts about the problem:
This makefile controls how the program is built. There's a line https://github.com/NixOS/nixpkgs/blob/880992dcc006a5e00dd0591446fdf723e6a51a64/pkgs/applications/window-managers/hyprwm/hyprpicker/default.nix#L76 that seems to prevent debug symbols from being included in the final program, no matter what value debug option have. Buy I'm not familiar with that specific line https://github.com/NixOS/nixpkgs/blob/880992dcc006a5e00dd0591446fdf723e6a51a64/pkgs/applications/window-managers/hyprwm/hyprpicker/default.nix#L37 I didn't find it here. It might be an environment variable.

@nikita-talalai I'm going to rewrite the build process to use CMake exclusively, then update this derivation as well.

Update is live at https://github.com/hyprwm/hyprpicker/commit/698b6ecd54c688620f34fcb46aa202623bfed7fa. Hyprpaper has also been updated.


PERFFORJ-56 : Configurable default logging tag and message

https://jira.codehaus.org/browse/PERFFORJ-56
A properties file perf4j.properties is now loaded from the classpath if it
exists and will format AOP tags and messages where not specified on an
@Profiled annotation.  Entries in this file are:
tag.com.package.ClassName.methodName=static tag
message.com.package.ClassName.methodName=static message
tag.com.package.AllMethodsInClass=static tag
tag.com.parent.package.inherited=static tag
tag.com.package.ClassName.methodName={$class.name}#{$methodName}
message.com.package.ClassName.methodName={$methodName}({$0})

Note that there's a version of this over at https://github.com/javabrett/perf4j/tree/PERFFORJ-61-56 , mixed-in with the no-annotations code.  It might be better to pull from there if the no-annotations profiling looks OK, to avoid potential merge conflicts.

Incorporated into https://github.com/javabrett/perf4j/tree/PERFFORJ-61-56 .


feat(menu): Replace shape prop with pills, pointing and underlined props

Menu
Breaking change: this replaces shape='pills'|'pointing'|'underlined' with three separate props: pills, pointing and underlined.
The reason for that is that for vertical pointing menu, it must be possible to define pointer's direction (start vs end) and the single shape enum is not enough.
TODO

[x] Conformance test
[x] Minimal doc site example
[ ] Stardust base theme
[x] Teams Light theme
[ ] Teams Dark theme
[ ] Teams Contrast theme
[ ] Confirm RTL usage
[ ] W3 accessibility check
[ ] Stardust accessibility check
[ ] Update glossary props table
[ ] Update the CHANGELOG.md

API Proposal
<Menu pills ... />

<Menu pointing ... />

<Menu underlined ... />

have discussed with Miro. So, essentially, we have the following conditions that define the task:

shape is prop that accepts following values: pills | pointing | underlined
vertical could be safely combined with any value of the shape prop
'pills', 'pointing' and 'underlined' shouldn't be applied at the same time (ideally we should have an API that would enforce it)

Problem

for pointing we have additional set of values that could be applied - nothing (default one), 'start' or 'end'

Currently proposed solution

split values of shape prop on severals props: pills, pointing, underlined
as value of pointing prop the following could be provided: boolean, start, end

This leads us to the following things being possible
<Menu pointing ... />
<Menu pointing='start' ... />

As a drawback, we have no restrictions over client to do the following things (with, generally speaking, undefined result):
<Menu pointing underlined />  // mutually exclusive variants are mixed

Alternative solution

consider to leave shape prop as it is
introduce pointingPosition prop in addition

With that the following way of declaring pointing start menu should be used:
<Menu shape='pointing' pointingPosition='start' ... />

The main benefit of this approach is explicitness and consistency - there is still no way to mix exclusive variants of components, while complementary pointingPosition prop clearly suggests which shape it is designed for.
The drawback is mainly in amount of typing required - but change doesn't seem to be crucial.

I tend to agree with Roman. Although it seems to go against the concept of mixed properties, I see the benefits of enum.
@levithomason can you please share your opinion on this?

A few thoughts on the Menu API:
shape and enum props
We had these same discussions at SUIR for our APIs.  We also tried to implement shape in some components only to later revert them.
We found that props may move around a bit and they may later receive values that they didn't have before.  This doesn't fit the enum approach.
There is also something to be said for concise APIs.  Even though it may be more correct from a strict engineering perspective, we found some of the strictly correct APIs to be unfavorable to users.  One example I recall was regarding discussion around <Message warning /> vs <Message type='warning' /> or <Message status='warning' />.  The boolean prop here was preferred over the enum.
There is also HTML parity to consider.  The evolution of React was based on the precedence of HTML.  I think it is a good idea for frameworks to base their evolution on the same ideas as it makes adoption, understanding, and interoperability easier.  In HTML, and therefore React, we have boolean props like disabled.  These are not nested under a more correct attribute name such as state="disabled".
I would support boolean props for pills, pointing, etc.  It leaves Stardust room to add values to them, it leaves theme producers room to allow users to combine them, it makes for a more readable and concise API, and I believe it is more approachable to a wider audience.
underlined
This prop is too coupled to the style implementation.  We need to keep the API interface void of implementation details as much as possible.  Otherwise, when implemented differently, the concept does not apply.
Case in point, what happens when you make an underlined menu also vertical?  I would think the underline would move to the side, like this:

This is no longer an underlined menu.  Instead, this could be a variant of the pointint type.  This way, it can point in any direction.  What the "pointing part" looks like is up to the theme, in this case, a line.

We had a discussion about that today, with questions like what defines the border between component API (props) and a theme (variables), why underlined is a prop not a variable...
When thinking about component API we must think out of box and consider not only different web themes but also completely different surfaces like native, even if we might never implement it, but just to find the correct abstraction.
I completely agree on the underlined being too coupled to the style - it's not a variant of a menu, it's a theme-specific way how to represent some menu variant. And in one theme this can be a representation of a pointing menu while in another theme it can be a representation of a secondary menu.
And, personally, I have the same opinion on pills.


Sample xfa pdf form doesn't work (fixed upload)

Purchase Order.pdf
Configuration:

Tested in firefox stable 92, beta 93, and nightly 94
Windows 10
Is not a browser extension
The pdf.js version is the one that comes with firefox stable 92. 2.11 I believe is the version.

Steps to reproduce the problem:

Open in firefox and see how it doesn't work. I have attached above the pdf I used for this issue.

What is the expected behavior? (add screenshot)
In chrome, the forms have proper drop down for the most part. This doesn't happen with firefox.

What went wrong? (add screenshot)
The forms doesn't work in firefox. The drop down menu for example is blank.

I'm an Outreachy applicant, and i'm looking to make my first application on the project. Thanks

Some fields are filled using javascript.


Cannot view content of QString

I've setup a qt5.natvis.xml file to see some qt debug info.
For QString and QVector it works.
However for QString , it doesn't show anything.
os: Window platform

You should set "showDisplayString": true in your launch.json


Make DefaultAzureCredential configurable in Azure Functions

When working on my company laptop, we have an annoying problem when using DefaultAzureCredentials, and in turn any functions that connect to Azure resources using DefaultAzureCredentials
My understanding of how DefaultAzureCredentials works is this:

Attempt to use EnvironmentCredentials.

If no environment variables are found move on

Attempt to use ManagedIdentityCredentials

Try to connect to a specific IP address.
If that fails move on

Attempt to try other credential methods (VisualStudio, AzureCli, etc) until one succeeds

Unfortunately, because of reasons outside of my control, DefaultAzureCredentials works like this on my company laptop:

Attempt to use EnvironmentCredentials.

If no environment variables are found move on

Attempt to use ManagedIdentityCredentials

Try to connect to a specific IP address.
Company imposed firewall (firewall? network settings?) thinks you're connecting to a malicious IP address
Firewall spits back HTML page
ManagedIdentityCredentials gets confused an throws an exception.

Attempt to try other credential methods (VisualStudio, AzureCli, etc) until one succeeds

When using Azure Functions, it does succeed with other authentication methods, but not before spewing errors to the console.
In ASP.NET Core apps, we work around this by configuring the DefaultAzureCredentials when running on a devs laptop. Something akin to:
if (env.IsLocal())
{
    services.Configure<DefaultAzureCredentialOptions>(opt => opt.ExcludeManagedIdentity = true);
}

services.AddSingleton(sp =>
{
    var opts = sp.GetService<IOptions<DefaultAzureCredentialOptions>>().Value;

    return new DefaultAzureCredentials(opts);
}

However, when using Azure Functions (i.e. the Service Bus Azure Functions extension) there isn't an obvious extension point which allows the DefaultAzureCredentials to be configured.
After much digging around in this repo, I've managed to come up with this workaround:
class CustomAzureComponentFactory : AzureComponentFactory
{
    private readonly DefaultAzureCredentialOptions options;
    public CustomAzureComponentFactory(IOptions<DefaultAzureCredentialOptions> options) => this.options = options.Value;
    public override object CreateClient(Type clientType, IConfiguration configuration, TokenCredential credential, object clientOptions) => throw new NotImplementedException();
    public override object CreateClientOptions(Type optionsType, object serviceVersion, IConfiguration configuration) => throw new NotImplementedException();

    public override TokenCredential CreateTokenCredential(IConfiguration configuration) => new DefaultAzureCredential(options);
}

if (env.IsLocal())
{
    services.Replace(ServiceDescriptor.Singleton<AzureComponentFactory, CustomAzureComponentFactory>());
}

Which does work, but feels very hacky.
Can have a way of configuring the DefaultAzureCredentials in Azure Function Extensions? Perhaps using the Options model I've described above?
Alternatively, having AzureComponentFactory as an implementation with virtual methods, instead of being an abstract class would also work.

//cc: @christothes, @schaabs for possible work-arounds via Azure.Identity

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

Hi @LwsSt, this is configurable via the UseCredential method:
services.AddAzureClients(builder => builder.UseCredential(new DefaultAzureCredential(options))

Hi @LwsSt, this is configurable via the UseCredential method:
services.AddAzureClients(builder => builder.UseCredential(new DefaultAzureCredential(options))

If you are able to control the AzureClients registration... great.  However, if you use ( for example ) ServiceBus Trigger, it configures the AzureClient itself and you have no ability to override or alter the client or the default authentication chain.
Trying to optimize the dev "inner-loop" and waiting for the token chain to eventually resolve means it can take a few minutes just to have the function app ready to respond to triggers when we want to use the developers identity to connect ( using "fullyQualifiedNamespace" setting ).  We also want to remove the connection strings with the SharedAccessKey setting from our local configuration, in the same way we use Integrated authentication to SQL.
At the moment, we are seriously considering dropping our use of the Function runtime in favour of a "normal" web host, as we can control the host/environment and just pay the cost of not being able to use the consumption plan.

The Functions triggers will still fall back to the UseCredential factory if no credential-specific settings are specified via config. Can you share what your config looks like?

The Functions triggers will still fall back to the UseCredential factory if no credential-specific settings are specified via config. Can you share what your config looks like?

2 settings  ( usersecrets )
"AzureWebJobsServiceBus": {
"fullyQualifiedNamespace": ".servicebus.windows.net"
},
local.settings.json
"AzureFunctionsJobHost:extensions:serviceBus:transportType": "amqpWebSockets",
"AzureFunctionsJobHost:extensions:serviceBus:maxConcurrentCalls": 1,
"AzureFunctionsJobHost:extensions:serviceBus:maxConcurrentSessions": 1

The ServiceBus Trigger can only use the credential factory from the AzureComponentFactory instance... which we can't control or influence.

The functionapp host will eventually acquire a token to connect as the developer azure AD identity, but it can take a while as it fails through the credential chain

We can, of source, replace the registered AzureComponentFactory implementation, but the we'll have to replicate all the code from AzureComponentFactoryImpl class (and it's internal dependencies )

Calling UseCredential should modify the CredentialFactory used by the AzureComponentFactory, provided this is done as part of Startup as I linked in the other issue.

Calling UseCredential should modify the CredentialFactory used by the AzureComponentFactory, provided this is done as part of Startup as I linked in the other issue.

@JoshLove-msft Magic.  I was doing that call as part of AddServiceBusClientWithNamespace, didn't realise it was part of the root AzureClientFactoryBuilder.
Much appreciated.
Maybe an update to the doco to help those trying to do the same
Azure Functions developer guide


Add support for qdrant recovery mode

Added environment variables to helm template as well as changed initialize.sh qdrant statefullset to be started from entrypoint.sh.
Addresses #48

Example values.yaml fragment for recovery mode enabling:
replicaCount: 3
image:
  repository: qdrant/qdrant
  pullPolicy: IfNotPresent
  tag: v1.4.1
env:
  - name: QDRANT_ALLOW_RECOVERY_MODE
    value: true

Hi, guys! Would you mind reviewing this one?


Add devcontainer to this repo

Adding devcontainer might be beneficial for testing and showcasing this template. We can bundle Quarto and users may be able to test this extension in their Codespace or Docker.

I wonder if this format is the best place to showcase that feature.

It was inspired by https://github.com/coatless/quarto-webr I think each extension can be tested using this setup and users can experience how each extension works in their Codespace right off the bat.

I think it's a good idea! It's just that if we're going to do it, we either do something that's specific for acm, or we figure out how to do it properly, and do it for all extensions in quarto-journals (otherwise, it will confuse users who might now understand why this extension in particular is using that feature)

Aw, I see. Please feel free to close this issue and PR or we can put this on a back burner.

I'm going to leave this open, we can talk about it in our weekly meetings (unfortunately I won't be able to attend tomorrow) and figure out the best way to do it.


Jobs stop running on connection error

status-board version: 1.1.37
node version: v9.8.0
npm (or yarn) version: 5.6.0

A couple widgets that I created seem to have issues stalling when they job runs and gets any type of connection error. Both my gocomic and weather widget pull data from outside sources and if for any instance the job errors trying to get the remote data the job stalls and never runs again unless I restart the entire service, Which lately has been almost every day. Both are simple widgets and can be found in my atlasboard package here - https://github.com/gonzoinc/atlasboard-gonzo-packages
Below is a snippet from the logs when the job connection errors occur and the job never runs again.
[dashboard: General] [job: wunderground] 07:40:04.04 <error> executed with errors: bad statusCode: 504 from undefined (in Scheduler.js:21)
Call Stack:
    at handleError (/usr/local/console/builds/1.7.0/node_modules/status-board/lib/Scheduler.js:21:37)
    at jobCallback (/usr/local/console/builds/1.7.0/node_modules/status-board/lib/Scheduler.js:63:21)
    at /usr/local/console/builds/1.7.0/packages/default/jobs/wunderground/wunderground.js:47:13
    at JSON.queryRequest (/usr/local/console/builds/1.7.0/node_modules/status-board/lib/job-dependencies/easyRequest/dependency.js:33:17)
    at Request.request [as _callback] (/usr/local/console/builds/1.7.0/node_modules/status-board/lib/job-dependencies/easyRequest/dependency.js:16:9)
    at Request.self.callback (/usr/local/console/builds/1.7.0/node_modules/request/request.js:186:22)
    at Request.emit (events.js:127:13)
    at Request.<anonymous> (/usr/local/console/builds/1.7.0/node_modules/request/request.js:1163:10)

Error connecting to url: http://www.gocomics.com/bloomcounty/2018/4/10 { Error: read ECONNRESET
at TCP.onread (net.js:619:25) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }

The Weather widget pulls json data from Weather Underground and every now and then the feed fails, Which is fine since the board caches the data and will only refresh it when it has new data. the go comics is the same, if it fails to scrape the page to get the latest comic it just continues to use the old one. the Comic is the most noticeable cause I have them set to rotate every couple of min so if I see the same one over and over again I know the job stalled and it's not trying to pull anymore.
Attempts to capture and suppress the error to allow the job to continue failed due to how the job is designed.  I'd rather see the job continue to run even if it fails and either send some sort of notification (I.E. email, message on the board, etc) or to allow a limit for job failure that could be set before the job would die completely.
Thoughts on this?

@gonzoinc I will see if I can get time to dig into this on the weekend.
If you would like to contribute to the project, if you come up with a solution to resolve it PR's are welcome to the project.

@gonzoinc, first of all, I want to thank you for all your help the last few months with working the bugs out of Status Board.
I looked at the widgets you made and they are super cool.
Looking into the problem you're having further there is a way to retry on an error a number of times.
"retryOnErrorTimes": 5

See here: https://github.com/jameswlane/status-board/blob/master/src/Scheduler.ts#L51-L59
You can add it to your job config like so:
"gocomics": {
 "retryOnErrorTimes": 5
 "interval": 60000,
 "comic": "calvinandhobbes"
}

Hi, I recently ran into this issue too.
The real issue is that the job needs to use the jobCallback function passed into the onRun function.
If you look at the scheduler code (Scheduler.js) line 75 you will see that if the callback is not used then nothing happens to re-schedule the task, it just vanishes.
The Job needs to either not handle its own error (since this would be caught by the scheduler) or the Job needs to pass back an error into the jobCallback function. The jobCallback function handles re-scheduling.
Looking at your code I see that you handle error by a consol.log which means the jobCallback receives nothing so the scheduler has no idea what to do or how to proceed.
For your gocomics.js do the following
if (!error) {
var $ = cheerio.load(body);
var src = $('div div.comic__container div.comic__image.js-comic-swipe-target a picture img').attr('src');
            jobCallback(null, {imageSrc: src});

        } else {
            console.error('Error connecting to url:', url, error);
            jobCallback(`<error message>`);//add this or something like it
        }

Nice find @claytoncountryman I didn't think about that. 👍

@claytoncountryman Yep, that did the trick. Once you pointed it out I saw what was going on.  When the request method fails I was only logging it, I wasn't passing the error to the jobCallBack to be processed properly. It's what happens when you overthink a simple problem
@jameswlane I used the retryOnErrorTimes in the config on a different widget and found that if it hits the error limit it will show the yellow Triangle default error on the dashboard and not use what it had cached. I'd rather it use the cached comic in this case so that at least something is showing instead of an error. But I do believe that the retryOnErrorTimes works in conjunction with the jobCallBack being properly passed into the scheduler to handle the retry attempts.
As for PR's, still working out details as to if I'm able to contribute.  I.E. work related.
Thanks again all.


bug when stringifying  exponent markers

Hi
Firstly thank you for this library!
There is probably a bug  when stringifying floats with (any) exponent markers:
(jzon:stringify 1.0d0)                ;; =><EMAIL_ADDRESS>(jzon:stringify 12.0d0))            ;; =><EMAIL_ADDRESS>(jzon:stringify 123456.0s0)     ;; =><EMAIL_ADDRESS>
;;

I'll try to come up with a PR; but in the meantime, would appreciate if anyone has an idea.
Thank you!!

This is very odd and looks like some kid of encoding issue.. Can I ask for details on where you're running this? OS and version information?
Also the version of SBCL

@Zulu-Inuoe Yes sorry. I am using the latest SBCL (2.3.4) on MacOS silicon

Okay. Could you share the output at the repl when you eval (map 'list #'char-code "e+-.0123456789") ? It might be that the encoding differs for some reason.

Here:
* (map 'list #'char-code "e+-.0123456789")
(101 43 45 46 48 49 50 51 52 53 54 55 56 57)

Hey @jsulmont thank you so much for reporting this. I had a bad implementation of the printer when writing numbers without exponent or decimal parts. I can't believe I hadn't run into this before, since it's been there from the beginning.
https://github.com/Zulu-Inuoe/jzon/pull/46
should fix this


[fix] convert_magnet - ensure generated url is quoted

Motivation for changes:
Fixes #3472
Detailed changes:

Torrent names can contain characters that are not allowed in URLs.  This results in urllib.request.urlopen raising an exception when downloading a torrent file generated by the convert_magnet plugin.
When generating the url for the entry in the convert_magnet plugin, ensure that it is quoted to avoid these issues by future consumers.

Addressed issues:

Fixes #3472

Thanks!


Setting to re-run proc-macros only after save, not every keypress

Since proc-macros are difficult and sometimes fragile, I'd like a setting somewhere between "disable completely" and "run after every keypress". I think a configuration setting to re-run only on save would be a nice balance.

This is not technicall possible. I would suggest reporting bugs for such fragile proc macros, and using the rust-analyzer.procMacro.ignored setting if necessary.

Would you be open to a PR if I could make it work?

That's hard to answer. If it was done in a maintainable way sure, but I don't think it's possible without severe hacks or fundamental changes to the architecture, which would not be acceptable.
Maybe I just don't understand what behavior you would expect. If you have some code
#[some_macro]
fn foo() {
}

and type something in the function, what would happen?


:bug: Use postgresql modules for migration

When using psql, errors in applying the sql generated from the dump do not reach bash without adding additional options. psql only generates a non-zero exit code when something fatal happens, like being unable to connect to the database host. So, all ansible sees is exit code 0 from psql and continues on, as if everything is great.
I did some reading up on postgres modules for ansible and we do not need to shell out to do this, so I have implemented it with modules.
Since handling the actual migration with the ansible modules I have not encountered a failure. Continuing to run upgrades to test ...

I left a comment on https://issues.redhat.com/browse/MTA-3335?filter=-1
It looks like the old service was flapping between the new and old DB pod because the selector matched both. You can see that in the verbose output from the source ping task I added. Note between retries the version changed from 15 to 12. This should not be happening.
I added a version label for the new deployment and service to prevent it matching the old db pod so the new service was stable, but since nothing was done for the old service it's matching and flipping between both old and new pod. I have updated the name of the new deployment/pod to incorporate the version which should prevent the old service from matching and stop the unpredictable results.
Old pod deployment labels/service selector:
    app.kubernetes.io/component: postgresql
    app.kubernetes.io/name: tackle-keycloak-postgresql
    app.kubernetes.io/part-of: tackle

Updated new deployment labels/service selector:
    app.kubernetes.io/component: postgresql
    app.kubernetes.io/name: tackle-keycloak-postgresql-15
    app.kubernetes.io/part-of: tackle
    version: "15"

TASK [Ping source database] *****************************************************************************************
task path: /opt/ansible/test.yml:22
<localhost> ESTABLISH LOCAL CONNECTION FOR USER:<PHONE_NUMBER>
<localhost> EXEC /bin/sh -c 'echo ~1000900000 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /opt/ansible/.ansible/tmp `"&& mkdir "` echo /opt/ansible/.ansible/tmp/ansible-tmp-1721678295.6744003-4493-237665731786268 `" && echo ansible-tmp-1721678295.6744003-4493-237665731786268="` echo /opt/ansible/.ansible/tmp/ansible-tmp-1721678295.6744003-4493-237665731786268 `" ) && sleep 0'
Using module file /usr/local/lib/python3.8/site-packages/ansible/modules/database/postgresql/postgresql_ping.py
<localhost> PUT /opt/ansible/.ansible/tmp/ansible-local-446033c7e04m/tmpfczk_9n1 TO /opt/ansible/.ansible/tmp/ansible-tmp-1721678295.6744003-4493-237665731786268/AnsiballZ_postgresql_ping.py
<localhost> EXEC /bin/sh -c 'chmod u+x /opt/ansible/.ansible/tmp/ansible-tmp-1721678295.6744003-4493-237665731786268/ /opt/ansible/.ansible/tmp/ansible-tmp-1721678295.6744003-4493-237665731786268/AnsiballZ_postgresql_ping.py && sleep 0'
<localhost> EXEC /bin/sh -c '/usr/bin/python3.8 /opt/ansible/.ansible/tmp/ansible-tmp-1721678295.6744003-4493-237665731786268/AnsiballZ_postgresql_ping.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /opt/ansible/.ansible/tmp/ansible-tmp-1721678295.6744003-4493-237665731786268/ > /dev/null 2>&1 && sleep 0'
FAILED - RETRYING: Ping source database (12 retries left).Result was: {
    "attempts": 1,
    "changed": false,
    "invocation": {
        "module_args": {
            "ca_cert": null,
            "db": "keycloak_db",
            "login_host": "tackle-kcpgsql",
            "login_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "login_unix_socket": "",
            "login_user": "user-q4wZ",
            "port": 5432,
            "ssl_mode": "prefer"
        }
    },
    "is_available": true,
    "retries": 13,
    "server_version": {
        "major": 15,
        "minor": 2
    }
}
<localhost> EXEC /bin/sh -c 'echo ~1000900000 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /opt/ansible/.ansible/tmp `"&& mkdir "` echo /opt/ansible/.ansible/tmp/ansible-tmp-1721678311.1710331-4493-71238003131228 `" && echo ansible-tmp-1721678311.1710331-4493-71238003131228="` echo /opt/ansible/.ansible/tmp/ansible-tmp-1721678311.1710331-4493-71238003131228 `" ) && sleep 0'
Using module file /usr/local/lib/python3.8/site-packages/ansible/modules/database/postgresql/postgresql_ping.py
<localhost> PUT /opt/ansible/.ansible/tmp/ansible-local-446033c7e04m/tmpb_g0z_lm TO /opt/ansible/.ansible/tmp/ansible-tmp-1721678311.1710331-4493-71238003131228/AnsiballZ_postgresql_ping.py
<localhost> EXEC /bin/sh -c 'chmod u+x /opt/ansible/.ansible/tmp/ansible-tmp-1721678311.1710331-4493-71238003131228/ /opt/ansible/.ansible/tmp/ansible-tmp-1721678311.1710331-4493-71238003131228/AnsiballZ_postgresql_ping.py && sleep 0'
<localhost> EXEC /bin/sh -c '/usr/bin/python3.8 /opt/ansible/.ansible/tmp/ansible-tmp-1721678311.1710331-4493-71238003131228/AnsiballZ_postgresql_ping.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /opt/ansible/.ansible/tmp/ansible-tmp-1721678311.1710331-4493-71238003131228/ > /dev/null 2>&1 && sleep 0'
ok: [localhost] => {
    "attempts": 2,
    "changed": false,
    "invocation": {
        "module_args": {
            "ca_cert": null,
            "db": "keycloak_db",
            "login_host": "tackle-kcpgsql",
            "login_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "login_unix_socket": "",
            "login_user": "user-q4wZ",
            "port": 5432,
            "ssl_mode": "prefer"
        }
    },
    "is_available": true,
    "server_version": {
        "major": 12,
        "minor": 11
    }
}


add output for any additional database passed to the module to create

Added an output to the module to output any additional databases passed to the module to create in any database type

@mohsenSy just wanted to add an output for the additional databases passed to the module so we can see the result.


[Bug] qwen2-vl发布服务报错

Checklist

[ ] 1. I have searched related issues but cannot get the expected help.
[ ] 2. The bug has not been fixed in the latest version.
[ ] 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.

Describe the bug
之前没有使用lmdeploy+dlinfer-ascend的方式，跑qwen2-vl不会报错，目前采用这种方式报错维度不匹配
inv_freq_expanded = inv_freq.view(1, -1, 1)
position_ids_expanded = position_ids.unsqueeze(1)
tmp = torch.bmm(inv_freq_expanded, position_ids_expanded)

具体报错：
/usr/local/python3.10.5/lib/python3.10/site-packages/transformers/models/qwen2_vl/modeling_qwen2_vl.py:400: UserWarning: AutoNonVariableTypeMode is deprecated and will be removed in 1.10 release. For kernel implementations please use AutoDispatchBelowADInplaceOrView instead, If you are looking for a user facing API to enable running your inference-only workload, please use c10::InferenceMode. Using AutoDispatchBelowADInplaceOrView in user code is under risk of producing silent wrong result in some edge cases. See Note [AutoDispatchBelowAutograd] for more details. (Triggered internally at build/CMakeFiles/torch_npu.dir/compiler_depend.ts:74.)

attention_mask[..., cu_seqlens[i - 1] : cu_seqlens[i], cu_seqlens[i - 1] : cu_seqlens[i]] = True
/usr/local/python3.10.5/lib/python3.10/site-packages/torch_npu/utils/storage.py:38: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
if self.device.type != 'cpu':
2024-12-05 10:41:15,951 - lmdeploy - ERROR - request.py:21 - Engine loop failed with error: 'skip function info in file /usr/local/python3.10.5/lib/python3.10/logging/init.py'
from user code:
File "/opt/lmdeploy/lmdeploy/pytorch/models/qwen2_vl.py", line 383, in forward
hidden_states = self.model(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/lmdeploy/lmdeploy/pytorch/models/qwen2_vl.py", line 312, in forward
cos, sin = _apply_mrope_selection(hidden_states,
File "/opt/lmdeploy/lmdeploy/pytorch/models/qwen2_vl.py", line 28, in _apply_mrope_selection
cos, sin = rotary_emb_func(hidden_states, _mrope_position_ids)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/lmdeploy/lmdeploy/pytorch/backends/dlinfer/rotary_embedding.py", line 74, in forward
return _rotary_embedding_fwd(position_ids,
File "/opt/lmdeploy/lmdeploy/pytorch/backends/dlinfer/rotary_embedding.py", line 35, in _rotary_embedding_fwd
logging.info("=" * 50)
Set TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 for more information
Traceback (most recent call last):
File "/opt/lmdeploy/lmdeploy/pytorch/engine/request.py", line 17, in _raise_exception_on_finish
task.result()
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine.py", line 963, in async_loop
await self._async_loop()
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine.py", line 957, in _async_loop
await __step()
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine.py", line 945, in __step
raise e
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine.py", line 939, in __step
raise out
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine.py", line 873, in _async_loop_background
await self._async_step_background(
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine.py", line 755, in _async_step_background
output = await self._async_model_forward(
File "/opt/lmdeploy/lmdeploy/utils.py", line 241, in __tmp
return (await func(*args, **kwargs))
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine.py", line 646, in _async_model_forward
ret = await __forward(inputs)
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine.py", line 624, in __forward
return await self.model_agent.async_forward(
File "/opt/lmdeploy/lmdeploy/pytorch/engine/model_agent.py", line 303, in async_forward
output = self._forward_impl(inputs,
File "/opt/lmdeploy/lmdeploy/pytorch/engine/model_agent.py", line 270, in _forward_impl
output = model_forward(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/opt/lmdeploy/lmdeploy/pytorch/engine/model_agent.py", line 153, in model_forward
output = model(**input_dict)
File "/opt/lmdeploy/lmdeploy/pytorch/backends/graph_runner.py", line 25, in call
return self.model(**kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 451, in _fn
return fn(*args, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 921, in catch_errors
return callback(frame, cache_entry, hooks, frame_state, skip=1)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 400, in _convert_frame_assert
return _compile(
File "/usr/local/python3.10.5/lib/python3.10/contextlib.py", line 79, in inner
return func(*args, **kwds)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 676, in _compile
guarded_code = compile_inner(code, one_graph, hooks, transform)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/utils.py", line 262, in time_wrapper
r = func(*args, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 535, in compile_inner
out_code = transform_code_object(code, transform)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/bytecode_transformation.py", line 1036, in transform_code_object
transformations(instructions, code_options)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 165, in _fn
return fn(*args, **kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 500, in transform
tracer.run()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 2149, in run
super().run()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 810, in run
and self.step()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 773, in step
getattr(self, inst.opname)(inst)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 489, in wrapper
return inner_fn(self, inst)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 1272, in CALL_FUNCTION_KW
self.call_function(fn, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 674, in call_function
self.push(fn.call_function(self, args, kwargs))
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/variables/nn_module.py", line 336, in call_function
return tx.inline_user_function_return(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 680, in inline_user_function_return
return InliningInstructionTranslator.inline_call(self, fn, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/dynamo/symbolic_convert.py", line 2285, in inline_call
return cls.inline_call(parent, func, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/dynamo/symbolic_convert.py", line 2399, in inline_call
tracer.run()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 810, in run
and self.step()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 773, in step
getattr(self, inst.opname)(inst)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 489, in wrapper
return inner_fn(self, inst)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 1260, in CALL_FUNCTION_EX
self.call_function(fn, argsvars.items, kwargsvars)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 674, in call_function
self.push(fn.call_function(self, args, kwargs))
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/variables/functions.py", line 335, in call_function
return super().call_function(tx, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/variables/functions.py", line 289, in call_function
return super().call_function(tx, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/variables/functions.py", line 90, in call_function
return tx.inline_user_function_return(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 680, in inline_user_function_return
return InliningInstructionTranslator.inline_call(self, fn, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/dynamo/symbolic_convert.py", line 2285, in inline_call
return cls.inline_call(parent, func, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/dynamo/symbolic_convert.py", line 2399, in inline_call
tracer.run()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 810, in run
and self.step()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 773, in step
getattr(self, inst.opname)(inst)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 489, in wrapper
return inner_fn(self, inst)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 1219, in CALL_FUNCTION
self.call_function(fn, args, {})
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 674, in call_function
self.push(fn.call_function(self, args, kwargs))
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/variables/functions.py", line 289, in call_function
return super().call_function(tx, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/variables/functions.py", line 90, in call_function
return tx.inline_user_function_return(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 680, in inline_user_function_return
return InliningInstructionTranslator.inline_call(self, fn, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/dynamo/symbolic_convert.py", line 2285, in inline_call
return cls.inline_call(parent, func, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/dynamo/symbolic_convert.py", line 2399, in inline_call
tracer.run()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 810, in run
and self.step()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 773, in step
getattr(self, inst.opname)(inst)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 489, in wrapper
return inner_fn(self, inst)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 1219, in CALL_FUNCTION
self.call_function(fn, args, {})
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 674, in call_function
self.push(fn.call_function(self, args, kwargs))
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/variables/nn_module.py", line 336, in call_function
return tx.inline_user_function_return(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 680, in inline_user_function_return
return InliningInstructionTranslator.inline_call(self, fn, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/dynamo/symbolic_convert.py", line 2285, in inline_call
return cls.inline_call(parent, func, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/dynamo/symbolic_convert.py", line 2399, in inline_call
tracer.run()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 810, in run
and self.step()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 773, in step
getattr(self, inst.opname)(inst)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 489, in wrapper
return inner_fn(self, inst)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 1260, in CALL_FUNCTION_EX
self.call_function(fn, argsvars.items, kwargsvars)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 674, in call_function
self.push(fn.call_function(self, args, kwargs))
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/variables/functions.py", line 335, in call_function
return super().call_function(tx, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/variables/functions.py", line 289, in call_function
return super().call_function(tx, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/variables/functions.py", line 90, in call_function
return tx.inline_user_function_return(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 680, in inline_user_function_return
return InliningInstructionTranslator.inline_call(self, fn, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/dynamo/symbolic_convert.py", line 2285, in inline_call
return cls.inline_call(parent, func, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/dynamo/symbolic_convert.py", line 2399, in inline_call
tracer.run()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 810, in run
and self.step()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 773, in step
getattr(self, inst.opname)(inst)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 489, in wrapper
return inner_fn(self, inst)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 1272, in CALL_FUNCTION_KW
self.call_function(fn, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 674, in call_function
self.push(fn.call_function(self, args, kwargs))
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/variables/functions.py", line 289, in call_function
return super().call_function(tx, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/variables/functions.py", line 90, in call_function
return tx.inline_user_function_return(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 680, in inline_user_function_return
return InliningInstructionTranslator.inline_call(self, fn, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/dynamo/symbolic_convert.py", line 2285, in inline_call
return cls.inline_call(parent, func, args, kwargs)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/dynamo/symbolic_convert.py", line 2399, in inline_call
tracer.run()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 810, in run
and self.step()
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 773, in step
getattr(self, inst.opname)(inst)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 489, in wrapper
return inner_fn(self, inst)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 1219, in CALL_FUNCTION
self.call_function(fn, args, {})
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py", line 674, in call_function
self.push(fn.call_function(self, args, kwargs))
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/variables/functions.py", line 629, in call_function
unimplemented(msg)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/_dynamo/exc.py", line 190, in unimplemented
raise Unsupported(msg)
torch._dynamo.exc.Unsupported: 'skip function info in file /usr/local/python3.10.5/lib/python3.10/logging/init.py'
from user code:
File "/opt/lmdeploy/lmdeploy/pytorch/models/qwen2_vl.py", line 383, in forward
hidden_states = self.model(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/lmdeploy/lmdeploy/pytorch/models/qwen2_vl.py", line 312, in forward
cos, sin = _apply_mrope_selection(hidden_states,
File "/opt/lmdeploy/lmdeploy/pytorch/models/qwen2_vl.py", line 28, in _apply_mrope_selection
cos, sin = rotary_emb_func(hidden_states, _mrope_position_ids)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/lmdeploy/lmdeploy/pytorch/backends/dlinfer/rotary_embedding.py", line 74, in forward
return _rotary_embedding_fwd(position_ids,
File "/opt/lmdeploy/lmdeploy/pytorch/backends/dlinfer/rotary_embedding.py", line 35, in _rotary_embedding_fwd
logging.info("=" * 50)
Set TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 for more information
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/python3.10.5/lib/python3.10/asyncio/queues.py", line 159, in get
await getter
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/python3.10.5/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
return fut.result()
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/lmdeploy/lmdeploy/pytorch/engine/request.py", line 171, in __no_threadsafe_get
return await asyncio.wait_for(self.resp_que.get(), timeout)
File "/usr/local/python3.10.5/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/python3.10.5/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "/usr/local/python3.10.5/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/applications.py", line 113, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in call
await self.app(scope, receive, _send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in call
await self.app(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/routing.py", line 715, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/routing.py", line 735, in app
await route.handle(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle
await self.app(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/starlette/routing.py", line 73, in app
response = await f(request)
File "/usr/local/python3.10.5/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "/usr/local/python3.10.5/lib/python3.10/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
return await dependant.call(**values)
File "/opt/lmdeploy/lmdeploy/serve/openai/api_server.py", line 483, in chat_completions_v1
async for res in result_generator:
File "/opt/lmdeploy/lmdeploy/serve/async_engine.py", line 576, in generate
async for outputs in generator.async_stream_infer(
File "/opt/lmdeploy/lmdeploy/pytorch/engine/engine_instance.py", line 178, in async_stream_infer
resp = await self.req_sender.async_recv(req_id)
File "/opt/lmdeploy/lmdeploy/pytorch/engine/request.py", line 312, in async_recv
resp: Response = await self._async_resp_get()
File "/opt/lmdeploy/lmdeploy/pytorch/engine/request.py", line 187, in _async_resp_get
return await __no_threadsafe_get()
File "/opt/lmdeploy/lmdeploy/pytorch/engine/request.py", line 175, in __no_threadsafe_get
exit(1)
File "/usr/local/python3.10.5/lib/python3.10/_sitebuiltins.py", line 26, in call
raise SystemExit(code)
SystemExit: 1
INFO:     <IP_ADDRESS>:40762 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error
Reproduction
lmdeploy serve api_server /home/nfs/appnfs/xxx/pre_models/qwen/Qwen2-VL-7B-Instruct --backend pytorch --chat-template /opt/lmdeploy/chat_template/qwen2-vl.json --model-name qwen2-vl-7b --device ascend --server-name <IP_ADDRESS> --server-port 50055
curl "http://<IP_ADDRESS>:50055/v1/chat/completions"   -H "Content-Type: application/json"   -d '{
"model": "qwen2-vl-7b",
"messages": [
{
"role": "user",
"content": [
{ "type": "text", "text": "描述这张图片"},
{ "type": "image_url", "image_url": { "url": "/home/nfs/appnfs/xxx/img-test/cat.png"}}
]
}
],
"max_tokens": 128
}'
Environment
root@a3742e662b31:/opt/lmdeploy# lmdeploy check_env
[W compiler_depend.ts:615] Warning: expandable_segments currently defaults to false. You can enable this feature by `export PYTORCH_NPU_ALLOC_CONF = expandable_segments:True`. (function operator())
sys.platform: linux
Python: 3.10.5 (main, Sep 24 2024, 03:43:49) [GCC 9.4.0]
CUDA available: False
MUSA available: False
numpy_random_seed:<PHONE_NUMBER>
GCC: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
PyTorch: 2.3.1
PyTorch compiling details: PyTorch built with:
  - GCC 10.2
  - C++ Version: 201703
  - Intel(R) MKL-DNN v3.3.6 (Git Hash 86e6af5974177e513fd3fee58425e1063e7f1361)
  - OpenMP 201511 (a.k.a. OpenMP 4.5)
  - LAPACK is enabled (usually provided by MKL)
  - NNPACK is enabled
  - CPU capability usage: NO AVX
  - Build settings: BLAS_INFO=open, BUILD_TYPE=Release, CXX_COMPILER=/opt/rh/devtoolset-10/root/usr/bin/c++, CXX_FLAGS= -D_GLIBCXX_USE_CXX11_ABI=0 -fabi-version=11 -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOCUPTI -DLIBKINETO_NOROCTRACER -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno-error=pedantic -Wno-error=old-style-cast -Wno-missing-braces -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=open, TORCH_VERSION=2.3.1, USE_CUDA=OFF, USE_CUDNN=OFF, USE_CUSPARSELT=OFF, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_GLOO=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=OFF, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, USE_ROCM_KERNEL_ASSERT=OFF,

TorchVision: 0.18.1
LMDeploy: 0.6.3+178ec7b
transformers: 4.46.3
gradio: Not Found
fastapi: 0.115.5
pydantic: 2.10.0
triton: Not Found

Error traceback
No response

已解决，默认安装在/opt/lmdeploy下面的代码和官方仓库中的代码有出入，已对照修改。


Bing API - create form removed from Azure

Hi!
I have a problem creating the azure bing service in the chapter 3 example.
Bing search has been moved in azure with the consequence that the creation form https://portal.azure.com/#create/Microsoft.CognitiveServicesBingSearch-v7 has been removed.
Instead they refer to the following page https://docs.microsoft.com/en-us/bing/search-apis/bing-web-search/create-bing-search-service-resource.
In the KeySetting page I can see that the endpoint is https://api.bing.microsoft.com/ which does not match the endpoint expected by the server (se error dump below).
Do you know of a quick workaround for this?
Best regards
Lars Kappel Hansen
2022-02-16T12:16:53.842Z GET /icons/android-icon-192x192.png 200 2.928 ms - 13689
Caught error
Error: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.
    at D:\Locus\GitHub\pwa\chapter-03\node_modules\azure-cognitiveservices-newssearch\lib\operations\newsOperations.js:458:19
    at retryCallback (D:\Locus\GitHub\pwa\chapter-03\node_modules\ms-rest\lib\filters\systemErrorRetryPolicyFilter.js:89:9)
    at retryCallback (D:\Locus\GitHub\pwa\chapter-03\node_modules\ms-rest\lib\filters\exponentialRetryPolicyFilter.js:140:9)
    at D:\Locus\GitHub\pwa\chapter-03\node_modules\ms-rest\lib\filters\rpRegistrationFilter.js:59:14
    at handleRedirect (D:\Locus\GitHub\pwa\chapter-03\node_modules\ms-rest\lib\filters\redirectFilter.js:39:9)
    at D:\Locus\GitHub\pwa\chapter-03\node_modules\ms-rest\lib\filters\formDataFilter.js:23:14
    at Request._callback (D:\Locus\GitHub\pwa\chapter-03\node_modules\ms-rest\lib\requestPipeline.js:125:16)
    at Request.self.callback (D:\Locus\GitHub\pwa\chapter-03\node_modules\request\request.js:185:22)
    at Request.emit (node:events:520:28)
    at Request.<anonymous> (D:\Locus\GitHub\pwa\chapter-03\node_modules\request\request.js:1154:10) {
  statusCode: 401,
  request: {
    rawResponse: false,
    queryString: {},
    url: 'https://api.cognitive.microsoft.com/bing/v7.0/news/search?count=20&q=pwa',
    method: 'GET',
    headers: {
      'Content-Type': 'application/json; charset=utf-8',
      'X-BingApis-SDK': 'true',
      'Ocp-Apim-Subscription-Key': '<Key 1 supplied here>',
      'X-BingApis-SDK-Client': 'node-SDK',
      'user-agent': 'Node/v16.14.0 (x64-Windows_NT-10.0.19041) ms-rest/2.5.4 azure-cognitiveservices-newssearch/2.0.0 Azure-SDK-For-Node'
    },
    body: null
  },
  response: {
    body: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}',
    headers: {
      'content-length': '224',
      'content-type': 'application/json',
      'apim-request-id': 'd8300908-37ef-4fe1-98dd-17b73e53729f',
      date: 'Wed, 16 Feb 2022 12:16:56 GMT',
      connection: 'close'
    },
    statusCode: 401
  },
  code: '401',
  body: { _type: 'ErrorResponse' }
}
Returning catch result (3)
2022-02-16T12:16:53.873Z GET /api/news 200 173.803 ms - 51

@johnwargo I am situated in Denmark / Europe and the connection is made to a regional data center in Europe.
I have had an extra look at it but did not find a way to resolve the endpoint issue.
Anyway I have been involved in development of a PWA at work so in stead I use this as an example while I read on. This works out fine!
Thanks for a good book and your time :-)

I've experienced the same problem.  The endpoint is wrong
https://api.cognitive.microsoft.com/bing/v7.0/news/search?count=20&q=pwa

should be more like:
https://api.bing.microsoft.com/v7.0/news/search?count=20&q=pwa

You can swap out the host bit by modifying the api.js file like this:
var client = new NewsSearchAPIClient(credentials, {
    endpoint: "https://api.bing.microsoft.com"
});

I didn't find a way to fix the bing/v7.0 part, at least not without modifying the news search library.  I changed it in
node_modules/azure-cognitiveservices-newssearch/lib/newsSearchClient.js

Unlike the endpoint, it doesn't seem like it can be configured.

@chris-miner & @codescrut I'm so sorry I didn't notice this before - I fixed all the code for the new API and wrote updated docs - you can find them all here: https://github.com/johnwargo/learning-pwa-code/tree/main/updated-server


more updates to strip away old blog code from starter template, it's …

…not all removed yet, just trying to get to the point where the site successfully deploys on GatsbyCloud;

Successfully built in Gatsby Cloud.
Will need to figure out why pull request builds are not triggering in Gatsby Cloud.


Extract the dates out of the dumpv4.

Hi there,
please review this PR that tries to fix #2987. I'm still learning Rust and I found that #2987 is an excellent way for me to read and learn what others do with Rust. So please excuse my semantics ...
Stay safe and healthy.

Pull Request
This patch possibly fixes #2987.
This patch introduces a way to fill the IndexMetadata.created_at and IndexMetadata.updated_at keys from the tasks events. This is done by reading the creation date of the first event (created_at) and the creation date of the last event (updated_at).
Related issue
Fixes #2987
What does this PR do?

Extract the dates out of the dumpv4.

PR checklist
Please check if your PR fulfills the following requirements:

[x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
[x] Have you read the contributing guidelines?
[x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!

Also, since your PR was probably working and you've probably spend a lot of time on it, I've marked it as hacktoberfest-accepted. To receive some swag from Meilisearch, please complete this form.

bors try

@irevoire Any change requested? I'm asking so that I can go ahead with #3013 😄

Hey, yeah, it looks pretty good to me.
But it looks like it introduced a bug, and now the tests fail without being able to get the task queue.

Hey @irevoire, I looked at the CI output and I'm not sure why this is happening...
I think it's probably because of the new arguments of the V4IndexReader but I can't explain how could that happen when the upstream implementation only calls a V4Reader ... From my understanding, V4IndexReader is only called by V4Reader so the new arguments shouldn't cause any issue ...
Can you give me some theoretical pointers? 🤔


src/build.bat is missing

could you please provide the src/build.bat ?

To build and run Chessmate (from project folder):
javac -d ./target src/*.java
cd target
java Chess.Main

You need to be in the target path (or in any path at same level as images folder because images are loaded from relative paths: ../images/some-image.jpg. Back then I didn't know about Java resources in the classpath. Should fix this.
If that works for you, I'll add a build.sh file to root and update README.

Thank you. I am able to run now. But the board bg colour is not getting
loaded. Board background colour is always white for all the squares. Could
you help, please ??
On Tue, Nov 30, 2021 at 7:36 PM Petrus Theron @.***>
wrote:

To build and run Chessmate (from project folder):
javac -d ./target src/*.java
cd target
java Chess.Main
You need to be in the target path (or in any path at same level as images
folder because images are loaded from relative paths
https://github.com/theronic/chessmate/blob/master/src/Main.java#L737-L753:
../images/some-image.jpg. Back then I didn't know about Java resources in
the classpath. Should fix this.
If that works for you, I'll add a build.sh file to root and update README.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/theronic/chessmate/issues/15#issuecomment-982955151,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMGECY4RG3B5LJTUQIJG73UOURSTANCNFSM5JCDNOQQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Can you post a screenshot? It should look like this:

If it looks like this, then you are in the wrong relative path for images:

Here is My command :
~/Documents/Projects/Java-Chess-master/Chess1.4$ java -classpath
/Users/arun/Documents/Projects/Java-Chess-master/out/production/Chess1.4
main.Main
[image: Screenshot 2021-12-01 at 08.50.28.png]
On Wed, Dec 1, 2021 at 7:54 AM Petrus Theron @.***>
wrote:

Can you post a screenshot? It should look like this:
[image: image]
https://user-images.githubusercontent.com/1011676/144193755-20ea303b-c72f-4857-933f-327d31bde55c.png
If it looks like this, then you are in the wrong relative path for images:
[image: image]
https://user-images.githubusercontent.com/1011676/144193853-fc653f4e-77af-4127-9e3c-4b618f2e9017.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/theronic/chessmate/issues/15#issuecomment-983379393,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMGEC3EHY4APOA637ZZ2G3UOXIDPANCNFSM5JCDNOQQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Your comment does not show screenshot, but your folder structure needs to look like this:

src/

Main.java
Chess.java
etc.

images/

alpha.gif
icon_config.gif
etc.

target (created by javac)

Main.class
Chess.class
etc.

To run, you have to cd to the target path because images are loaded relatively at "../images/.gif". If you are in another path, e.g. your home directory, it will look for images one folder up, which is why you have to be in target when you run java Chess.Main.
From the project folder (where src and images folder resides), try this exactly:
javac -d ./target src/*.java
cd target
java Chess.Main

The images are loaded fine. The application working., But only the colour is missing. Thank you for looking

Sure, no problem. Your version might be based on original Chessmate code, but seems to be a fork or very different project given the different folder structure and different piece images.

Got it. Fantastic. It works . Thank you. I'll update the build.bat and build.sh soon


Remove automated deployments through TravisCI

What kind of PR is this?

/kind cleanup
What does does this PR do / why we need it:
We no longer deploy through TravisCI / push our binaries to the GitHub
page. This removes the deployment feature from TravisCI so it does not
mess up our release.
Which issue(s) this PR fixes:
N/A
How to test changes / Special notes to the reviewer:
N/A
Signed-off-by: Charlie Drage<EMAIL_ADDRESS>

/retest

Same flake in all failures #2244 :
[odo]  ✗  Waiting for component to start [4m]
[odo]  ✗  waited 4m0s but couldn't find running pod matching selector: 'deploymentconfig=nodejs-app'

/test v4.1-integration
/test v4.2-integration
/test v4.3-integration

/retest

/retest


Feature/merge main into develop

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.27%. Comparing base (342fb26) to head (fbaf592).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #544   +/-   ##
========================================
  Coverage    90.27%   90.27%
========================================
  Files          148      148
  Lines        10857    10857
  Branches       511      511
========================================
  Hits          9801     9801
  Misses         892      892
  Partials       164      164

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

🚨 Try these New Features:

Flaky Tests Detection - Detect and resolve failed and flaky tests


gpu doesn't report error when id is actually out of range in tf.nn.embedding_lookup(embed, ids)

TensorFlow version (use command below):1.13
Python version:3.6

import tensorflow as tf
x = tf.constant(999)
#with tf.device('/cpu:0'):
#    voc_emb = tf.get_variable(name="voc_emb", dtype=tf.float32, shape=[3, 12])
#    embedded_x = tf.nn.embedding_lookup(voc_emb, x)
voc_emb = tf.get_variable(name="voc_emb", dtype=tf.float32, shape=[3, 12])
embedded_x = tf.nn.embedding_lookup(voc_emb, x)
sess = tf.Session()
sess.run(tf.global_variables_initializer())
print(sess.run(embedded_x))

the following above I run on cpu and gpu separately,
while cpu reports:
InvalidArgumentError (see above for traceback): indices = 999 is not in [0, 3)
[[node embedding_lookup (defined at test.py:24) ]]
but gpu just give an output like this:
[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]

If back-propagation goes through embedded_x, will there be an error?

If back-propagation goes through embedded_x, will there be an error?

Just figured this out, see:
https://www.tensorflow.org/api_docs/python/tf/nn/embedding_lookup

validate_indices: DEPRECATED. If this operation is assigned to CPU, values in indices are always validated to be within range. If assigned to GPU, out-of-bound indices result in safe but unspecified behavior, which may include raising an error.

I know that, but if you back-propagate to embedded_x, there will be an error even on GPU...

@StarYoung ,
We see that this issue is using an older version of tensorflow(1.x) which is officially considered as end of life. We recommend that you upgrade to latest stable version and let us know if the issue still persists in newer versions.we will get you the right help.Thanks!


Roll engine 12bf95fd49b7..49d6552e76c0 (16 commits)

https://github.com/flutter/engine/compare/12bf95fd49b7...49d6552e76c0
git log 12bf95fd49b7..49d6552e76c0 --first-parent --oneline
2019-12-11<EMAIL_ADDRESS>Verify accounting for loop counts in Gif and WebP assets is consistent. (flutter/engine#14321)
2019-12-11<EMAIL_ADDRESS>[fuchsia] Do not Execute paint tasks when there is no vsync (flutter/engine#14298)
2019-12-11<EMAIL_ADDRESS>Roll src/third_party/dart c74a8ec2c46e..bcd18e67dcae (9 commits) (flutter/engine#14317)
2019-12-11<EMAIL_ADDRESS>Roll fuchsia/sdk/core/linux-amd64 from nqJnP... to UdfLO... (flutter/engine#14316)
2019-12-11<EMAIL_ADDRESS>Roll src/third_party/skia 732c49739fa5..5afc7b2af854 (16 commits) (flutter/engine#14315)
2019-12-11<EMAIL_ADDRESS>Roll fuchsia/sdk/core/mac-amd64 from 9C6UA... to h4iiT... (flutter/engine#14314)
2019-12-11<EMAIL_ADDRESS>[web] Update build_web_compilers to 2.7.1 (flutter/engine#14305)
2019-12-11<EMAIL_ADDRESS>Cleanup the IO thread GrContext (flutter/engine#14265)
2019-12-10<EMAIL_ADDRESS>Fix for tab not working (flutter/engine#14165)
2019-12-10<EMAIL_ADDRESS>[SkParagraph] Convert the height override flag in text styles (flutter/engine#14283)
2019-12-10<EMAIL_ADDRESS>Roll src/third_party/dart 02a8b015ad..98c13ba18f (5 commits) (flutter/engine#14280)
2019-12-10<EMAIL_ADDRESS>Remove specificity on Android and iOS (flutter/engine#14282)
2019-12-10<EMAIL_ADDRESS>Create separate objects for isolate state and isolate group state (flutter/engine#14268)
2019-12-10<EMAIL_ADDRESS>Roll src/third_party/dart 8b8894648f..02a8b015ad (26 commits) (flutter/engine#14278)
2019-12-10<EMAIL_ADDRESS>Roll fuchsia/sdk/core/linux-amd64 from Zkpa_... to nqJnP... (flutter/engine#14274)
2019-12-10<EMAIL_ADDRESS>Roll src/third_party/skia e56cc054dbae..ab26643258ad (3 commits) (flutter/engine#14273)
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 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/+/master/autoroll/README.md

Trybots failed. These were the failed builds: https://github.com/flutter/flutter/runs/343290303

Commit queue failed; closing this roll.


Extensions of imported classes never provide overriding initializers

Explanation: This addresses a crash where the compiler asks if an imported class
inherits initializers from its superclass at a point too late to type-check newly-introduced initializers. Fortunately, any newly-introduced initializers can't affect the answer to that question. Look for the particular problematic case—Swift initializers on extensions of imported Objective-C classes—and short-circuit before we hit any trouble.
Scope: Affects Swift extensions of Objective-C classes, but in a way that should not change behavior.
Issue: SR-3853 / rdar://problem/30358828
Reviewed by: @DougGregor
Risk: Very low. Any input that would have succeeded without this change should still succeed in the same way; this only adds new valid inputs.
Testing: Added compiler regression tests, verified that the developer-submitted test case no longer hit this issue.

@swift-ci Please test

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 26de7560d004872588a003208f831607ba434c0a
Test requested by - @jrose-apple

@swift-ci Please clean test macOS


Bugfixes in support of Windows build

Summary

This PR contains several bugfixes
It improves the constraints on axom's mfem dependency in its spack package
It adds an optional lua dependency to the Windows build
It improves the import logic for lua (this manifested in a local WSL build, where -dl was required and missing from our previous formulation)
It also fixes some failing tests when axom is configured without hdf5.

An observed failure in the spio_parallel tests for this configuration will be resolved in
#1018

Thanks for this, @kennyweiss .  After taking care of the failures due to missing HDF5, I should be ready to approve.

Since we're having trouble with out tioga CI, I manually tested this with our amdclang configuration on rzvernal

Passed manual Windows TPL CI: https://github.com/LLNL/axom/actions/runs/4120664761


CA Server Name.

Allow to specify a CA server name (LEGO_CA_SERVER_NAME).
This a requirement when you are using Pebble with an external DNS server.
Related to https://github.com/letsencrypt/pebble/pull/139

This is a developer-only feature like LEGO_CA_CERTIFICATES.
Are you sure you want to add this in the readme?

I suppose it's not necessary. Just leaving a note that starting a DEVELOPMENT.md or something to describe how to develop against/with lego would be a good solution.


Where can I find the gvatrack performance measures or report?

@IvanZhangDoIt , I afraid we don't have any ready reports regarding to gvatrack. What information are you interested in?

in our project, we just want to make sure the tracking performance is good enough, some metrics like MOTA(multiple object tracking accuracy) will help.
if there is no such info, may I know the detail about the tracking algorithm? so then I could infer the result through papers or existing report relative that algorithm.


Question: Async actions (async thunk-like)

I recently discovered this project and I find it really promising, but checking readme file and example project I could not figure out how to perform an async action like async thunks in redux.
For example if I need to perform a login with a remote service I would need an action with 2 parameters (id, pw) that should trigger a background request and set a loading= true and then upon completion report success or fail using 2 other actions.
I thought Action Plans could be the right way but I am not sure about passing 2 parameters to an action plan.
Maybe I am missing something?
Thank you.

Hi, I looked at my code and found an example of Action plan that takes two arguments:
static func purchaseProduct(
        paymentService: PaymentService,
        product: Product
    ) -> ActionPlan<AppState> {
        ActionPlan<AppState> { store -> AnyPublisher<Action, Never> in
            paymentService.purchaseProduct(product)
                .catch { _ in Just<Pro?>(store.state.proState.pro) }
                .map { ProAction.setProStatus($0) }
                .eraseToAnyPublisher()
        }
    }

You can use the .map function to dispatch two different actions as you described.

Hi, I looked at my code and found an example of Action plan that takes two arguments:
static func purchaseProduct(
        paymentService: PaymentService,
        product: Product
    ) -> ActionPlan<AppState> {
        ActionPlan<AppState> { store -> AnyPublisher<Action, Never> in
            paymentService.purchaseProduct(product)
                .catch { _ in Just<Pro?>(store.state.proState.pro) }
                .map { ProAction.setProStatus($0) }
                .eraseToAnyPublisher()
        }
    }

You can use the .map function to dispatch two different actions as you described.

Thank you very much! I will try it tomorrow.

Thank you very much! I will try it tomorrow.

it works perfectly. I think this example could be useful in the readme and that you could close the issue.


Make Starred Album Public?

How can I make the Starred album public? I can make all my starred photos public, but the starred album still isn't public

@kamil4 while you are at it... :laughing:

Heh... When I was implementing public Recent I asked myself this question: should any others be public as well? Starred could be but I figured that nobody would want to since in publicMode we don't even display the stars (though stars do influence the album thumbs).
I guess somebody does want to after all. Oh well, shouldn't be too much work to add. The front end should actually be good as I made that part fully generic but the server will need changes, of course.

Closed via #293.

I'm completely confused. I imported 200 images. How can I make them all public? How can I set an album to be public? The only thing I see is i have to click on each image 1 by 1 add it to a new public album. This will take about 6 weeks.

How do I make an album public? I can't figure out any settings for this?

I don't believe that you are using Lychee-Laravel (v4), but rather the current git HEAD of Lychee v3. Which, I can confirm, appears to be broken; I'll fix that. In the meantime, however, I would strongly recommend that you actually do try Lychee-Laravel. We just released version 4 beta 1, which you can find here.
In the non-broken version, clicking on the leftmost eye icon brings up a dialog window where you can make an album public by clicking on the large slider.
Also, in the future, please open a new issue rather than adding unrelated comments to issues that are already closed.