Add support for async wrapped handlers

This adds some basic support for Node v8 in that it will check if there was a returned result from the wrapped handler and, if that result is also a promise, it will avoid the scenario of returning nested promises.
I tried to add some test coverage that seemed to follow a similar pattern as to the existing tests, but they should only execute when tested with node v8 or up (as they rely upon the async/await features).

I guess the difference between this and #22 is that this does not require a different mechanism for executing the wrapper (via runAsync), as it will continue to work as expected via the normal run command.

Could you pls add a test for a case when I use a callback at async handler, see:
const testMod8 = {
  handler: async (event, context, callback) => {
    if (event.test === "success") {
      callback(null, "Success");
    }
    if (event.test === "fail") {
     callback(new Error("Fail"));
    }
  }
};

PS: nobody force me to get rid of a callback in case of async handler

@dhm116 Thanks for the PR. Included in lambda-wrapper 0.3.0

@Enase that scenario you're describing would be mixing promises and callbacks, which is never recommended anyhow - I don't mind creating a follow-up PR with additional test coverage around that scenario if others think it would be beneficial...

@Enase I had the same concern as @dmh116, i.e. it is difficult to see a real-life / best practice scenario where you would use async with callbacks instead of Promises hence I did not include the proposed change in the merge

@mpuittinen I totally agree with you. but in a real life code is written using async handlers for nodejs6.10. Most of people just changed babel config options and now we have async handlers that use callbacks. My goal is just to point you on a trouble. Just imagine how many people will copy paste the example from serverless blog or Serverless Node.js Starter and many and many other places.
Once again, in general you are absolutely right.

@Enase true, the blog / starter may drive people to "bad" practices. Since it's just a question of test cases (no code changes on the actual modules), I've added those.


Please add this example for parent-child with complex object two-way binding

Here is some sample code I wrote to use a complex object with two-way binding from parent-child. It also shows TypeConverting for the custom class for passing in the bind.
    using System.ComponentModel;
    [TypeConverter(typeof(MyClassConverter))]
    public class MyClass
    {
        public string Property1 { get; set; }
        public int Property2 { get; set; }
        public MyClass(string p1, int p2)
        {
            Property1 = p1;
            Property2 = p2;
        }
    }

   using System;
   using System.ComponentModel;
   using System.Globalization;

    [TypeConverter(typeof(MyClassConverter))]
    public class MyClassConverter : TypeConverter
    {
        public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
        {
            if (sourceType == typeof(string))
            {
                return true;
            }
            return base.CanConvertFrom(context, sourceType);
        }
        public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
        {
            if (value is string)
            {
                return new MyClass("", Int32.Parse(value.ToString()));
            }
            return base.ConvertFrom(context, culture, value);
        }
        public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
        {
            if (destinationType == typeof(string)) { return "___"; }
            return base.ConvertTo(context, culture, value, destinationType);
        }
    }

@page "/"

Parent Component

Parent Property1: @ParentMyClass.Property1

Parent Property2: @ParentMyClass.Property2

    <button class="btn btn-primary" @onclick="ChangeTheData">
        Change the data from Parent
    </button>

    <Child @bind-myClass="ParentMyClass" @onchange="RefreshParent" />

@code{
    private MyClass ParentMyClass { get; set; } = new MyClass("Initial data before changed", 2000);
    private void RefreshParent(UIChangeEventArgs args)
    {
        StateHasChanged();

        // If you need access to which property changed in the child and its value
        string changedProperty = args.Type;
        var changedValue = args.Value;

    }
    private void ChangeTheData()
    {
        ParentMyClass.Property1 = "I got changed by the parent";
        ParentMyClass.Property2 = 1776;
    }
}

Child Component

Child Property1: @myClass.Property1

<input type="text" @onchange="Property1Changed"<EMAIL_ADDRESS>/>

Child Property2: @myClass.Property2

<input type="number" @onchange="Property2Changed"<EMAIL_ADDRESS>/>

@code {
    [Parameter] private MyClass myClass { get; set; }
    [Parameter] public EventCallback<UIChangeEventArgs> MyClassChanged { get; set; }
    [Parameter] public EventCallback<UIChangeEventArgs> OnChange { get; set; }

    private async Task Property1Changed(UIChangeEventArgs args)
    {
        myClass.Property1 = args.Value.ToString();
        args.Type = "Property1";
        await OnChange.InvokeAsync(args);
    }
    private async Task Property2Changed(UIChangeEventArgs args)
    {
        if (int.TryParse(args.Value.ToString(), out int iValue))
        {
            myClass.Property2 = iValue;
            args.Type = "Property2";
            await OnChange.InvokeAsync(args);
        }
    }
}

Note the above example is missing one concept. If the value entered by the user is invalid, how to reset the child input to the value in the class. I was able to figure that out. To try that, just change Property2 to a input type text then enter a non-integer value.

Thanks @VR-Architect ... This seems like a duplicate of https://github.com/aspnet/AspNetCore.Docs/issues/13539. Why didn't you add this to that issue?

@guardrex Sorry, I didn't know about that one. Please feel free to close this if needed.

Do you plan to move this to a comment over there, or would you like me to move it?

I suppose a cross-link to this is ok. It would have been a bit more visible to just paste it all into a new comment over there.

I moved it. thanks again


install go1.7 ERROR

$ gvm install go1.7
Downloading Go source...
Installing go1.7...
 * Compiling...
ERROR: Failed to compile. Check the logs at /home/blahblahblah/.gvm/logs/go-go1.7-compile.log
ERROR: Failed to use installed version

$ cat /home/blahblahblah/.gvm/logs/go-go1.7-compile.log
##### Building Go bootstrap tool.
cmd/dist
ERROR: Cannot find /home/blahblahblah/go1.4/bin/go.

I have go 1.6 on my ubuntu already, do I need to install go 1.4 yet in gvm, that to install go 1.7 there? wat?

tl;dr just set $GOROOT first
It's a little silly. However, you don't need to downgrade go, 1.4 is just the minimum version required.
You just need to tell the go boostrap tool (separate from gvm) where a valid Go installation (>=1.4) lives, so it can compile the latest Go you are trying to install
$GOROOT_BOOSTRAP is set to $GOROOT if $GOROOT_BOOSTRAP is not defined.
If you set GOROOT_BOOTSTRAP to the path where 1.6 is installed, it should compile just fine.
ex: I have installed 1.6 at /Drive/username/.gvm/gos/go1.6/bin/go. To upgrade, do
export GOROOT_BOOSTRAP=/Users/username/.gvm/gos/go1.6
gvm install go1.7

which is equivalent to
export GOROOT=/Users/username/.gvm/gos/go1.6
gvm install go1.7

This is because Go >1.4 compiles using Go.

added $GOROOT in .bashrc looks like it helped, thx.
I'm closing this

But it still getting the same error if you need recompile the entire language using all.bash

I installed go (1.6) from the package manager (on Ubuntu 16.04) , and and ran:
export GOROOT_BOOTSTRAP=/usr/lib/go-1.6
after that I was able to:
gvm install go1.9.2.


'Cheerio' refers to a value, but is being used as a type in server-test-utils/types

Version
1.1.1
Steps to reproduce

Check the file https://github.com/vuejs/vue-test-utils/blob/dev/packages/server-test-utils/types/index.d.ts
Typescript compiler shows the error 'Cheerio' refers to a value, but is being used as a type here. Did you mean 'typeof Cheerio'?ts(2749)

Expected behaviour
There should be no error/warning from the TS compiler.
Actual behaviour
This issue prevents TypeScript compilation.

Seem you found a fix - will you be making a PR?

@lmiller1990 I thought, that I know how to fix it. But it turned out, that I don't. The Cheerio package does not export the Cheerio interface and it seems, that there is no way to explicitly import it.

I see - so maybe something needs to happen in Cheerio. Sounds like we cannot fix it in here for now?


Rearranging all the files and put it into a structure

Anyone can take their time out and put all the files in named manner and make it more visually appealing and more accessible to people.

I would like to work on this @biratdatta. One quick question: Do you basically want the files to be put into the respective folders in the repo?

Yeah that's what I wanted @Swap-nil-2003

May I also contribute to this?

@Swap-nil-2003 what is the status?

@biratdatta I have raised the PR in #145


[utils] Move @material-ui/core/utils to @material-ui/utils

This PR prepares unnecessary changes for introducing the @material-ui/unstyled package. It moves the @material-ui/core/utils utilities to @material-ui/utils, so that those can be reused in the new package.
Exception from this rule is the createSvgIcon utility that was moved to '@material-ui/core/SvgIcon' because it depends on the SvgIcon component.
As part of the PR there is a codemod prepared (heavily inspired by the optimal-imports codemod), that basically replaces the old imports from @material-ui/core/utils to @material-ui/utils.
Example:
import React from 'react';
import { refType, HTMLElementType } from '@material-ui/utils';
import { capitalize } from '@material-ui/core/utils';
import { ownerDocument, isMuiElement } from '@material-ui/core/utils';
import { createSvgIcon } from '@material-ui/core/utils';

will be transformed to
import React from 'react';
import { refType, HTMLElementType, capitalize, ownerDocument, isMuiElement } from '@material-ui/utils';
import { createSvgIcon } from '@material-ui/core/SvgIcon';

The netlify build is failing because of the following:
3:26:54 PM: Failed to compile.
3:26:54 PM:
3:26:54 PM: ModuleNotFoundError: Module not found: Error: Can't resolve '../../../../packages/material-ui/src/utils' in '/opt/build/repo/node_modules/@material-ui/pickers/dist'
3:26:54 PM: > Build error occurred
3:26:54 PM: Error: > Build failed because of webpack errors
3:26:54 PM:     at build (/opt/build/repo/node_modules/next/dist/build/index.js:15:918)
3:26:54 PM:     at process._tickCallback (internal/process/next_tick.js:68:7)
3:26:54 PM: error Command failed with exit code 1.
3:26:54 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
3:26:54 PM: error Command failed.
3:26:54 PM: Exit code: 1

I am open to ideas how to fix this.

I really am sorry about the +190 files changed 😢 but most of them should be just imports changes, so hopefully it won't be too hard for reviewing...

Closing in favor of https://github.com/mui-org/material-ui/pull/23264 as proposed in https://github.com/mui-org/material-ui/pull/23203#discussion_r511498090


Creating a mask from WKT multipolygons using openCV and tiff libraries?

I'm trying to create a binary mask from a WKT multipolygon which is a csv file with python openCV, shapely and tiff libraries in Jupiter Notebook. There's also another csv file that contains Xmax and Ymin of the image. However, I keep getting a black image. here's the code:
from collections import defaultdict
import csv, sys, cv2
from shapely.geometry import MultiPolygon, Polygon
import shapely.wkt
import shapely.affinity
import numpy as np
import tifffile as tiff
import matplotlib.pyplot as plt

maxInt = sys.maxsize
decrement = True

while decrement:
    # decrease the maxInt value by factor 10
    # as long as the OverflowError occurs.

    decrement = False
    try:
        csv.field_size_limit(maxInt)
    except OverflowError:
        maxInt = int(maxInt/10)
        decrement = True

x_max = y_min = None
for _im_id, _x, _y in csv.reader(open('GridSize.csv')):
    if _im_id == IM_ID:
        x_max, y_min = float(_x), float(_y)
        break

sample_polygons = None
for _im_id, _poly_type, _poly in csv.reader(open('WKT_polygons.csv')):
    if _im_id == IM_ID and _poly_type == POLY_TYPE:
        sample_polygons = shapely.wkt.loads(_poly)
        break

im_rgb = tiff.imread('image.tif')
im_size = im_rgb.shape[:2]

def polygons_mask(polygons):
    img_mask = np.zeros(im_size, np.uint8)
    if not polygons:
        return img_mask
    int_coords = lambda x: np.array(x).round().astype(np.int32)
    exteriors = [int_coords(poly.exterior.coords) for poly in polygons]
    interiors = [int_coords(pi.coords) for poly in polygons
                 for pi in poly.interiors]
    cv2.fillPoly(img_mask, exteriors, 1)
    cv2.fillPoly(img_mask, interiors, 0)
    return img_mask

_mask = polygons_mask(sample_polygons)
tiff.imshow(_mask)[0]

Any ideas?

Your issue has nothing to do with opencvsharp.


Import very big databases scripts (sql files)

Hello,
I'm starting to use this program and is very usefull, but I'm not able to find the way to import an SQL file without load it into the program.
The problem is that SQL file is very big, so try to load it into the program fails with an "memory out" error.
Is there any way to execute an SQL file without load it?, like command line programs such mysql (you can cat a very big file and mysql just run the queries without load it into memory). If not, will be a nice feature, because I'm trying to copy a MsSQL database to another instance and is a big pain.
Thanks and greetings!.

For MySQL you could use import tool:

However you will need to install MySQL local client for that. We have feature request #3778 which will let to avoid this step.

@tati-kru , didn't work for PostgreSQL.

@AndreiPashkin please write more details.
What error do you see, what PG server version do you have?

Task 'PostgreSQL restore' started at Tue Nov 03 15:34:57 CET 2020
pg_restore: error: did not find magic string in file header
Task 'PostgreSQL restore' finished at Tue Nov 03 15:34:57 CET 2020

Not suitable for importing plain SQL?


SAK-30631; Ajax not working, displays link rather than calling it

subtle change in jquery, requires quotes in selectors of form [id="foo"]. Apparently they used to be optional.

LGTM


Updating dependencies

Hi @markdalgleish. Would it be ok to update the dependencies for the plugin? I'd be glad to do a PR if you think it's a good idea.
Thanks!

See PR #3.


Update readme

Happy for your input on this more detailed description of the model method.
One consideration would be whether we want to actually enforce certain input arguments in the model method (e.g. a data=None default). Perhaps using something like an abstract base class?

This change to the readme should more-or-less clarify https://github.com/ag-perception-wallis-lab/numpyro-oop/issues/2

LGTM. The changes in the readme clarify a lot of the design choices.


0.27.5-0.27.6 Client Package Bump

Bump the client package so we can deploy a new version

repo-policy-check is failing: https://dev.azure.com/fluidframework/public/_build/results?buildId=7691&view=logs&j=12f1170f-54f2-53f3-20dd-22fc7dff55f9&t=baa7d181-d9ee-513a-8016-f44a98fd040e&l=218

repo-policy-check is failing: dev.azure.com/fluidframework/public/_build/results?buildId=7691&view=logs&j=12f1170f-54f2-53f3-20dd-22fc7dff55f9&t=baa7d181-d9ee-513a-8016-f44a98fd040e&l=218

Package-lock and lerna-package-lock were accidentally included, just removed them.

Successful policy-check run now: https://dev.azure.com/fluidframework/public/_build/results?buildId=7699&view=results

Successful packages build as well: https://dev.azure.com/fluidframework/public/_build/results?buildId=7700&view=results


Add Angular Services support

Services are not supported yet

The problem is with add types metadata plugin. Additionally there is similar issue with add decorators metadata, but it does not affect the build. The later requires @babel/types to be able to create static class property. There is an issue in babel repo

Fixed in version 0.0.9


Fix incomplete check on EVP_CIPHER_param_to_asn1()

That function is a wrapper around evp_cipher_param_to_asn1_ex() which can return 0 as an error value via its ret <= 0 check [1]. Furthermore, all other callers of this function check against <= 0 instead of < 0 and this is also in line with what the documentation tells us. Fix the incomplete check by changing it to <= 0 as well.
CLA: trivial
[1] https://github.com/openssl/openssl/blob/114d99b46bfb212ffc510865df317ca2c1542623/crypto/evp/evp_lib.c#L164-L165
Please note that I found this using a static analysis tool I am developing at the moment. It could therefore be a false positive bug. I manually reviewed the case to be extra sure that it is a real bug.

Checklist

[ ] documentation is added or updated
[ ] tests are added or updated

This pull request is ready to merge

Merged, thanks for the fix.


chore(main): release audit 1.46.0

:robot: I have created a release beep boop
1.46.0 (2023-08-25)
Features

label dependency relations in charts (98fc1e8)
support npm v1 lockfiles (f5da842)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/sandworm-hq/sandworm-audit/releases/tag/audit-v1.46.0 :sunflower:


Better rojo support

Changed default.project.json so it's easier to add to a rojo project.

You don't actually need the default.project.json file. What I'm doing is just taking the Zone Folder with the init.lua inside and adding it to my project src/shared/controllers. That way everything settles down.

This is something we're exploring to improve as part of the next release, although thanks for your PR.


MQTT

Is support for MQTT planned?

How would that work? If you want to send the data from Nilan to a mqtt broker, I believe that there is a solution for that.

Hi, thanks, I'll look into it.
Could you please add a function to advance the time between defrosts? This option in the HMI is Thank you.

Hi, could you please open a new issue and close this one if the issue is resolved. I will look into adding those features when I have time.


Create Posts “html-highlight-text”

Automatically generated by Netlify CMS

👷 Deploy Preview for monetaboot processing.
🔨 Explore the source changes: dce132f2cb4dcd5f4419e5f86d2a91779cac9cce
🔍 Inspect the deploy log: https://app.netlify.com/sites/monetaboot/deploys/614d0b6532998100086fd32a


Support nogo polygons

Hi,
BRouter supports having any polygon (and polyline) as a nogo area instead of only circles since https://github.com/abrensch/brouter/pull/97. I think it would be super useful to have it in BRouter-web, first as users might be interested into having more control than just circles, but also as BRouter-web is a super nice interface to test and debug quickly BRouter code (so it would be super useful for devs :).
I know UMap (http://umap.openstreetmap.fr/, https://github.com/umap-project/umap/) lets user draw simply polygons on a Leaflet map, so maybe part of this code could be reused? (sorry, I don't know much about brouter-web internals :/)
FWIW, my typical use case for having polygons and polylines (beside dev) is that many cities around here are providing OpenData feeds of current road works. These could be loaded somehow in BRouter-web to avoid crossing these areas.
Thanks!

From #157:

The possibility to draw and edit the polygons as well as their weight. I'm not sure I can help a lot on this, I don't know much about the Leaflet plugin currently used

Drawing with Leaflet.Editable should work with the start* methods within a Leaflet.EasyButton similar to:
https://github.com/nrenner/brouter-web/blob/70a0f73d12fde7c4972427bfc475874f9a0ba52c/js/plugin/NogoAreas.js#L56
Editing should work automatically on click on every layer.
As mentioned above, I added a custom delete button that would need to be adapted to polylines and polygons.
What kind of input do you imagine for the weight? An input field for a float cost value, a slider, a dropdown with categories?

Editing should work automatically on click on every layer.

Indeed, I just made a minor fix and this is working.

What kind of input do you imagine for the weight? An input field for a float cost value, a slider, a dropdown with categories?

I was thinking maybe a small input field next to the custom delete button? I'm not sure whereas having per-nogo area weight within the web interface makes sense though. It could probably be easier to just have an extra button in the left menu, next to the trash icon, opening an input (same as search box) and setting the nogo weight globally.

I guess we would need to try out how adding an input field looks like and if it's getting in the way. Alternatives might be using a popup-style toolbar or a toolbar at the top middle, don't know if it supports adding an input field instead of a button though.
Not sure if changing individual weights will be used, but e.g. it might make sense for disabling a nogo temporarily. And as it is supported, we might just as well show it off.
I'm trying to keep the number of buttons on the screen at a minimum. For a global setting I would prefer to add it to an options tab in the sidebar, that I plan to add anyway. Or maybe that could be a profile setting?

Or maybe that could be a profile setting?

Not sure that's a good idea since profiles are used by BRouter itself and it would not make sense for BRouter to have such a value :/


PYI016 - Duplicates in union

Addresses Y016 in #848:

Unions shouldn't contain duplicates, e.g. str | str is not allowed.

I hope I'm correct in assuming that it's always fixable - and that a suitable fix is to remove the last duplicates.

The field6 = 1 | 0 | 1 case seems like a false-positive to me. I think this lint should only trigger when the | occurs in a typing context. I haven't checked, but I bet Ruff is already able to recognize typing contexts because there's a lot of lints which depend on it.
(Would also be nice to emit this lint for Union[int, int] and x: "int | int" but that's extra)

...but I bet Ruff is already able to recognize typing contexts because there's a lot of lints which depend on it.

Haven't reviewed fully yet but yes: we do have this ability. You probably want to check on checker.ctx.in_type_definition.

Is this a type-only lint? I originally had it that way but changed it because the description didn't mention types.

Is this a type-only lint? I originally had it that way but changed it because the description didn't mention types.

IMO this should definitely be a typing lint. The | operator means something else in non-typing contexts, and this lint can be more useful if it's specific to typing (e.g. also handling Union and string annotations).
Relatedly, I believe flake8-pyi only runs on pyi files, but I don't see a reason to restrict this particular lint in Ruff only to pyi files.

IMO this should definitely be a typing lint. The | operator means something else in non-typing contexts, and this lint can be more useful if it's specific to typing (e.g. also handling Union and string annotations).

AFAIK in non-typing contexts it's a bitwise-or, which is equally pointless to have duplicates in, but I'm happy to change this to type-definitions only.

Relatedly, I believe flake8-pyi only runs on pyi files, but I don't see a reason to restrict this particular lint in Ruff only to pyi files.

Yeah, I believe there have been a few comments about enabling it for .py files. I didn't add anything in this branch to restrict it to only pyi files, so I assume that's being done somewhere else in the code.

Great work! Should be good to merge once we correct that one nuance in the autofix.


Moving cloudflare (hybrid node compat) to external preset

More context and discussion: https://github.com/pi0/unenv-preset-cloudflare/issues/2
/cc @unjs/cloudflare if i missed the invite please mention.

Moving to https://github.com/cloudflare/workers-sdk/issues/7366 (initial PR: https://github.com/cloudflare/workers-sdk/pull/7370 by @vicb ❤ )


Update messages.en

Making content tweaks to https://docs.google.com/document/d/1v5s2iqUXNwZujHjl4b5ftcKfVGxwfSYH8nGYKjX2m84/edit

Yep looks good :)


Add the idle timeout configuration to the Akka client

This PR sets the idle timeout to 5 minutes in order to give enough
time for sequence tests to finish.

This has already been added by me to the relevant application.conf in 1a4493f1facd301d34c2beb5dd011c52d3b2953c. I might've used the wrong setting, but we should keep akka-related settings in the relevant config file, thoughts?


Change navigation map performance monitor to use a struct

Changes navigation map performance monitor to use a struct as it is easier to pass to sub functions.
It is impossible to split that giant map sync function with so many properties that would need to be passed to sub functions individually.

Thanks!


Crash In Flutter Codecs, Simple Two Field Form

Looks like this might be an issue with autofocus. App crashes on the first of two TextFormField with the first having max length 1. The crash occurs when inputting characters past the maxLength limit. Note, the crash happens objective-c side.
TextFormField(maxLength: 1, autofocus: true, inputFormatters: [EmojiInputFormatter()])

Input formatter:
Put a try catch here in case this was this issue
class EmojiInputFormatter extends TextInputFormatter {
  @override
  TextEditingValue formatEditUpdate(
      TextEditingValue oldValue, TextEditingValue newValue) {
    try {
      if (Emojis._emojisMap.isNotEmpty) {
        if (newValue.text.runes.length > oldValue.text.runes.length) {
          var newRunes = newValue.text.runes
              .toList(growable: false)
              .sublist(oldValue.text.runes.length);
          for (var rune in newRunes) {
            if (!Emojis._emojisMap[rune]) {
              return oldValue;
            }
          }
          return newValue;
        } else {
          Emojis.emojisMap;
          return oldValue;
        }
      }
    } catch (e) {
      print(e.toString());
    }
  }
}

Crash
assertion failure in -[FlutterJSONMessageCodec encode:], ../../flutter/shell/platform/darwin/ios/framework/Source/FlutterCodecs.mm:71

20:08:18.369 27 info flutter.tools *** First throw call stack:
20:08:18.369 28 info flutter.tools (
20:08:18.369 29 info flutter.tools 	0   CoreFoundation                      0x000000010fb521e6 __exceptionPreprocess + 294
20:08:18.369 30 info flutter.tools 	1   libobjc.A.dylib                     0x000000010f1e7031 objc_exception_throw + 48
20:08:18.369 31 info flutter.tools 	2   CoreFoundation                      0x000000010fb57472 +[NSException raise:format:arguments:] + 98
20:08:18.369 32 info flutter.tools 	3   Foundation                          0x000000010e10c652 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
20:08:18.369 33 info flutter.tools 	4   Flutter                             0x000000010c93b5e4 -[FlutterJSONMessageCodec encode:] + 413
20:08:18.369 34 info flutter.tools 	5   Flutter                             0x000000010c93b8e3 -[FlutterJSONMethodCodec encodeMethodCall:] + 190
20:08:18.369 35 info flutter.tools 	6   Flutter                             0x000000010c93a7ac -[FlutterMethodChannel invokeMethod:arguments:] + 58
20:08:18.388 36 info flutter.tools Lost connection to device.
20:08:18.419 37 info flutter.tools 	7   Flutter                             0x000000010c947931 -[FlutterViewController updateEditingClient:wit<…>

Flutter:
Flutter 0.5.9-pre.23 • channel master • https://github.com/flutter/flutter.git
Framework • revision ba723b6038 (5 hours ago) • 2018-08-12 16:01:39 -0700
Engine • revision e54bc4ea18
Tools • Dart 2.0.0-dev.69.5.flutter-eab492385c

@aspectgfg
Is this still a valid issue on latest Flutter version ?
I tried your code sample, but it seems to be incomplete, especially, not sure which plugin did you use for this line of code Emojis._emojisMap.
If this issue still persists, can you provide a complete minimal reproducible code sample ?
thanks.

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


feat(v2): convert @docusaurus/plugin-content-blog to TypeScript

Motivation
https://github.com/facebook/docusaurus/issues/1698
I want to contribute to this issue.
Before that, I want to convert plugin code to TypeScript.
I want many opinions.
And I think we need a common type definition module that includes DocusaurusConfig, LoadContext, PluginContent, and so on.
So, I have collected these definitions in typesDocusaurus.ts.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Convert test codes to TypeScript also.
Related PRs
None

I updated this commit.
For lint, I would like to automate lint through the lint-staged & husky module.
below is example.
// package.json
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "*.{js,jsx}": [
      "prettier --config .prettierrc --list-different --write",
      "eslint --fix",
      "git add"
    ],
    "*.{ts,tsx}": [
      "prettier --parser typescript --config .prettierrc --list-different --write",
      "eslint --fix",
      "git add"
    ]
  }

@yangshun I updated this commit.
For lint, I would like to automate lint through the lint-staged & husky module.
below is example.
// package.json
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "*.{js,jsx}": [
      "prettier --config .prettierrc --list-different --write",
      "eslint --fix",
      "git add"
    ],
    "*.{ts,tsx}": [
      "prettier --parser typescript --config .prettierrc --list-different --write",
      "eslint --fix",
      "git add"
    ]
  }


Problem with comments in trino table not being visible

Description
table description is not visible in schema view, but actaully table comment exists.

I was able to see table comment in table ddl.

DBeaver Version
Community Edition Version <IP_ADDRESS>312241705
Operating System
macOS 14.4.1(23E224)
Database and driver
trino 432
trino-jdbc-432.jar
Steps to reproduce

expand trino connection in Database Navigator
double click database (e.g. hive)
double click schema (e.g. default)
Table Description is not visible in Tables view

Additional context
No response

Thank you for bug report


Add PermalinkUtil

This util helps creating and applying a permalink for the given map.
Reads and writes links like
http://fake?zoom=3&center=10;20&layers=peter;pan

Thanks for review!


force a rebuild so we can merge and get build stuff to retrigger

Signed-off-by: Chris Ahl<EMAIL_ADDRESS>Force rebuild for failures after merge in build system

/test e2e-cluster

/test e2e-cluster

/test images


Select field losing focus when value is selected using keyboard(enter) button

When we select value from Select field it loses focus and reset it to the body or somewhere else, On pressing tab it is not moving to the next element.

Tech
Version

Material-UI
0.20.0

React
16.2.0

browser
Chrome

etc

We have been porting the component on the v1 branch. We have reimplemented it from the ground-up.


BNet strand error handling

We have several entry points in the bnet_plugin which have this construct:
https://github.com/EOSIO/eos/pull/3595/files/d3a77774a46547abf1cb231f1c0a8639a0cfcc05#diff-fba600af4c654e900ff8766887744c43R1084
While an error log is "nice" it seems to imply that this is inherently unsafe; if this message is in the log you have made concurrent access/modifications to some sort of state and the process is potentially in a bad state.
We should address these errors in a different way so that this is either removable dead code (provably never happens), this is a halt-and-catch fire immediately, OR there is a "slow path" which produces safe behavior in the unlikely event that this would be triggered.

See discussion : https://github.com/EOSIO/eos/pull/3595#discussion_r191796370


Version conflict does not merge properly

The latest "config.plist" file has version conflict, but is not merged correctly

I just become the collaborator and resolve all the conflicts.


User FileHeader to get filename is random code

When I zip the file in Mac os system, the filename is random code in fileHeader  .i have set the charset as UTF_8 and GBK, but it is still failure.
But in Windows system  it is fine .

File storageFile = transformToFile(storageInputStream, fileName);
ZipFile zf = new ZipFile(storageFile);
zf.setCharset(Charset.forName("UTF-8"));
List fileHeaders = zf.getFileHeaders();
for(int i = 0 ; i < fileHeaders.size() ; i++){
FileHeader fileHeader = fileHeaders.get(i);
String zipEntryName = fileHeader.getFileName();
}

Would it be possible to attach a sample zip file which has this issue?

Would it be possible to attach a sample zip file which has this issue?

Which version of zip4j are you using?

I have tested this with the latest version of zip4j and it works fine. Note that you have to set the charset both during zip creation and extraction. Setting the charset only during extraction will not help. Try this with the latest version.
Since there is no feedback for a long time on this issue, I am going to close it. Feel free to reopen if you still face this issue with the latest version.


Fix react-server-data-bundle-cache logging

We trimmed this string in a lot of places...

Please don't kick the build; I'm filing an issue with nsp

Got a response from nsp:

Apologies for the trouble. We've been experiencing some instabilities related to infrastructure lately. We're working diligently to address these issues and scale up so we can meet demand. Thank you for your patience.

Guess #605 is more important than I thought.  Restarting the build.


Fix step-debugging in Workerd

This PR enables step-debugging when using --worker-unstable in combination with --debug, as well as allowing external DevTools to connect to the workerd inspector.

The approach is a simplified version of what Wrangler does: it adds a server proxy between the workerd and the local debugger which:

Filters all the active workers and only returns the main Hydrogen app worker, so that tools like VSCode can connect easily without specifying addresses (only a port). -- Related https://github.com/cloudflare/miniflare/issues/735
Allows logging to the terminal at the same time the debugger is enabled (without a proxy server, logs would only be ingested by the debugger).
Fixes connection from external DevTools -- Related https://github.com/cloudflare/workerd/pull/1390

To test the debugger in VSCode, add this to .vscode/launch.json and start the debugger after the app is running with h2 dev --worker-unstable --debug.
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Hydrogen",
      "type": "node",
      "request": "attach",
      "port": 9222,
      "cwd": "/",
      "resolveSourceMapLocations": null,
      "attachExistingChildren": false,
      "autoAttachChildProcesses": false,
      "restart": true,
    }
  ]
}

To test Chrome DevTools, open chrome://inspect and make sure the port 9222 is added to the network targets.

Thanks for the review!

It does not work with a "JavaScript Debug Terminal" presumably because VSCode isn't connecting to the right port.

Unfortunately, the JavaScript Debug Terminal can only attach to Node.js processes, it doesn't support connecting to an independent port :/

And if so, then automatically generate the launch config?

This is interesting, maybe we could do this automatically if we detect a .vscode folder at the root when using --debug? 🤔

Not in scope for this work, but it would be great if we could also support something like --debug-brk to automatically pause at startup.

I don't think we can make this work in workerd at the moment.
We could try sending an artificial Debugger.setBreakpoint event pointing to the first line of the worker (outside of fetch). However, we'd need to wait for workerd to send us first a Debugger.scriptParsed, and I think at that point the code in the outer-scope has already run (or will run soon enough and won't wait for our breakpoint event).


Urgent: Updates Github's RSA SSH host key

advanced-checkout/shallow-checkout is currently broken due to GitHub's new key.

@pistazie Thank you!


flecs script parser does not detect simple errors

started flecs explorer in browser
cd explorer/etc
python3 -m http.server

then go to line 66 in the explorer: scene.flecs and change Position3 to Position3A - lights will get removed - no parsing error
now remove the next openingn { and the parser will give you unresolved Position3A
and even after changing the Position3A back to  Position3 you will still get the unresolved Position3A error when introducing other invalid changes
you can also change the numbers into total invalid double values of Position3 or Box like xy12.32gb without getting any parsing errors

Yep I've noticed the same thing. I'll try to fix most of the issues by the next Flecs release!

thanks - btw: nice project

Fixed!


Documentation issue on Unidata web site in netCDF docs

There are some problems with the documentation here:
http://www.unidata.ucar.edu/software/netcdf/docs/file_structure_and_performance.html#large_file_support
The table at the bottom of the section has lost formatting.
Also where it says "See Which Format" the hyperlink of "Which Format" is missing.

Thanks! Lots of work left to do to get the documentation squared away, this sort of catch is very helpful!  Also, thanks for your recent blog post, it was very informative. :).

Merging into 4.5.0 release branch, will propagate to master after checks have finished.


fixVersion override fails for transition

This change for this issue seems to cause an error if attempting to override fixVersions.
jira resolve -ofixVersions="fixVersion1,fixVersion2" <ISSUE>
ERROR template: gojira:26:14: executing "gojira" at <.name>: can't evaluate field name in type string

Shouldn't the fixVersions override for this template use {.} not {.name}?
.name makes sense if it's coming from the existing JIRA structure (i.e. line 508) but the override values array resulting from splitting by comma won't have .name so line 507 should reference {.} instead?
Or am I just using the fixVersions override incorrectly?

fixed in latest release


Getting "Too many users" error with UDP

For some reason when trying UDP sockets I get error 87 when binding, meaning "Too many users". Why is this?
USER8: LCORE[1] ans_bind(21) failed, err=87

Please ignore udp.

It's not working yet?

Didn't test it for a long time.

More than one udp fd bind to the same port.


US975260: Release prep

https://internal.almoctane.com/ui/entity-navigation?p=131002/6001&entityType=work_item&id=975260

CI Build Link:
https://sou-jenkins2.swinfra.net/job/WorkerFramework/job/WorkerFramework~worker-framework-testing~975260-1~CI


Add corpus test scripts + update README.md

Closes #70
Now people can run corpus tests in parallel on Unix OSs, but the CI tests are still powershell/sequential.

@jonesmartins when I try to run ./test/run-corpus.sh I get the output xargs: npx tree-sitter parse -q {}: No such file or directory, why is this?

It's because "npx tree-sitter parse -q {}" in run-corpus.sh doesn't need quotes. Sorry about that...


FastReport.Utils.CompilerException: Error CS0006 Microsoft.CSharp cannot be found

Hi, the same error, that has already been reported:
Prerequisites: FastReport v. 2<IP_ADDRESS>
WinForms 4.8
CS-Code:
Report report = new Report();
report.Load(@"C:\Title.frx");
DataSet data = new DataSet();
data.ReadXml(@"C:\DataSource.xml");
report.RegisterData(data.Tables[0], "MySource");
report.Prepare(); //FastReport.Utils.CompilerException: Error CS0006
frx file in attachment
Can anybody tell me, what's wrong here?
Title.zip

I use the library:
FastReport.OpenSource.Data.MsSql - 2021.4.0
I solved it putting to the same version:
FastReport.OpenSource
FastReport.OpenSource.Export.PdfSimple

Hello!
Is the package installed? https://www.nuget.org/packages/FastReport.Compat/
Best regards
Marat


Fixed the card's animation.

And a new card has been added so please update your fork and add the animation to that one as well. @hs-07

Here is the clip
https://user-images.githubusercontent.com/87127387/193860292-812cc6f9-499d-468e-8a45-5954d0edcaa4.mp4

@lovishprabhakar
these changes are applied to all the cards, so dont worry

Great work @hs-07!


Consider bringing back to vue file support?

Thanks for this great project, by far the most reliable and up-to-date Typescript template for vue.
I ran into an issue while importing a third-party component:
import SomeComponent from 'blablabla/src/componentA');

The file componentA is written in .vue, so running npm run dev gives "This dependency was not found", it seems that the loaders used to process the .vue files are removed in this project.

I agree, I should bring it back because I hit this issue too.
User should be able to use in the same project both vue files and vanilla ts/css/template files. I'll merge back vue loader support for official vuesjs-templates/webpack.

@mgenware I wrote a pull request for this, but I currently do have time to test it that much. Maybe you could give it a try ?

To support importing .vue components from standard .ts files, I also need to switch back to ts-loader. I'll introduce the brand new fork-ts-checker-webpack-plugin that seems to do what awesome-typescript-loader do while still using official typescript loader.

Awesome, thank you, I'm on a trip, will try it later 😃


Windows: Add CredentialSpec

Signed-off-by: John Howard<EMAIL_ADDRESS>The Windows implementation of the docker daemon still passes a number of fields out of band from the OCI runtime spec. This PR addresses the CredentialSpec field by adding it to the runtime spec. (https://github.com/moby/moby/blob/master/libcontainerd/client_windows.go#L177-L178)

Added matching change to schema\config-windows.json

Updated to aka.ms links. Thanks @patricklang 😸

LGTM

LGTM

LGTM


[BUG] epbf 采集数据报错

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

DeepFlow Component
Agent
What you expected to happen
agent采集ebpf数据报错

客服那里有日志记录
How to reproduce
No response
DeepFlow version
[root@ ~]# kubectl exec -it -n deepflow ds/deepflow-agent -- deepflow-agent -v
Defaulted container "deepflow-agent" out of: deepflow-agent, configure-sysctl (init)
4483-9cfb24c9c7add03fa9805886c5bfbcb848510072
Name: deepflow-agent enterprise edition
Branch: B_LC_RELEASE_v6_4
CommitId: 9cfb24c9c7add03fa9805886c5bfbcb848510072
RevCount: 4483
Compiler: rustc 1.75.0 (82e1608df 2023-12-21)
CompileTime: 2024-01-18 10:52:39
kubectl exec -it -n deepflow deploy/deepflow-server -- deepflow-server -v
Name: deepflow-server community edition
Branch: v6.6.1
CommitID: 6eb9865fee448337a54b71e8e260318005c1669f
RevCount: 10797
Compiler: go version go1.21.12 linux/amd64
CompileTime: 2024-07-19 02:07:39
DeepFlow agent list
No response
Kubernetes CNI
No response
Operation-System/Kernel version
No response
Anything else
No response
Are you willing to submit a PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

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

[root@ ~]# kubectl exec -it -n deepflow ds/deepflow-agent -- deepflow-agent -v
Defaulted container "deepflow-agent" out of: deepflow-agent, configure-sysctl (init)
4483-9cfb24c9c7add03fa9805886c5bfbcb848510072
Name: deepflow-agent enterprise edition
Branch: B_LC_RELEASE_v6_4
CommitId: 9cfb24c9c7add03fa9805886c5bfbcb848510072
RevCount: 4483
B_LC_RELEASE_v6_4   4483这个版本不支持3.10内核
请升级版本 6.4.9 最新版本（比如 v6.4.4713）
@tjlqq


[MLS Spec change] Remove AppAck proposal. (#654)

Link to the exact changes
https://github.com/mlswg/mls-protocol/pull/654
Description of the changes

AppAck is only partially implemented so far. Since the AppAck proposal spec moves to draft-mls-extensions we might still implement it and therefore we should not remove it from the code just yet.

I moved this out of spec changes to extension work.

When fully implementing AppAck, it should be added as a test case to test_valsem242.


Filtering listings not obvious

On the @helpdesk, about 20 people have asked why they are only seeing 4 listings. We tell them to try disabling "Filtered listings". Maybe the toggle needs to be emphasized somehow?

The toggle has been emphasized in master, and will be much more obvious in the next release.

I think this feature should be off by default. I don't see any case where somebody needs to only see items from stores he likes.
Perhaps it could be decided in the installation process? If I wasn't using Slack I'd probably never find the filter.

Currently, we default to only followed stores because we can't control what images are in listings, and we've had problems when testing where people would use OpenBazaar for the first time and see disturbing or inappropriate images.
This is very much a temporary measure, long term we have significantly better solutions in the works.

An image could be flagged and hidden by the user if he finds it offensive. But I'm looking forward to mentioned solutions.


Too many open files

Bug description
I am running a docker swarm with 7 nodes 3 managers and 4 workers. I have deployed portainer via the stack file, with agents and portainer it's self. After some time an agent instance will report high cpu usage 60-70% and the portainer instance will not load any data about services, stacks etc.
When i look at the log files for the agent with the high CPU i get:
2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files

Expected behavior
I would expect that the portainer instance loads all the data it can, so i can continue to use it as much as possible. An error message explaining that it was unable to contact an agent would also be helpful.
Steps to reproduce the issue:
I do not have any specific steps to reproduce it. Just seems to happen randomly.
Technical details:

Portainer version: 1.18.0
Docker version (managed by Portainer): 18.03.1-ce
Platform (windows/linux): Amazon Linux AMI release 2018.03
Command used to start Portainer (docker run -p 9000:9000 portainer/portainer): sudo curl -L https://portainer.io/download/portainer-agent-stack.yml -o portainer-agent-stack.yml
sudo docker stack deploy --compose-file=portainer-agent-stack.yml portainer
Browser: Firefox 60.0.2 (64-bit)

We have experienced this issue again with nearly 1000000 log messages in 3 mins. Any update on this?

Sorry @Umaaz we were not able to investigate this yet, I've referenced a network instability issue with serf inside AWS, might be related: https://github.com/hashicorp/serf/issues/512

I am running portainer as a service on a dedicated server. The same error occurs for me. A restart helps, but after some time (within 24 hours) the error re-occurs. So this is only occurring on AWS.
portainer[25005]: 2018/08/06 12:33:03 http: Accept error: accept tcp <IP_ADDRESS>:8080: accept4: too many open files; retrying in 1s portainer[25005]: 2018/08/06 12:33:04 http: Accept error: accept tcp <IP_ADDRESS>:8080: accept4: too many open files; retrying in 1s

@daneZz are you using the agent setup?

@deviantony I used the "Deploy Portainer without Docker" part from the documentation on https://portainer.readthedocs.io/en/latest/deployment.html.

I figured why this happens. It seems that the connection amount of portainer continuously increases. I suspect that connections are properly closed.
Environment
Portainer version: 1.19.1 (runs as a service in Linux, not in a docker container).
I am running a docker swarm with 10 docker servers. (DESTINATION_*). The portainer service is running on a dedicated server.
 I ran into the same issue again running portainer simply with:
docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer

On an AWSLinux2 Host connected to 4 Docker Endpoints. It wasn't even running for 24 Hours before i had to restart portainer.

I got the same issue , that I have to reboot the hosts everyday

I am experiencing the same issue as well. I am running v1.19.1 on an AWS EC2 container

I'm curious if this could be caused by the recently introduced snapshot feature. Can anyone try to reproduce this error with snapshots disabled ? Use the --no-snapshot flag to disable these.

Have never heard of a snapshot feature - and if I search in the documentation (https://portainer.readthedocs.io/en/stable/search.html?q=snapshot&check_keywords=yes&area=default) for "snapshot" nothing pops up. So I have no clue if adding the flag will help.

@guppie70 snapshots were introduced in 1.19.1, it will periodically poll the endpoints you have defined in Portainer to refresh the information available in the home view.
Flags are missing from the configuration section of the docs, will update it.

@deviantony I have re-initiated my portainer container with the --no-snapshot flag. Since I do not know how to enforce the error, we will need to wait and see if portainer keeps running in the coming period. I am happy to share any other information that might help you to locate the problem though. Just let me know!

Awesome, I do not have any lead on this problem yet. Please report it there if you still encounter the issue.

Got the same issue on our setup:

Docker Swarm
Portainer 1.19.1
Running Portainer Agent Stack Deployment

It takes 2 - 3 days till these errors come up. I only need to restart portainer UI. Agents can keep on running.
We see three error types:
First, Portainer UI gets 4 - 8 of the following errors, 5 minutes in between these errors:
cron error: endpoint snapshot error (endpoint=someHost, URL=tcp://tasks.agent:9001) (err=Cannot connect to the Docker daemon at tcp://tasks.agent:9001. Is the docker daemon running?)
Afterwards it becomes, 5 minutes in between these errors:
cron error: endpoint snapshot error (endpoint=someHost, URL=tcp://tasks.agent:9001) (err=error during connect: Get https://tasks.agent:9001/_ping: dial tcp: lookup tasks.agent on <IP_ADDRESS>:53: dial udp <IP_ADDRESS>:53: socket: too many open files)
After 4 - 5 hours logs get flooded by this error, one line each second:
http: Accept error: accept tcp [::]:9000: accept4: too many open files; retrying in 1s
Error type 2 still comes up every 5 minutes.
Will try --no-snapshot as well.

Having same issue almost every day. Swarm with 5 nodes, ~300 containers on AWS.
I'll be glad to establish chat contact with you (gtalk, slack etc) to be able to provide more information about problem (straces etc) while it happening

@deviantony
Portainer seems to be running much more stable with the --no-snaspshot added. It's now up for 4 days without any issues!

@deviantony we are now running portainer/portainer:1.19.2 and we are still facing the issue when using the portainer/agent:latest
2018/09/26 21:20:37 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files

Please let us know if we need to make any other changes.

Will re-open as we only fix this for the Portainer part actually, not for the agent.

@deviantony thanks for this. In the mean time would --no-snapshot help?

Not sure but you can try it and report if it brings any change, that would help our investigation.

@deviantony FYI so far adding --no-snapshot seems to have avoid the issue.

I had no luck with the --no-snapshot for the agent. Still the error occurs after a day. I have Amazon Linux 2 image running in Vbox. Compose file:
    image: portainer/agent
    environment:
      AGENT_CLUSTER_ADDR: tasks.agent
      #LOG_LEVEL: debug
    command: --no-snapshot # https://github.com/portainer/portainer/issues/1991
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /var/lib/docker/volumes:/var/lib/docker/volumes
    networks:
      - portainer_agent
    deploy:
      mode: global
      placement:
        constraints: [node.platform.os == linux]
      restart_policy:
        delay: 30s
        window: 30s
        condition: on-failure
    logging:
      driver: journald

@Premik can you see this error in portainer logs or agent logs?

This was only in the agent log. Not in the Portainer log.
One thing I've noticed is the error usually affected agent only on the node where the Swarm manager is running. I have two other worker nodes and I haven't seen the error there.

@Premik thanks for the report, yes this issue is related to the agent. The --no-snapshot was supposed to fix the same bug Portainer side in 1.19.1, so no need to keep this flag.
We're investigating this problem.

@kendrickm It could be. I had some failing containers here and there since this is may playground environment. But I restarted the Docker daemon pretty soon after I noticed the high cpu usage so can't tell for sure. I'll see if I can isolate the problem more the next time.
Although I think the file handles were drained only in the agent's container. I run both portainer and agent in a container and docker sets the default ulimits pretty low (1024 for the file handlers I think).
Following is the system log around that time:
75e975d6612f = agent
dacabed9f5bb = portainer

Nov 12 21:30:01 node1 systemd[1]: Created slice User Slice of root.
Nov 12 21:30:01 node1 systemd[1]: Starting User Slice of root.
Nov 12 21:30:01 node1 systemd[1]: Started Session 703 of user root.
Nov 12 21:30:01 node1 systemd[1]: Starting Session 703 of user root.
Nov 12 21:30:01 node1 CROND[30587]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Nov 12 21:30:01 node1 systemd[1]: Removed slice User Slice of root.
Nov 12 21:30:01 node1 systemd[1]: Stopping User Slice of root.
Nov 12 21:33:30 node1 dockerd[30308]: time="2018-11-12T21:33:30.237017361Z" level=info msg="NetworkDB stats node1(d6efd5ef8ef9) - netID:9kjzpblmb4imxanaqvob58y05 leaving:false netPeers:3 entries:9 Queue qLen:0 netMsg/s:0"
Nov 12 21:33:30 node1 dockerd[30308]: time="2018-11-12T21:33:30.237190457Z" level=info msg="NetworkDB stats node1(d6efd5ef8ef9) - netID:vqxianltzhxqfxez24nv56eq7 leaving:false netPeers:3 entries:14 Queue qLen:0 netMsg/s:0"
Nov 12 21:33:30 node1 dockerd[30308]: time="2018-11-12T21:33:30.237346370Z" level=info msg="NetworkDB stats node1(d6efd5ef8ef9) - netID:utqf7lwusdr6be6ggee2z3i33 leaving:false netPeers:3 entries:11 Queue qLen:0 netMsg/s:0"
Nov 12 21:38:30 node1 dockerd[30308]: time="2018-11-12T21:38:30.238596045Z" level=info msg="NetworkDB stats node1(d6efd5ef8ef9) - netID:vqxianltzhxqfxez24nv56eq7 leaving:false netPeers:3 entries:14 Queue qLen:0 netMsg/s:0"
Nov 12 21:38:30 node1 dockerd[30308]: time="2018-11-12T21:38:30.238726712Z" level=info msg="NetworkDB stats node1(d6efd5ef8ef9) - netID:utqf7lwusdr6be6ggee2z3i33 leaving:false netPeers:3 entries:11 Queue qLen:0 netMsg/s:0"
Nov 12 21:38:30 node1 dockerd[30308]: time="2018-11-12T21:38:30.238779981Z" level=info msg="NetworkDB stats node1(d6efd5ef8ef9) - netID:9kjzpblmb4imxanaqvob58y05 leaving:false netPeers:3 entries:9 Queue qLen:0 netMsg/s:0"
Nov 12 21:40:01 node1 systemd[1]: Created slice User Slice of root.
Nov 12 21:40:01 node1 systemd[1]: Starting User Slice of root.
Nov 12 21:40:01 node1 systemd[1]: Started Session 704 of user root.
Nov 12 21:40:01 node1 systemd[1]: Starting Session 704 of user root.
Nov 12 21:40:01 node1 CROND[30800]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Nov 12 21:40:01 node1 systemd[1]: Removed slice User Slice of root.
Nov 12 21:40:01 node1 systemd[1]: Stopping User Slice of root.
Nov 12 21:43:18 node1 dhclient[4746]: DHCPREQUEST on eth1 to <IP_ADDRESS> port 67 (xid=0x42f1443d)
Nov 12 21:43:18 node1 dhclient[4746]: DHCPACK from <IP_ADDRESS> (xid=0x42f1443d)
Nov 12 21:43:20 node1 dhclient[4746]: bound to <IP_ADDRESS> -- renewal in 15082 seconds.
Nov 12 21:43:30 node1 dockerd[30308]: time="2018-11-12T21:43:30.435330566Z" level=info msg="NetworkDB stats node1(d6efd5ef8ef9) - netID:9kjzpblmb4imxanaqvob58y05 leaving:false netPeers:3 entries:9 Queue qLen:0 netMsg/s:0"
Nov 12 21:43:30 node1 dockerd[30308]: time="2018-11-12T21:43:30.435681069Z" level=info msg="NetworkDB stats node1(d6efd5ef8ef9) - netID:vqxianltzhxqfxez24nv56eq7 leaving:false netPeers:3 entries:14 Queue qLen:0 netMsg/s:0"
Nov 12 21:43:30 node1 dockerd[30308]: time="2018-11-12T21:43:30.435722077Z" level=info msg="NetworkDB stats node1(d6efd5ef8ef9) - netID:utqf7lwusdr6be6ggee2z3i33 leaving:false netPeers:3 entries:11 Queue qLen:0 netMsg/s:0"
Nov 12 21:48:30 node1 dockerd[30308]: time="2018-11-12T21:48:30.438736620Z" level=info msg="NetworkDB stats node1(d6efd5ef8ef9) - netID:vqxianltzhxqfxez24nv56eq7 leaving:false netPeers:3 entries:14 Queue qLen:0 netMsg/s:0"
Nov 12 21:48:30 node1 dockerd[30308]: time="2018-11-12T21:48:30.438922906Z" level=info msg="NetworkDB stats node1(d6efd5ef8ef9) - netID:utqf7lwusdr6be6ggee2z3i33 leaving:false netPeers:3 entries:11 Queue qLen:0 netMsg/s:0"
Nov 12 21:48:30 node1 dockerd[30308]: time="2018-11-12T21:48:30.439008482Z" level=info msg="NetworkDB stats node1(d6efd5ef8ef9) - netID:9kjzpblmb4imxanaqvob58y05 leaving:false netPeers:3 entries:9 Queue qLen:0 netMsg/s:0"
Nov 12 21:49:13 node1 75e975d6612f[30308]: 2018/11/12 21:49:13 http: Accept error: accept tcp [::]:9001: accept4: too many open files; retrying in 5ms
Nov 12 21:49:13 node1 75e975d6612f[30308]: 2018/11/12 21:49:13 http: proxy error: dial tcp <IP_ADDRESS>:9001: socket: too many open files
Nov 12 21:49:13 node1 75e975d6612f[30308]: 2018/11/12 21:49:13 http: Accept error: accept tcp [::]:9001: accept4: too many open files; retrying in 10ms
Nov 12 21:49:13 node1 dacabed9f5bb[30308]: 2018/11/12 21:49:13 http: proxy error: unexpected end of JSON input
Nov 12 21:49:13 node1 75e975d6612f[30308]: 2018/11/12 21:49:13 http: Accept error: accept tcp [::]:9001: accept4: too many open files; retrying in 20ms
Nov 12 21:49:13 node1 75e975d6612f[30308]: 2018/11/12 21:49:13 http: Accept error: accept tcp [::]:9001: accept4: too many open files; retrying in 40ms
Nov 12 21:49:13 node1 75e975d6612f[30308]: 2018/11/12 21:49:13 http: Accept error: accept tcp [::]:9001: accept4: too many open files; retrying in 80ms
Nov 12 21:49:13 node1 75e975d6612f[30308]: 2018/11/12 21:49:13 http: Accept error: accept tcp [::]:9001: accept4: too many open files; retrying in 160ms
Nov 12 21:49:13 node1 75e975d6612f[30308]: 2018/11/12 21:49:13 http: Accept error: accept tcp [::]:9001: accept4: too many open files; retrying in 320ms
Nov 12 21:49:14 node1 75e975d6612f[30308]: 2018/11/12 21:49:14 http: Accept error: accept tcp [::]:9001: accept4: too many open files; retrying in 640ms
Nov 12 21:49:14 node1 75e975d6612f[30308]: 2018/11/12 21:49:14 http: Accept error: accept tcp [::]:9001: accept4: too many open files; retrying in 1s
Nov 12 21:49:15 node1 75e975d6612f[30308]: 2018/11/12 21:49:15 http: Accept error: accept tcp [::]:9001: accept4: too many open files; retrying in 1s
Nov 12 21:49:16 node1 75e975d6612f[30308]: 2018/11/12 21:49:16 http: Accept error: accept tcp [::]:9001: accept4: too many open files; retrying in 1s
Nov 12 21:49:17 node1 75e975d6612f[30308]: 2018/11/12 21:49:17 http: Accept error: accept tcp [::]:9001: accept4: too many open files; retrying in 1s
Nov 12 21:49:18 node1 75e975d6612f[30308]: 2018/11/12 21:49:18 http: Accept error: accept tcp [::]:9001: accept4: too many open files; retrying in 1s
Nov 12 21:49:19 node1 75e975d6612f[30308]: 2018/11/12 21:49:19 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
Nov 12 21:49:19 node1 75e975d6612f[30308]: 2018/11/12 21:49:19 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
Nov 12 21:49:19 node1 75e975d6612f[30308]: 2018/11/12 21:49:19 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
Nov 12 21:49:19 node1 75e975d6612f[30308]: 2018/11/12 21:49:19 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
Nov 12 21:49:19 node1 75e975d6612f[30308]: 2018/11/12 21:49:19 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
Nov 12 21:49:19 node1 75e975d6612f[30308]: 2018/11/12 21:49:19 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files
Nov 12 21:49:19 node1 75e975d6612f[30308]: 2018/11/12 21:49:19 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files

I also encounter this bug.  I observe that each time I load / refresh the dashboard page (ie https://abc.yyy/portainer/#/dashboard), the portainer agent containers have increasing number of open files (/proc//fd). This leak also happens on previous verions: 1.18.1, 1.19.1, 1.19.2 and 1.20.0.

can you try the following image portainer/agent:fix1991 to see if it fixes the problem?

portainer/agent:fix1991

I tried agent:fix1991 but the leak is still not resolved.

Thanks for trying, can you check the agent log for any errors? Specifically "too many open files"?

Thanks for trying, we will continue trying with other solutions.
On Thu, Dec 13, 2018, 16:51 tle211212<EMAIL_ADDRESS>wrote:

portainer/agent:fix1991
I tried agent:fix1991 but the leak is still not resolved.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/portainer/portainer/issues/1991#issuecomment-446995224,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABUVF81XNA6Wt2H9mb_QYuVRtsIJAqdrks5u4mltgaJpZM4Uz2-d
.

@tle211212

I also encounter this bug.  I observe that each time I load / refresh the dashboard page (ie https://abc.yyy/portainer/#/dashboard), the portainer agent containers have increasing number of open files (/proc/agent proc id/fd). This leak also happens on previous verions: 1.18.1, 1.19.1, 1.19.2 and 1.20.0.

I can't reproduce this one, I have an agent deployed locally and on a swarm and both file descriptor count stay the same (I tried refreshing the dashboard, changing pages...)

Hi chiptus, here is the detail of my setup.
OS: Centos7 + Oracle UEK R5 kernel
Docker: docker-ce-18.06.1.ce-3.el7.x86_64
The yml file I used to deploy portainer is attached for your reference.
portainer.txt

I can confirm the dashboard reloading and fd going up behavior. I created a Vagrant+Ansible+AWS Linux2 image setup to reproduce this.
v.zip

Unzip the three files in the attachment  to a single folder and run vagrant up there.
This would provision two VBox nodes.
Note: There should be one Bridged Net adapter attached to each node (portnode1=081027D43801, portnode2=081027D43802). For some reason (Vagrant bug?) sometimes I got node2 with two Bridged adapters instead. If that happens stop the node2 and remove the extra network adapter and start it back up again.
On first run Ansible should print a debug message with Portainer port and details. Eventually re-run later with vagrant provision
vagrant ssh portnode1 to get to the node 1 shell and run:

sudo su
export p=$(docker  inspect --format '{{.State.Pid}}' $(docker ps | grep agent | cut -c-12))
yes 'ls /proc/$p/fd | wc -l; sleep 2' | /usr/bin/sh

This will list the number of Agent's process  fds every 2 seconds.

Go to portainer web portnode2:9000/#/dashboard and click between Dashboard, Stack and back etc.The number of fd would go up aprox 9 new on each refresh..

Note:

It seems at least two nodes are required. I couldn't reproduce this while using a single node only.
Ansible 2.8.0+ (dev version) is required because of the Docker modules

any update for this bug? same on AWS AMI2

Guys, we have a potential fix for this issue - would you be able to test this image for us?
portainerci/agent:feat49-update-library

Hi,
I've tried the portainerci/agent:feat49-update-library:
[root@portnode1 vagrant]# docker service ls
ID                  NAME                       MODE                REPLICAS            IMAGE                                     PORTS
wuh6dfrc0ztc        portainerStack_agent       global              2/2                 portainerci/agent:feat49-update-library
cqn3heevayfi        portainerStack_portainer   replicated          1/1                 portainer/portainer:latest                *:9000->9000/tcp

but unfortunately no luck. The number of FDs is still growing up on each page refresh:
[root@portnode1 vagrant]# yes 'ls /proc/$p/fd | wc -l; sleep 10' | /usr/bin/sh
78
83
85
85
92
118
125
125
129
137
148
160
160

Hi there,
We have been able to reproduce this bug based on Premik's advice and instructions. Hopefully this will help us get to the bottom of this bug! Our reproduction steps are below.
Reproducing using a Stack file
Step 1: Spin up 2 Vagrant VMs to form a Docker cluster
Step 2: Connect to the manager node via ssh:
vagrant ssh swarmnode1
Step 3: Using our portainer-agent-stack file add the Agent and Portainer UI to the swarm
curl -L https://downloads.portainer.io/portainer-agent-stack.yml \
    -o portainer-agent-stack.yml
docker stack deploy --compose-file=portainer-agent-stack.yml portainer

Step 4: Enter below commands suggested by Premik (we used /bin/sh instead of /usr/bin/sh)
sudo su
export p=$(docker  inspect --format '{{.State.Pid}}' $(docker ps | grep agent | cut -c-12))
yes 'ls /proc/$p/fd | wc -l; sleep 2' | /bin/sh

Every 2 seconds the number of pages loaded in the Agent will be displayed.
Step 5: Open the Portainer UI in the browser, create an account and navigate to the dashboard. Triggering the behaviour: Reloading the browser on the dashboard as well as switching between the dashboard and stacks should increase number of pages loaded by between 1&7 and will occasionally decrease by 1 before going up again.

Reproducing as Separate Services
When deploying the Agent and the Portainer UI separately as services, this behaviour is repeatable.

Deployment commands:

What doesn't work

When the Agent and Portainer UI are deployed on a singular manager node using the stack file deployment used earlier this behaviour was not repeatable. (User Premik who suggested this method had the same behaviour on a single node.)
When the Agent is deployed from a stack file saved on the vagrant vm using the CLI and the Portainer UI is deployed using the docker run command below, and Portainer is connected to the Agent endpoint, this behaviour is NOT repeatable.
Deployment commands used:

We have done some further investigation into this issue.
The ever increasing fd behaviour is reproducible when executing GET requests to the following endpoints of the API, only after loading the Portainer dashboard for the first time. If you don’t physically load the dashboard in the browser first, get requests to the following endpoints won’t trigger the behaviour.
:9000/api/endpoints/1/docker/services
:9000/api/endpoints/1/docker/nodes
:9000/api/endpoints/1/docker/tasks
:9000/api/endpoints/1/docker/secrets
:9000/api/endpoints/1/docker/configs
:9000/api/endpoints/1/docker/info
:9000/api/endpoints/1/docker/swarm
Step 1: Follow the instructions in my previous comment for reproducing using a stack file. This will output the number of fd every 2s in your CLI
Step 2: Navigate to endpoint-ip:9000, create your user and navigate to the dashboard
Step 3: Refresh the browser
Step 4: Use the CLI or a tool like postman to complete get requests against one or more of the above endpoints
You should see the number of fd increase
Stopping the behaviour:

Step 1: Load the dashboard in the browser and refresh a few times to trigger the behaviour
Step 2: Go to another view e.g services and refresh the page a few times and don’t go back to dashboard.
Step 3: Execute one or more get requests against the above endpoints

You should now see this doesn’t increase the total fd. However loading the dashboard again and refreshing a few times will trigger it again
Other things we tried/discovered

If we took all the requests that the dashboard makes and executed them together in postman in the same order, this behaviour can be reproduced, only after first loading the dashboard. If you execute these requests, without first loading the dashboard, this behaviour will not be reproduced.

Swarm visualiser triggers this behaviour every 5s.

Step 1: Log into Portainer in the browser and load the dashboard and make sure that the behaviour is triggered (if this hasn’t triggered the behaviour refresh it a few times and it should).

Step 2: Enter the swarm visualiser, and now you will notice fd is incremented every 5 seconds

If swarm visualiser is left triggering this behaviour every 5s, then memory used by the agent slowly increases over time.

Following on from the above steps, enter the below command to output physical memory usage of the agent process every 2 seconds:

while [ 1 ] ; do
  grep VmRSS  /proc/$p/status ; sleep 2
done

This behaviour can also be observed via the top command, the below value highlighted in red should keep increasing:

I've reproduced @itsconquest's result above, and discovered that the issue only occurs when I have non-master nodes in my cluster. I.e., I deployed 2 nodes using https://github.com/deviantony/vagrant-swarm-cluster (per the above instructions), and sure enough, the issue is present.
Then I promoted the worker node to a master, and redeployed portainer+agent. I was unable to reproduce the increasing-amount-of-FDs problem.
Once I demoted the worker node again, and redeployed, the increasing-amount-of-FDs problem recurred.
This might explain why the problem doesn't exist on a single-node swarm.
D

Has any progress been made on this?

@respectTheCode no update on this yet, although we recently open-sourced the agent, any help appreciated ! https://github.com/portainer/agent

Closing via https://github.com/portainer/agent/issues/43
Will be part of the agent version 1.5.0.

Hi,
The problem still remains even with the last version, i haven't notice that in the past but now i understand why sometimes my disks was full sometimes


Update Imports On File Move: does not persist file extension

From @misolori on May 30, 2018 15:22
Issue Type: Bug
https://github.com/Microsoft/vscode/issues/50488
Example

Resulting error

When moving a js file while using the "Update Imports On File Move" setting and the import has the file extension explicitly set, the auto update will strip out the ".js" extension. This causes issues with the js file referencing it as it needs the extension name.
VS Code version: Code - Insiders 1.24.0-insider (bfd155e6039f64d2795c6b514a029ebd01a33527, 2018-05-29T06:13:09.810Z)
OS version: Darwin x64 17.5.0
Copied from original issue: Microsoft/vscode#50804

I can repo the extension getting removed but not the part where the file is not resolved afterwards or the error in the console.
@misolori Were you just using the defaultjsconfig.json?

Perhaps instead of preserving the extension, there should be another preference about adding file extensions to import paths?

@mjbvz yes to using the default jsconfig.json. Regarding the console error, I was using the browser-sync module with node. I also found a similar issue posted on SO that reflects the problem I ran into. This repros in Chrome + Safari, adding the extension to the import eliminates the issue.


Update requirements.txt

some user installs have issues with astropy 4.2.1 not existing. Lowering requirement to 4.0.0

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1952

Relevant Lines:
2076

💛  - Coveralls


High RAM usage when displaying long texts

Issue details
In my game, I display the license texts of the free / open source dependencies. To do so, I currently use a label inside a scroll pane. The size of the license texts is quite large, around 3.7 MB. As soon as i show the screen, the RAM usage increases by several 100 MB and causes an OutOfMemoryError on Android devices.
I also tried using a TextArea which has the same issue but to a lesser extend.
Reproduction steps/code
In this minimal example, the ram usage increases from around 100 MB to 1.8GB despite the text content itself only being 10 MB.
public class Main extends ApplicationAdapter {
    private Stage stage;

    @Override
    public void create() {

        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0; i < 1000000; i++) {
        	stringBuilder.append("aaaaaaaaa\n");
	}

        String text = stringBuilder.toString();
        System.out.println("string size: " + text.getBytes().length + " bytes"); // size is 10 MB

        stage = new Stage(new ScreenViewport());

        FreeTypeFontGenerator generator = new FreeTypeFontGenerator(Gdx.files.internal("FreeSans.ttf"));
        FreeTypeFontParameter parameter = new FreeTypeFontParameter();
        parameter.size = 16;
        BitmapFont font16 = generator.generateFont(parameter);
        generator.dispose();
        LabelStyle labelStyle = new LabelStyle(font16, Color.WHITE);
        Label label = new Label(text, labelStyle);

        stage.addActor(label);
    }

    @Override
    public void render() {
        ScreenUtils.clear(0.15f, 0.15f, 0.2f, 1f);
        float delta = Gdx.graphics.getDeltaTime();
    	Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
    	stage.act(delta);
    	stage.draw();
    }

    @Override
    public void dispose() {
    	stage.dispose();
    }
}

demo.zip
Version of libGDX and/or relevant dependencies
tested with libGDX 1.13.0 and 1.12.1
Stacktrace
11-10 20:59:03.691 32570 32607 E AndroidRuntime: java.lang.OutOfMemoryError: Failed to allocate a 290269856 byte allocation with 100663296 free bytes and 118MB until OOM, target footprint 244968048, growth limit 268435456
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.graphics.g2d.BitmapFontCache.requirePageGlyphs(BitmapFontCache.java:344)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.graphics.g2d.BitmapFontCache.requireGlyphs(BitmapFontCache.java:318)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.graphics.g2d.BitmapFontCache.addToCache(BitmapFontCache.java:382)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.graphics.g2d.BitmapFontCache.addText(BitmapFontCache.java:531)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.graphics.g2d.BitmapFontCache.setText(BitmapFontCache.java:486)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.scenes.scene2d.ui.Label.layout(Label.java:223)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.scenes.scene2d.ui.Widget.validate(Widget.java:88)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.scenes.scene2d.ui.Table.layout(Table.java:1165)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup.validate(WidgetGroup.java:104)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.scenes.scene2d.ui.Container.layout(Container.java:153)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup.validate(WidgetGroup.java:104)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.scenes.scene2d.ui.Stack.layout(Stack.java:107)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup.validate(WidgetGroup.java:104)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.scenes.scene2d.ui.ScrollPane.layout(ScrollPane.java:498)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup.validate(WidgetGroup.java:104)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.scenes.scene2d.ui.Table.layout(Table.java:1165)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup.validate(WidgetGroup.java:104)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.scenes.scene2d.ui.Table.draw(Table.java:108)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.scenes.scene2d.Group.drawChildren(Group.java:111)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.scenes.scene2d.Group.draw(Group.java:58)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.scenes.scene2d.Stage.draw(Stage.java:128)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at de.sesu8642.feudaltactics.menu.common.ui.GameScreen.render(GameScreen.java:42)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.Game.render(Game.java:48)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:505)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1573)
11-10 20:59:03.691 32570 32607 E AndroidRuntime: 	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1272)

Please select the affected platforms

[x] Android
[ ] iOS
[ ] HTML/GWT
[ ] Windows
[x] Linux
[ ] macOS

(others are likely affected too)

I've started to look into this. It's weird. I see 160 bytes used per character in the String, when displayed in a Label. Label does seem to be using more than it should be using, since I compared with TextraTypist's TextraLabel class (which does a lot more out-of-the-box), and even TextraLabel is using about 1/6 the memory of what Label uses. I'm thinking it may boil down to simply being a lot of vertices to store and display, but 6x as many for Label seems odd.
The first thing that comes to mind to resolve this for your purposes would be to put Labels on separate pages (as if they were an actual printed legal document), and only load a Label for the current page at a time.

Thanks for looking into this so quickly! Since I already have the license texts organized in a directory structure, I will probably use that to generate a similarly structured UI.
I'm glad you agree that there is an underlying issue that deserves investigating.

So the heap measurement seems too high, and higher than the actual amount of memory used. I tried using a different way, measuring only the Label or TextraLabel, and anything it has as a member variable. I'm still (surprisingly) seeing more memory used by Label than TextraLabel, but not by much... ThreadMXBean reports 284,068,160 bytes used for Label, or 208,281,760 bytes for TextraLabel, on the same 10,000,000 character string.
TextraLabel I'm more familiar with internally, since I wrote all of it, and I know it needs at least 8 bytes for every displayed glyph (containing 32 bits of per-glyph RGBA8888 color, 16 bits of style information, and 16 bits of UTF-16 char). Taking about 20 bytes per glyph isn't a huge step past that, since this particular piece of text has a lot of lines, and my code has each Line as its own object.
Label I'm less familiar with, but I know it organizes text into runs, and I think each run is its own object. I also think a line break will break a run up. That means a million runs, one per line.
So far, neither of these explains where all 200+ MB are actually going... Thankfully, we now know it isn't more than a gigabyte being used by Label (more than a quarter-gigabyte, but still).

I was expecting even more !?
BitmapFont saves 20 floats per Glyph:
		vertices[idx++] = x;
		vertices[idx++] = y;
		vertices[idx++] = color;
		vertices[idx++] = u;
		vertices[idx++] = v;

		vertices[idx++] = x;
		vertices[idx++] = y2;
		vertices[idx++] = color;
		vertices[idx++] = u;
		vertices[idx++] = v2;

		vertices[idx++] = x2;
		vertices[idx++] = y2;
		vertices[idx++] = color;
		vertices[idx++] = u2;
		vertices[idx++] = v2;

		vertices[idx++] = x2;
		vertices[idx++] = y;
		vertices[idx++] = color;
		vertices[idx++] = u2;
		vertices[idx] = v;

1,000,000 (loop count) * 9 (nine 'a's) = 9,000,000 glyphs
20 * 9,000,000 = 180,000,000 floats
180,000,000 * 4 (bytes per float) = 720,000,000 bytes = 720,000 Kbytes = 720 Mbytes

Oh, the stacktrace is not from the example, but from the real game

Yes, its from the real game.


Is there a method to limit reusability of the callback url?

It's probably unsafe to let the link be used multiple times. Can we limit it to once per link?

Since it's a JWT everything is encoded within the token so I think no, you need to rely on the jwtOptions "expiresIn" setting to limit the lifetime of the token.
If you really need this feature, you could maintain your a database collection where you store a unique value associated with the token, and call it from the verify callback. I think this function cannot access the token value, but it can access the content of the token and you can shove a unique id within it (a bit convoluted, but possible).


⚠ Bofrost.at has degraded performance

In 8036fe4, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 3209 ms

Resolved: Bofrost.at performance has improved in dec3850 after 8 minutes.


Particle in game is not the same in editor

Issue details
When i add the ParticleEffect in my game it is different from the original in the editor
Reproduction steps/code
Here is the particle :
particle.zip
If it is loaded on Game, it will be different if loaded in Editor
Version of LibGDX and/or relevant dependencies
I am using the last version on GIT

Please provide a self contained example as the issue template asks for.  2D? 3D?
You can reopen this issue when you have supplied all the information required for us to investigate.

Thanks, when i was building the sample, i found the problem. It was in the camera.


Add Windows Process Isolation container PID to CID mapping

What does this PR do?
This PR expands support for Windows container information collection (Windows host running Windows container) by mapping inner-container PIDs to their respective container ID.
Motivation
This association enables inner-container process inspection and allows system-probe to map connections to PIDs within the containers.
Additional Notes
Right now, only "Process Isolation" container types are supported.
Possible Drawbacks / Trade-offs
None. If the underlying Docker API fails, we revert back to the original code, which shows the container's entry point process, but no additional processes.
Describe how to test/QA your changes

Provision a Windows Server VM.
Install Docker on the VM.
Download and run a Python3 container.
Attach to the container and start a Python HTTP server.
Make a connection to the HTTP server.
Install the Datadog Agent - ensure NPM is enabled.
From within the container, run tasklist, and record the processes and PIDs.
From the container host, in PowerShell, list all the processes via: docker top [container-id], and record the processes and PIDs.
Find your container host in the Datadog GUI, navigate to the "Containers" page, and verify that the reported PIDs match with the PIDs from 7. and 8. .
Observe the network connections to the container host in the GUI.
Verify that the reported connections are associated with the HTTP server's PID.

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

Code is ready for review. I manually tested Windows and Linux to confirm CID to PID mapping correctness + network connection correctness within the agent and via the GUI.


Note how to defer file descriptor creation

When appending many files and creating readstreams for each one, you run the real risk of blowing you file descriptor limit.  Generally its better to defer the creation of readStreams until you need to read the file.
Reading into the combined stream docs, it appeared that this would support the (next) => next(fs.createReadStream('foo') api, however its not quite that simple.  This module expects a path property on the value so I documented that expectation.
There is probably room for improvement here, API wise, however this should help assist people from having to read too much code to achieve this outcome.
Thank you for and open to any suggestions.

Coverage remained the same at 98.174% when pulling 9abbbdcdcaca93ee1eb37ae8231adc68e0d33162 on bcomnes:patch-1 into d7026253e728af9568503dc3dc55cd1a566605e0 on form-data:master.


How can i do grpc unit test with python

What version of gRPC and what language are you using?
1.10.0, python
What runtime / compiler are you using (e.g. python version or version of gcc)
python3.6
What did you do?
unit test
What did you expect to see?
how to do grpc unit test
What did you see instead?
code like this
https://github.com/grpc/grpc/blob/1b4be41a7212fa7ab18f73e1f8cebc12ddeffc0f/src/python/grpcio_tests/tests/unit/_rpc_test.py
how can i do this with my grpc server code

My preferred means of locally running the unit tests is ./tools/run_tests/run_tests.py --language=python --compiler=all_the_cpythons --newline_on_success from repository top-level.

Closing; I'm not sure that there's anything left to say here at the moment. (Our infrastructure is always changing, so the best command with which to run the tests today may not be the same in six months...)


Create degree of polynomial

Description
this code explains how to find degree of polynomial
Additional Context

Just as a reminder that bot will delete this pull request if you don't respond to the review in two days.

Pull request closed due no response to the review.


feat(queries): added findOrCreate

@graysonc thoughts on adding sugar like this?

Awesommmeeeee
Sent from my iPhone

On Jan 12, 2015, at 10:06 PM, Basil Siddiqui<EMAIL_ADDRESS>wrote:
@graysonc thoughts on adding sugar like this?
—
Reply to this email directly or view it on GitHub.

@graysonc :alarm_clock:


where to change the class name in updated mmdet?

hey can anyone help me out with this issue, I want to train the SSD model with Voc dataset but I am not able to change the class name, I tried editing voc.py but still it is not happening.
and I even want to know the inference script for the updated mmdet.

you need to setup.py develop again after you edit voc.py

Please refer to the documentation.


[fixed]: undefined error in contentHasFocus method

Fixes #[issue number].
315
Changes proposed:

undefined check before invoking a property
original : this.refs.content.focus()
change needed: this.refs.content && this.refs.content.focus()
use of || in place of &&
original: : this.refs.content || this.refs.content.contains(document.activeElement
change needed: this.refs.content && this.refs.content.contains(document.activeElement
Upgrade Path (for changed or removed APIs):
Acceptance Checklist:
[ ] All commits have been squashed to one.
[ ] The commit message follows the guidelines in CONTRIBUTING.md.
[ ] Documentation (README.md) and examples have been updated as needed.
[ ] If this is a code change, a spec testing the functionality has been added.
Note: npm test is broken in the latest codebase
[ ] If the commit message has [changed] or [removed], there is an upgrade path above.

Coverage increased (+0.4%) to 77.256% when pulling 04ac01f69492c475eb74fdfe63527394cfd55117 on saradacp:master into 75a1aa360c25208b4f08648863cbaa8d737ef9fe on reactjs:master.

@saradacp Thanks for the PR, unfortunately the dist/ folder contains built files.  If you'd like to make a change you'll find the necessary code to change inside lib/.
That being said because of our conversions to ES2015+ the code is probably dramatically different there.  We just haven't made a release and built the dist copy for that yet.  I'm going to go ahead and close this as it's not acceptable at the moment and I believe is already fixed in the latest lib/ code.

@claydiffrient : No problem, I agree that I made changes in the wrong place. But I have just verified the lib code and the code still has the same issue. It's not fixed. Can I make changes in the lib and make a PR?  Please confirm!


[Service Bus] Improve log messages - SBAdministrationClient

Observed these logs while testing (part of the logs while recreating a queue)

To repro: Just enable logging and perform create get and delete operations.
TODO: Improve the logs - especially the highlighted lines.

Code pointers for folks who would like to contribute a fix for this issue:

Set up your dev env
Sample code for get/delete operations
File with logs to fix


update theme.txt file to add theme repo

Check List
Hello team
@bep @digitalcraftsman
Please review our theme and all are ok then publish in showcase
thank you
AMEIO Team

Please add only 1 theme at a time.

Thanks for this, but this looks more like a tutorial than a theme that people can just start using. Close for now, please reopen if you disagree ...


Stops after a certain time

In my tests, xcmonkey stops working after a certain time and just quits (exit code 0). The tested app continues to run.
Is this intentional? Can I increase the test duration?

Hi @futuretap, thanks for raising this!
You can use the --duration argument to control the duration of the test. The default value is 60sec.
So executing this command will run the test for 100 seconds:
xcmonkey test --duration 100 --udid "413EA256-CFFB-4312-94A6-12592BEE4CBA" --bundle-id "com.app.example"

Run any command with -h argument to see all possible options, e.g.:
xcmonkey -h
xcmonkey test -h

Thanks!


Add blank lines around code blocks

This seems to be the norm in the rest of the file, and some markdown
renderers prefer this.
Fixes #18

@SubaruDieselCrew  can you please verify that this fixes #18? I don't have KDE universal document viewer.


(fix): Modify the README.md file for better understanding

fixes : issue #21
Title

(bug) : Ordering issue In README.md the description of Environment Variables .

Related Issue(s)

There it is said to first add the .env file but it will be better if anyone first sign in to https://clerk.com/ then add .env file in him/her local setup then complete the whole setup to run the project and a screenshot of the ui of clerk.com with proper steps in order should be given for better understanding of the contributors.

Additional Info

stepwise description of how to setup with providing screenshots.

Summary by CodeRabbit

Documentation

Updated installation instructions to include yarn usage.
Provided guidance on obtaining necessary environment variables.
Expanded the list of commands for project setup and execution.
Added reference images for better understanding.
Improved formatting and content for clarity.

Thanks For Contributing : )

Thanks For Contributing : )

☺


setup.py into root directory

homeassistant has problems with install from subdirectory

@gross1989 Can we get rid of the nuimo subfolder and also move nuimo.py to the root folder as part of this PR?


Add ECC AIK template and cache; Work around for CertifyCreation

Certain TPM (the one on my Lenovo X1 carbon) cannot handle CeritfyCreation with a null signing handle correctly. It will throw a TPM_RC_INSUFFICIENT error when we trying to do that.
One work around is that we pass in a non-null signing handle into CertifyCreation.
This PR implement this work around as well as add a ECC AIK template.
AIK ECC key will be cached for performance concerns.
I picked the handle 0x81008FFF (I picked randomly from "Storage -> Available" from Table 11 from  https://trustedcomputinggroup.org/wp-content/uploads/RegistryOfReservedTPM2HandlesAndLocalities_v1p1_pub.pdf

I'm not familiar with how admin rights affecting TPM on windows, does it work with admin rights?

Basically Windows doesn't allow you to get ECC SRK without admin rights for some reason. But after getting it for the first time (for example by spawning one-shot Windows service which just calling client.StorageRootKeyECC()), it will be available for other users without requiring admin rights, weird.
I didn't try with admin rights with production-ready piece of software because it does not meant to run under admin.

Also maybe your TPM doesn't support the default AIKTemplateECC parameter (CurveNISTP256)?

Probably, but it successfully passing those lines:
signer, err := AttestationKeyECC(k.rw)
if err != nil {
	return nil, fmt.Errorf("failed to create fallback signing key: %w", err)
}

Otherwise it would return error here, isn't it?

Or maybe you can try to use the RSA SRK to do the workaround.

We are already using RSA SRK and for the majority of users it works flawlessly, sealing, unsealing, etc. But during testing getting error at unsealing stage with this Lenovo Yoga.
Does it worth a try to change this line from: signer, err := AttestationKeyECC(k.rw) to signer, err := AttestationKeyRSA(k.rw)?

I'm not familiar with how admin rights affecting TPM on windows, does it work with admin rights?

Basically Windows doesn't allow you to get ECC SRK without admin rights for some reason. But after getting it for the first time (for example by spawning one-shot Windows service which just calling client.StorageRootKeyECC()), it will be available for other users without requiring admin rights, weird.
I didn't try with admin rights with production-ready piece of software because it does not meant to run under admin.

Also maybe your TPM doesn't support the default AIKTemplateECC parameter (CurveNISTP256)?

Probably, but it successfully passing those lines:
signer, err := AttestationKeyECC(k.rw)
if err != nil {
	return nil, fmt.Errorf("failed to create fallback signing key: %w", err)
}

Otherwise it would return error here, isn't it?

Or maybe you can try to use the RSA SRK to do the workaround.

We are already using RSA SRK and for the majority of users it works flawlessly, sealing, unsealing, etc. But during testing getting error at unsealing stage with this Lenovo Yoga.
Does it worth a try to change this line from: signer, err := AttestationKeyECC(k.rw) to signer, err := AttestationKeyRSA(k.rw)?

Yes, I think it's worth to try, at least it should reveal if the problem is related to the ecc  algo or not.


How can i change Y axis scale?

as title! thank you!

Hi, you have to scale values manually, axes don't have scale property, sorry.