tcmalloc breaks ABI on x86_64

This test program:
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>

int
main(void)
{
  printf("max_align_t alignment: %zu\n", _Alignof(max_align_t));
  for (int i = 0; i < 10; ++i) {
    printf("malloc: %p\n", malloc(1));
  }
}

prints:
max_align_t alignment: 16
malloc: 0x23b6010
malloc: 0x23b6018
malloc: 0x23b6020
malloc: 0x23b6028
malloc: 0x23b6030
malloc: 0x23b6038
malloc: 0x23b6040
malloc: 0x23b6048
malloc: 0x23b6050
malloc: 0x23b6058
This means that not all allocations are aligned to 16 bytes, as required by the
x86_64 ABI.

Reported by Florian Weimer in https://bugzilla.redhat.com/show_bug.cgi?id=1237260

thanks for reporting it.
This is interesting. My understanding is that it's pointless to align less than 16 bytes allocations on 16 bytes.
And that is seemingly position taken by prior maintainers of tcmalloc. Size class of 8 bytes (which is used for all allocations equal or smaller than 8 bytes) is aligned on 8 bytes. And all other sizes classes are aligned on 16 bytes or more.

And this is actually tested by this line: https://github.com/gperftools/gperftools/blob/ea0b1d315497771d9d077c754fb9d6a92d1c01dc/src/tests/tcmalloc_unittest.cc#L766
kMinAlign is defined here: https://github.com/gperftools/gperftools/blob/ea0b1d315497771d9d077c754fb9d6a92d1c01dc/src/common.h#L74 (there is TCMALLOC_ALIGN_8BYTES defined that is off by default that makes it use 8 bytes minimal alignment)

So perhaps there is indeed "de jure" requirement of x86-64 ABI to always align even small allocations on 16 bytes. But in practice both tcmalloc and jemalloc (I've just tested your program on jemalloc too) do not align smallest allocations on 16 bytes and that seems 100% reasonably.
Can you, please, point me to "de jure" thing in ABI document anywhere?

So i've went through http://www.x86-64.org/documentation_folder/abi.pdf searching for places that mention alignment and only requirement that I found that affects malloc is that struct or array alignments are max alignments of elements. Given that no element smaller than 16 bytes has natural alignment of 16 bytes, I believe both tcmalloc and jemalloc are perfectly ABI compliant to align smaller allocations on 8 bytes.
With that closing as 'working as intended'. Feel free to reopen if you have arguments against this.

The de jure ruling is this: The alignment of the type max_align_t is the alignment supported in all contexts, see 6.2.8(2). This includes memory allocated by malloc. The standard does not have a loophole which says that smaller objects do not need to support larger alignment.
On x86_64, _Alignof(max_align_t) is 16. (This is the implementation consensus, max_align_t is younger than the ABI.) Therefore, malloc must return pointers aligned to 16 bytes, even for small allocations.

Hi.
I disagree about "must align to 16 bytes, even for small allocations".
I read this as follows:

"supported" in your text above does not imply, "must always use largest alignment"

so the fact that all suitable allocations are aligned on 16 bytes is in my view enough to tick off "supported"

that we (and a ton of other malloc implementations) take advantage of smaller alignment for small objects, while not explicitly mentioned by standard, is not forbidden, as far as I can see.

malloc does not know how the pointer is going to be used. The intention of the standard is to say if you have a fundamental alignment (that, less than or equal to that of max_align_t), then it is supported for pointers returned by malloc.
There are basically two ways out: Reduce the alignment of max_align_t to 8 or 4, or clarify the standard that malloc does not have to support fundamental alignment for objects smaller than fundamental alignment. There is some related discussion here:

https://gcc.gnu.org/ml/gcc/2015-04/msg00090.html

Indeed that statement in standard about malloc could be interpreted as "malloc has to align to 16 bytes".
But do note that your example from link above produces struct S that both requires 16 bytes alignment and has sizeof(struct S) == 16. So malloc(sizeof(struct S)) still works correctly.
I'm not a language lawyer, but it seems unreasonable and weird for standard to support something like that:
struct S {
    _Alignas (max_align_t) char a;
};

struct S *foo(void)
{
  return malloc(offsetof(struct S, a) + sizeof(char));
}

So perhaps some other statements in standard effectively forbid anything that could get smaller alignment from malloc and not be OK with it.

Also I think ultimate intention of standard is something like: "malloc works for malloc(sizeof(T)) of all types" and status quo supports that as far as I can see.

Correction: "malloc works for malloc(sizeof(T)) for all types that don't have extended alignment".

You are correct that example I posted is invalid,  However, It's possible to create a type which shows this problem with a GCC extension (alignment specifier on a typedef).
#include <stdio.h>
#include <stdlib.h>

typedef char A __attribute__((aligned(16)));

int
main(void)
{
  printf("malloc(%zu): %p (alignment needed: %zu)\n",
         sizeof(A), malloc(sizeof(A)), __alignof__(A));
}

On Mon, Oct 12, 2015 at 4:27 AM, Florian Weimer<EMAIL_ADDRESS>wrote:

You are correct that example I posted is invalid, However, It's possible
to create a type which shows this problem with a GCC extension (alignment
specifier on a typedef).
#include <stdio.h>
#include <stdlib.h>
typedef char A attribute((aligned(16)));
int
main(void)
{
printf("malloc(%zu): %p (alignment needed: %zu)\n",
sizeof(A), malloc(sizeof(A)), alignof(A));
}

Hi. We still offer aligned_alloc and friends for such cases. Also note that
for 32-bit programs it would require aligned_alloc even with glibc's malloc
that aligns on two words.
For this particular case I think use of gcc extension invalidates
requirements of standard. So for this example status quo means even more.
IMHO.


fixing the import of interactjs (#352)

Issue Number
#352
Overview of PR
I wasn't able to really test this except I know from messing around in my own separate project, that making this changes fixes the problem.
I'm not sure why, I think the issue is my project uses browserify and this one is using webpack (maybe webpack knows how to handle this). But yarn start works fine.

I'm not going to merge this as this is not this library's concern. I might remove interactjs anyways.

I guess this library is unusable for me and anyone else who uses browserify until then.

Maybe it's just this version of interactjs, do you know if this is the minimum version of interactjs this library depends on having? Is there a lower version I can install that will still support this library?
If so, we can lower the minimum version in our peer dependency and anyone with this problem can just put in their peer dependency the lower version instead of latest


Partner - add parter model

Ticket
Ticket Link
What is changed / added

added partner model
added partner category model

Linked PR

https://github.com/utmmcss/mcss-website-frontend/pull/42

Screenshots

 Hackathon: create the navbar


Cookies not set/saved in Browser

URL of sample
https://github.com/OfficeDev/PnP-OfficeAddins/tree/3ce0e1b74152dbbe8306a091696bc4455c04c0a1/Samples/auth/Office-Add-in-Microsoft-Graph-ASPNET
Describe the bug
Note: The sample works fine in Windows Outlook, but not in Web Outlook in a browser.
The code sample uses http cookies to keep track of the state keys, but cookies are never saved when running in a web browser. The request to read the cookie returns null every time. This is the code part in Session.cs that doesn't work anymore. Tried in Chrome and Edge:
        public static string GetUserAuthStateId(HttpContextBase ctx)
        {
            string id;
            if (ctx.Request.Cookies[SessionKeys.Login.UserAuthStateId] == null)
            {
                // Convert GUID to a string and format as numeral to remove hyphens.
                id = Guid.NewGuid().ToString("N");
                ctx.Response.Cookies.Add(new HttpCookie(SessionKeys.Login.UserAuthStateId)
                {
                    Expires = DateTime.Now.AddMinutes(20),
                    Value = id
                });
            }
            else
            {
                id = ctx.Request.Cookies[SessionKeys.Login.UserAuthStateId].Value;
            }

            return id;
        }

To Reproduce

Download and run the sample.
Click "Connect to Office 365" button
Click "Get Onedrive File Names"
Get an exception here:

            var filesResult = await ODataHelper.GetItems<ExcelWorkbook>(fullWorkbooksSearchUrl, token.AccessToken);

because the cookie is never returned from request.
Expected behavior
I expect the code line in HomeController - Index() to return the state-id:
            var userAuthStateId = Settings.GetUserAuthStateId(ControllerContext.HttpContext);

Environment

Platform [PC desktop, Mac, iOS, Office Online]: PC
Host [Excel, Word, PowerPoint, etc.]: Outlook Web
Operating System: Windows 10
Browser (if using Office Online):

Google Chrome Version 88.0.4324.190
Microsoft Edge Version 89.0.774.45
Microsoft Edge Canary Version 91.0.822.0

Additional context
The sample is not modified at all. I've also tried to use Session state instead of cookies, but since Session uses cookies, there's no difference. I'm not using any 3rd party plugins for the browsers and I have a vanilla Edge installation with no changes to the settings.

@johandanforth Thanks for letting us know about this.
@davidchesnut Can you take a look?
Thanks.

Hi @johandanforth, Sorry this has taken so long. I was working on a PR to update this sample, but we're changing our strategy to rely on the existing Microsoft identity samples.
The Office Add-in Microsoft Graph ASP.NET sample will be remapped to https://github.com/Azure-Samples/ms-identity-aspnet-webapi-onbehalfof That sample should also give you control over using cookies, or not.
We'll be posting some updated guidance on how you can update the identity samples to use the Office dialog API soon.

Hi @davidchesnut and thanks for the update. The problems I had this long ago actually made me drop everything until everything was more "ready". But the need is still there - we have an old, quite complex, Outlook addin written in c# that needs to be overhauled. I was hoping we could rewrite it using this technique...

Thanks @davidchesnut , I did not know of that sample, I will for sure give it a go, as soon as I get some time for it. Cheers. We sure want to move away from our old (but still working fine) Outlook add-in, because that particular add-in has grown into something ugly 😉

Hi @johandanforth, If you haven't seen it already you may be interested in the Outlook Blazor sample that @elegault contributed. It allows you to keep the logic portions of your code in c#, although the UI will still need to be in JavaScript.

Sorry to say, the outlook blazor sample isn't working. I get this error in both desktop and web mode. Have tried with and without two-factor auth, same error:

I sideloaded the sample to Outlook on web, and Outlook on Windows and it seems to load and run fine.
Can you try again after clearing the Office cache?
Thanks!
David

I will try in a few minutes, forgot to clear the cache! I've not looked at this architecture since I reported that issue a long time ago now. Sorry.
/Danforth

From: David Chesnut @.>
Sent: Wednesday, November 16, 2022 9:04:30 PM
To: OfficeDev/Office-Add-in-samples @.>
Cc: Johan Danforth @.>; Mention @.>
Subject: Re: [OfficeDev/Office-Add-in-samples] Cookies not set/saved in Browser (#124)
I sideloaded the sample to Outlook on web, and Outlook on Windows and it seems to load and run fine.
Can you try again after clearing the Office cachehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flearn.microsoft.com%2Foffice%2Fdev%2Fadd-ins%2Ftesting%2Fclear-cache&data=05|01||cf20f0bd7dad4a80bf5e08dac80dc68e|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|638042258730360650|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=ffrT7yl4hSoBDqHhUzjuQKfUTU1Ny%2FQp3ae0XF29B7w%3D&reserved=0?
Thanks!
David
—
Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOfficeDev%2FOffice-Add-in-samples%2Fissues%2F124%23issuecomment-1317600579&data=05|01||cf20f0bd7dad4a80bf5e08dac80dc68e|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|638042258730360650|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=tIV5u%2FDnAPfYKN%2Fh6jQwlq3tiuoK%2FWgjDHiuG4SB4tE%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAEAVPOSCFBRB736NVAIFDTWIU445ANCNFSM4Y6E4JLA&data=05|01||cf20f0bd7dad4a80bf5e08dac80dc68e|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|638042258730360650|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=ZibfX58A7W2f%2Bnv%2F8mL%2BHuJmLEGuJSbz5u5sfS1%2FgQs%3D&reserved=0.
You are receiving this because you were mentioned.Message ID: @.***>

Will close for now, but @johandanforth please reopen if there is still any ongoing issues. Thanks!


Add upsert description to Update document API information

Signed-off-by: cwillum<EMAIL_ADDRESS>Description
Added information for upsert and doc_as_upsert in the Update document section of REST API reference documentation.
Issues Resolved
This addresses issue #755.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@tmccombs Thanks for getting this started for documentation. Let me know how things look and whether something more needs to be added.


define vx_float16 data type

Defining vx_float16 type for tensor data type

@kiritigowda : As I mentioned the type in vx_types.h is for supporting some special hardware architectures. For x86 CPUs and GPUs, we need to use half library which defines the IEEE half data type which can be interpreted as vx_float16 data type.
Can you please look into the compile error which says half.h is not found. Not sure why as it is building in my system

@kiritigowda confirmed that it will get fixed in OpenVX


Own LDAP-Server: how configure docker-compose.yml

I have specified my own LDAP Server by using the script 'setup.sh'. After that the message come up:
You have specified the LDAP server 'ldap://xxx.domain.lan:7389', don't forget to remove the bundled ldap and ldap-admin services in docker-compose.yml
But i didn´t find the references to service "ldap" in docker-compose.yaml.
But when i remove in the .env-File the "docker-compose.ldap.yaml" filename then no ldas informations are written. What is the right way to use my own LDAP

hmm.. that is a good question. It has been a while that I did something on this project but the way you describe it, is how I would have remembered it as well. Just remove the compose file that has the "LDAP" bit in the filename. Then it does not start, but still uses the LDAP credentials from the .env file.


Direct link to package should return a 404 page

When you unlist a package version, we should not show the package if it's unlisted.

Unless you're the owner, when it should in fact show the package.


MINOR: Various cleanups in clients

Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@mimaison please fix the conflicts, thanks !


Deprecation information should flow into V3

https://github.com/nuget/nugetgallery/issues/7115
This adds back the checkbox from before and also updates the package's LastEdited and LastUpdated timestamps when a package is deprecated so that these changes will appear in the feed and be consumed by DB2Catalog.

I discovered that this PR does not currently set LastEdited properly--all packages should have their LastEdited set to the same value, but currently they are being set differently.
I am fixing this issue and will update the PR when I've done it.

PR is good for review now!

        _telemetryService.TrackPackageUnlisted(package);

we should reduce code duplication between this and bulk service. Unlist functionality should be in one place

Refers to: src/NuGetGallery/Services/PackageService.cs:493 in 568c2ab. [](commit_id = 568c2ab02bc9dc88a305e1c40223f353116ec736, deletion_comment = False)

There are merge conflicts.

@joelverhagen - Oddly, git was locally able to resolve all merge conflicts without any manually changes.

@joelverhagen - fixed the conflicts

@joelverhagen @skofman1 - I've handled all comments. Please review again!


GraphEngine.Azure.BlobStorage？

VS2017 has errors during compilation：
Severity	Code	Description	Project	File	Line	Suppression State
Error		Could not add the file 'C:\Users\leoking\CMakeBuilds\a6144ce7-852c-c637-b52b-28472c6798df\build\x64-Debug (default)\GraphEngine.Azure.BlobStorage.2.0.10126.nupkg' to the zip package 'C:/Users/leoking/CMakeBuilds/a6144ce7-852c-c637-b52b-28472c6798df/build/x64-Debug (default)/GraphEngineVSExtension.vsix'. Could not find file 'C:\Users\leoking\CMakeBuilds\a6144ce7-852c-c637-b52b-28472c6798df\build\x64-Debug (default)\GraphEngine.Azure.BlobStorage.2.0.10126.nupkg'.	TrinityVSExtension.VS2017	C:\Users\leoking\Source\Repos\microsoft\GraphEngine\src\Trinity.VSExtension\TrinityVSExtension\VSSDK

@shyleoking I am not able to reproduce the error you sited above; I would try to run the build script again from a fresh download from the repro:

solution is   Trinity.VSExtension.VS2017

@TaviTruman  I run build.ps1

@shyleoking you need to include the "CMake" feature in the Visual Studio setup.

Thank you. It's a success. Thank you very much  @TaviTruman

@shyleoking Looks like we can close this one too.

Thanks @TaviTruman.


No core dump will be written. Minidumps are not enabled by default on client versions of Windows

Hello,
I'm encountering an issue while running IntelliJ IDEA on Windows 7. The error message I'm seeing is:
No core dump will be written. Minidumps are not enabled by default on client versions of Windows.
......
Current thread (0x000000010099f810):  JavaThread "OkHttp http://<IP_ADDRESS>/..." [_thread_in_native, id=9920, stack(0x0000000075a30000,0x0000000075b30000)]
Stack: [0x0000000075a30000,0x0000000075b30000],  sp=0x0000000075b2d850,  free space=1014k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x000007feede16475
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 158968  org.treesitter.TSParser.ts_parser_parse_string_encoding(JJLjava/lang/String;I)J (0 bytes) @ 0x000000002d54478a [0x000000002d544720+0x000000000000006a]
J 158967 c1 org.treesitter.TSParser.parseStringEncoding(Lorg/treesitter/TSTree;Ljava/lang/String;Lorg/treesitter/TSInputEncoding;)Lorg/treesitter/TSTree; (40 bytes) @ 0x000000000f902ddc [0x000000000f902cc0+0x000000000000011c]
Environment:
Operating System: Windows 7
IDE Version: IntelliJ IDEA running on JBR-17
CPU: Intel Xeon Gold 5218

--------------  T H R E A D  ---------------
Current thread (0x000000010099f810):  JavaThread "OkHttp http://<IP_ADDRESS>/..." [_thread_in_native, id=9920, stack(0x0000000075a30000,0x0000000075b30000)]
Stack: [0x0000000075a30000,0x0000000075b30000],  sp=0x0000000075b2d850,  free space=1014k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x000007feede16475
Java frames:
J 158968  org.treesitter.TSParser.ts_parser_parse_string_encoding(JJLjava/lang/String;I)J (0 bytes) @ 0x000000002d54478a [0x000000002d544720+0x000000000000006a]
...
siginfo: EXCEPTION_ILLEGAL_INSTRUCTION (0xc000001d)
Steps to Reproduce:
Running IntelliJ IDEA with Tree-sitter integration.
The issue occurs when calling the TSParser.ts_parser_parse_string_encoding method.
What could be causing this EXCEPTION_ILLEGAL_INSTRUCTION error?
Is there any configuration or setup that needs to be adjusted to make this work in my environment?
Could this be related to my CPU or the version of Tree-sitter?
Thank you for your help!

Please paste the parser you were using and the sample source code to parse.

Hello, thank you for your reply. I have defined a utility class.
public class TreeSitterClient {
private final TSParser tsParser;

/**
 * 手动创建一个新的实例
 * @param tsLanguage
 * @return
 */
public static  TreeSitterClient createNewInstance(TSLanguage tsLanguage){
    return new TreeSitterClient(tsLanguage);
}

TreeSitterClient(TSLanguage tsLanguage) {
    tsParser = new TSParser();
    if (!tsParser.setLanguage(tsLanguage)) {
        throw new RuntimeException("language is not supported");
    }
}

public Node getFirstChildNodeByTypes(Node parentNode, String... targetTypes) {
int n = parentNode.getChildCount();
for (int i = 0; i < n; i++) {
Node node = parentNode.getChild(i);
if (TsNodeUtil.containNodeType(node, targetTypes)) {
return node;
}
}
return null;
}
public TSTree getTree(String source) {
return tsParser.parseString(null, source);
}
public TSNode getNode(String source) {
    return tsParser.parseString(null, source).getRootNode();
}

}

Could you paste the source you are parsing?

I have encountered this problem again, it may be this
error.txt

I am not sure whether or not my issue is related to this, but I am getting errors when using JUnit in Eclipse to test the code, but the debugger works just fine. I have three cases (in C++) where I am trying to pattern match:
Code 1:
int x = 5;

Pattern 1:
int x = 5;

First case works just fine in as a J-Unit test.
Code 2:
void main() {
     int x = 5;
}

Pattern 2:
int x = 5;

Second case gives EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff8e3d56148, pid=66912, tid=16576.
Code 3:
int x = 5;

Pattern 3:
int $VARIABLE = 5;

Third case gives EXCEPTION_ILLEGAL_INSTRUCTION (0xc000001d) at pc=0x00007ff8e3d56112, pid=36460, tid=47032.
When using the debugger, it doesn't throw these errors. Might it be connected to J-Unit trying to access some of the native methods in TS-NG without permission? Otherwise I would have no clue where this error would come from given the unique circumstances.

Hi,
Please upgrade to the latest version of tree sitter and parsers. This should fix the issue.

The error still persists after upgrading.
I suspect that this might be due to multithreading. Our system uses multithreading and I think that there might be attempts to access memory locations that haven't yet been filled/allocated. Does this help?
The error looks like:
A fatal error has been detected by the Java Runtime Environment:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffffde52f2d, pid=37364, tid=19076

JRE version: OpenJDK Runtime Environment Temurin-17.0.12+7 (17.0.12+7) (build 17.0.12+7)
Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.12+7 (17.0.12+7, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
Problematic frame:
C  [x86_64-windows-tree-sitter.dll+0x2f2d]

No core dump will be written. Minidumps are not enabled by default on client versions of Windows

An error report file with more information is saved as:
[FILE_LOCATION]

If you would like to submit a bug report, please visit:
https://github.com/adoptium/adoptium-support/issues
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.

Could you paste the sample Java code and the C++ source code?

The C++ source code is in the earlier comment. It is hard to provide sample Java code because I am not doing anything other than calling the parser with the correct language. Storing the reference to the node somewhere and accessing the node contents through the native code whenever necessary. Our system is rather large so not all the tree-sitter interactions happen in one file. When I put all the interactions in one file, there is no problem. I think the issue might lie in the use of multithreading where a thread might try to access a piece of memory that is blocked by another thread. This suspicion is because of the fact that JUnit tests cause errors but debug mode doesn't. Does this help?


possibleOutboundIPAddresses should be possibleOutboundIpAddresses (without capital "P")

The field possibleOutboundIPAddresses  is mentioned, but it should be possibleOutboundIpAddresses (when using the --query parameter with the Azure CLI)

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

ID: 4c32dd6f-050f-e3f7-569f-42b5efdf3918
Version Independent ID: 1b3c9880-c5fc-53b2-c8d5-04c5ed4c21b4
Content: Inbound/Outbound IP addresses - Azure App Service
Content Source: articles/app-service/overview-inbound-outbound-ips.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

Thanks for the feedback! We are currently investigating and will update you shortly.

Thanks for the feedback @w0ut0. The typo should be corrected shortly.


[Bug] finished task produces some null values

When I open the page, when the task was already done.

Sometimes the error also looks like this, not sure when this happens exaclty.

I can confirm this behaviour. More than this, generally the viewer throws these errors when no task-preview-video is playing.


ASP MVC 4.5.2 Sample please

I am trying to migrate over from JsPlumb (the old version) to MxGraph. It was was fairly easy to persist and send POST to the server side in ASP MVC and JsPlumb (.NET 4.5 Razor pages).
Your framework looks really nice, and I would like to be able to do the same in ASP MVC, its a simple MVC framework, after looking at the help files here there was not much in the form of help or even a sample application.
Can you share a sample solution to try it out, or get started please

Github issues is more for bugs and issue specific to mxGraph, rather than other tools. Since this is a high level problem and specific to another technology I'd ask that you take it Stack Overflow, http://stackoverflow.com/questions/tagged/mxgraph. Thanks.


Use deserializer.deserialize_string for PathBuf

It looks like PathBuf always serializes as a string, so why not skip the indirection?
The motivation for this is this bug in bincode.

You know, we probably should instead be serializing paths as a &[u8] instead of as a String. Or at least falling back to bytes if the PathBuf includes non-utf-8 characters.

Previous comment really wants #57. In the meantime this patch makes sense with the current implementation.


[LiveComponent] feat: consider data-value attribute

Q
A

Bug fix?
no

New feature?
yes

Tickets
#195

License
MIT

Allow to set the value using data-value. This can be handy if the model is updated from an <a> or <button> to set it to a fixed value for example.

I'm not sure about the failing js tests. I dont think it is caused by my change but i think they worked before so maybe someone with more js experience can have a look at it please ?


⚠ Bofrost.at has degraded performance

In 1c69207, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1495 ms

Resolved: Bofrost.at performance has improved in ef6295d after 18 minutes.


if you don't mind can tell me when gimp 3 port will come ?

According to the last blog post of official gimp website, the gimp 3.0 will be released soon in 2023 at least a release candidate and as I used the latest beta most of the work is almost done so it will be great if new port of the plug-in release soon. :)

AFAIK especially the plugins are the reason why 3.0 is still not released. They announce now for a very long time, that 3.0 will be released soon. As soon as this is the case, I will port the plugin to 3.0.

ok


Remove reference to --flink-master-url.

This should unbreak the build.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Prefer https://github.com/apache/beam/pull/9947

It looks like we should move this reference in any case. Can you please put both changes into a single PR?

It looks like we should move this reference in any case. Can you please put both changes into a single PR?

I now see the other PR is a revert... Both changes needed.

Run Python PreCommit

Merging, since the test affected (Run Python2_PVR_Flink PreCommit) passes.

Actually, pushing another commit to remove the ones in Java.

I realized this PR removed flink_master_url completely from flink_runner.py (without preserving backward compatibility on that end). I'm not sure how big a deal it is (ie I don't know if anyone's using flink_runner.py yet), but it's at least documented on the website, so we have to change that at the very least.
Filed BEAM-8656 to track.

I think the rationale here was that, although flink_runner was originally part of 2.16.0, it was more or less an experimental feature which was not really advertised. So I think it is fine to make the changes here.


Handle Azure AD schema paths

Hi,
When using provisioning with Azure AD we get paths which contain version numbers, e.g.
{
    "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
    "Operations": [
        {
            "op": "Add",
            "path": "title",
            "value": "CTO"
        },
        {
            "op": "Add",
            "path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:department",
            "value": "Development"
        }
    ]
}

With this pull request, those paths are handled correctly.

Thanks that's awesome, I will release a new version of the lib today.

Sounds great!
Regards
Mathias Lundell
On Thu, May 14, 2020, 09:35 Thomas Poignant<EMAIL_ADDRESS>wrote:

Thanks that's awesome, I will release a new version of the lib today.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/thomaspoignant/scim-patch/pull/18#issuecomment-628449538,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAI3CEUV7LWC6IWS4EMZSJTRRONMXANCNFSM4M7RMSCA
.

@luddd3 the version v0.2.3 is available on NPM.
https://www.npmjs.com/package/scim-patch


Pagination throws an error against Auora Serverless V1 running MySQL 5.7

At the current time this is more of a question if this should work.
Our situation is we have an AWS Auora v1 running as serverless running MySQL 5.7.
We have a large dataset that exceeds being queried in one call.  I have seen in the docs for this library that there is some kind of pagination using server side cursors.
Stepping into the code the method "_start_paginated_query" throws an error here: "self._client.execute_statement(**execute_statement_args)" line 196.
{BadRequestException}An error occurred (BadRequestException) when calling the ExecuteStatement operation: Transaction AQ1a0rmK5xPx2DUvqTwbMHbNhwxGqF5Jz7hBXu732zAwepruvVqGRNLm0DkYoXHF0NX79RCmPvRFySf6NXhXMx9wLihYoIIpswCqo11yQiBoK+UBjxtHWzjMatnv/SYhWxHuZwiLKxwU78KIK7LFCwyEnpO1D9qcfntuyC95WC3+RD/sHww8uMGqQKKHbR9siS1c89xZZ2ga is not found: transaction has been aborted due to an error from a previous call
So I was just wondering if this is even supposed to work with this type of server configuration.
Thanks, I really like this library.

Thanks. Yep, unfortunately this is a known issue. Please see the comment here: https://github.com/cloud-utils/sqlalchemy-aurora-data-api/issues/38#issuecomment-1063683673
I am in a holding pattern with AWS support on this, but chances are I will have to remove the automatic backoff logic altogether since AWS has decided that any active transaction must be aborted on any error - and there is no way to connect multiple statements into a single database connection context without referencing a transaction. You can still use pagination manually with LIMIT..OFFSET or even tap into the internal API of this package (__start_paginated_query()) but the automatic pagination no longer works.


loading state true for skipped queries

as reported by sircharleswatson in slack (https://apollostack.slack.com/archives/react-apollo/p1472591117000042)
const CURRENT_USER = gql`
  query currentUser {
    currentUser {
      id
      username
      email
    }
  }
`

const withUser = graphql(CURRENT_USER, {
  options: () => ({skip: !userIsAuthenticated()})
})
const AppWithUser = withUser(App)

This should be a pretty easy bug if anyone wants to contribute! Essentially the default true value for data.loading should be set to false if skipping the query.

Fixed in next release!


fix: remove user-agent override

#1271

Thanks for the PR. If you can update it to only make the change to not set the header if the user already provided one, we can merge it.

So, are you saying that the logic for generating the grpc-js-* string should be removed, and we should just pass the header instead?

So, are you saying that the logic for generating the grpc-js-* string should be removed

Yes.

and we should just pass the header instead?

Currently, we're always setting the User-Agent header, regardless of whether the user has already provided one. For example:
await client.say(
  { sentence: "hello" },
  {
    headers: {
      "User-Agent": "foo",
    }
  }
);

The User-Agent: foo is overwritten.
Following https://github.com/connectrpc/connect-es/issues/1271#issuecomment-2411048990, we should change the behavior, and not overwrite the user-provided value, but continue to set our value if the user didn't provide one.
The important part is that we do it consistently, not just in the gRPC transport, but also for gRPC-Web and the Connect transport.
Adding a transport option for a default user-agent is a nice idea, but it raises the question whether we shouldn't have an option for default headers instead. For now, the best action is to not add this option, and consider this change separately.

Currently, we're always setting the User-Agent header, regardless of whether the user has already provided one. For example:

The problem is:

Passing headers would require changing the code throughout the entire codebase. In my previous project, I had thousands of gRPC requests, and modifying all of them would be difficult.

Using interceptors introduces unnecessary overhead, especially when using AsyncLocalStorage.

To fix #1271, we can allow to pass a custom user agent via CallOptions.headers, which is a reasonable incremental change.
We can discuss other features separately.

@timostamm

@timostamm Greetings! Will you be able to watch it?


[Android] Dimension module doesn't give correct height after orientation change

When orientation changes, the height and width are basically flipped. But the dimension module still gives the old height and width.

These should be an easy fix, PR would be appreciated.

@foghina Seems that the dimensions are defined as constants on the native side.

We should restrain from using dimensions as a constants in JS. In fact it would be better if we just delete Dimensions module completely as using it could be harmful. We can consider using react context for passing those but it needs to be clear that dimensions could change and this can happen not only due to orientation change (e.g. on iOS when incoming call bar is active)

@kmagiera What do you mean by harmful?

I've seen people trying to use dimensions consts to fix the height (or position) of some of the elements on the screen. In that case when you turn "incoming call" bar on iOS (or when hotspot is enabled) that element will go offscreen or will be cropped which is a bad user experience. Also people don't usually test their apps with incoming call bar on, so this is difficult to be noticed by dev teams. RN provides a better ways to position or stretch such elements. From our experience, in most of the cases it's sufficient to use flex properties to achieve the same goals (onLayout would be the last resort)

@kmagiera Understood. Thanks.

Fixed in b653d43e2e9d8a5506818b47d69993328132bbe4


Fix the override setting to allow for false values

Hi @paoloricciuti 👋
I found a small bug when using the package with a store value that was a boolean, and by default false. I had this mount on a form submit after which a checkbox component would be mounted, mapped to a queryParam store that was of type boolean and by default false. It caused this weird infinite redirect loop, here is a little video of it:
https://github.com/paoloricciuti/sveltekit-search-params/assets/34274090/042fc7a7-e133-4633-9798-4e817b78dad0
Was able to trace it down to an evaluation of $override which wouldn't work for false values. Changed it to do a comparison of null which should be a bit safer, as the type of this is T | null, so I assume that we want this path to run only when non-null.

Summary by CodeRabbit

Bug Fixes

Improved the accuracy of query parameter handling by ensuring only non-null values affect the control flow.

Hey @paoloricciuti 👋 Just following up here, I processed your suggestion a couple days ago, so should be all good now 🚀

Hey @paoloricciuti 👋 Just following up here, I processed your suggestion a couple days ago, so should be all good now 🚀

Ugh sorry...thanks for pinging me


JSON val parse error (acvp_post_data: 3251)

environment
Demo
testSessionId
N/A
vsId
N/A
Algorithm registration
N/A
Endpoint in which the error is experienced
https://demo.acvts.nist.gov/acvp/v1/login POST
Expected behavior
Access token is received in JSON response
Additional context
wolds@wolds-dev-u22:~/dev/acvt/libacvp$ ./app/acvp_app --post ./app/login_metadata.txt
Using the following parameters:
ACV_SERVER:     demo.acvts.nist.gov
ACV_PORT:       443
ACV_URI_PREFIX: /acvp/v1/
ACV_CA_FILE:    /home/wolds/dev/acvt/libacvp/certs/mozzila_trust_anchors.pem
ACV_CERT_FILE:  /home/wolds/dev/acvt/libacvp/certs/CloudSoftwareGroup_Walt_Olds_Demo.cer
ACV_KEY_FILE:   /home/wolds/dev/acvt/libacvp/certs/CloudSoftwareGroup_Walt_Olds_Demo.key

***ACVP [STATUS][acvp_login:2723]--> Logging in...
Enter PEM pass phrase:
***ACVP [STATUS][acvp_login:2743]--> Login successful
***ACVP [ERR][acvp_post_data:3251]--> JSON val parse error
wolds@wolds-dev-u22:  ~/dev/acvt/libacvp$ cat ./app/login_metadata.txt
/acvp/v1/login
wolds@wolds-dev-u22:  ~/dev/acvt/libacvp$

Hello,
The post command is intended for use with metadata resources and not for logins. It may work, but that is not its intended use. The object you are trying to post does not match the expected format; please see the examples in the metadata folder. The file must contain valid JSON for a given URL and the payload to be sent (for the sake of login, you need a payload with a TOTP.)
Generally, if you are just trying to do basic ACVP interactions, Using any of the algorithm commands, test session commands, or a --get command (e.g. --get /acvp/v1/algorithms) will cause libacvp to login automatically. Libacvp is not designed for manually interacting with individual endpoint on the ACV server and we are unable to support using it this way currently.
Thanks,
Andrew

Hi,
Closing this for now, feel free to reopen if you have further questions after checking the existing docs/examples.
Thanks,
Andrew


Added additional types "SelectableText", "Icon" and "DropCapText" with usage examples

I would first like to thank you for the awesome plugin! It was exactly what I was looking for.
For my project I needed type "SelectableText", so I decided to create this pull as others might also be looking for this functionality as well. I also found it a bit odd that the text maxLines property was defaulted to 1 since the native Flutter widgets do not require a value for this property, which I believe would be better suited as the default functionality for this plugin as well.

@mrjacobphillips   sorry to see it so later, could you make some sample usage for these two new widgets in  "example" folder, widget_json.dart and main.dart files. Thanks.

Absolutely, I have now created these missing examples and added additional type Icon.

@mrjacobphillips  thanks, it has been merged.

@mrjacobphillips  what's the flutter version you used, i see some compile errors.
1、

2、

here is my "flutter doctor"
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.15.3 19D76, locale zh-Hans-CN)     • Flutter version 1.9.1+hotfix.6 at /Users/denny/Work/Utils/flutter     • Framework revision 68587a0916 (6 months ago), 2019-09-13 19:46:58 -0700     • Engine revision b863200c37     • Dart version 2.5.0

Oh my apologies, I made these changes using the dev channel.
[✓] Flutter (Channel dev, v1.15.19, on Mac OS X 10.15 19A573a, locale en-US)     • Flutter version 1.15.19 at /Users/jacob/Documents/flutter     • Framework revision 60d0fef17a (10 days ago), 2020-03-09 22:07:34 -0700     • Engine revision 0e2c8feeeb     • Dart version 2.8.0 (build 2.8.0-dev.12.0 9983424a3c)

By the looks of things, it should work correctly on the beta channel as well. Stable is just really behind...

By the looks of things, it should work correctly on the beta channel as well. Stable is just really behind...

Ok, I will make it works in latest stable channel.


returning stale data on every alternate api calls

Using django-cachalot==1.2.0 with Django==1.10.3 and I'm facing this problem where on every alternate api call I am receiving stale data.

django-cachalot 1.2.× was not compatible with Django 1.10, use a more recent version instead.


how to implement paging and filter of scrudview in general forms or table

please help for implement paging and filter.


chore(templates/java_library): close maven dependencies tag in bom snippet

b/332619238

Looks like there are some golden files failing tests: https://github.com/googleapis/sdk-platform-java/actions/runs/10565169041/job/29271089335?pr=3106
Where are those golden files stored so I can update them?

Looks like there are some golden files failing tests: https://github.com/googleapis/sdk-platform-java/actions/runs/10565169041/job/29271089335?pr=3106
Where are those golden files stored so I can update them?

Unfortunately it's not easy to update them, it's a branch in google-cloud-java at this moment. We plan to change it to golden files in this repo but didn't get a chance to get to it yet. We'll take care of updating it.

Thanks @blakeli0!

Thanks Tomo and Joe!


Slot will not be filled - every time None

Rasa Core version:
$ >pip list | grep rasa
rasa-core                     0.9.8
rasa-nlu                      0.12.3
Python version:
3.6.6
Operating system (windows, osx, ...):
mac os
Darwin MacBook-Pro-4.local 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64
Issue:
Content of domain file (if used & relevant):
intents:
- greet
- goodbye
- user_need_help
- inform

entities:
- user_need_help
- username

actions:
- utter_user_authorization
- utter_greet
- utter_goodbye
- coco.ActionHelp
- utter_greet_user

templates:
    utter_user_authorization:
        - "I have to authorize you. Please enter your first name"

    utter_greet:
        - "Nice to meet you. What can I do for you?"

    utter_goodbye:
        - "Hope, I could help you. Good bye"

    utter_greet_user:
        - "Hi {username}"
slots:
    username:
        type: text

as an example from data.json
...
{
"text": "my name is peter",
"intent": "inform",
"entities": [
{
"start": 11,
"end": 16,
"value": "peter",
"entity": "username"
}
]
},
{
"text": "here is frank",
"intent": "inform",
"entities": [
{
"start": 8,
"end": 13,
"value": "frank",
"entity": "username"
}
]
},
{
"text": "here is marie-luise",
"intent": "inform",
"entities": [
{
"start": 8,
"end": 19,
"value": "marie-luise",
"entity": "username"
}
]
},
...
stories.md
Story 01a

greet

utter_greet
utter_user_authorization

inform

utter_greet_user

goodbye

utter_goodbye

story 02

goodbye

utter_goodbye

** Problem: **
I trained NLU and rasa_core-dialog - no error messages
Than I started training_online
Example (during online training)
user: hi
Bot: utter_greet (ok)
Bot: utter_user_authorization (ok) => action_listen (ok)
user: my name is bernd
bot:
user said:	my name is bernd
	 whose intent is:	inform

we currently have slots: username: None

The bot wants to [utter_greet_user] due to the intent. Is this correct?
Itent : OK
Action: ok
Seems entity will not be recognized
and is username not filled?
Entity (see above) is "username"
I believe it's a rookie error - but I worked a couple of hours on it :-( - hope somebody give me a kick :-)
Cheers

How much training data do you have for this entity? Names are quite hard to extract so you need quite a bit of training data

at least 8 data entries in where I inserted "entity":"username".
Text examples
"my name is peter",
"my name is hans-peter"
"hans-peter"
"here is frank"
"here is marie-luise"
"I'm Bernd"
"I'm peter-pan"
"myname"
All above are like this:
{
"text": "I'm peter-pan",
"intent": "inform",
"entities": [
{
"start": 4,
"end": 13,
"value": "peter-pan",
"entity": "username"
}
]
},

BTW: I create some more intents with entity "username". During train_nlu I got below warnings
UndefinedMetricWarning: F-score is ill-defined and being set to 0.0 in labels with no predicted samples.   'precision', 'predicted', average, warn_for) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/sklearn/metrics/classification.py:1135: UndefinedMetricWarning: F-score is ill-defined and being set to 0.0 in labels with no predicted samples.   'precision', 'predicted', average, warn_for)
Can I ignore them?

ok, but I'm (honestly) a little bit surprised, because, in your examples, with weather-bot and the entity location. It works, isn't it?
From a technical point of view, between "location" and "username" is not a big difference and
second point - both are type: text -  If my bot ask for an name. I assume the user write most time only "his/her" name and maybe sometimes "My name...".  What kind of "training data should I include more?
Is the length of the "input string : like Frank or Bernhard or Bob" relevant? If yes, than I understood your recommendation, to include more training data . If not, I'm a little bit confused ;-)

I inserted a couple of more entries for first names. But I believe there is something wrong in general.
As attachment I include my project. Hop I do not forget something.
Don't worry about the MOCK python file, it's for later use but it's called in the current script.
Hope that somebody can help me to fix my issue
Thank's a lot to the community to help me.
myIssue.zip

The issue with names is there's no real pattern there, and so it's quite hard for NLU to pick up consistently. What you can definitely try as well is using ner_spacy, this has an inbuilt entity called PERSON, which should help pick up some of the names.
As for your question about what other training data to add - more different kinds of names in the sentence structures you already have

ok, will give ner_spacy a chance :-). Hope it will fix it.
But as I said, I do not 100% understand, what is the technical difference between
"in what location do you want to eat?" and user insert " Berlin"
or
"Hi, what is you name?" and user insert "Bernd"
both are entities, which we can use and both should store the value in a slot with a type text. (e.g. location and username)
mmhm, I believe, I do not understand the context behind the scene :-O

What's obvious to a human sadly is not always obvious to a machine :D location names are actually also quite hard to recognise as soon as you start varying them

Is ner_spacy helping?

not 100%, but with ner_spacy - better. Sometimes I got a value in a slot, sometimes not :-/
Changed to FormAction (with all handicaps behind) as well, that's much more better but I'm struggle around ;-)
Before I start on scratch for my "real" bot I will have a small simple bot which I can used with training_online, slot filling (context), form actions and a straightforward dialog flow

Yeah sadly person names are quite hard. I'm afraid there's no obvious solution there, apart from adding more training data with time and it will get better!
I'll close this issue for now then, if you have any more issues feel free to open a new one


Add null graphics device

This adds NullGraphicsDevice and other prerequisite classes which implement no-op methods. This is to allow a graphics device to exist for systems like CI or headless windows.

Looks good! It may be best to check the MapBuffer implementation to make sure you don't get null errors, although I can't see it being a problem. I've suggested some changes to make the classes sealed, as other Pie backends also are sealed.
Other than those small things, it looks good and I'll be happy to merge! Thanks for the PR!

I've added basic implementation where the NullGraphicsBuffer should store contents through a buffer allocated by Marshal.AllocHGlobal which is then later freed when disposed.


No matching version found for<EMAIL_ADDRESS>

Encountering the same error when installing the dependencies,
npm install is completely failing

Duplicate of #12.


[Launcher] Give info on failure when running Shell commands

Environment
Windows build number: Microsoft Windows [Version 10.0.18363.418]
PowerToys version: v0.18.1
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run

Steps to reproduce
Run:
> winget install edge
Expected behavior
Should install Edge browser or give an info message of why it couldn't be installed
Actual behavior
Shell flickers then goes away because the command results in a:
Multiple apps found matching input criteria. Please refine the input.
response from winget but the shell disappears too quickly for user to see.
Not sure what the best way to handle this is, but maybe shell can show something if happy path is not successfully traversed.

issue is this is how run prompt would
if you executed winget install powertoysafdsafdafdsfsd, it would just fail.  There is a issue for better handling this but that is the behavior that run does right now

Yeah, I understand why the behavior exists, but given PowerToy has a UI, it would nice if it could capture the info from the shell.

@saadfarooq, we are independent of CMD, nor we do we route info to / back.  On a long running process for instance, the PT Run dialog could gone for minutes even and then flash back with the error.  That could heavily disrupt any workflow you're currently in


Just 2 questions about Unreal Engine, dxvk and texture flickering.

Sorry if I'm writing in the wrong place, but I have 2 questions about Unreal Engine 4 and dxvk .. Why in 99.9% of cases UE4 and dxvk can cause texture flickering on GFX7? At the same time, in version dxvk-1.00, the flickers are minimal, but the further the version, the flickers increase.. As far as I know, this is related to nvidia and it is possible to replace DeviceID and VendorID.. Is there a way to fix this?

I don't know what you're talking about, there has never been a report about texture flickering in UE4.
Then again, most people already moved on to more recent GPUs, so probably you're running into some sort of driver issue.

Excuse for troubling.


7TV TeaTime emote broken on linux (AppImage), rendering all frames of gif layered over one another instead of cycling them

Checklist

[X] I'm reporting a problem with Chatterino
[X] I've verified that I'm running the most recent nightly build or stable release
[X] I've looked for my problem on the wiki
[X] I've searched the issues and pull requests for similar looking reports

Describe your issue
7TV TeaTime emote broken on linux (AppImage), rendering all frames of gif layered over one another instead of cycling them
My setup:

Running the appimage version of Chatterino 2.4.4
Multiple PCs with several Linux distros, Mainly Arch based and Fedora.
DE: KDE plasma.

For several versions of Chatterino on Linux, the 7TV TeaTime emote has been broken, it looks like it is layering all the frames of the GIF on top of each other instead of cycling through them one by one, making it look like a mess.
Don't know if this issue affects more than this one emote, but it is possible.
This issue has persisted through several system updates and re-installations of Linux on multiple PCs and across distros, tho all with KDE plasma as the DE.

I'm open for questions if needed.
Link to emote: TeaTime
Screenshots

OS and Chatterino Version
Chatterino 2.4.4 (commit 29a14627) built with Qt 5.12.12 Running on EndeavourOS, kernel: 6.4.11-arch1-1

This seems to be an issue in Qt 5.12.12 (not on 5.15 or 6.x). See https://github.com/Chatterino/chatterino2/issues/4701.

You're best off using Chatterino from AUR if possible, rather than using the AppImage.
Or, use the flatpak version from flathub: flatpak install chatterino


Debugging/Running a Rust program with WSL fails

OS: Windows 10 10.0.19635 Build 19635
VSCode version:  1.45.1
Extension version: 1.5.2
Toolchain version: nightly-x86_64-unknown-linux-gnu (default), rustc 1.45.0-nightly (7ced01a73 2020-04-30)
Build target: x86_64-unknown-linux-gnu
Python version: Python 3.6.9
Trying to Debug this sample program:
fn main() {
    let name = "my_name";
    println!("Hello, {}!", name);
}

With the following launch.json:
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "lldb",
            "request": "launch",
            "name": "Debug executable 'cryptiger'",
            //"program": "${workspaceFolder}/target/debug/cryptiger",
            "cargo": {
                "args": [
                    "build",
                    "--bin=cryptiger",
                    "--package=cryptiger"
                ],
                "filter": {
                    "name": "cryptiger",
                    "kind": "bin"
                }
            },
            "args": [],
            "cwd": "${workspaceFolder}"
        },
        {
            "type": "lldb",
            "request": "launch",
            "name": "Debug unit tests in executable 'cryptiger'",
            "cargo": {
                "args": [
                    "test",
                    "--no-run",
                    "--bin=cryptiger",
                    "--package=cryptiger"
                ],
                "filter": {
                    "name": "cryptiger",
                    "kind": "bin"
                }
            },
            "args": [],
            "cwd": "${workspaceFolder}"
        }
    ]
}

And the following settings.json:
{
    "debug.allowBreakpointsEverywhere": true,
    "files.watcherExclude": {
        "**/target/**": true
    },
    "lldb.verboseLogging": true,
    "lldb.suppressMissingSourceFiles": false
}

There are 2 issues:

The main problem is that the program cannot be ran/debugged properly. Trying to start a debugger with a breakpoint at the println line starts a "ghost" debugger, meaning the breakpoint is never hit, the debugger is running forever. Killing the debugger leaves a ghost/leaked process running in the WSL and those are never terminated. Running the binary cryptiger from the WSL bash or the vscode terminal executes successfully, but running from the Run menu yields this output and then hangs:

Launching: /home/a/code/cryptiger/target/debug/cryptiger test
Launched process 18676

Perhaps a small issue or nonissue, but in the attached log you can find a weird attempt to execute the bash command <<>> which results in the following output in the TERMINAL tab for a super short moment, and later disappears and the previous output is shown.

In the attached log you can see the line that probably triggers it:
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] <-- {"type":"request","seq":2,"command":"runInTerminal","arguments":{"args":["<<>>"],"cwd":"","kind":"integrated","title":"Debug executable 'cryptiger'"}}
It seems like this behaviour was added a month ago here: https://github.com/vadimcn/vscode-lldb/blob/35151d7d2de84376987e2bbc747192034e307584/adapter/src/terminal.rs#L27

Debug log
Running `cargo build --bin=cryptiger --package=cryptiger --message-format=json`...
    Finished dev [unoptimized + debuginfo] target(s) in 0.01s
Raw artifacts:
{
  fileName: '/home/a/code/cryptiger/target/debug/cryptiger',
  name: 'cryptiger',
  kind: 'bin'
}
Filtered artifacts:
{
  fileName: '/home/a/code/cryptiger/target/debug/cryptiger',
  name: 'cryptiger',
  kind: 'bin'
}
configuration: {
  type: 'lldb',
  request: 'launch',
  name: "Debug executable 'cryptiger'",
  args: [ 'test' ],
  cwd: '${workspaceFolder}',
  relativePathBase: '/home/a/code/cryptiger',
  program: '/home/a/code/cryptiger/target/debug/cryptiger',
  sourceLanguages: [ 'rust' ]
}
liblldb: /home/a/.vscode-server/extensions/vadimcn.vscode-lldb-1.5.2/lldb/lib/liblldb.so
libpython: libpython3.6m.so.1.0
environment: {}
params: { suppressMissingSourceFiles: false, sourceLanguages: [ 'rust' ] }
Listening on port 51299
[2020-06-06T20:50:32Z DEBUG codelldb] New debug session
INFO(Python) 23:50:32 rust: Initializing, module name=rust
DEBUG(Python) 23:50:32 rust: attaching summary get_tuple_summary to "^\(.*\)$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic StrSliceSynthProvider to "&str", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StrSliceSynthProvider to "&str", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching synthetic StrSliceSynthProvider to "str*", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StrSliceSynthProvider to "str*", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching synthetic StdStringSynthProvider to "collections::string::String", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdStringSynthProvider to "collections::string::String", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching synthetic StdStringSynthProvider to "alloc::string::String", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdStringSynthProvider to "alloc::string::String", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching synthetic StdVectorSynthProvider to "^collections::vec::Vec<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdVectorSynthProvider to "^collections::vec::Vec<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic StdVectorSynthProvider to "^alloc::vec::Vec<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdVectorSynthProvider to "^alloc::vec::Vec<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic SliceSynthProvider to "^&(mut\s*)?\[.*\]$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_SliceSynthProvider to "^&(mut\s*)?\[.*\]$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic SliceSynthProvider to "^slice<.+>.*$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_SliceSynthProvider to "^slice<.+>.*$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic StdCStringSynthProvider to "std::ffi::c_str::CString", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdCStringSynthProvider to "std::ffi::c_str::CString", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching synthetic StdCStrSynthProvider to "std::ffi::c_str::CStr", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdCStrSynthProvider to "std::ffi::c_str::CStr", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching synthetic StdOsStringSynthProvider to "std::ffi::os_str::OsString", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdOsStringSynthProvider to "std::ffi::os_str::OsString", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching synthetic StdOsStrSynthProvider to "std::ffi::os_str::OsStr", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdOsStrSynthProvider to "std::ffi::os_str::OsStr", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching synthetic StdPathBufSynthProvider to "std::path::PathBuf", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdPathBufSynthProvider to "std::path::PathBuf", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching synthetic StdPathSynthProvider to "std::path::Path", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdPathSynthProvider to "std::path::Path", is_regex=False
DEBUG(Python) 23:50:32 rust: attaching synthetic StdRcSynthProvider to "^alloc::rc::Rc<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdRcSynthProvider to "^alloc::rc::Rc<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic StdRcSynthProvider to "^alloc::rc::Weak<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdRcSynthProvider to "^alloc::rc::Weak<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic StdArcSynthProvider to "^alloc::(sync|arc)::Arc<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdArcSynthProvider to "^alloc::(sync|arc)::Arc<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic StdArcSynthProvider to "^alloc::(sync|arc)::Weak<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdArcSynthProvider to "^alloc::(sync|arc)::Weak<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic StdMutexSynthProvider to "^std::sync::mutex::Mutex<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdMutexSynthProvider to "^std::sync::mutex::Mutex<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic StdCellSynthProvider to "^core::cell::Cell<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdCellSynthProvider to "^core::cell::Cell<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic StdRefCellSynthProvider to "^core::cell::RefCell<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdRefCellSynthProvider to "^core::cell::RefCell<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic StdRefCellBorrowSynthProvider to "^core::cell::Ref<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdRefCellBorrowSynthProvider to "^core::cell::Ref<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic StdRefCellBorrowSynthProvider to "^core::cell::RefMut<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdRefCellBorrowSynthProvider to "^core::cell::RefMut<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic StdHashMapSynthProvider to "^std::collections::hash::map::HashMap<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdHashMapSynthProvider to "^std::collections::hash::map::HashMap<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic StdHashSetSynthProvider to "^std::collections::hash::set::HashSet<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdHashSetSynthProvider to "^std::collections::hash::set::HashSet<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic StdOptionSynthProvider to "^core::option::Option<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdOptionSynthProvider to "^core::option::Option<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic StdResultSynthProvider to "^core::result::Result<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdResultSynthProvider to "^core::result::Result<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching synthetic StdCowSynthProvider to "^alloc::borrow::Cow<.+>$", is_regex=True
DEBUG(Python) 23:50:32 rust: attaching summary _get_synth_summary_StdCowSynthProvider to "^alloc::borrow::Cow<.+>$", is_regex=True
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] --> {"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"lldb","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us","supportsProgressReporting":true},"type":"request","seq":1}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":1,"success":true,"command":"initialize","body":{"exceptionBreakpointFilters":[{"default":true,"filter":"rust_panic","label":"Rust: on panic"}],"supportTerminateDebuggee":true,"supportsCompletionsRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsDataBreakpoints":true,"supportsDelayedStackTraceLoading":true,"supportsEvaluateForHovers":true,"supportsFunctionBreakpoints":true,"supportsGotoTargetsRequest":true,"supportsHitConditionalBreakpoints":true,"supportsLogPoints":true,"supportsRestartFrame":true,"supportsSetVariable":true}}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] --> {"command":"launch","arguments":{"type":"lldb","request":"launch","name":"Debug executable 'cryptiger'","args":["test"],"cwd":"/home/a/code/cryptiger","relativePathBase":"/home/a/code/cryptiger","program":"/home/a/code/cryptiger/target/debug/cryptiger","sourceLanguages":["rust"],"_adapterSettings":{"displayFormat":"auto","showDisassembly":"auto","dereferencePointers":true,"suppressMissingSourceFiles":false,"evaluationTimeout":5,"consoleMode":"commands","sourceLanguages":null},"__sessionId":"12bc6023-d0cd-4b9d-8ce6-98f444ae3430"},"type":"request","seq":2}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":1,"event":"initialized"}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] <-- {"type":"request","seq":2,"command":"runInTerminal","arguments":{"args":["<<>>"],"cwd":"","kind":"integrated","title":"Debug executable 'cryptiger'"}}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] --> {"command":"setBreakpoints","arguments":{"source":{"name":"main.rs","path":"/home/a/code/cryptiger/src/main.rs"},"lines":[4],"breakpoints":[{"line":4}],"sourceModified":false},"type":"request","seq":3}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] --> {"type":"response","seq":4,"command":"runInTerminal","request_seq":2,"success":true,"body":{"shellProcessId":6603}}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":3,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"line":4,"message":"Locations: 1","verified":true}]}}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] <-- {"type":"request","seq":3,"command":"runInTerminal","arguments":{"args":["/home/a/.vscode-server/extensions/vadimcn.vscode-lldb-1.5.2/adapter/codelldb","terminal-agent","--port=51301"],"cwd":"","kind":"integrated","title":"Debug executable 'cryptiger'"}}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] --> {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":5}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":5,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]}}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] --> {"command":"setDataBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":6}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":6,"success":true,"command":"setDataBreakpoints","body":{"breakpoints":[]}}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] --> {"command":"setExceptionBreakpoints","arguments":{"filters":["rust_panic"]},"type":"request","seq":7}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] --> {"type":"response","seq":8,"command":"runInTerminal","request_seq":3,"success":true,"body":{"shellProcessId":6603}}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":7,"success":true,"command":"setExceptionBreakpoints"}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] --> {"command":"configurationDone","type":"request","seq":9}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":9,"success":true,"command":"configurationDone"}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":4,"event":"output","body":{"output":"Launching: /home/a/code/cryptiger/target/debug/cryptiger test\n"}}
[2020-06-06T20:50:32Z DEBUG codelldb::dap_codec] --> {"command":"threads","type":"request","seq":10}
[2020-06-06T20:50:33Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":5,"event":"output","body":{"output":"Launched process 18964\n"}}
[2020-06-06T20:50:33Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2,"success":true,"command":"launch"}
[2020-06-06T20:50:33Z DEBUG codelldb::debug_session] Debug event: 0x7ffff5ca2b90 Event: broadcaster = 0x7ffff57734a0 (lldb.target), type = 0x00000002 (modules-loaded), data = {ld-2.27.so}
[2020-06-06T20:50:33Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":10,"success":true,"command":"threads","body":{"threads":[{"id":18964,"name":"1: tid=18964 \"cryptiger\""}]}}
[2020-06-06T20:50:33Z DEBUG codelldb::debug_session] Debug event: 0x7ffff5ca7f40 Event: broadcaster = 0x7ffff57734a0 (lldb.target), type = 0x00000002 (modules-loaded), data = {[vdso](0x00007ffffffef000)}
[2020-06-06T20:50:33Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":6,"event":"module","body":{"module":{"addressRange":"7FFFFF400000","id":"7FFFFF400000","name":"ld-2.27.so","path":"/lib/x86_64-linux-gnu/ld-2.27.so","symbolFilePath":"/usr/lib/debug/lib/x86_64-linux-gnu/ld-2.27.so","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-06T20:50:33Z DEBUG codelldb::debug_session] Debug event: 0x7ffff5ca88e0 Event: broadcaster = 0x7ffff57734a0 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2020-06-06T20:50:33Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":7,"event":"module","body":{"module":{"addressRange":"7FFFFFFEF000","id":"7FFFFFFEF000","name":"[vdso]","path":"[vdso]","symbolStatus":"Symbols not found"},"reason":"new"}}
[2020-06-06T20:50:33Z DEBUG codelldb::debug_session] Debug event: 0x7ffff5ca89a0 Event: broadcaster = 0x7ffff57734a0 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2020-06-06T20:50:33Z DEBUG codelldb::debug_session] Debug event: 0x7ffff5ca8aa0 Event: broadcaster = 0x7ffff57734a0 (lldb.target), type = 0x00000002 (modules-loaded), data = {cryptiger}
[2020-06-06T20:50:33Z DEBUG codelldb::debug_session] Debug event: 0x7ffff5ca9b50 Event: broadcaster = 0x7ffff5adfca8 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x7ffff5adfc70 (pid = 18964), state = running}
[2020-06-06T20:50:33Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":8,"event":"module","body":{"module":{"addressRange":"8000000","id":"8000000","name":"cryptiger","path":"/home/a/code/cryptiger/target/debug/cryptiger","symbolFilePath":"/home/a/code/cryptiger/target/debug/cryptiger","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2020-06-06T20:50:33Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":9,"event":"continued","body":{"allThreadsContinued":true,"threadId":0}}
[2020-06-06T20:50:37Z DEBUG codelldb::dap_codec] --> {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":11}
[2020-06-06T20:50:38Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":11,"success":true,"command":"disconnect"}
[2020-06-06T20:50:38Z DEBUG codelldb::debug_session] Debug event: 0x7ffff5afac00 Event: broadcaster = 0x7ffff5adfca8 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x7ffff5adfc70 (pid = 18964), state = exited}
[2020-06-06T20:50:38Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":10,"event":"output","body":{"output":"Process exited with code -1.\n"}}
[2020-06-06T20:50:38Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":11,"event":"exited","body":{"exitCode":-1}}
[2020-06-06T20:50:38Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":12,"event":"terminated","body":{}}
[2020-06-06T20:50:38Z DEBUG codelldb::dap_session] Client has disconnected
[2020-06-06T20:50:38Z DEBUG codelldb::debug_session] End of the requests stream
[2020-06-06T20:50:38Z DEBUG codelldb::debug_session] DebugSession::drop()
[2020-06-06T20:50:38Z DEBUG codelldb] Session has ended
[2020-06-06T20:50:38Z DEBUG codelldb] Exiting
Debug adapter exit code=0, signal=null.

WSL1 or WSL2?   LLDB doesn't work on WSL1.

WSL 2

The issue is now resolved. I was sure that if I have WSL2 installed it will be the default for all the distros I install. I realized it's not the case and once I upgraded my distro from WSL 1 to 2, everything worked normally.
Thanks!


Master latest rebase

The core team is busy and does not have time to mentor nor babysit new contributors. If a member of the core team thinks that reviewing and understanding your work will take more time and effort than writing it from scratch by themselves, your contribution will be dismissed. It is your responsibility to communicate and figure out how to reduce the likelihood of this!
Read the contributing guidelines for more details: https://github.com/iced-rs/iced/blob/master/CONTRIBUTING.md

This should be ready for review. I created a tag https://github.com/pop-os/iced/releases/tag/v0.12.1 for the current latest commit.


Tweak padding of time button a bit for smaller screens

Smaller screens (375px) don't display the TIME button on the UI.
Therefore decreasing the padding a bit, so that the range of devices supported by the UI increases.
On big screens the difference is not much.
https://github.com/Wonderland-Money/wonderland-frontend/issues/11

That's how it would look like on a big screen:

And this on small screen (e.g. 365px)

The button with dropdown now shows at the 371px - 385px range as well

fixes #11


Remove unused code

onFullscreenChangeComplete never used

This was added in #11. You can register handlers in your own directives / components.

The method is never used internally but it's an exposed API that may be used by the library users.


updated weserv.nl URL that isn't throttled by cloudflare

RE: https://github.com/elninotech/uppload/blob/master/src/helpers/http.ts#L52

Thanks!

Confirming, select image moment after using stable diffusion is working again via the hackernoon text editor https://hackernoon.com/preview/zvv5mXyVgqwgQJQbuOuZ


added  code of conduct page

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
#1167
Type of change

[ ] Added a new machine learning frameworks, libraries or software.
[ ] Documentation update

Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings

@sanjay-kv

It is looking like this because i have zoomed it out but it is look good if you take it properly


fix: closed stream

Closes #4.

Dear @dkarlovi
this change breaks a unit test - which seems ok for me at this moment - could you please adjust the unit test?
Thanks for your contribution!

could you please adjust the unit test?

Sure. :+1: I'll check what exactly broke.

@m2mtech sure, I'll test it out and let you know. My assumption is the fact fseek() is being done on a closed resource will be the issue here still, but will check. The changes made in this and the next PR were made with the app having everything set up with Azure Blob Storage (via Flysystem) and it 100% didn't work before the changes, but 100% works after them.


upd: parallel threads acccepted as args in NewDumper

Accepting threads as an argument

I added a default of 50 if 0 or less and I added the number of threads to the header template


General fixes

added missing .coveralls.yml - please enable coveralls for the repo
added missing entries in .gitattributes
removed unused use statements
fixed order of use statements
added attribute to process uncovered files from whitelist - phpunit config
removed allow_failures on PHP 7.2

Thanks, @webimpress


🐛 Bug Report: Overflowing text when user inputs a long string without spaces

📜 Description
When user inputs a long string without spaces it overflows
👟 Reproduction steps
Enter a long string without spaces

👍 Expected behavior
It should break works according to parent container size.
👎 Actual Behavior with Screenshots
It should not overflow when user inputs a long string without spaces
💻 Operating system
Windows
What browsers are you seeing the problem on?
Chrome
🤖 What development environment are you experiencing this bug on?
Local dev server
🔒 Did you set the correct environment variables in the right path? List the environment variable names (not values please!)
No response
📃 Provide any additional context for the Bug.
No response
📖 Relevant log output
No response
👀 Have you spent some time to check if this bug has been raised before?

[X] I checked and didn't find similar issue

🔗 Are you willing to submit PR?
Yes, I am willing to submit a PR!
🧑⚖ Code of Conduct

[X] I agree to follow this project's Code of Conduct

@ArnabBCA
It's an excellent approach to contribute.

Closed in #427


Regression on flutter_gallery__image_cache_memory start-min

Started at https://github.com/flutter/flutter/commit/09002457f9ceb989af570a40b1441f1e5c27eab4 which seems to enable some tests that weren't running before. @Piinks do you think this might be causing the benchmark tests to take longer? Should this metric be rebaselined?

Could be. I don't know that the change there affected flutter_gallery tests though.

It might actually be https://github.com/flutter/flutter/commit/eef3d48377045a846fa865c54c1cccad30a410f9 (I missed that one earlier). Running local tests to figure it out.

This metric was rebaselined with https://github.com/flutter/flutter/issues/37273. The increase was expected due to a change in the implementation.


Support binddn in authentication LDAP

https://kyuubi.readthedocs.io/en/v1.0.1/security/authentication.html
authentication with ldap need to support binddn and password ?
not find binddn and password

hi @shuoliu1 , does #712 addressed your issue ? if so, it's a new configuration in Kyuubi 1.2.0

binddn Account and password required for authentication?

You can find some more details about LDAP in the docs, and for the binddn it's optional with uid by default in Kyuubi.

ldap.binddn is not supported in Kyuubi yet. The feature supported in HMS.
https://github.com/apache/hive/blob/master/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java#L794

Hi @lordk911, thanks for your previous great work on LDAP-related issues, are you interested in this one?

Hi @lordk911, thanks for your previous great work on LDAP-related issues, are you interested in this one?

Thanks, I think just add two config property is not complex, But I don't have the environment for test, So sorry I cat't help.
And I'm not familiar about LDAP, but my understand about binddn is just define who can query the directoy, kyuubi dosn't need
the query behavior when authentication by using LDAP.


Higher res overworld map

added higher resolution overworld map
updated launcher card to match new map art
hard coded moveDistance to 2 to prevent dither flickering

Amazing work Nick! Thanks for these additions!


Do not use POST requests for everything

Most routes are use HTTP POST even to fetch a resource, which does not conform to REST philosophy. They should be rewritten to use the appropriate HTTP verbs based on their function.
From a very cursory examination, /chkuser, /getuser and /allusers should be GET, /deleteusers should be DELETE and /updateuser should be a PUT/PATCH request.
The changes are minimal, I can submit a PR if you are interested.

I agree that using GET/PUT(or PATCH)/POST/DELETE is better for these and much more RESTlike. The question is how this will affect FE's adapter.

Which FE adapter are you referring to?

https://github.com/HospitalRun/hospitalrun-frontend/blob/master/app/adapters/application.js
https://github.com/HospitalRun/hospitalrun-frontend/blob/master/app/adapters/user.js
and also:
https://github.com/HospitalRun/hospitalrun-frontend/blob/master/server/routes/couchuser.js#L98

The routes in question are no longer needed on the server (see HospitalRun/hospitalrun-frontend@f185df149874a8ee9527fc8dd832ee1ef15a1432 and HospitalRun/hospitalrun-frontend@8b6a26da4414d6797c4ae115205032a24e6265b4) and they will be removed from the server


ProgressBar not displayed in FooterView

On scrolling to end of current list, more items are to be loaded. While the items are being fetched from tmdb, a footer with a progress bar is to be shown. Some code changes have led to this not being shown.

recyclerView.loadingComplete() was called immediately after loadMovies(). However, the latter function is asynchronous, thereby loadingComplete() incorrectly hid the ProgressBar.
Issue was resolved by calling loadingComplete() in updateList().


Login / Register

Have a login and register system

This is my definition of done at first glance.  Everyone else is welcome to bring modification suggestions for this and Shruti can make one that will take precedence over mine

[ ] Login Page/Popup
[ ] Login Button
[ ] Register Button
[ ] Register Page/Popup
[ ] Takes User Input


Fix query failed metric double count bug

Fixes #17453.
In QueryResultPusher#handleDruidException, there is a codepath that can result in double-counting of query failure count metrics: query/failed/count.
Affected Versions
Druid 27.0.0 - Latest

Description
Failed Query Double-Counting with Non-Null ResponseWriter (e.g exception with partial response).
In QueryResultPusher#handleDruidException, I believe there is a codepath that can result in double-counting of query failures. This regression seems to have originated from this commit. Prior to this, an early return was preventing this case – seen here.
This refactors the errorsome query metric recording flow to single function called in the beginning of the handleDruidException() method.
Release note

Fixes a bug where failed queries with non-null response writers were emitting double-counted query/failed/count metrics.

Key changed/added classes in this PR

server/src/main/java/org/apache/druid/server/QueryResultPusher.java
server/src/test/java/org/apache/druid/server/QueryResourceTest.java

This PR has:

[x] been self-reviewed.

[x] using the concurrency checklist (Remove this item if the PR doesn't have any relation to concurrency.)

[ ] added documentation for new or modified features or behaviors.
[x] a release note entry in the PR description.
[ ] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
[ ] added or updated version, license, or notice information in licenses.yaml
[x] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
[x] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
[ ] added integration tests.
[ ] been tested in a test Druid cluster.

@maytasm do you think it's good to merge?


[CHORE] Add PowerShell build script

Also: updated bash build script.

[CHORE] Add PowerShell build script #30
Also: Update bash build script.


Upload an Android version of the Flutter app for testing

Source issue: https://github.com/mlcommons/mobile_app_flutter/issues/321
We need to build Android version of the Flutter app and upload the apk so people interested in it can download and test it.

The Android version of the Flutter app won't run without network and file access permissions. https://github.com/mlcommons/mobile_app_open/pull/131

Proprietary backend files live here:
https://github.com/mlcommons/mobile_back_*
(you need to be an MLC contractor)

I have built an APK with all backends (tflite, neuron, pixel, qti, samsung).
The APK can be downloaded from the Releases page: https://github.com/mlcommons/mobile_app_open/releases/tag/v3.0.0-flutter-android-alpha-1

Thanks Danil for sharing the APK.
I tried this apk internally on a Qualcomm device. The libqtibackend.so loads just fine, But Qualcomm needs the location of the library to be passed during create.
https://github.com/mlcommons/mobile_app_open/blob/master/mobile_back_qti/cpp/backend_qti/qti_c.cc#L84
This path is used for loading the libs required for DSP communication. These libs are bundled within the apk itself.
I debugged and found that currently the lib_path is coming as an empty string. Can you please check this part?

@mohitmundhragithub, the Flutter app has native lib path hardcoded, it always passes an empty string.
I'll fix it, upload a new APK and ping you when I'm done so you can test if it will work with the fix.

@mohitmundhragithub, could you check if this APK works?
https://drive.google.com/file/d/1n_SwqOhtHL2Y-oxxicjoZT_3QjntNMkn/view?usp=sharing

I tried this apk shared. But the numbers are too low. Which SNPE SDK and qti backend code base did you use to build the apk?

I used SNPE SDK <IP_ADDRESS>58, and the following commit: https://github.com/mlcommons/mobile_app_open/tree/817505143a9374ac99096c16057da1eadf21b7d3

I checked further. Looks like this apk provided doesn't load qti backend. Can you please have a look?
Line 2140: 12-02 10:18:31.417 12644 12644 W FlutterActivityAndFragmentDelegate: A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
Line 2140: 12-02 10:18:31.417 12644 12644 W FlutterActivityAndFragmentDelegate: A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
Line 2140: 12-02 10:18:31.417 12644 12644 W FlutterActivityAndFragmentDelegate: A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
Line 2158: 12-02 10:18:31.456 12644 12688 I flutter : await getNativeLibraryPath() /data/app/~~C6uTDYv6GocmK7tPHLm71w==/org.mlcommons.android.mlperfbench-kOhUvMEGD_wiuzw4aN_ptw==/lib/arm64
Line 2159: 12-02 10:18:31.462 12644 12688 I native  : cpp/flutter/dart_backend_match.cc:14 checking backend 'libtflitebackend.so' ...
Line 2162: 12-02 10:18:31.462 12644 12688 I native  : cpp/flutter/dart_backend_match.cc:43 checking pbdata
Line 2163: 12-02 10:18:31.462 12644 12688 I native  : cpp/flutter/dart_backend_match.cc:70 backend matches
Line 2648: 12-02 10:18:38.203 12644 12688 I flutter : Running Benchmark:IC_tpu_uint8 in performance mode...

Seems like I messed up the previous build. Sorry for this.
Here is a new one: https://drive.google.com/file/d/1993wNscwePY1jReyvE5JCs2doDMCqp4a/view?usp=sharing

I was able to run this apk with qualcomm backend.
But, looks like that the configuration for offline case has some changes, because I am getting very low score, ~170QPS instead of ~2500QPS.

@mohitmundhragithub, I'll try investigating this.
In the meantime, could you approve https://github.com/mlcommons/mobile_app_open/pull/156?

Closing this off. Please continue perf work in other issues.


Training and Testing Data saved in appending ("a") mode instead of creating new file ("w") mode

patient_conversation-positive.txt, patient_conversation-negative.txt and patient_conversations-test.txt are written in append-a mode instead of write-w mode, so if the cell is run multiple times in the Jupyter notebook without restarting the kernel, it can lead to replication and hence duplication of data.

Fixed - commit #fd507c7640125c5748150de62ac4b76b6c20d5f7


Add RSS generation of LinksOfTheWeek - WIP

Made a few changes. Minor stuff. Looks good. Now I am trying to find an RSS reader that allows me to open a local file. Do you know one?

maybe via https://validator.w3.org/feed/#validate_by_input ?

Is it still WIP? Or can I merge it now and hook it up to the app?

I am going on vacation in two days and would love to have it integrated before then.

Just need to know how this RSS String can be made public via an URL. Should be saved to a file?

The integration will be done by me and Florian. No need for you to do anything more.

Thanks! Looking forward to the result. Please let me know if I can do something more.


[QUERY] How to use the Microsoft.Azure.Management.Sql.Fluent to pause database

Query/Question
I noticed there is a PauseAsync in Microsoft.Azure.Management.Sql.Fluent.DatabasesOperationsExtensions. And it expects an IDatabasesOperations. I googled lots of places: Microsoft.com, github etc., even reading through the source code of the sdk, could not find out what exact object I should pass that implements that interface.
I tried:
FooIAzure.SqlServers.Inner
And I tried:
var sqlServer = azure.SqlServers.GetByResourceGroup("FooRG", "FooServer");

var sqlDatabase = azure.SqlServers.Databases.GetById("FooDatabase');

sqlDatabase.PauseAsync(); //not the right interface
sqlDatabase.Inner.PauseAsync(); //not the right interface

Environment:

Name and version of the Library package used: [Microsoft.Azure.Management.Fluent 1.37.1]
Hosting platform or OS and .NET runtime version

.NET SDK (reflecting any global.json):
Version:   5.0.201
Commit:    a09bd5c86c
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.17763
OS Platform: Windows
RID:         win10-x64
Base Path:   C:\Program Files\dotnet\sdk\5.0.201\
Host (useful for support):
Version: 5.0.4
Commit:  f27d337295
.NET SDKs installed:
2.1.809 [C:\Program Files\dotnet\sdk]
5.0.201 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download

IDE and version : [Visual Studio 16.9.2]

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

hi, is there any update on this please?

@yungezz Can you please answer about the usage of this extension method?

add @weidongxu-microsoft to help on this

@unruledboy
It is .NET extension method. https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/extension-methods
First parameter only means it extends the IDatabasesOperations interface.

@weidongxu-microsoft  I know what extension method is.
I am only asking exactly how to use this API, if you would please look closer to my question above.
To simply put, how do I obtain an instance of IDatabasesOperations.

@unruledboy
azure.SqlServers.Manager.Inner.Databases

For .NET, the development focus has shifted to the next generation of Azure SDKs which follows the new SDK guideline and introduces a set of important new features. Those new packages are currently in preview state and we are actively working on making it production ready. You can visit this link here to see the latest .NET packages:
https://devblogs.microsoft.com/azure-sdk/october-2020-management-ga/
We have also published a few blog posts on why we are doing this:
https://devblogs.microsoft.com/azure-sdk/introducing-new-previews-for-azure-management-libraries/
With this background, .NET Fluent is currently in a low maintenance mode, and we mostly do security and bug fixes. It is subject to deprecation in the future when the new set of .NET packages become Generally Available (GA). Please let us know if there are further questions, thanks!

@unruledboy
azure.SqlServers.Manager.Inner.Databases

Hi, when I use that, it gave me this error:
This feature is not available for the selected database's edition (THE-NAME-OF-THE-DATABASE).'
The database is currently on General Purpose: Serverless, Gen5, 6 vCores, which clearly supports database pause/resume.

For .NET, the development focus has shifted to the next generation of Azure SDKs which follows the new SDK guideline and introduces a set of important new features. Those new packages are currently in preview state and we are actively working on making it production ready. You can visit this link here to see the latest .NET packages:
https://devblogs.microsoft.com/azure-sdk/october-2020-management-ga/
We have also published a few blog posts on why we are doing this:
https://devblogs.microsoft.com/azure-sdk/introducing-new-previews-for-azure-management-libraries/
With this background, .NET Fluent is currently in a low maintenance mode, and we mostly do security and bug fixes. It is subject to deprecation in the future when the new set of .NET packages become Generally Available (GA). Please let us know if there are further questions, thanks!

Sure, I can have a look. thx

@unruledboy
This message is likely from service. It they do not support it, they might have the reason. Some google result, but might be not very up-to-date https://www.sqlservercentral.com/forums/topic/can-an-azure-sql-database-be-paused
If you have the logging https://github.com/Azure/azure-libraries-for-net#logging, we can involve service team, if you can paste the response JSON from service.
Note that in Fluent SDK, the "pause" is available for sql warehouse https://github.com/Azure/azure-libraries-for-net/blob/master/src/ResourceManagement/Sql/SqlWarehouseImpl.cs#L33-L37

Hi,
Right, so this is only for Azure SQL warehouse only, NOT for serverless tier of Azure SQL database? Is there one API for this product edition? Happy to use any API that works.

@unruledboy
If it is not supported by sql service, there is no API that works.
The next thing near it might be "auto-pause delay" when create/update the sql database. However it is not available in Fluent SDK.
Likely you need to wait for the new generation SDK (I believe will be preview on June or July).

Hi @weidongxu-microsoft  I do notice there is a setting, but in Azure Portal minimal is required to use 1 hour, cannot be less than that, like 5 minute.


[WIP] [Falco 0.37.0] cleanup(falco): remove --userspace flag

What type of PR is this?
/kind cleanup
Any specific area of the project related to this PR?
/area falco-chart
What this PR does / why we need it:
This PR removes the --userspace flag from Falco helm chart
Which issue(s) this PR fixes:
Special notes for your reviewer:
Checklist

[ ] Chart Version bumped
[ ] Variables are documented in the README.md
[ ] CHANGELOG.md updated

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Andreagit97
Once this PR has been reviewed and has the lgtm label, please assign leogr for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

This PR is just to remind us that we need to remove the --userspace flag before releasing the helm chart, because it doesn't exist anymore. This PR will fail until we bump the Falco version in the helm chart since the new engine.kind config is supported only in Falco 0.37.0.
Some side notes:

do we still need the --disable-source flag, now that we have kind.engine = none
do we really need the block driver in the helm chart .yaml? why not use the new Falco config?

do we really need the block driver in the helm chart .yaml? why not use the new Falco config?

In the end yes we need to keep it, because there are leastPrivileged and hostNetwork fields that are only inherent to the deployment of Falco

done in #601


Tutorial adding command

For code base tutorial purposes.
NOTE: do not merge.

Closed. For tutorial purposes only.


fix(flake): Mark TestUpgradeConfigFailure as flake

What does this PR do?
Mark TestUpgradeConfigFailure as flake to stabilize main
Motivation
Describe how to test/QA your changes
Possible Drawbacks / Trade-offs
Additional Notes

/merge


The code execution cannot proceed because MSVCR120.dll was not found.

Reinstalling the program may fix this problem.

No, reinstalling the PicoTorrent is not going to help, no matter the personal luck you own.
This happens in either portable and setup version of the PicoTorrent,
after first launch of the exe execution file.
Solution to the missing library called MSVCR120.dll:
So, what we can do about this? Well simply include Visual C++ Redistributable Packages for Visual Studio 2013
Both vcredist packages are needed to be included, however, both are not needed to be installed, only the one for the needed architecture.

vcredist_x86
vcredist_x64

Visual C++ Redistributable for Visual Studio 2015
2015 do not include the needed MSVCR120.dll,
that means only recent Visual C++ Redistributable Packages for Visual Studio 2013 has capability to fix this error.

Issue confirmed on win7.  The best solution may be to add a check in picotorrent for the dependency then error out with a link to microsoft's installer download page.  This would be the least footprint for a good solution, as it doesnt involve needing to package the redists into the installer and you dont need to add a downloader into picotorrent.

Did you use the installer or the zip package? If you run the portable zip-package you would install the redistributable yourself, but the installer should download the correct C++ runtime at install time.

I used the installer, but I think the download timed out and after an hour I clicked cancel and it still finished setup without it.

Oh ok, that shouldn't happen. Sorry!
However, it's non-trivial to add a runtime check in PicoTorrent since we rely quite heavily on the runtime and its existance. I'll see if I can add something to the 1.0 release :smile:

Maybe a note on http://www.picotorrent.org/download/ about the dependency might be a good idea.

Fixed in #486