text:
build failed in docker with error "An error occurred during the fetch of repository 'go_sdk':"

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.
System information

OS Platform and Distribution (e.g., Linux Ubuntu 18.04):Linux Ubuntu 18.04
Apollo installed from (source or binary):
Apollo version (3.5, 5.0, 5.5, 6.0): 7.0
Output of apollo.sh config if on master branch:

Steps to reproduce the issue:
I got the error info when build the apollo v7.0 in docker, here is the info when run the "./apollo.sh build":
Supporting materials (screenshots, command lines, code/script snippets):
[INFO] Apollo Environment Settings:
[INFO]     APOLLO_ROOT_DIR: /apollo
[INFO]     APOLLO_CACHE_DIR: /apollo/.cache
[INFO]     APOLLO_IN_DOCKER: true
[INFO]     APOLLO_VERSION: master-2022-08-10-0789b7ea1e
[INFO]     DOCKER_IMG: dev-x86_64-18.04-20210914_1336
[INFO]     APOLLO_ENV:  STAGE=dev USE_ESD_CAN=false
[INFO]     USE_GPU: USE_GPU_HOST=1 USE_GPU_TARGET=1
[ OK ] Running GPU build on x86_64 platform.
[WARNING] ESD CAN library supplied by ESD Electronics doesn't exist.
[WARNING] If you need ESD CAN, please refer to:
[WARNING]   third_party/can_card_library/esd_can/README.md
[INFO] Build Overview:
[INFO]     USE_GPU: 1  [ 0 for CPU, 1 for GPU ]
[INFO]     Bazel Options: --config=gpu
[INFO]     Build Targets: //modules/... union //cyber/...
[INFO]     Disabled:      except //modules/drivers/canbus/can_client/esd/...
Starting local Bazel server and connecting to it...
(07:17:47) INFO: Invocation ID: f100c36f-1361-4c49-8abc-04a8a16e1f03
(07:17:47) INFO: Current date is 2022-08-26
(07:20:43) INFO: Repository go_sdk instantiated at:
/apollo/WORKSPACE:74:16: in
/apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/com_github_grpc_grpc/bazel/grpc_extra_deps.bzl:36:27: in grpc_extra_deps
/apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/io_bazel_rules_go/go/toolchain/toolchains.bzl:379:28: in go_register_toolchains
/apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/io_bazel_rules_go/go/private/sdk.bzl:65:21: in go_download_sdk
Repository rule _go_download_sdk defined at:
/apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/io_bazel_rules_go/go/private/sdk.bzl:53:35: in
(07:20:44) WARNING: Download from https://dl.google.com/go/go1.12.5.linux-amd64.tar.gz failed: class javax.net.ssl.SSLException Read timed out
(07:20:44) ERROR: An error occurred during the fetch of repository 'go_sdk':
Traceback (most recent call last):
File "/apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/io_bazel_rules_go/go/private/sdk.bzl", line 51, column 16, in _go_download_sdk_impl
_remote_sdk(ctx, [url.format(filename) for url in ctx.attr.urls], ctx.attr.strip_prefix, sha256)
File "/apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/io_bazel_rules_go/go/private/sdk.bzl", line 121, column 21, in _remote_sdk
ctx.download(
Error in download: java.io.IOException: Error downloading [https://dl.google.com/go/go1.12.5.linux-amd64.tar.gz] to /apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/go_sdk/go_sdk.tar.gz: Read timed out
(07:20:44) ERROR: Analysis of target '//modules/v2x/common:v2x_proxy_gflags' failed; build aborted: java.io.IOException: Error downloading [https://dl.google.com/go/go1.12.5.linux-amd64.tar.gz] to /apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/go_sdk/go_sdk.tar.gz: Read timed out
(07:20:44) INFO: Elapsed time: 177.616s
(07:20:44) INFO: 0 processes.
(07:20:44) FAILED: Build did NOT complete successfully (606 packages loaded, 6337 targets configured)

The error means you can't download
Error downloading [https://dl.google.com/go/go1.12.5.linux-amd64.tar.gz] to /apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/go_sdk/go_sdk.tar.gz

solution

add below code in tools/bazel.rc

build --distdir=path/to/directory

download the file https://dl.google.com/go/go1.12.5.linux-amd64.tar.gz somehow, put it into

path/to/directory

do the build again

Hello, why can't i found the path  /apollo/.cache/distdir ? I can't find the .cache

Thank u so so so so much ! good bro !!!!

reason
The error means you can't download, In most cases this is caused by network inaccessibility
Error downloading [https://dl.google.com/go/go1.12.5.linux-amd64.tar.gz] to /apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/go_sdk/go_sdk.tar.gz

solution

add below code in tools/bazel.rc

build --distdir=/apollo/.cache/distdir

download the file https://dl.google.com/go/go1.12.5.linux-amd64.tar.gz somehow, put it into

/apollo/.cache/distdir

do the build again

Thank u so so so so much ! good bro !!!!

authors: WanRQ daohu527 greydog-yang wlxxi


text:
Planning: fix bug in lane borrow

at the middle of lane borrowing, adc will get into self_lane

IDG-Apollo-4513

source: gharchive/pull-request

repo: ApolloAuto/apollo

license_type: permissive

license_source: bigquery


text:
provide a polyfill

IntersectionObserver is high version api https://caniuse.com/#search=IntersectionObserver. I think we can provide a polyfill version. what do you think?

The wiki recommends a polyfill:
https://github.com/ApoorvSaxena/lozad.js/wiki/Frequently-Asked-Questions#how-to-support-browsers-in-which-intersectionobserver-is-not-supported

nice! that is my fault! thx @styfle

source: gharchive/issue

authors: stephenkingsley styfle

license: mit


text:
Only accept direct child imgs when determing If picture is loaded

Otherwise it won't work If the picture element has a fallback img inside of a script tag (the img in the script tag is selected and no new img element is appended to the picture element).
This fix is needed when dynamically adding picture elements with fallback img in a noscript tag.

Maybe this can also be fixed with a call to isLoaded instead.

@RevisionTen can you please share a codepen example where the existing implementation fails?

@ApoorvSaxena Sure, heres an example where it fails with an img inside a noscript:
https://jsfiddle.net/k4bzp596/
Heres the same code but without the noscript fallback img:
https://jsfiddle.net/7L9qzfwk/

authors: ApoorvSaxena RevisionTen


text:
onInstallConversionData dosen't return onAppOpenAttribution when mounting

I get a success callback from onInstallConversionData every time opening the app. I can get both callbacks of type  onInstallConversionDataLoaded and onAppOpenAttribution.
But I don't get the  onAppOpenAttribution  when mounting the app for the first time even if I pressed a referal-link.
If I have the app running in background and pressing the referallink I get an onAppOpenAttribution callback. If I open the app with the link and then open it from the background I get the onAppOpenAttribution when opening from background.
Do you now if this is how it suppose to be?

hey @katjastrof , are we talking about Android or iOS (+ OS version)? also please provide relevant code snippets of integration with AppsFlyer SDK.
Thank you,

I'm using Android. I'm using the react-native-appsflyer 1.2.13 and the Android OS I've tested on is 7 and 8.
  appsFlyer.onInstallConversionData(result => {       if (         result.status == 'success'       ) {         console.log(result)       }     })     const options = {       devKey: AF_DEV_KEY,       isDebug: true,     }     appsFlyer.initSdk(       options,       result => {         console.log(result)       },       error => {         console.error(error)       }     )
It's the appsFlyer.onInstallConversionData(result => {}) which gives a success callback when opening app. But the result type differs between being an  onInstallConversionDataLoaded  and onAppOpenAttribution.   The problem I have is when I mounting the app from an referal link I get the type  onInstallConversionDataLoaded . If I put the app in background and reopen it I get the onAppOpenAttribution.  If I have the app running from start in background and open from the same referallink I get onAppOpenAttribution directly.

I'm also experiencing this issue. When clicking a deeplink, onInstallDataLoaded event is consistently fired on launch/foreground, but onAppOpenAttribution only seems to be fired when the app is already running in the background prior to deeplink click, and NOT if the app is started up fresh. Also can confirm that backgrounding/foregrounding does then trigger onAppOpenAttribution in the fresh launch case. I have reproduced this behavior on both Android and iOS. Has anyone figured out a resolution or work-around for this?
Here's my implementation along with some log outputs for the various cases:
https://gist.github.com/bfinamore/a5e5c2f94861b7d49ee5f05f91223ae0

@af-fess is there any update on v1.4.0?

@santiph we have a fix on the native side of SDK. So we are going to release Android 4.8.20 and next after - RN 1.4.0.
We already tested it with the beta version and everything works as expected.
Thank you,

@katjastrof we tested a staging version, so far you can try this branch:
$ react-native install https://github.com/AppsFlyerSDK/react-native-appsflyer#dev/RD-16299/deeplink-oaoa-fix

#71 solved, https://github.com/AppsFlyerSDK/react-native-appsflyer/blob/master/CHANGELOG.md

I am not sure if it's solved I am facing that issue already:
When the app is already installed I get a succesful callback from onAppOpenAtrtribution method but if I do the test mentioned here there's no callback: https://support.appsflyer.com/hc/en-us/articles/208874366-OneLink-Deep-Linking-Guide#urls-testing-testing-deferred-deep-linking-for-scheme-uris. Which basically consists on uninstalling the app click the deep link and launch the app from the simulator.
DeepLink: https://goin.onelink.me/xcGq/1977c4de
react-native-appsflyer: 1.4.1
react-native: 0.55.4

This is happening on android sdk as well, and I believe they don't have fix for it yet.

authors: af-fess aznj bfinamore katjastrof santiph tete7

repo: AppsFlyerSDK/react-native-appsflyer


text:
Token formatting issue

Perhaps I'm doing something wrong, or perceiving the capabilities of the plugin incorrectly, but as far as I can tell, thats not the case.
As I try to format the date tokens, everytime I change one of the tokens from numerical to string, or change the numerical minimal length, every other token gets reset. As it stands, it seems I can only configure one date. The same issue happens in Advanced Mode as it asks me to update
Currently trying to establish a simple era-year-month-day. Where ideally it would end up displaying as "Era Name"(as string): "day"(number) "Month"(string) "Year"(number) where minimal number would be 1.

Hey @maravone, thank you for taking the time to report this
Do you have any more details ?
A screen recording of you going trough the settings and trying to get it to work would be perfect. I can't reproduce the token configurations resseting myself, so I'm quite curious as too how it goes down for you.

or perceiving the capabilities of the plugin incorrectl
No you're all good, the plugin should be able to be configured in the way you're trying to. with a little bit more info on what exactly is happening I'm sure I could help you

Of course, here you go:

In the meantime, I was able to circumvent the issue by just configuring everything through the Advanced mode menu, defining each token in time, closing the menu, opening it again for each time.

Hey @maravone I believe this was fixed in a subsequent release, not sure when but: I tried to reproduce this and just could not
If you still have this issue I'll reopen this ticket

authors: April-Gras maravone

repo: April-Gras/obsidian-auto-timelines

license: MIT

license_source: github-api


text:
Rewrite code generation to javapoet

[x] Rewrite ViewStateProviderClassGenerator
[x] Rewrite ViewStateClassGenerator
[x] Rewrite PresenterBinderClassGenerator
[x] Rewrite MoxyReflectorGenerator
[x] Pass javapoet classes for type names to MoxyReflectorGenerator
[x] Remove ClassGeneratingParams and change it to JavaFile from javapoet

status?

Hi @Macarse great job! Currently I think how to test this very big PR %) Have you any ideas?)

@senneco I didn't do the work

@senneco it's not real by writing tests using comparing input with expected input, because javapoet has another formatting style. We have only one chance by comparing bytecode of input and expected input

@Macarse ouch =) @ekursakov great job! Currently I'm thinking how to test this very big PR %) Have you any ideas?)
I can't approve PR without any guaranties that this code works correctly =(

Hi! Sorry for my long absence, I did't have enough time to return to this PR.
As for tests I think that they should compare compiler output with excepted result.
Assertions from google compile-testing are parsing source code and comparing AST only. So formatting won't be a problem.
I will try to write some tests in the coming days and I'll update PR.

I created some tests for moxy compiler in separate PR: https://github.com/Arello-Mobile/Moxy/pull/170.
Generated files compared in bytecode so tests should work both with old and new compiler.

Hi @ekursakov!
I planned to make more tests before apply this PR. But I haven't time =( Could you make more test? We need those:

More generics tests (generic classes, generic methods, wildcards, etc)
Command's strategies joining between view interface extensions.

If you need, I can explain these points.
Hope for you have ability to make it =)

I wrote some more compiler tests in #190 and discovered some bugs in this implementation :) So will try to fix it in near future.

@ekursakov great job! So now this implementation still have some bugs and doesn't ready for release?

@xanderblinov Forgot to write, I fixed bugs which discovered by tests from #190, now it passes all tests as well as old moxy-compiler (#181 still needs to be fixed separately).
Of course there may still be bugs with complex cases, but on example apps it works fine.

authors: Macarse ekursakov senneco xanderblinov

repo: Arello-Mobile/Moxy


text:
网络断开后恢复，下载的apk会无法安装

网络原因导致下载任务暂停，连接网络后，任务继续。如果多次出现这种情况，下载 的apk大概率出现无法安装的情况

这可能是多次断网后导致某几个byte字节出错了，这你可以在onTaskComplete中进行文件md5码验证，验证不通过，再对任务进行失败处理（重下货其它操作）

是的 已经按照这个方式修改了  但是后续还是要继续看到底是什么原因导致的下载失败，毕竟重新下 也还是会影响体验嘛

Aria.get(this).getErrorLog()

使用这代码可以获取到下载过程中遇到的错误

有什么方法是可以调用了以后  直接重新下载一个任务的嘛？

有个接口，重新下载任务
Aria.download(this).load(url).reStart();

authors: AriaLyy rangerTao

repo: AriaLyy/Aria


text:
Colorize warning message

Colorize warning message while REPL.

Red?
Yellow?

#25

repo: ArkArk/d-prolog


text:
This prevents other apps to be hidden using command+h when Ark is open

There is actually no need for it, electron should have command+h working by default on the app.
https://github.com/ArkEcosystem/ark-desktop/blob/e9b320b53360b279cd199b93c1055653f8441d42/main.js#L288

This seems related to #69. I suspect cmd+h wasn't working, as it wouldn't have been added otherwise 🤔

Well, someone should dig deeper but blocking system wide cmd+h to have it work in Ark is a terrible workaround 🤣

I would do it but I don't have time, if someone wants to do it, here's how it should be done.
Basically, you need different app menu for macOS (darwin). With these as the first menu:
{
    label: app.getName(),
    submenu: [
      {role: 'about'},
      {type: 'separator'},
      {role: 'services', submenu: []},
      {type: 'separator'},
      {role: 'hide'},
      {role: 'hideothers'},
      {role: 'unhide'},
      {type: 'separator'},
      {role: 'quit'}
    ]
  }

authors: alexbarnsley gabrielbull

repo: ArkEcosystem/ark-desktop


text:
possible bug for later on. I know it's work in progress but shouldnt'…

… the balance condition like this

lol true
+5

authors: fix kristjank

repo: ArkEcosystem/ark-java


text:
🛑 Armada Yazılım is down

In e039c86, Armada Yazılım (https://armadayazilim.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Armada Yazılım is back up in 927b354 after 9 minutes.

repo: ArmadaSoftware/status


text:
Old targets for Linux users

Targets on Windows:

Targets on Linux (Ubuntu 21.04) even with some errors on the start:

All launchings had the same code via Docker:
docker run ghcr.io/arriven/db1000n

Could you please run the command:
docker inspect ghcr.io/arriven/db1000n

on both Windows and Linux?
Errors on the 2nd screenshot seems related to DNS issues on the host

Linux:
uladzislau@y700-linux-server:~/russia_ddos$ sudo docker inspect ghcr.io/arriven/db1000n
[
    {
        "Id": "sha256:134226e0a48ec1978d2f5156ca807e36ceba24478c8a6396c5e581638641da22",
        "RepoTags": [
            "ghcr.io/arriven/db1000n:latest",
            "ghcr.io/arriven/db1000n:v0.5.12"
        ],
        "RepoDigests": [
            "ghcr.io/arriven/db1000n@sha256:a4c97d8fcad1a458b326cbd6a64f93c68700d2d84114020123c8e036de65abed"
        ],
        "Parent": "",
        "Comment": "buildkit.dockerfile.v0",
        "Created": "2022-03-04T11:58:14.212473024Z",
        "Container": "",
        "ContainerConfig": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": null,
            "Cmd": null,
            "Image": "",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": null
        },
        "DockerVersion": "",
        "Author": "",
        "Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
            ],
            "Cmd": [
                "./main"
            ],
            "ArgsEscaped": true,
            "Image": "",
            "Volumes": null,
            "WorkingDir": "/usr/src/app",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {
                "org.opencontainers.image.created": "2022-03-04T11:57:20.056Z",
                "org.opencontainers.image.description": "",
                "org.opencontainers.image.licenses": "",
                "org.opencontainers.image.revision": "dbd699e149503e2bbde8f7f18beda47d72e31d38",
                "org.opencontainers.image.source": "https://github.com/Arriven/db1000n",
                "org.opencontainers.image.title": "db1000n",
                "org.opencontainers.image.url": "https://github.com/Arriven/db1000n",
                "org.opencontainers.image.version": "v0.5.12"
            }
        },
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 16851775,
        "VirtualSize": 16851775,
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/snap/docker/common/var-lib-docker/overlay2/f7706dd30807485951a910dfeea2ba624d907a6c0c7bdedeccdbf2e15eb5f1e3/diff:/var/snap/docker/common/var-lib-docker/overlay2/df9951cba8440a71f361f175e651f46e684401eda1d3c54b56aadfd30ebc3f03/diff",
                "MergedDir": "/var/snap/docker/common/var-lib-docker/overlay2/31b395ae9e19c41e6d5a3a13dddf24febbe6a69712643bcee2f5c5c0e1ebbf5a/merged",
                "UpperDir": "/var/snap/docker/common/var-lib-docker/overlay2/31b395ae9e19c41e6d5a3a13dddf24febbe6a69712643bcee2f5c5c0e1ebbf5a/diff",
                "WorkDir": "/var/snap/docker/common/var-lib-docker/overlay2/31b395ae9e19c41e6d5a3a13dddf24febbe6a69712643bcee2f5c5c0e1ebbf5a/work"
            },
            "Name": "overlay2"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:5216338b40a7b96416b8b9858974bbe4acc3096ee60acbc4dfb1ee02aecceb10",
                "sha256:e7dfc82f346b779fe62d2a1468f622e1ece8d7fe98c62e19ab56919ab600b756",
                "sha256:d9e74104b05ac21868f1c8edf5686a3c2847ed05e638de5fb4ce62b8b0dc0d95"
            ]
        },
        "Metadata": {
            "LastTagTime": "0001-01-01T00:00:00Z"
        }
    }
]

Windows:
C:\Users\Vladislove>docker inspect ghcr.io/arriven/db1000n
[
    {
        "Id": "sha256:134226e0a48ec1978d2f5156ca807e36ceba24478c8a6396c5e581638641da22",
        "RepoTags": [
            "ghcr.io/arriven/db1000n:latest"
        ],
        "RepoDigests": [
            "ghcr.io/arriven/db1000n@sha256:a4c97d8fcad1a458b326cbd6a64f93c68700d2d84114020123c8e036de65abed"
        ],
        "Parent": "",
        "Comment": "buildkit.dockerfile.v0",
        "Created": "2022-03-04T11:58:14.212473024Z",
        "Container": "",
        "ContainerConfig": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": null,
            "Cmd": null,
            "Image": "",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": null
        },
        "DockerVersion": "",
        "Author": "",
        "Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
            ],
            "Cmd": [
                "./main"
            ],
            "ArgsEscaped": true,
            "Image": "",
            "Volumes": null,
            "WorkingDir": "/usr/src/app",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {
                "org.opencontainers.image.created": "2022-03-04T11:57:20.056Z",
                "org.opencontainers.image.description": "",
                "org.opencontainers.image.licenses": "",
                "org.opencontainers.image.revision": "dbd699e149503e2bbde8f7f18beda47d72e31d38",
                "org.opencontainers.image.source": "https://github.com/Arriven/db1000n",
                "org.opencontainers.image.title": "db1000n",
                "org.opencontainers.image.url": "https://github.com/Arriven/db1000n",
                "org.opencontainers.image.version": "v0.5.12"
            }
        },
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 16851775,
        "VirtualSize": 16851775,
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/bf2b5d61fac70b5aa7908d51f9760e542e3d45e15bde5127f5f9e6238e95fa51/diff:/var/lib/docker/overlay2/b5ae70e9e6f123d99a15f99d537290af3cdbd2465b0b44702105d0b32e14741c/diff",
                "MergedDir": "/var/lib/docker/overlay2/0378bb19133b4734510d7496eff46e7ab0a80765ac2c0d7d1fc5584a73cc8e95/merged",
                "UpperDir": "/var/lib/docker/overlay2/0378bb19133b4734510d7496eff46e7ab0a80765ac2c0d7d1fc5584a73cc8e95/diff",
                "WorkDir": "/var/lib/docker/overlay2/0378bb19133b4734510d7496eff46e7ab0a80765ac2c0d7d1fc5584a73cc8e95/work"
            },
            "Name": "overlay2"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:5216338b40a7b96416b8b9858974bbe4acc3096ee60acbc4dfb1ee02aecceb10",
                "sha256:e7dfc82f346b779fe62d2a1468f622e1ece8d7fe98c62e19ab56919ab600b756",
                "sha256:d9e74104b05ac21868f1c8edf5686a3c2847ed05e638de5fb4ce62b8b0dc0d95"
            ]
        },
        "Metadata": {
            "LastTagTime": "0001-01-01T00:00:00Z"
        }
    }
]

@Amet13 after last update (0.5.15) works fine
Thank you :)


text:
Add index.html

Please

...


text:
Not working with Laravel < v5.1.1

I have been using this package for about an year now and am very pleased with how easily it manages modules in a project.
But, I am still using my project with Laravel 5.1.1 and recently noticed (when doing some composer updates) that it was throwing the following error. http://imgur.com/iAUlGSC
So, is there anyway I can get over this issue or it no longer supports Laravel less than v5.1.1?
Any help is much appreciated.
Thanks in advance.

I'm currently at work but I'll take a look in a few hours.
In the meantime you could change your composer.json from "artem-schander/l5-modular": "dev-master" to the version you're using now.

I did that but seems there is no support for Laravel v5.1.1-v5.1.5 :
http://imgur.com/a/rtBq3
Thanks again for the reply.

Which version do you run?
And why do you don't update to 5.1.46?

I've updated the composer.json so you should be able to to update on dev-master your > L5.1 projects.
Bacause my module generator extends the Illuminate/Console/GeneratorCommand it would not work correctly with lower version than 5.1

Thanks for the commit. It's working a like a charm now.

authors: Artem-Schander bkkrishna


text:
TypeError when running notebook 09_schoonhoven

When I run the cell with code:
bgt = nlmod.gwf.surface_water.add_stages_from_waterboards(bgt, pg=pg)
I get this error
TypeError: unhashable type: 'Polygon'
Full error:
Adding ['summer_stage', 'winter_stage'] from De Stichtse Rijnlanden:   0%|                     | 0/523 [00:00<?, ?it/s]
WARNING:py.warnings:C:\Users\oebbe\anaconda3\envs\nlmod\lib\site-packages\pandas\core\dtypes\cast.py:1983: ShapelyDeprecationWarning: __len__ for multi-part geometries is deprecated and will be removed in Shapely 2.0. Check the length of the `geoms` property instead to get the  number of parts of a multi-part geometry.
  result[:] = values

WARNING:py.warnings:C:\Users\oebbe\anaconda3\envs\nlmod\lib\site-packages\pandas\core\common.py:241: ShapelyDeprecationWarning: __len__ for multi-part geometries is deprecated and will be removed in Shapely 2.0. Check the length of the `geoms` property instead to get the  number of parts of a multi-part geometry.
  result = np.asarray(values, dtype=dtype)

WARNING:py.warnings:C:\Users\oebbe\anaconda3\envs\nlmod\lib\site-packages\pandas\core\common.py:241: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
  result = np.asarray(values, dtype=dtype)

Adding ['summer_stage', 'winter_stage'] from De Stichtse Rijnlanden:   0%|                     | 0/523 [00:00<?, ?it/s]
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_23540\2472415811.py in <cell line: 1>()
----> 1 bgt = nlmod.gwf.surface_water.add_stages_from_waterboards(bgt, pg=pg)

c:\users\oebbe\02_python\nlmod\nlmod\gwf\surface_water.py in add_stages_from_waterboards(gdf, pg, extent, columns, config)
    616     for wb in pg.keys():
    617         mask = gdf["bronhouder"] == config[wb]["bgt_code"]
--> 618         gdf[mask] = add_info_to_gdf(
    619             pg[wb],
    620             gdf[mask],

c:\users\oebbe\02_python\nlmod\nlmod\gwf\surface_water.py in add_info_to_gdf(gdf_from, gdf_to, columns, desc, silent, min_total_overlap, geom_type)
    511         if len(inds) == 0:
    512             continue
--> 513         overlap = gdf_from.geometry[inds].intersection(geom_to)
    514         if geom_type is None:
    515             geom_type = overlap.geom_type.iloc[0]

~\anaconda3\envs\nlmod\lib\site-packages\geopandas\geoseries.py in __getitem__(self, key)
    625
    626     def __getitem__(self, key):
--> 627         return self._wrapped_pandas_method("__getitem__", key)
    628
    629     @doc(pd.Series)

~\anaconda3\envs\nlmod\lib\site-packages\geopandas\geoseries.py in _wrapped_pandas_method(self, mtd, *args, **kwargs)
    618     def _wrapped_pandas_method(self, mtd, *args, **kwargs):
    619         """Wrap a generic pandas method to ensure it returns a GeoSeries"""
--> 620         val = getattr(super(), mtd)(*args, **kwargs)
    621         if type(val) == Series:
    622             val.__class__ = GeoSeries

~\anaconda3\envs\nlmod\lib\site-packages\pandas\core\series.py in __getitem__(self, key)
    982             return self._get_values(key)
    983
--> 984         return self._get_with(key)
    985
    986     def _get_with(self, key):

~\anaconda3\envs\nlmod\lib\site-packages\pandas\core\series.py in _get_with(self, key)
   1022
   1023         # handle the dup indexing case GH#4246
-> 1024         return self.loc[key]
   1025
   1026     def _get_values_tuple(self, key):

~\anaconda3\envs\nlmod\lib\site-packages\pandas\core\indexing.py in __getitem__(self, key)
    965
    966             maybe_callable = com.apply_if_callable(key, self.obj)
--> 967             return self._getitem_axis(maybe_callable, axis=axis)
    968
    969     def _is_scalar_access(self, key: tuple):

~\anaconda3\envs\nlmod\lib\site-packages\pandas\core\indexing.py in _getitem_axis(self, key, axis)
   1189                     raise ValueError("Cannot index with multidimensional key")
   1190
-> 1191                 return self._getitem_iterable(key, axis=axis)
   1192
   1193             # nested tuple slicing

~\anaconda3\envs\nlmod\lib\site-packages\pandas\core\indexing.py in _getitem_iterable(self, key, axis)
   1130
   1131         # A collection of keys
-> 1132         keyarr, indexer = self._get_listlike_indexer(key, axis)
   1133         return self.obj._reindex_with_indexers(
   1134             {axis: [keyarr, indexer]}, copy=True, allow_dups=True

~\anaconda3\envs\nlmod\lib\site-packages\pandas\core\indexing.py in _get_listlike_indexer(self, key, axis)
   1325         axis_name = self.obj._get_axis_name(axis)
   1326
-> 1327         keyarr, indexer = ax._get_indexer_strict(key, axis_name)
   1328
   1329         return keyarr, indexer

~\anaconda3\envs\nlmod\lib\site-packages\pandas\core\indexes\base.py in _get_indexer_strict(self, key, axis_name)
   5775
   5776         if self._index_as_unique:
-> 5777             indexer = self.get_indexer_for(keyarr)
   5778             keyarr = self.reindex(keyarr)[0]
   5779         else:

~\anaconda3\envs\nlmod\lib\site-packages\pandas\core\indexes\base.py in get_indexer_for(self, target)
   5762         """
   5763         if self._index_as_unique:
-> 5764             return self.get_indexer(target)
   5765         indexer, _ = self.get_indexer_non_unique(target)
   5766         return indexer

~\anaconda3\envs\nlmod\lib\site-packages\pandas\core\indexes\base.py in get_indexer(self, target, method, limit, tolerance)
   3782             )
   3783
-> 3784         return self._get_indexer(target, method, limit, tolerance)
   3785
   3786     def _get_indexer(

~\anaconda3\envs\nlmod\lib\site-packages\pandas\core\indexes\base.py in _get_indexer(self, target, method, limit, tolerance)
   3807                 )
   3808
-> 3809             indexer = self._engine.get_indexer(tgt_values)
   3810
   3811         return ensure_platform_int(indexer)

~\anaconda3\envs\nlmod\lib\site-packages\pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_indexer()

pandas\_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.lookup()

TypeError: unhashable type: 'Polygon'

I cannot reproduce the error. Can you display the versions of pandas, geopandas and shapely?

I have these versions:
pandas: 1.4.3
geopandas: 0.11.1
shapely: 1.8.5.post1 (which seems a bit of a weird version).
I will first try to update them and see if that helps

Upgrading shapely fixed this. I even saw it is a requirement of nlmod so sorry for this issue

authors: OnnoEbbens rubencalje

repo: ArtesiaWater/nlmod


text:
Maybe should not ignore the http response

In function RegisterInstance in file post.go, it ignore the post response here. But sometimes the http response error is void and status code is not ok. Maybe we should check status code here:)

somebody here?

@difficultwork I also needed this thing and forked repo as a result. It's not a drop-in replacement for this one, but it's pretty close to the original

authors: difficultwork maxfilov

repo: ArthurHlt/go-eureka-client


text:
Work order column cells are empty

Closing due to inactivity

authors: allermand asbjornh


text:
Added tests for border polygon

Added new test for border polygon.
Fixed some issues with search bar tests.

Search results from APIs seems to be sorted differently and in a random manner, hence test passing today could fail tomorrow... Therefore, test needed to be changed to avoid this behavior.

Test den: https://okologiskegrunnkart.test.artsdatabanken.no/pr/441

Test den: https://okologiskegrunnkart.test.artsdatabanken.no/pr/441

authors: artsdatabank kepatinin

repo: Artsdatabanken/okologiskegrunnkart


text:
Creating Merge Sort In Python

Please search if an issue has already be placed before adding another issue.
If you want to add an algorithm to the repository.
Please include the following in the issue.
Title:
Algorithm (Language)
Body:
Include the specific variant of the algorithm you want to add.
Are you working on this? - Yes/No
(If you are going to work on the issue yourself, make sure you comment on the issue to let others know.
We do not want multiple people to be working in the same issue without notice.)

Duplicate of #204

repo: Asiatik/codezilla


text:
Transcriber Unable To Transcribe from a Downloaded Youtube URL

I followed this guide for using yt-dlp to extract a publicly accessible url from a Youtube video, then transcribe it.
When calling transcriber.transcribe() on this url, then access the text property, I got None.
Steps to reproduce it:

Install yt-dlp
Run the following script:

import yt_dlp
import assemblyai as aai

URL = 'https://www.youtube.com/watch?v=wtolixa9XTg'

with yt_dlp.YoutubeDL() as ydl:
    info = ydl.extract_info(URL, download=False)

for format in info["formats"][::-1]:
  if format["resolution"] == "audio only" and format["ext"] == "m4a":
    url = format["url"]
    break

print(url)

aai.settings.api_key = "3126406c5a83450b8cdd5b5eb19845b0"
transcriber = aai.Transcriber()
transcript = transcriber.transcribe(url)
print(transcript.text)

You should get None in the output for transcript.text.

The same thing happens when I use AssemblyAI's Javascript SDK, but the message was more detailed:

Download error, unable to download ... Please make sure the file exists and is accessible from the internet.

But the url passed to Transcriber is indeed publicly accessible.
Given that the guide was last updated a year ago, was there a change in Transcriber that makes it unable to read a publicly available file on googlevideo.com domain?

Hey @bytrangle - we don't recommend this approach of transcribing YouTube videos as these URLs are throttled.

I'll work on removing this section of the guide!

Hello @m-ods . Thanks for getting back. Consider that the guide to transcribing Youtube videos is the most popular article from the Cookbooks page, will you include a different approach to transcribing or remove the guide altogether?

Hey @bytrangle - you can still use options 1 and 2 if you'd like! I've gone ahead and put in a PR to remove option 3

authors: bytrangle m-ods

repo: AssemblyAI/cookbook


text:
🛑 Minecraft Profile Services (Microsoft) is down

In aa75128, Minecraft Profile Services (Microsoft) (https://api.minecraftservices.com/minecraft/profile) was down:

HTTP code: 429
Response time: 19 ms

Resolved: Minecraft Profile Services (Microsoft) is back up in 196672c after 14 minutes.


text:
Walk-Through Mode not selecting Citizens

In Walk-Through Mode, targets appear to be only vehicles. (possibly introduced by 6e573f97dbb797c976790d5ed7ff83ab33232eb9)

fixed by e21e68f7fab134781101855cc9028c02d43c3507


text:
removed RecoveryStarted and Completed messages due to un-needed

Due to new changes in the api (updatestate) we don't need to send messages for recoverystarted and recoverycompleted anymore.

Forgot to remove the messagetypes and cleanup example. Im gonna fix that when im home again.

Do we not need them now? Can an actor receive new messages during recovery?

No the actor gets its first message (Started) after the recovery is finished.

Updated PR with some more missing cleanups in first commit.

I'm a bit confused as to why the recent change has meant these events now need deleting - is it just that they are not useful / needed? The recent API change was from await ReceiveAsync to _actor.UpdateState, both being an essentially synchronous workflow, so I'm confused why this has affected RecoveryStarted and RecoveryCompleted

That's because RecoveryStarted/RecoveryCompleted used ReceiveAsync method and that messed up the context so the actor never got the "Started" message upon startup. They aren't needed since when the recover starts UpdateState is called with recovery data and awaited, then Startup gets passed to the actor and it should then have started with the "last state" it had upon shutdown/crash/earhquake.

Ahh.. ok thanks for the explanation!

authors: raskolnikoov tomliversidge

repo: AsynkronIT/protoactor-dotnet


text:
Some tools won’t open

I tried installing default one and hardened kernel image and both times these apps refuse to open powersploit,payloadsallthethings,Fuzzdb,SeclistsMimikatz,securitywordlists and a few others . Is there something that I can do to fix this

I tried installing default one and hardened kernel image and both times these apps refuse to open powersploit,payloadsallthethings,Fuzzdb,SeclistsMimikatz,securitywordlists and a few others . Is there something that I can do to fix this

Hey @Kushy420 Remember that on Athena, for optimizing disk space, when you access the first time to a resource, it asks you for installing/downloading the resource itself. Are you connected to Internet?
If you wish, reach me on Discord (link on main GitHub page) so we can give a look together.

Theme is not installing.
How do i install it?
tnx :)

repo: Athena-OS/athena-iso


text:
Is noise output identical across platforms?

Just wondering, if I usan identical node graph with the same settings to generate noise, will the results be bit-for-bit identical across supported platforms and compilers, no matter which instruction set is chosen? Thanks.
edit: in case it wasn't clear, I'm asking specifically about the C++ version only, i.e. different architectures/compilers/instruction sets, rather than any ports to other languages.

It's not bit for bit identical, there will be some minute floating point error level differences. Although I'm working towards having an optional mode that is bit identical with some performance sacrifice

authors: Auburn grandseiken


text:
Add method to concatenate key-presses to results box

Clear leading zero if the key press is anything other than the decimal character (".")
Test drive changes using XUnit

 Concatenation Logic

repo: Audiosyncrasy/calculator


text:
Refresh needed for update

Frozen Funds doesnt update after a trade unless i refresh the pg

fixed - closing

repo: AugurProject/augur


text:
Rectangular boxes appearing next to outcomes

Create a multiple choice market and add multiple outcomes (using add more) boxes appear next to outcomes on trading pg....
see screenshot

I dont see the squares

Are you on V2 or local?

fixed - clsoing


text:
Show account initialization notice in PT, reporting and disputing modals.

Only show initialize wallet alert/bell notification when user is specifically initializing a wallet. Not when initialization happens as part of other transaction.
Decided to show notIce banner for purchasing participation tokens, reporting and disputing. These use estimate gas calls and will show a high transaction fee.

All looks good. closing

authors: andrewdamelio matt-bullock


text:
Can't open a directory in iCloud

Description
Can't open a directory in iCloud
To Reproduce
Open Directory
Expected behavior
Open project
Version information
Aurora Editor: 1.0 (1)
Commit: beed1611e276c790fd467d583356b8c21a34485a
MacOS: 14.1.1 (23B81)
Xcode: 15.0.1 (15A507)
Additional context
No response

Thanks for submitting a issue!
to assign this issue to yourself please comment @aurora-care-bear please assign me

repo: AuroraEditor/AuroraEditor


text:
Make Preferences window resizable so that user can see all of contents.

Description

We need more preference window size to solve this problem https://github.com/AuroraEditor/AuroraEditor/issues/350
Related Issue

#350

Checklist

[x] My changes generate no new warnings
[x] My code builds and runs on my machine
[ ] I documented my code
[ ] I added localization
[ ] I added tests (and they pass)

Screenshots

Before (user can't see of all colors)
After (user can expand window size)

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Nice work, LGTM, i'm unable to test it right now.

Thank you!!

@all-contributors please add @fummicc1 for bugs


text:
Feature/ Add VAction Unit tests

Adds some unit tests for VAction component
Minor formatting fixes in VBreadcrumbs component to be able to commit.

Hmmm, any advice on merge strategy?
Perhaps we should start squash merging?
I didn't realize I was pushing these same commit histories.

Hmmm, any advice on merge strategy?
Perhaps we should start squash merging?
I didn't realize I was pushing these same commit histories.

Yeah, I've been squashing the other ones. Not sure why this one still has the old history.

Yeah, I've been squashing the other ones. Not sure why this one still has the old history.

Have you re-merged from develop since you branched?

Have you re-merged from develop since you branched?

Yeah, I pulled and remerged into my branch. I can see evidence in the bumped version in package.json.
So not sure why. Let me close this and I will figure it out tomorrow.

Yeah, I pulled and remerged into my branch. I can see evidence in the bumped version in package.json.
So not sure why. Let me close this and I will figure it out tomorrow.

authors: AustinGil ontoneio

repo: AustinGil/Vuetensils


text:
[Feat/aut788] - Walkthrough: Targeted flux analysis with GC-MS full-scan Agilent

Objective

Documentation for the tutorials section in RtD
Walkthrough: Targeted flux analysis with GC-MS full-scan Agilent
Docs can be viewed at : https://smartpeak-.readthedocs.io/en/feat-aut788/guide/tutorials.html

Looks very nice! Great screenshots.
Once the CI passes we can merge. Ping me once all of the CI tests pass.

ProgressInfo_test doesn't pass sometimes on windows.

repo: AutoFlowResearch/SmartPeak


text:
Point cloud cropping error

I use the pre-trained model as well as my own point cloud data and then run demo.py. The result is the rear point cloud of the vehicle rather than the front Point Cloud.

I deal this problem


text:
NullReferenceException in Avalonia.Media.MediaContext.CommitCompositor

Describe the bug
NullReference in Avalonia.Media.MediaContext.CommitCompositor:
partial class MediaContext
{
    private bool _scheduleCommitOnLastCompositionBatchCompletion;

    private Batch CommitCompositor(Compositor compositor)
    {
        var commit = compositor.Commit();
        _requestedCommits.Remove(compositor);
        _pendingCompositionBatches[compositor] = commit;
        commit.Processed.ContinueWith(_ =>
            Dispatcher.UIThread.Post(() => CompositionBatchFinished(compositor, commit), DispatcherPriority.Send));
        return commit;
    }

This happens after upgrade from 11.0.0-preview6 to 11.0.0-rc1.1
To Reproduce

Clone https://github.com/arnirichard/visual_neural_networks
Debug project VisualNeuralNetwork and wait until data is loaded
Set "Image processing" to "Stretch" on one side (this may not matter at all)
Press "Next batches"
Exception occurs after some time while the neural network is training (this did not happen in Avalonia 11.0.0-preview6

Expected behavior
No exception should occur
Screenshots

Desktop (please complete the following information):

OS: Windows 11 Pro
Version 11.0.0-rc1.1

It seems this bug only happens in Debug mode.

I can't reproduce this, but looking at your code you have an awful lot of properties that are being set in a view model from a thread that isn't the main UI thread. From my experience avalonia will crash at strange times with stuff like this when you do that.
Try wrapping any call to property setters with Dispatcher.UIThread.Post(() => MyProp = a value) and see if it goes away

Did you wait for a while? It can take 1-2 minutes to happen.
I am not using any StyledProperty, just normal properties with RaisePropertyChanged. I could try to call RaisePropertyChanged in UI thread, but I have always assumed this could be called from worker thread. I will try to experiment with this.

Did you wait for a while? It can take 1-2 minutes to happen.
I did

I am not using any StyledProperty, just normal properties with RaisePropertyChanged. I could try to call RaisePropertyChanged from UI thread, but I have always assumed this could be called from worker thread. I will try to experiment with this.

When you call property changed it causes the avalonia bindings to process the new value, if you change the value again at some point during that processing it seems to crash. I've had it before when changing lists/arrays or updating things in observable collections and not thinking about the multi threaded stuff and it only crashes occasionally

I tried to wrap all RaisePropertyChanged from worker thread into Dispatcher.UIThread.Post and it seems to resolve the issue.
But would think Avalonia should be able to handle it, but maybe it is difficult to do.
Thanks for the help.

No actually this is still happening.
I have committed my changes, and increase the run to 100.000 batches.
When I run this, the error will happen within 1, or sometimes few, minutes.

Duplicate of #11603.
Can you please try latest nightly builds? It should already be fixed there.

Thanks, fixed now.

authors: MrJul almightyju arnirichard

repo: AvaloniaUI/Avalonia


text:
ListBox in Multiple Selection mode uses wrong hotkeys on Mac OS

Describe the bug
Currently in multi-select listbox picking separate items requires pressing ctrl + mouse click like in windows. This is wrong because common behavior for lists in mac is Command + click, Ctrl+click is used for context menu.
To Reproduce
Create any listbox with SelectionMode = Multiple
Expected behavior
In MacOs SelectionMode.Multiple performed with Command+Click
Desktop (please complete the following information):

OS: Mac
Version Any

@Takoooooo

@HermanKirshin Have you tried it on 0.10.18? I have fixed this issue recently
https://github.com/AvaloniaUI/Avalonia/pull/8637

@Takoooooo Yes, works fine in 0.10.18. I have missed the new release

authors: HermanKirshin Takoooooo maxkatz6


text:
DefaultValueConverter assumes that assigning null to a value means resetting it to default

Describe the bug
DefaultValueConverter executes by default on all bindings. When value is null and targetType is a reference type, it returns AvaloniaProperty.UnsetValue. This value is a special object which indicates that the local value of an AvaloniaProperty should be cleared, rather than a new local value being set.
While most of the time the default value of a reference type value is indeed null, this is not always the case. A property can have a singleton reference object as its default value, for example. It could also be a Nullable<T> property (a reference type) with a default value that is not null, e.g. (bool?)false.
In both of the cases above the property can never be set to null, because the converter insists on converting that to UnsetValue, thus causing the property's default value to become effective instead.
To Reproduce
Add this test to DefaultValueConverterTests:
[Fact]
public void Does_Not_Convert_Null_For_Nullable()
{
    var result = DefaultValueConverter.Instance.Convert(
        null,
        typeof(double?),
        null,
        CultureInfo.InvariantCulture);

    Assert.Equal(null, result);
}

The test will fail because result is AvaloniaProperty.UnsetValue, not null.
Expected behavior
The test should pass. Setting a nullable value to null is a valid operation.
UnsetValue should be applied only after checking that the value being set is the same as the default value of the AvaloniaProperty.
Desktop (please complete the following information):

OS: Windows 10
Version 11 preview 4

Removing the UnsetValue return statement causes two tests to fail:

BindingExpressionTests.Should_Coerce_Get_Null_Double_String_To_UnsetValue
BindingExpressionTests.Should_Coerce_Setting_Null_Double_To_Default_Value

These tests were added all the way back in 2015! See 16825ac45e1d4b55ebc101d5af9df87fd638cb4b.


text:
Implement Dispatcher.UnhandledException and Dispatcher.UnhandledExceptionFilter

How was the solution implemented (if it's not obvious)?
Implements both Dispatcher.UnhandledException and Dispatcher.UnhandledExceptionFilter, by copypasting error handling logic from WPF. And adjusting DispatcherOperation logic in Avalonia.
The same as in WPF, this feature is not recommended for general use. Major nuances:

Many Avalonia events needs to be wrapped into DispatcherOperation.Send call, so exception in these handlers can be passed to the Dispatcher.UnhandledException. This PR ONLY implements it for TopLevel.Input events - basically the most common place for exceptions. I plan to adjust more places in following PR, but for the most part we are going to leave it for contributors, as the fundamental part is done in this PR.
Any exception has a potential to break Avalonia internal state. And yes, after many years the same can happen in WPF - try to throw exception in render size changed handles of Window.
Dispatcher.Invoke/InvokeAsync events bypass Dispatcher.UnhandledException completely. General rule of thumb - if method can return exception (by throwing it or as part of DispatcherOperation object), then UnhandledException is not executed (as these exceptions can be in fact handled by the used). The same behavior work in WPF (except old method based on LegacyInvokeImpl, but that's where WPF is even more broken).

Checklist

[x] Added unit tests (if possible)?
[x] Added XML documentation to any related classes?
[ ] Consider submitting a PR to https://github.com/AvaloniaUI/avalonia-docs with user documentation - I would rather not.

Breaking changes
None
Fixed issues
Closes #13476
Fixes https://github.com/AvaloniaUI/Avalonia/issues/13393
Fixes https://github.com/AvaloniaUI/Avalonia/issues/8418

This is a great re-implementation of the WPF handling, thanks!
Please, make sure to check https://github.com/AvaloniaUI/Avalonia/pull/14229 as well. It happens that the loop that handles Dispatcher queue is broken (the native implementation stops and is not restarted ever after).
@maxkatz6 @kekekeks


text:
[WinRT] Added watchdog for ICompositor5::RequestCommitAsync

It seems that windows::UI::Composition::ICompositor5.RequestCommitAsync can get stuck if corresponding commit was submitted with rendering produced by a D3D11Device that will become lost afterwards (GetDeviceRemovedReason() still reports that everything is okie-dokie, but in reality the driver could have been reset a minute ago).
The workaround checks if DWM hasn't triggered IAsyncAction completion event for a minute and triggers a next render loop tick regardless.

I don't have parallels locally, but I will run in on my windows at least for a sanity check today before merging.
Same changes might be required for DComp timer, but not critical.


text:
Added Missing Versions

Patch for Repo version folder

High Versions has been added
Medium Versions has been added
Low Versions has been added
Potato Versions has been added

⚠ Known issue: Some Versions might be missing, including Server Versions, Still some versions missing

Yeah huh I stopped updating it cuz fabric seasons hasn't updated to 1.20.4

But ima keep this open for later

k

But ima keep this open for later


text:
Event sequence collision on load test

Hi,
we are facing with event sequence collision when load testing our app.
Server error encountered : [message : An event for aggregate [983252354268659712] at sequence [43] was already inserted][Errors : {exception=org.axonframework.commandhandling.model.ConcurrencyException, path=/api/command, trace=org.axonframework.commandhandling.model.ConcurrencyException: An event for aggregate [983252354268659712] at sequence [43] was already inserted 	at org.axonframework.eventsourcing.eventstore.AbstractEventStorageEngine.handlePersistenceException(AbstractEventStorageEngine.java:110) 	at org.axonframework.eventsourcing.eventstore.jpa.JpaEventStorageEngine.appendEvents(JpaEventStorageEngine.java:271) 	at org.axonframework.eventsourcing.eventstore.AbstractEventStorageEngine.appendEvents(AbstractEventStorageEngine.java:85) 	at org.axonframework.eventsourcing.eventstore.AbstractEventStore.prepareCommit(AbstractEventStore.java:64) 	at org.axonframework.eventhandling.AbstractEventBus.doWithEvents(AbstractEventBus.java:210) 	at org.axonframework.eventhandling.AbstractEventBus.lambda$null$4(AbstractEventBus.java:145) 	at org.axonframework.messaging.unitofwork.MessageProcessingContext.notifyHandlers(MessageProcessingContext.java:68) 	at org.axonframework.messaging.unitofwork.DefaultUnitOfWork.notifyHandlers(DefaultUnitOfWork.java:91) 	at org.axonframework.messaging.unitofwork.AbstractUnitOfWork.changePhase(AbstractUnitOfWork.java:214) 	at org.axonframework.messaging.unitofwork.AbstractUnitOfWork.commitAsRoot(AbstractUnitOfWork.java:83) 	at org.axonframework.messaging.unitofwork.AbstractUnitOfWork.commit(AbstractUnitOfWork.java:71) 	at org.axonframework.messaging.unitofwork.DefaultUnitOfWork.executeWithResult(DefaultUnitOfWork.java:80) 	at org.axonframework.commandhandling.SimpleCommandBus.doDispatch(SimpleCommandBus.java:143) 	at org.axonframework.commandhandling.SimpleCommandBus.doDispatch(SimpleCommandBus.java:116) 	at org.axonframework.commandhandling.SimpleCommandBus.dispatch(SimpleCommandBus.java:86) 	at org.axonframework.commandhandling.gateway.AbstractCommandGateway.send(AbstractCommandGateway.java:79) 	at org.axonframework.commandhandling.gateway.DefaultCommandGateway.send(DefaultCommandGateway.java:95) 	at org.axonframework.commandhandling.gateway.DefaultCommandGateway.sendAndWait(DefaultCommandGateway.java:113) 	at com.almerys.gebee.metastore.command.controller.CommandsController.launchCommand(CommandsController.java:120) 	at com.almerys.gebee.metastore.command.controller.CommandsController$$FastClassBySpringCGLIB$$b862e465.invoke(<generated>) 	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) 	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738) 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) 	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) 	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282) 	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673) 	at com.almerys.gebee.metastore.command.controller.CommandsController$$EnhancerBySpringCGLIB$$cb6ef61c.launchCommand(<generated>) 	at sun.reflect.GeneratedMethodAccessor198.invoke(Unknown Source) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 	at java.lang.reflect.Method.invoke(Method.java:498) 	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) 	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133) 	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97) 	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) 	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) 	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) 	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967) 	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901) 	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) 	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) 	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.apache.catalina.filters.RemoteIpFilter.doFilter(RemoteIpFilter.java:871) 	at org.apache.catalina.filters.RemoteIpFilter.doFilter(RemoteIpFilter.java:902) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java:104) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:110) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317) 	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) 	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 	at org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:176) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 	at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:96) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 	at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:64) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 	at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 	at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214) 	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177) 	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) 	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:105) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:106) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80) 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) 	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799) 	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) 	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) 	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455) 	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 	at java.lang.Thread.run(Thread.java:748) Caused by: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: could not execute statement 	at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1692) 	at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1602) 	at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1608) 	at org.hibernate.jpa.spi.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:1152) 	at sun.reflect.GeneratedMethodAccessor191.invoke(Unknown Source) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 	at java.lang.reflect.Method.invoke(Method.java:498) 	at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:347) 	at com.sun.proxy.$Proxy184.persist(Unknown Source) 	at sun.reflect.GeneratedMethodAccessor191.invoke(Unknown Source) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 	at java.lang.reflect.Method.invoke(Method.java:498) 	at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:298) 	at com.sun.proxy.$Proxy184.persist(Unknown Source) 	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) 	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) 	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374) 	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) 	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) 	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) 	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) 	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) 	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) 	at org.axonframework.eventsourcing.eventstore.jpa.JpaEventStorageEngine.appendEvents(JpaEventStorageEngine.java:266) 	... 134 more Caused by: org.hibernate.exception.ConstraintViolationException: could not execute statement 	at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:59) 	at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42) 	at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:109) 	at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:95) 	at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:207) 	at org.hibernate.dialect.identity.GetGeneratedKeysDelegate.executeAndExtract(GetGeneratedKeysDelegate.java:57) 	at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:42) 	at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2855) 	at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3426) 	at org.hibernate.action.internal.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:81) 	at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:619) 	at org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:273) 	at org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:254) 	at org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:299) 	at org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:317) 	at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:272) 	at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:178) 	at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:109) 	at org.hibernate.jpa.event.internal.core.JpaPersistEventListener.saveWithGeneratedId(JpaPersistEventListener.java:67) 	at org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:189) 	at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:132) 	at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:58) 	at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:775) 	at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:748) 	at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:753) 	at org.hibernate.jpa.spi.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:1146) 	... 154 more Caused by: java.sql.SQLIntegrityConstraintViolationException: (conn=13164) Duplicate entry '983252354268659712-43' for key 'UK8s1f994p4la2ipb13me2xqm1w' 	at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.get(ExceptionMapper.java:171) 	at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.getException(ExceptionMapper.java:110) 	at org.mariadb.jdbc.MariaDbStatement.executeExceptionEpilogue(MariaDbStatement.java:235) 	at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeInternal(MariaDbPreparedStatementClient.java:224) 	at org.mariadb.jdbc.MariaDbPreparedStatementClient.execute(MariaDbPreparedStatementClient.java:159) 	at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeUpdate(MariaDbPreparedStatementClient.java:192) 	at sun.reflect.GeneratedMethodAccessor209.invoke(Unknown Source) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 	at java.lang.reflect.Method.invoke(Method.java:498) 	at org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:114) 	at com.sun.proxy.$Proxy228.executeUpdate(Unknown Source) 	at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:204) 	... 175 more Caused by: java.sql.SQLException: Duplicate entry '983252354268659712-43' for key 'UK8s1f994p4la2ipb13me2xqm1w' Query is: insert into domain_event_entry (event_identifier, meta_data, payload, payload_revision, payload_type, time_stamp, aggregate_identifier, sequence_number, type) values (?, ?, ?, ?, ?, ?, ?, ?, ?), parameters ['fc9d48b7-50b5-419d-9890-9bc3065467fd',<bytearray:<meta-data><entry><string>traceId</string><string>80d4917f-ed61-47a4-891f-24a706c416b8</string></entry><entry><string>correlationId</string><string>80d4917f-ed61-47a4-891f-24a706c416b8</string></entry></meta-data>>,<bytearray:<com.almerys.gebee.metastore.command.domain.event.IdentityUpdated><eventDate>2018-04-09 07:56:52.902 UTC</eventDate><eventAuthor>gebeeauthority</eventAuthor><id>983252354268659712</id><descriptor><id>983252348816064512</id><name>3ff999a1-1606-4564-aef7-38e1ed2e0794</name><schema>{&quot;sections&quot;:[{&quot;properties&quot;:[{&quot;name&quot;:&quot;FIRSTNAME_BENCH&quot;,&quot;type&quot;:&quot;TEXT&quot;,&quot;constraints&quot;:{},&quot;searchable&quot;:true},{&quot;name&quot;:&quot;LASTNAME_BENCH&quot;,&quot;type&quot;:&quot;TEXT&q... 	at org.mariadb.jdbc.internal.util.LogQueryTool.exceptionWithQuery(LogQueryTool.java:153) 	at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:248) 	at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeInternal(MariaDbPreparedStatementClient.java:218)

Hi,
this can happen for two reasons:
The most common scenario is that two different nodes are working on the same aggregate. The second node to insert the event will fail with this exception.
A somewhat less frequent cause, is the transaction isolation level of certain databases. A transaction starts when a Command is handled. After that, an aggregate is loaded using a lock. The second command to arrive will have to wait for the lock to be freed. Although this happens after the first transaction is committed, some databases will not make those changes available to transactions that already started. MySQL is known to do this. Since MariaDB is a fork of MySQL, it may work the same way.
The solution is to set the transaction isolation level to read-committed.
Can you confirm?

Hello Allard,
The cluster is well configured. All commands are correctly routed.
The transaction isolation is set to read-uncommited by default for Mariadb you're right.
I will try to set transaction isolation level to read-committed but it does not work yet.

We faced issues with MariaDB and Hibernate using generation type "Table", too which resulted in the same issues. Do you know the generation type your setup is using?

Sorry - just noticed you're talking about the sequence column (I anticipated global-index) which has nothing to do with the Hibernate setup.

Hibernate uses generation type "Table".

Hi,
you can change Hibernate configuration by creating a META-INF/orm.xml file. Here's an example that uses a sequence generator:
<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" version="2.0">
    <mapped-superclass class="org.axonframework.eventsourcing.eventstore.AbstractSequencedDomainEventEntry" access="FIELD">
        <attributes>
            <id name="globalIndex">
                <generated-value generator="domainEventGenerator" strategy="SEQUENCE"/>
            </id>
        </attributes>
    </mapped-superclass>
    <entity class="org.axonframework.eventsourcing.eventstore.jpa.DomainEventEntry" access="FIELD">
        <sequence-generator name="domainEventGenerator" sequence-name="domain_event_seq" allocation-size="1"/>
    </entity>
</entity-mappings>```

Hi @loutente, what is the status of this issue?
If not resolved, could you share more information about your cluster? How do you do load balancing/routing of commands?

Hi @abuijze ，we meet the same problem when using two nodes, our event store is MongoBb, what we can do to solve this issue?

2018-05-22 22:33:34.502  WARN 4284 --- [e8vxd314Z-21818] o.a.c.gateway.DefaultCommandGateway      : Command 'cn.teorange.lottery.api.command.ConfirmOrderCommand' resulted in org.axonframework.commandhandling.model.ConcurrencyException(An event for aggregate [20180522103] at sequence [52] was already inserted)

Hi @abuijze
Sorry I was on vacation and plan to work on this issue next week. We have this error on standalone mode.

@kellen0903, this issue can occur when running on multiple nodes, and commands aren't consistently routed to the same node. This could be a result of nodes being added/removed (there is always a timeframe in which nodes don't agree on the routes)  or because of a temporary glitch in communication between nodes. Retrying commands that have failed with this error is generally safe and recommended.
@loutente, this exception is generated when a duplicate key exception is detected. Theoretically, this doesn't have to be a conflict of the sequence for an aggregate, but could also be another unique index. There are two others: the message id (by default a random UUID) and the globalIndex, which is the PK. I am not intimately familiar with the table-generator. Is there a possibility of getting duplicates with that?

Could you post any progress on this lately @loutente?

Closed due to extended inactivity.

authors: abuijze kellen0903 loutente pepperbob smcvb

repo: AxonFramework/AxonFramework


text:
APIGOV-21514 - check api exceptions list

Update api exceptions list for ta

allow api exceptions to contain wildcards (regular expression)
validate exception.  If validation fails, return error
when generating events, check to see if api exception matches url.  If it does, ignore generation

@jcollins-axway @vivekschauhan , updated and moved method into traceability package.  I guess I could have created an apiExceptionList.go, but decided to just leave the compile and regex list in config.  If you guys think this warrants moving this out into an entirely new go file, I can do that (later).

@jcollins-axway @vivekschauhan , updated and moved method into traceability package. I guess I could have created an apiExceptionList.go, but decided to just leave the compile and regex list in config. If you guys think this warrants moving this out into an entirely new go file, I can do that (later).

Let's get Vivek's reply, with that said...I would like to see this moved, imho.

@jcollins-axway @vivekschauhan , i went ahead and just moved the content to apiExceptionList.go.  Let me know if you think there's any more refactoring to be done.  I need to test it, but somehow, my debug isn't being called.  Not sure why.  I'll jump back on that manana.

authors: jcollins-axway sbolosan

repo: Axway/agent-sdk


text:
Given a number n .Find	the	number of occurrences	of n	in the array.(C LANGUAGE)

Sample Input:  2
5
1 2 2 2 4
Sample Output: 3
Here	n	=	2	in	the	sample	input	,	5	is	size	of	array	and	occurrence	of	2	is	3	times	in	the	given	array
Language Used: C
@Ayush7614  Please assign me this task under LGM-SOC'21
I am selected as a participant

I can solve it in C++
assign me to this.
LGM_SOC

authors: PalakDua-work TasnimAnas


text:
CORs problem with docker-compose deployment

Bug description 🐞
Just trying to play around with the docker-compose env and getting a CORS failed error when setting up a new org

Steps to reproduce
happens when I run
docker-compose up

Then login and access
http://terrakube-ui:3000/organizations/create
Expected behavior
I expect to create an org
Example repository
No response
Anything else?
No response

Hello @mzupan
I was testing the docker compose and I am not facing that issue.

Did you update any parameter in the docker compose file?

repo: AzBuilder/terrakube


text:
Snap one by one

Is there an option to snap one item at a item no matter how fast the user flings?

i too request for this feature

Hi guys
@akifsabeh , @root-ansh
I tried this, and it works fine
recyclerView.onFlingListener = object : RecyclerView.OnFlingListener() {
                override fun onFling(velocityX: Int, velocityY: Int): Boolean {
                    if (abs(velocityX) > 3000) {
                        var cur = layoutManager.centerItemPosition
                        if (velocityX > 0) {
                            cur += 1
                        } else {
                            cur -= 1
                        }
                        if (cur >= list.size) {
                            cur = 0
                        } else if (cur < 0) {
                            cur = list.size - 1
                        }
                        recyclerView.smoothScrollToPosition(cur)
                        return true
                    }
                    return false
                }
            }

authors: Tantu194 akifsabeh root-ansh

repo: Azoft/CarouselLayoutManager


text:
Investigate ts-check error: "Property 'x' does not exist on type 'any []'" in Delivery/index.js

Screenshots
https://github.com/Azordev/dasher-user/blob/dccbce3b5b6ea8af657388eec98dfaac7b201ff9/src/pages/Delivery/index.jsx#L31-L33
https://github.com/Azordev/dasher-user/blob/dccbce3b5b6ea8af657388eec98dfaac7b201ff9/src/pages/Delivery/index.jsx#L44-L47

Checklist

[ ] The reason why the error occurs is known
[ ] Possible solutions were created
[ ] It was decided between fixing the error or leaving it like that

This can be solved adding proper types on JSDocs
In this cases adding @return types for useGetPackageInformation could help

This is an example:
/**
 * @param {packageID} Id coming from DB for certain package
 * @return { {loading: Boolean, error:Object, packageInformation: Object}}
 */
const useGetPackageInformation = packageID => {
   ...
   return {loading, error, packageInformation}
}

In this case we would need @typedef to type the return packageInformation as expected:
https://jsdoc.app/tags-typedef.html
Some references:

https://devhints.io/jsdoc
https://www.inkoop.io/blog/a-guide-to-js-docs-for-react-js/

BUT, at the end this should be low priority, if it gets too weird is better to ignore these types

check that your tasks have the corresponding labels

repo: Azordev/dasher-user


text:
refactor: indirects and read/write slices

This PR does a few things to clean up the indirect and mem handling in the avm trace.

Adds support to resolve indirects across all operands in a similar way to the simulator.
Introduces the constrained_read and constrained_write mem abstractions that handle the (potential) indirect load step without needing to manually write them.
Indirect handling in the write_slice and read_slice helpers.
Clean up gadgets read/write cycle - dropping unnecessary reads of indirect destination offset thanks to above point
Simplified gadgets execution tests, removed checks other than return result since they were arbitrary based on our read pattern at the time and not reflective of what the tests should look like when they are constrained.

Note the CMOV, MOV and JUMPI have been left for a later refactor as they use specific load patterns in the mem trace, plus this PR was getting large..

#7082  👈
master

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

Join @IlyasRidhuan and the rest of your teammates on  Graphite

Benchmark results
Metrics with a significant change:

proof_construction_time_sha256_30_ms (16): 1,741 (+23%)
avm_simulation_time_ms (Token:mint_public): 591 (+677%)
avm_simulation_time_ms (Token:assert_minter_and_mint): 73.0 (-67%)
avm_simulation_time_ms (Token:transfer_public): 62.5 (+56%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Proof generation
Each column represents the number of threads used in proof generation.

Metric
1 threads
4 threads
16 threads
32 threads
64 threads

proof_construction_time_sha256_30_ms
11,398 (-1%)
3,099
:warning: 1,741 (+23%)
1,582 (-5%)
1,458 (-4%)

proof_construction_time_sha256_100_ms
44,837 (+2%)
12,118 (-1%)
5,742 (-4%)
5,629 (-1%)
5,528 (-3%)

proof_construction_time_poseidon_hash_ms
78.0
34.0
34.0
58.0 (+4%)
88.0 (+1%)

proof_construction_time_poseidon_hash_30_ms
1,516 (+1%)
419 (+1%)
203 (+1%)
224 (-2%)
265

proof_construction_time_poseidon_hash_100_ms
5,762 (+2%)
1,600 (+2%)
730 (+1%)
769 (-2%)
804 (+2%)

L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
4 txs
8 txs
16 txs

l1_rollup_calldata_size_in_bytes
1,412
1,412
1,412

l1_rollup_calldata_gas
9,476
9,462
9,464

l1_rollup_execution_gas
610,297
610,283
610,285

l2_block_processing_time_in_ms
757
1,402
2,700 (-1%)

l2_block_building_time_in_ms
25,398 (-4%)
51,020
99,695 (-4%)

l2_block_rollup_simulation_time_in_ms
25,301 (-4%)
50,712
99,343 (-4%)

l2_block_public_tx_process_time_in_ms
21,748 (-4%)
46,939
95,627 (-4%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 8 txs.

Metric
3 blocks
5 blocks

node_history_sync_time_in_ms
7,006 (+1%)
9,772

node_database_size_in_bytes
12,181,584
16,093,264

pxe_database_size_in_bytes
16,254
26,813

Circuits stats
Stats on running time and I/O sizes collected for every kernel circuit run across all benchmarks.

Circuit
simulation_time_in_ms
witness_generation_time_in_ms
proving_time_in_ms
input_size_in_bytes
output_size_in_bytes
proof_size_in_bytes
num_public_inputs
size_in_gates

private-kernel-init
130 (-1%)
472 (-4%)
12,794 (-4%)
20,634
67,190
92,352
2,819
524,288

private-kernel-inner
392 (-1%)
1,001 (+1%)
49,011 (-2%)
94,902
67,190
92,352
2,819
2,097,152

private-kernel-tail
370 (-1%)
1,855 (+1%)
50,495
99,121
71,733
14,912
399
2,097,152

base-parity
6.15 (-1%)
1,798 (-6%)
2,762 (-2%)
128
64.0
2,208
2.00
131,072

root-parity
48.9
63.8 (-3%)
40,750 (-6%)
27,100
64.0
2,720
18.0
2,097,152

base-rollup
7,891 (-1%)
4,404 (-1%)
85,290 (-3%)
170,330
756
3,648
47.0
4,194,304

root-rollup
110
80.2 (+1%)
22,679 (-7%)
25,309
620
3,456
41.0
1,048,576

public-kernel-setup
720 (-1%)
3,206 (-3%)
44,442 (+1%)
116,905
93,334
125,344
3,850
2,097,152

public-kernel-app-logic
611 (-1%)
4,028 (-3%)
45,648
116,905
93,334
125,344
3,850
2,097,152

public-kernel-tail
1,410 (-1%)
33,634 (-10%)
192,003 (-2%)
511,910
10,014
14,912
399
8,388,608

private-kernel-reset-small
592 (-1%)
2,018 (-4%)
46,357 (-1%)
123,313
67,190
92,352
2,819
2,097,152

public-kernel-teardown
619 (-1%)
4,063 (-3%)
47,679 (-3%)
116,905
93,334
125,344
3,850
2,097,152

merge-rollup
29.0 (+1%)
N/A
N/A
16,542
756
N/A
N/A
N/A

private-kernel-tail-to-public
N/A
6,970 (+1%)
98,551 (-2%)
N/A
N/A
125,344
3,850
4,194,304

avm-circuit
N/A
N/A
3,870 (-4%)
N/A
N/A
87,734
0.00
0.00

Stats on running time collected for app circuits

Function
input_size_in_bytes
output_size_in_bytes
witness_generation_time_in_ms
proof_size_in_bytes
proving_time_in_ms
size_in_gates
num_public_inputs

ContractClassRegisterer:register
1,344
9,944
401 (-3%)
N/A
N/A
N/A
N/A

ContractInstanceDeployer:deploy
1,408
9,944
39.7 (-2%)
N/A
N/A
N/A
N/A

MultiCallEntrypoint:entrypoint
1,920
9,944
1,767 (-1%)
N/A
N/A
N/A
N/A

GasToken:deploy
1,376
9,944
939 (-3%)
N/A
N/A
N/A
N/A

SchnorrAccount:constructor
1,312
9,944
1,412 (-1%)
N/A
N/A
N/A
N/A

SchnorrAccount:entrypoint
2,304
9,944
2,846 (-1%)
16,768
54,079 (-5%)
2,097,152
457

Token:privately_mint_private_note
1,280
9,944
1,636 (-2%)
N/A
N/A
N/A
N/A

FPC:fee_entrypoint_public
1,344
9,944
350 (-1%)
16,768
11,015 (-4%)
524,288
457

Token:transfer
1,312
9,944
4,820
16,768
49,289 (-2%)
2,097,152
457

Benchmarking:create_note
1,344
9,944
1,397 (-1%)
N/A
N/A
N/A
N/A

SchnorrAccount:spend_private_authwit
1,280
9,944
75.9
N/A
N/A
N/A
N/A

Token:unshield
1,376
9,944
3,974
N/A
N/A
N/A
N/A

FPC:fee_entrypoint_private
1,376
9,944
5,140 (+4%)
N/A
N/A
N/A
N/A

AVM Simulation
Time to simulate various public functions in the AVM.

Function
time_ms
bytecode_size_in_bytes

GasToken:_increase_public_balance
65.8 (-5%)
13,873

GasToken:set_portal
15.8 (-8%)
3,495

Token:constructor
91.7 (-5%)
24,207

FPC:constructor
62.2 (-3%)
13,893

GasToken:mint_public
52.0 (-2%)
10,241

Token:mint_public
:warning: 591 (+677%)
19,216

Token:assert_minter_and_mint
:warning: 73.0 (-67%)
13,034

AuthRegistry:set_authorized
34.5 (+5%)
7,869

FPC:prepare_fee
82.7
15,187

Token:transfer_public
:warning: 62.5 (+56%)
31,425

FPC:pay_refund
60.9 (-11%)
20,080

Benchmarking:increment_balance
2,677 (-1%)
15,465

Token:_increase_public_balance
58.1
15,089

FPC:pay_refund_with_shielded_rebate
52.0 (-2%)
21,167

Public DB Access
Time to access various public DBs.

Function
time_ms

get-nullifier-index
0.195 (-2%)

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
256 leaves
512 leaves
1024 leaves

batch_insert_into_append_only_tree_16_depth_ms
10.4 (+1%)
16.7 (-1%)
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.8
31.7
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.602 (+1%)
0.512 (-1%)
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
48.6
76.7 (+2%)
131
245 (+1%)
469

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
95.9
159
287
543
1,055

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.495
0.471 (+2%)
0.450
0.444 (+1%)
0.438

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
59.1 (-1%)
111
181 (-1%)
351
691 (-1%)

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
109
207
355
691
1,363

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.500
0.499
0.480
0.476
0.474

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
72.5
N/A
N/A
N/A
N/A

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
133
N/A
N/A
N/A
N/A

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
0.517
N/A
N/A
N/A
N/A

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
85,672
670,983

Transaction size based on fee payment method
| Metric |  |
| - |  |

authors: AztecBot IlyasRidhuan

repo: AztecProtocol/aztec-packages


text:
Question: Managed VNET and Managed Private Endpoint

Hi this isn't an issue but i cannot look a question's section.
Well, my question is: Can you explain how it works the taks Publish with the new! feature for Managed VNET and Managed Private Endpoint, y so find in the documentation (README.md) and not found any ideas for use it.
Thanks for your help.
Regards.

Could you precise what do you mean by "how it works"?

Thanks for you soon reply @NowinskiK,
I have a managedPrivateEndpoint and I need to change the values for some properties like a privateResourceId for example when I deploy to my differents environments, I'll try using environment.cvs but always got the same error "Config file, Type is not supported"

Got it. So, describe your problem more precisely, I mean: copy/paste config file and part of log with the (exact) error.
Managed VNET & Private Endpoints are supported, so probably you configured something incorrectly.

hi @NowinskiK I resolved my problem, just for let you know and knowledge to others, in the documentation tells column type does't include VNET and Private Endpoint as a valid type option so I was try with "maganagedVirtualNetwork/default/managedPrivateEndpoint", "managedVirturlNetwork.default.managedPrivateEndpoint" and this got me the error.
Then i kept digging into your issues and commits and found an example with type "managedPrivateEndpoint" and that solved my problem.

Could you update the documentation please.
Thanks for your support!

Ahhhh, you checked documentation on DevOps project....
Sorry for confusing... the always up-to-date documentation is in this repo:
https://github.com/Azure-Player/azure.datafactory.tools
where you'll see:

and examples:

I will remove the copy of documentation from here and add links to the correct location.

Thanks a lot @NowinskiK five stars service 🥇

authors: NowinskiK julanih


text:
wss path to Azure OpenAI corrected

I believe the way how the url is constructed seems to be incorrect.
The "api-version" is currently set to "alpha", which didn't work and led to 404 error.
I have the audio GPT-4o model deployed in swedencentral.
I adjusted the constructed url to match with what is described in the Azure Sample repo:
https://github.com/azure-samples/aoai-realtime-audio-sdk
However, the sample repo seems also to have a slight error right now as the deployment needs to be "gpt-4o-realtime-preview" without the 1001 at the end.
So the url that i got to work is:
wss://my-eastus2-openai-resource.openai.azure.com/openai/realtime?api-version=2024-10-01-preview&deployment=gpt-4o-realtime-preview
For the future, it makes sense to load the variables from .env file.

Thanks for your PR @flo7up! This has already been fixed in the main branch, if you pull latest you can run it. It also placed the deployment name in .env.

repo: Azure-Samples/aisearch-openai-rag-audio


text:
"Not enough information provided" but can answer the same question if queried one by one and ask the same question.

Please provide us with the following information:

This issue is for a: (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

I uploaded 25 pdfs of custom public data, each representing a different insurance product. Each pdf has around 16 pages. I have uploaded pdfs on the products ManuCentury and ManuLeisure. I first asked to compare the death benefits but says "Not enough information...". However when queried one by one as below, and then ask back the same question, it can give an answer. The details are clearly in the documents uploaded. Any has experienced something similar and can suggest a workaround?

Any log messages given by the failure

Expected/desired behavior

It should have been able to answer correctly the first time the question was asked

OS and Version?

Linux (GitHub Codespace)

azd version?

1.2.0

Versions

Mention any other details that might be useful
I'm currently using the following prompt:
system_message_chat_conversation = """You are an intelligent assistant helping Manulife insurance agents and customers with their questions and analysis on Manulife insurance plans and products, based on the sources provided. You are provided information in the sources on the following Manulife products: Accidental Death Benefit, Cancer Guard Protection Benefit, Cancer Treatment Beneft, Careguard Critical Illness Benefit, Cash Assistance Benefit, Child Care Benefit, Disability Income Protector, Hospital Income Benefit, La Vie 2, ManuTerm, ManuBright Care 2, ManuBright Care 2 Plus, ManuCentury, ManuDelight, ManuElite Protector, ManuEnrich Medical Top Up Plan, ManuGrand Saver 2, ManuGuard Medical Plan, ManuImperial Saver 2, ManuJoy, Manuleisure Deferred Annuity, Manulife First VHIS Flexi Plan, ManuWealth USD Plan, ManuLove Care, ManuMaster, ManuVital Care, MyChoice, Outpatient, Premier Estate Protector, Premium Waiving Benefits, Take Care Personal Accident Plan 2, Universal Life, Whole in One Prime 2, Whole in One Protector.
Answer ONLY with the facts listed in the list of sources below and strictly about Manulife insurance products. Do a thorough check to see if there is information provided in the source about that Manulife product. If there isn't enough information below, say you don't know. Do not generate answers that don't use the sources below. If asking a clarifying question to the user would help, ask the question.
Kindly reject the user's request for anything not related to asking, analyzing, and follow up on Manulife products, e.g let's play a game, etc. For tabular information return it as an html table. Do not return markdown format. If the question is not in English, answer in the language used in the question.
Each source has a name followed by colon and the actual information, always include the source name for each fact you use in the response. Use square brackets to reference the source, e.g. [info1.txt]. Don't combine sources, list each source separately, e.g. [info1.txt][info2.pdf].
"""

Thanks! We'll be in touch soon.

I recommend adding logging to chatreadretrieveread.py to see what search terms are being generated.
Print out the query_text:
https://github.com/Azure-Samples/azure-search-openai-demo/blob/5d4fc98da099a09bcc6ffea78197fd56f3b74608/app/backend/approaches/chatreadretrieveread.py#L88
Then log out the results from ACS:
https://github.com/Azure-Samples/azure-search-openai-demo/blob/5d4fc98da099a09bcc6ffea78197fd56f3b74608/app/backend/approaches/chatreadretrieveread.py#L128
That'll help you determine whether the issue is that it's coming up with an unsuccessful query or whether it's got good results but not answering well based on them. Also try out different ACS options (vector/semantic/etc) if the problem is the results.

used a different model and seems to work better

authors: jasonchanhku pamelafox

repo: Azure-Samples/azure-search-openai-demo