Potential Mac M1 (Arm Silicone) issue?

I ask this kinda vaguely because I'm not entirely sure if this is a platform issue or an issue with libusb under the hood, but I seem to have an issue specifically on the MAC M1 which I can get the platform to return the structure and provide me all the meta data, but when I stream to/from it. The exchange works once before breaking. Upon inspection of the processed packets being sent out. They're getting malformed as well as no always registering as HID packets. The buffers being passed are seemingly changing as well which leads to be believe it might be an issue with the underlying memory management, but there's so many layers I can't really say for sure.
I'm just not sure if I should be attempting to fix this in the lower levels or if I'm missing something for this to work properly with the wrapper or if this is M1 compatibility issues.
Note: The same project works perfectly on windows and was originally developed on windows, but was meant to be cross-platform.

Once I get time. I'll get logs here just to make it obvious what I'm seeing on my end and maybe make it obvious what the issue at hand might be.

Hi @Alexander-Leon - that sounds strange indeed. FWIW, I use an M1 MBP as my daily driver and I have a couple of small projects to the side that use hid on an M1 without any issues. Since you're using macOS, libusb won't be in the mix - HIDAPI calls into AppKit/IOKit/CoreFoundation directly. As far as I know there haven't been any corruption issues seen so far, but there's always a first time.
Could you describe in a little more detail the calls you're making into package hid? Is there a chance you have a protocol analyzer handy as well to validate the right bits are making their way in and out of the reports?

wireshark_usbhid_results.pcapng.zip
Attached is Zipped Wireshark readings.
Code to invoke it.
`err := hid.Init()
if err != nil {
t.Fatal(err)
}
d, err := hid.OpenFirst(samatmelice.VendorID, samatmelice.ProductID)
if err != nil {
	t.Fatal(err)
}
defer func() {
	_ = d.Close()
	_ = hid.Exit()
}()

writeBuf := make([]byte, 512)
buffer := make([]byte, 512)
_ = buffer
_ = writeBuf
//for {
//time.Sleep(time.Second * 5)
s, err := d.GetMfrStr()
if err != nil {
	t.Fatal(err)
}
t.Logf("%s", s)
s, err = d.GetProductStr()
if err != nil {
	t.Fatal(err)
}
t.Logf("%s", s)
writeBuf[0] = 0x0
writeBuf[1] = 0x0
writeBuf[2] = 0x3
_, err = d.Write(writeBuf)
if err != nil {
	t.Fatal(err)
}
t.Logf("Wrote: %d bytes", 512)
_, err = d.ReadWithTimeout(buffer, time.Second)
if err != nil {
	t.Fatal(err)
}

t.Logf("Read: %d bytes", 512)
t.Logf("%s", buffer[:])

writeBuf[0] = 0x0
writeBuf[1] = 0x0
writeBuf[2] = 0x1
_, err = d.Write(writeBuf)
if err != nil {
	t.Fatal(err)
}
t.Logf("Wrote: %d bytes", 512)
_, err = d.ReadWithTimeout(buffer, time.Second)
if err != nil {
	t.Fatal(err)
}

t.Logf("Read: %d bytes", 512)
t.Logf("%s", buffer[:])`

if there's anything I'm obviously missing I'm all ears, but works just fine on Windows and fails to work on the MBP. (This could potentially be weird driver issues with the ICE,  but other programs seem to be able to interface with 0 issues)

I suspect what you're running into are differences in the underlying USB implementations. Assuming this is a USB 2.0 device, your report width will not exceed 64 bytes. What could be happening is a buffer overflow somewhere either in the bowels of HIDAPI or somewhere in IOKit.
Backing up a little bit, have you verified the actual report width for your device? This will be shared as a part of the report descriptor. If you're hardcoding this value, then you'll want to make sure this matches exactly what your device expects.
Further down, I would not recommend treating a buffer as a string in your log function. I've found hex.Dump() output to be very helpful in debugging. For example:
t.Log(hex.Dump(buffer))

Hm odd, it is USB 2.0 so I think there's probably something for me to nibble at there
Unless I'm misunderstanding something about the following it should be 512
0x06, 0x00, 0xFF,  // Usage Page (Vendor Defined 0xFF00)
0x09, 0x01,        // Usage (0x01)
0xA1, 0x01,        // Collection (Application)
0x15, 0x00,        //   Logical Minimum (0)
0x26, 0xFF, 0x00,  //   Logical Maximum (255)
0x75, 0x08,        //   Report Size (8)
0x96, 0x00, 0x02,  //   Report Count (512)
0x09, 0x01,        //   Usage (0x01)
0x81, 0x02,        //   Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x96, 0x00, 0x02,  //   Report Count (512)
0x09, 0x01,        //   Usage (0x01)
0x91, 0x02,        //   Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x95, 0x04,        //   Report Count (4)
0x09, 0x01,        //   Usage (0x01)
0xB1, 0x02,        //   Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)

Very interesting. Do you have access to a Linux environment? The output of lsusb -v might be valuable.

It's been quite a while since I've read through the HID spec, but I had forgotten that it is permissible for reports to exceed wMaxPacketSize, so long as they are terminated with a shortened packet. lsbusb -v should give us a better idea of what the device is advertising. I poked around HIDAPI a bit as well and !273 looks eerily similar to what you're seeing.

Unfortunately not. Everything I work on linux related is generally containerized

Gotcha. I wonder if as a next step if it would be worth writing the same test program you have in C and use HIDAPI directly to see if you get different behavior. I can't think of anything in the bindings that could cause something like this and it could be something that is macOS specific being triggered by the device you have.

That's sorta what I was thinking too. I just figured it'd be worth a shot reaching out to see if you had experienced anything when working on the initial bindings. I was avoiding that route, but at this point seems like the only proper course of action to dig deeper.
[For context I know there's a way to properly interface with it because of openOCD working correctly, I'll just have to dig deeper. Thanks for your feed back though as well as the bindings, they've been useful. ]

My pleasure and best of luck. I'll close the issue for now, but if you find anything that looks like a smoking gun I'd love to hear back - my curiosity is definitely piqued at this point!


Add CG

Add CG to allow us to later add circulant inverse, and inverse parameterizations.
This CG code is directly from GPytorch, and I haven't verified it beyond adding in their tests.
In particular, I don't think it does the fast CG derivative stuff from Ginny's paper. That's maybe a todo for me for later (I'd like to figure it out on the GPytorch side of things too, but for now, this gets us CG quickly.

looks good, I'm happy to merge


What's happening here

I tried to load only this mod but the problem still occurs. I also downloaded this mod again and it still happens.

Fixed


[Feature]: Improve Image Upload component

Contact Details
No response
What do you like to be improved?
At the moment we use a unstyled file input. Should be a little bit improved.

@sstenz
First iteration:

Hide ugly file input behind the upload button

@Hejabea
Second iteration:

Is Chrissis image upload component final?

Closed by #265


Sintax error

bootstrap-select.css:9 Uncaught SyntaxError: Unexpected token {
When using https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.2/css/bootstrap-select.css

Also having this issue.

Are you by any chance loading the CSS file in a script tag?


Emit warning for unknown configuration fields

Resolves #62
Adds StringWarning type which users can detect via errors.As.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 3 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.3%) to 93.594%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

error_types.go
0
3
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.3%

Covered Lines:
789

Relevant Lines:
843

💛  - Coveralls


Remove an API call for drawing within chats

Currently if you converse with gpt vision, it will always interpret if you want to draw something or  not using a separate API call, this is a second API call and they're costly so we want to be able to turn it off, but better yet, we want to be able to just remove the second API call
I was a bit (lot) stupid when designing this initially, we can avoid the second api call by just putting some instructions in the system pretext that ask it to use some sort of special syntax to denote a drawing prompt when it responds to a user if it picks up on intent to draw, and then we would just kick off the drawing from there onward, removing the api call entirely. This also increases conversation speed.
All the scaffolding for drawing is already in the code, what needs to be done is:

the LLM api call that evaluates the last few messages of history just needs to be removed
Some pretext needs to be created that can get gpt to respond with some sort of syntax when it picks up a users intent to draw for example you can try being like

If the user wants to draw something, retain a prompt for what the user wants to draw such that it can go into a generator such as DALL-E, and after responding to the user message, type the prompt for what to draw within a special sequence of characters: #%^c, for example, #%^a dog#%^

This drawing syntax pretext would have to be appended programmatically and not just in the main text of the pretext because it should work for other openers too. There should be some sort of recurring system message every X messages that acts as a reminder to do this identification of drawing intent, and in the future we can expand our agent's capabilities further on this basis
There are some drawbacks to this, the independent evaluator system should theoretically be more accurate, as it is more focused without the entire conversation context.

I've made drawing off by default, we still should remove the api call

@Kav-K Can I work on this issue?

@StatKumar yeah! thank you!!

Thank you @Kav-K for providing this opportunity


firefox-{beta,devedition}-unwrapped: 112.0b6 -> 112.0b7

Description of changes
Updated Firefox beta and devedition from 112.0b6 to 112.0b7.

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

The beta/devedition source builds are not on the release branch yet, which is why I removed the backport label.

Tested on aarch64-linux.

Consider update the -bin versions as well.


DCD-677: Update SSH keypair parameter description.

The same comments from https://github.com/atlassian/quickstart-atlassian-jira/pull/35 apply here


[otbn] [OTBN.H.SEC_WIPE_*] Specify secure wipe functionality

Add the specification and the register interface (in Hjson) of the secure wipe group of functionality to the OTBN specification, based on the content that is currently in the OTBN design document.

estimate 16

An item that came up in a meeting today: If we trigger secure wipe as local action to a fatal alert this should be gated by a lifecycle state to enable debugging.


Client API extensions for Application Services

[x] PUT /_matrix/client/r0/directory/list/appservice/{networkId}/{roomId} endpoint needs to be added. Should only be usable by application services.
[ ] The client API needs to support the user_id query parameter for every endpoint so that the application service can act as a certain user within its user namespace. (https://matrix.org/docs/spec/application_service/r0.1.2#identity-assertion)

As discussed in #ruma:matrix.org, the user_id query parameter is not the responsibility of this crate. It will be an implementation detail in ruma-client.


Saving an excel file using FastMode creates an invalid excel file

Excel Type

[x] XLSX
[x] XLSM
[ ] CSV
[ ] OTHER

MiniExcel Version

1.33
1.34
1.34.1

Description
Saving an excel file with FastMode enabled writes invalid xml. This was introduced in #602 which changed the seeking logic when writing the dimension xml element.

I am working on a fix and will create a pull request shortly


Styling of Element Components under 1200px

The styling of the form element components does not wrap well with a screen width less than 1200px.
I'm not sure if this was caused by the merged styling or if it was always an issue.

I'm not sure if this was caused by the merged styling or if it was always an issue.

It was better at one point --- but yes there's been a bunch of little styling updates.
We'll get it fixed up.


clean up code: rm heathcheck related code

清理了一些不用的代码

Current coverage is 43.25% (diff: 100%)

Merging #79 into master will increase coverage by 0.10%

@@             master        #79   diff @@
==========================================
  Files            34         34
  Lines         10669      10669
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           4604       4615    +11
+ Misses         4975       4943    -32
- Partials       1090       1111    +21

Powered by Codecov. Last update 2e4790d...c1ff9ae

LGTM

remove  ./src/types/check.go

@pwzgorilla  src/health/mock/store.go:10: undefined: types.Check


No icon in notification area

Application does not show notification area icon if started with environment (or on environment restoration)
Test steps:

install Xfce
start TogglDesktop
ensure its icon is shown in notification area
relogin in Xfce

Expected:
Notification are shows Toggl icon
Actual:
TogglDesktop is restarted (shows up in process list), but shows no icon
This is a regress in TogglDesktop for Linux 7.4.52, earlier versions were able to show icon on desktop environment restore.
Workaround:
restart TogglDesktop, it will show icon
killall TogglDesktop
/opt/toggldesktop/TogglDesktop.sh

I have not tested with other desktop environments, but they could be affected too.

Suddenly, can't reproduce anymore. Will reopen, when more information is available.

This happens every time if Xfce is started long after logout (I login next day and see no icon, just process).

Seems to be duplicate of #1645

Closed as duplicate


Upgrade dependencies

Description
Upgrading the dependencies to keep them up to date.
Type of Change

[x] Other (please describe)

Checklist

[x] I have read the contributing guidelines
[x] Existing issues have been referenced (where applicable)
[x] I have verified this change is not present in other open pull requests
[x] Functionality is documented
[x] All code style checks pass
[x] New code contribution is covered by automated tests
[x] All new and existing tests pass

Hey @amuraru - thanks for your contribution!
We expect to drop a Koperator release by end of next week, and we will come back to the PR after that.


gpioSetISRFunc relative high cpu usage

I recently found pigpio and I decided to try it because of the hardware timed pwm. I haven't tried pwm yet, but I have rewrote an old program using the pigpio C library to compare it with the wiringpi C library. I am using the following code:
#include <stdlib.h>
#include "pigpio.h"

#define PIN 21

void my_cb(int gpio, int level, uint32_t tick)
{
	if(level!=2) system("sudo halt");
}

int main(void) {
	gpioInitialise();
	gpioSetMode(PIN, PI_INPUT);
	gpioSetPullUpDown(PIN, PI_PUD_UP);
	gpioSetISRFunc(PIN, EITHER_EDGE, 1000, my_cb);
	while(1) time_sleep(1000);
	gpioTerminate();
	return 0;
}

All the code does is shutdown the Pi when the pin is grounded. It is run at boot with /etc/rc.local
The code as is uses 8-9% cpu which isn't a lot but wiringpi with similar code doesn't even register cpu usage. This seems high for an interrupt.
My question is am I initializing the interrupt wrong or is the cpu usage just a byproduct of the way the hardware timing is initialized? I did notice that if I start pigpiod without running any code, it uses the same amount of cpu (8-9%).

That is the base load.  It is generated by the sampling of the GPIO at 200 thousand times per second.  More accurately the load is generated by the code which wakes a thousand times per second to see which GPIO have changed state and would alert any process which has registered an interest.
See http://abyz.me.uk/rpi/pigpio/cif.html#gpioCfgClock for timings I did years ago.

I suspected that was the case. Thanks for the quick response.


Bump dependencies

Two major versions:

concat-stream: 1.x -> 2.x
node-fetch: 1.x -> 2.x

Not sure if that warrants a major bump for file-fetch as well.
The reason for this PR is trifid-handler-fetch currently requiring "node-fetch": ^1.6.0". Since this PR requires no code changes although it's a major version of two packages, trifid-handler-fetch will be easy to upgrade.
edit: force-pushed to add node@10 to Travis CI

Ping @bergos

@vhf just released 1.2.0

Thanks!


Challenge 1 (21f1004119)

name: Ravi Kumawat
github_user_name: ravikumawat7716

url of forked repository
https://github.com/ravikumawat7716/oss101
screenshot of cloned repo (terminal + vscode )

Screenshot of new branch creation & all the branches


how to kebabCase page url

how to tansform https://starter-vite-react-library.yuns.love/components/Button to https://starter-vite-react-library.yuns.love/components/button?
Whether i can custom path url?

Rename your page file to button$.tsx or /button/index$.tsx

Rename your page file to button$.tsx or /button/index$.tsx

But the page directory will export as port of library structure, this approach is not suitable.

I can support a new static data notation to define a page path explicitly. For example, this is your /components/Button/index$.tsx:
/**
 * @pagePath /components/button
 */

// export your page component ...

The downside is, you need add do this static data notation to every page files that you want to change page path.

I'm try to apply this approach  to DefaultPageStrategy https://github.com/yunsii/starter-vite-react-library/blob/kebab-case-page-url/vite.docs.config.ts
It looks like effectless, what happens?

I think pagePublicPath = `/${kebabCase(pagePublicPath)}may be wrong. You canconsole.log(pagePublicPath)to check if it output right like/components/button`

I think pagePublicPath = /${kebabCase(pagePublicPath)} may be wrong. You can console.log(pagePublicPath) to check if it output right like /components/button

Print like this:

Only print once, is it normal?

Checkout this PR: https://github.com/yunsii/starter-vite-react-library/pull/1

@yunsii I have created a PR for you: yunsii/starter-vite-react-library#1

Awesome! i found that ahooks still kabab case hooks name, so i will do like that. BTY, still need a nice page strategy. It looks like so complicated for now 😂

Oh no, still awkward 😦

Oh no, still awkward 😦

That can be overwrited by staticData.title

By the way, I just published a new version to fix some issues. You should upgrade.

That can be overwrited by staticData.title

I think file name as page title, kebab case file name is a good practice 👀

I think file name as page title, kebab case file name as page url is a good practice

That is reasonable for component documentation, but not for general filesystem routing (for example, next.js's filesystem routing also don't support that). I want to keep the default filesystem routing strategy(DefaultPageStrategy) as simple/intuitive as possible. Maybe I can provide a optional KebabCaseStrategy to do that.

I understand you. But I can't figure out a way to support that. I have to keep the default filesystem routing strategy(DefaultPageStrategy) as simple/intuitive as possible~


When upgrading from alpha version to beta version, I encountered the problem of not being able to copy and paste.

I upgraded from 2.0.0-alpha to 2.0.0-beta version, including the following dependencies:
tauri-build
tauri
tauri-plugin-shell

Now I encountered the problem that text cannot be copied and pasted in the desktop version application. What permissions need to be added, otherwise it will be very inconvenient during development restrictions?
My permissions are as follows:
main.json
{
   "$schema": "./schemas/desktop-schema.json",
   "identifier": "default",
   "description": "Capability for the main window",
   "windows": ["main"],
   "permissions": [
     "path:default",
     "event:default",
     "window:default",
     "app:default",
     "resources:default",
     "menu:default",
     "tray:default",
     "shell:allow-open",
     "log:default",
     "dialog:allow-open"
   ]
}

https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/clipboard-manager/permissions/autogenerated/reference.md

Please also include the output of the tauri info command.
And just to be clear, you're talking about the ctrl/cmd + c/v shortcuts, right?

Please also include the output of the tauri info command.
And just to be clear, you're talking about the ctrl/cmd + c/v shortcuts, right?

Yes, ctrl/cmd + c/v does not work in desktop applications, I don't know what permissions need to be added

those shortcuts are not supposed to be behind permissions, so please show us the output of tauri info or at least tell us your OS so we can reproduce and fix this :)

those shortcuts are not supposed to be behind permissions, so please show us the output of tauri info or at least tell us your OS so we can reproduce and fix this :)

computer information
macbook pro
Chip: Apple M1 Pro

Use ctrl + c to copy the text displayed on the front-end page in the application, and then use ctrl + c to paste in the input box of the front-end page. Nothing happens. Using ctrl + v in the text editor does not copy the information, but it is now in the application. Select the text in the program, use right-click -> Copy, you can copy the information, and then use right-click -> Parse to paste the information, but it will be effective, but it is more troublesome.
Use copy and paste to enter information in the background as follows
[2024-03-12][10:52:39][tao::platform_impl::platform::view][TRACE] Triggered `doCommandBySelector`
[2024-03-12][10:52:39][tao::platform_impl::platform::view][TRACE] Completed `doCommandBySelector`

https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/clipboard-manager/permissions/autogenerated/reference.md

Using the tauri-plugin-clipboard-manager plugin still doesn't solve my problem
Cargo.toml
tauri-plugin-clipboard-manager = "2.0.0-beta"

Code main.rs:
  tauri::Builder::default()
         .plugin(tauri_plugin_clipboard_manager::init())
         .plugin(tauri_plugin_shell::init())
         .plugin(tauri_plugin_dialog::init())
         .plugin(tauri_plugin_log::Builder::default().build())
         .setup(move |app| {
             Tray::builder(app);
             Ok(())
         })
         .invoke_handler(tauri::generate_handler![
             get_server_list,
         ])
         .run(tauri::generate_context!())
         .expect("error while running tauri application");

capabilities/main.json
{
   "$schema": "./schemas/desktop-schema.json",
   "identifier": "default",
   "description": "Capability for the main window",
   "windows": ["main"],
   "permissions": [
     "path:default",
     "event:default",
     "window:default",
     "app:default",
     "resources:default",
     "menu:default",
     "tray:default",
     "shell:allow-open",
     "log:default",
     "dialog:allow-open",
     "clipboard-manager:allow-read",
     "clipboard-manager:allow-write"
   ]
}

After adding the tauri-plugin-clipboard-manager plug-in, I saw that it has been added below gen/schemas/desktop-schema.json

But still can't use ctrl + c/v

Can you also post the output of the tauri info command please? I don't see any issues on macos 14.4
Is your project public or do you have a minimal reproduction example?

Can you also post the output of the tauri info command please? I don't see any issues on macos 14.4
Is your project public or do you have a minimal reproduction example?

So how do I use ctrl + c/v in the desktop application?
tauri info
[2024-03-12][10:52:39][tao::platform_impl::platform::view][TRACE] Triggered `doCommandBySelector`
[2024-03-12][10:52:39][tao::platform_impl::platform::view][TRACE] Completed `doCommandBySelector`

So how do I use ctrl + c/v in the desktop application?

It should just work. And it also just works in my app, which is why i asked for your project or a small reproduction example.
With tauri info i meant the output if you run npm run tauri info

Wait a minute, I'll give you an example

So how do I use ctrl + c/v in the desktop application?

It should just work. And it also just works in my app, which is why i asked for your project or a small reproduction example.
With tauri info i meant the output if you run npm run tauri info

create project:

h5 install:

Run the project using pnpm tauri dev, it's ok。
Add the following package to cargo.toml:
old:
tauri = { version = "2.0.0-beta", features = [] }
tauri-plugin-shell = "2.0.0-beta"
serde = { version = "1", features = ["derive"] }
serde_json = "1"

new:
tauri = { version = "2.0.0-beta", features = ["tray-icon", "image-png", "unstable"] }
tauri-plugin-shell = "2.0.0-beta"
tauri-plugin-dialog = "2.0.0-beta"
tauri-plugin-log = "2.0.0-beta"
serde = { version = "1", features = ["derive"] }
serde_json = "1"

Then use pnpm tauri dev to run the project again, you cannot use ctrl+c/v, After investigation, it was caused by unstable。
Because the project is old and has been upgraded to the beta version, you need to use Tray
if event.click_type == ClickType::Left {
             let app = tray.app_handle();
             if let Some(window) = app.get_window("main") {
                 let _ = window.show();
                 let _ = window.set_focus();
             }
         }

Among them, the app.get_window method reports an error. The editor prompts that the unstable package needs to be introduced. If you do not use the unstable package, how do you get the main window?

I think it could be a Mac specific issue. The Copy/Paste events don't go to the webview unless the PredefinedMenuItem for Copy and Paste are added.

Same issue on M1 here just to add
npm run tauri dev native clipboard works no plugins added
npm run tauri build nope


Strange error: Failed to execute 'removeChild' on 'Node'

Full Error:
Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
The above error occurred in the <TextRenderer> component:
    in TextRenderer (created by ReactMarkdownWithHtml)
    in p (created by ReactMarkdownWithHtml)
    in Root (created by ReactMarkdownWithHtml)

This error happens when I change the props of a component. This component is a PureComponent which passes a portion of the props to ReactMarkdown for it to render.
The website I'm building is a mini-test that serves several sequential questions to the user. I use React Markdown to render the questions which are written by others using markdown. When a question is complete, I change the props to my QuestionViewer component and it renders the new question. This component renders the ReactMarkdown object. I use WithHtml so question makers have more freedom.
The system works fine initially but when I try switching questions (changing props), ReactMarkdown throws this error.
How I use ReactMarkdown:
<ReactMarkdown renderers={{image: this.imageRenderer}} escapeHtml={false}
                                       source={question.explanationMarkdown}/>

imageRenderer(props) {//for markdown
        return <img alt='Question' {...props} style={{maxWidth: '100%', maxHeight: '250px'}} className='mx-auto'/>;

    }

Rough Hierachy:
<App>//in App I change the props to QuestionViewer at a certain condition (when next question //needs to be shown)
<QuestionViewer question={question}/>
</App>

I had this error before when I was updating the state in the same QuestionViewer component. I fixed it however by converting my functional component to a class-based one. It seems to be triggered when a full re-render happens, which a class component can somehow go over.
What I tried:

Removing custom renderers.
Also switching the 'App' to a class-based component,

Any help would be awesome :), not sure if its an underlying ReactMarkdown issue

Update: managed to fix it by first rendering nothing, then rendering the next ReactMarkdown. I don't want to use this solution forever, but it seems that changing from one ReactMarkdown to another seemlessly triggers this error.

@SimplyBallistic could you create a reproducable example of the issue? https://codesandbox.io/s/kind-ramanujan-jnyi5 is a good starting point

@SimplyBallistic could you create a reproducable example of the issue? https://codesandbox.io/s/kind-ramanujan-jnyi5 is a good starting point

Sure. I'll send a link here in a few days

@SimplyBallistic I had the same issue and it was because of this.
I fixed the error disabling Google Translate on Chrome.

@rayronvictor could you create a reproducable example of the issue? https://codesandbox.io/s/kind-ramanujan-jnyi5 is a good starting point

@SimplyBallistic I had the same issue and it was because of this.
I fixed the error disabling Google Translate on Chrome.
<html translate="no">

This actually might be the case. I'll try out your solution + test in Firefox and edge to see if this works.

@rayronvictor could you create a reproducable example of the issue? https://codesandbox.io/s/kind-ramanujan-jnyi5 is a good starting point

https://codesandbox.io/s/elastic-microservice-ylxlr
First, you need to enable "Offer to translate pages in this language" in chrome://settings/languages. I selected "Portuguese (Brazil)".

Then, accessing the fullscreen page https://ylxlr.csb.app you need to translate the portuguese text from the example to english (mark "Always Translate Portuguese" to see the error more easily).

Note that I changed the default language to "pt-br" in the index.html (<html lang="pt-br">)

Thanks @rayronvictor tracing this back some more, this appear to be https://github.com/facebook/react/issues/11538
You can find a work around there as well https://github.com/facebook/react/issues/11538#issuecomment-417504600.
Given the performance impact of the work around, and that it's not specific to react-markdown, I don't think this is something that should be applied at the react-markdown level, but on a per-project basis, as need arises.
The long term fix is https://bugs.chromium.org/p/chromium/issues/detail?id=872770


nbind.init() throwing SIGSEGV

So I have the following binding.gyp:
{
	"targets": [
		{
		    "includes": [
			"auto.gypi"
		    ],
		    "sources": [
			"node-adapter/cxx/src/*.cpp"
		    ],
		    "include_dirs": [
                        "build", "node-adapter/cxx/include"
                     ],
                    "libraries": [
                        "-lrl",
                         "-lentailmentsearch",

                        "-L/usr/local/lib/x86_64-linux-gnu",
                        "-lcassandra"
                     ],
                    "cflags": [ "-std=c++11" ]
		}
	],
	"includes": [
		"auto-top.gypi"
	]
}

The first sign of problem happens after I compile this in which I get the following:

Error: libcassandra.so.2: cannot open shared object file: No such file or directory
at Error (native)
at Object.Module._extensions..node (module.js:597:18)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at initNode (/home/jandres/Dev/analytic-engine-rl/node_modules/nbind/dist/nbind.js:141:15)
at /home/jandres/Dev/analytic-engine-rl/node_modules/nbind/dist/nbind.js:115:13
at findCompiledModule (/home/jandres/Dev/analytic-engine-rl/node_modules/nbind/dist/nbind.js:79:13)

Which does not makes sense given that I supplied the path already for my cassandra installation directory.
Furthermore, if I run export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/x86_64-linux-gnu prior to running the NodeJS javascript file, I finally get the SIGSEGV, which occurs precisely during nbind.init().
I would appreciate any help I can get. I would gladly work with someone on this.

Try to compile for debugging (see the debugging section in the readme) and GDB should help find out which line is crashing.
The -L flag might work better in ldflags, or OTHER_LDFLAGS inside xcode_settings if you're on OS X.


Changed the default leaderboard filter to 7d from all

fixes #515
d640e137a05157e5faccb8af58566937e56923ffa568dfe1ff743c2df3ef2806

@odetolataiwo I have paid this earlier. Don't send coins. Can you make sure this is logged into the system?


make youtube video

make youtube video tutorials

All you need to do is upload the files: https://github.com/UnamSanctam/UnamWebPanel#setup. Each host does it differently so it isn't really possible to do a universal guide.


Update Dockerfile

The gen_fonts.sh script expects the 'file' command to be installed in the build environment. This was causing a build failure.

Thanks @mferland for identifying this issue and submitting a fix. We tested it and this is indeed an issue. Hence merging the changes you submitted.


Remove randomness from container compilation

Following @Tobion's comment https://github.com/symfony/symfony/issues/25958#issuecomment-363462107, I've made an attempt to eliminate all randomly generated service IDs from MonologExtension.
MonologExtension currently uses uniqid to generate a service ID to be used in a single reference afterwards. I'm now directly inlining the affected definitions, so there is not need for randomly generated service IDs anymore.

Thank you @derrabus.


DefaultControllerActivator.Activate needs to be virtual

The type also needs some love. Right now the only virtual method it has returns a IReadOnlyDictionary. This makes it difficult to modify the behavior of activation

a5a3eb44b9a23ff2fe4e8f64641c060088fbb1c9


Inline-eval font size

Hi, just preparing my demo of malli using Cursive + CLJ Extras. One thing I noticed that the inline eval results font size seems to be fixed. Is there / could there be an option to make it bigger? could it follow the normal font size?
below is what it looks for me in distraction free (presentation) mode. Usually using even bigger fonts here:

This seem to be standard intellij behavior, all hint windows (not just inline eval's) do not inherit editor font sizing when zooming:

The only workaround I found so far is using presentation mode directly instead of using pinch-to-zoom or mouse-wheel zooming... maybe this is an intellij bug?


Localize the filters navbar view

The filters navbar view have fixed english text, it should use the current app lang:

https://github.com/Laravel-Backpack/CRUD/blob/master/src/resources/views/inc/filters_navbar.blade.php#L11

Would you like to submit a PR to help out?

Thanks a lot for the PR. I'll close this issue, as the PR clearly fixes it. Cheers!


报错

RuntimeError: Error(s) in loading state_dict for BiLSTM:
Missing key(s) in state_dict: "bilstm.rnn.weight_ih_l0", "bilstm.rnn.weight_hh_l0", "bilstm.rnn.bias_ih_l0", "bilstm.rnn.bias_hh_l0", "bilstm.rnn.weight_ih_l0_reverse", "bilstm.rnn.weight_hh_l0_reverse", "bilstm.rnn.bias_ih_l0_reverse", "bilstm.rnn.bias_hh_l0_reverse", "bilstm.rnn.weight_ih_l1", "bilstm.rnn.weight_hh_l1", "bilstm.rnn.bias_ih_l1", "bilstm.rnn.bias_hh_l1", "bilstm.rnn.weight_ih_l1_reverse", "bilstm.rnn.weight_hh_l1_reverse", "bilstm.rnn.bias_ih_l1_reverse", "bilstm.rnn.bias_hh_l1_reverse", "fc.weight", "fc.bias".
Unexpected key(s) in state_dict: "cnn.convs.0.weight", "cnn.convs.1.weight", "cnn.convs.2.weight", "cnn.activations.prelu.weight", "fc1.weight", "fc1.bias", "fc2.weight", "fc2.bias".

您好，请您提供具体的报错文件和报错代码


Next-Preact Plugin Breaks with Preact X and/or Next 8.1.0

I'm a little new to OSS so please bear with me...
This is more or less a bringing to attention of the fact that the next-preact plugin still hasn't been published, but that upgrading the next-preact example to either the latest version of Next (8.1.0 as of writing this) or Preact X latest (10.0.0-beta.2 as of writing this) break the example. Since the publish was never done after the merge request, I ended creating my own example of using nextjs with Preact in this repository (First Preact App).
I wanted to use hooks with preact and nextJS, which is only available in Preact X, but doing so breaks the repository with the following error (Next held at 8.0.3):
/home/USER/first-preact-app/node_modules/preact-compat/dist/preact-compat.js:52
VNode.prototype.$$typeof = REACT_ELEMENT_TYPE;
      ^

TypeError: Cannot read property 'prototype' of undefined

With a bunch of errors about where's the error. If I maintain preact at the current latest version of 8.4.2, but upgrade nextjs to the current latest at 8.1.0, I get the following error:
/home/USER/first-preact-app/node_modules/react-ssr-prepass/dist/react-ssr-prepass.development.js:841
var ReactCurrentDispatcher = ref.ReactCurrentDispatcher;
                                 ^

TypeError: Cannot read property 'ReactCurrentDispatcher' of undefined

From what I read in another issue, this second error is because Suspense isn't in Preact's latest version, but is in the next version. So by installing Preact 10.0.0-beta.2 and use Next 8.1.0, I am unable to build altogether with the following error:
><EMAIL_ADDRESS>build /home/kenny/first-preact-app
> next build

internal/modules/cjs/loader.js:670
    throw err;
    ^

Error: Cannot find module 'react'

So I'm unable to find a setup that allows me to use Preact, NextJS and Preact Hooks at the meantime. My other option is to not use hooks and continue working with Next 8.0.3 and Preact 8.4.2 as it's been proven stable enough for my hobbyism, but I like the simple interface of hooks in React and want to experiment with them in Preact.
Any ideas how to resolve this?

@kennykimjr I had the same problem, but I found this repo. https://github.com/aomkirby123/nextjs-preactX
It seems that preact-compat will be available under preact/compat in preactX.

@hectorromo So I cloned the repo and I ended up getting this familiar error when trying to build:
[kenny@kenny-pc nextjs-preactX]$ yarn build
yarn run v1.16.0
$ next build
The module 'react' was not found. Next.js requires that you include it in 'dependencies' of your 'package.json'. To add it, run 'npm install --save react'
The module 'react-dom' was not found. Next.js requires that you include it in 'dependencies' of your 'package.json'. To add it, run 'npm install --save react-dom'
internal/modules/cjs/loader.js:670
    throw err;
    ^

Error: Cannot find module 'react'

@aomkirby123 Would be nice if I'm not doing this right.

I was able to get it working by requiring alias.js and calling it in the next script in dist and in next-server's script. Ugly but it worked.

@jedahan Can you show an example of that solution? My project doesn't have the same structure so I'd like to see I can adapt your solution works in my repository or aomkirby's.

I'm not sure how Next.js build work, but I update my repo, which add React and React DOM as dev-depencies to trick Next.js that we have React.
Also I also remove alias.js, now instead of require('./alias.js'), we require('module-alias') instead.
This should be work for now, I'll read more about Next.js Build to see if I can change something.
Also, feels free to create issue on nextjs-preactx repo, I'll always be grateful to be clear your answered.

@kennykimjr the latest changes @aomkirby123 made are way less hacky, and work better for me.

... So Preact a few hours ago as of this writing released the beta.3, which broke the hooks API from beta.2. Error resulting from upgrading to beta 3: TypeError: Cannot read property '__H' of undefined
It shouldn't be a problem as long as you avoid the use of hooks but I imagine that a lot of people are going to want to utilize it.

@kennykimjr We forgot to update preact-render-to-string alongside preact itself. Published a new version of preact-render-to-string that fixes it :+1: Already made a PR against your repo: https://github.com/kennykimjr/first-preact-app/pull/11 :four_leaf_clover:

Thanks Marvin! Now that that's taken care of I'll see if I can work on updating this plugin using PreactX and the fixes you made and from everyone else.

Okay, so I'm back. I created a generic npm package called next-preactx-plugin because I'm not exactly sure what to do about updating the current next-preact plugin since this would break backwards compatibility with the current latest version of preact (8.4.2) in favor of the current beta (10.0.0) which is actively getting to stability. This change to make it compatible with preactX would also require an additional step of adding module aliases to your package.json.
I can simply copy the code to a new version of next-preact and designated as a "next" version so as to not break stability for the people using the current version of the next-preact plugin. What do you guys think is the best way to go forward here?

I want to create a PR but that would took me 13 hours until I can do it, so I’ll leave a guide here then.
I recommended add React and React DOM as dev dependencies so that build process would be smaller.
Also in alias.js, alias React, React-dom to Preact/compat and react-ssr-prepass to preact-ssr-prepass. Don’t forget to mention to include alias.js in server.
With alias.js, _moduleAliases in package.json wouldn’t be require to be added.
Lastly, mention that change from React and React dom to dev dependencies on project that will use this plugin.
Other than this should be working like a charm.
If there’s a problem, I’ll create a PR to fix that.

So I've attempted to do everything that you've suggested with only 1 issue @aomkirby123 . NPM/Yarn doesn't install devDependencies of Dependencies, so I'd have to either install react/react-dom as devDependencies of my main project, or install them as dependencies of the plugin.
The plus to the first approach is that it keeps the "interface" the same as the current version of zeit's next-preact but it fully installs react as a dependency which drags out installation time.
The plus to the second approach is that doesn't weight down the build process as much but it adds a second installation step of adding react/react-dom as devDependencies. But I think at this point it may be an acceptable cost as the LTS and beta versions of Preact as so far apart from each other.

FYI: From the looks of it we'll likely move out of Beta with version X soon 👍


ISSUE-3410 Added --maxassignlength option

Here I try to implement #3410
@pekkaklarck Hi! I couldn't reopen last PR(https://github.com/robotframework/robotframework/pull/4051) so I have created new.

Great! I don't have time to review this right now, but I'll add #3410 back to RF 5.0 scope so this won't be forgotten.

Looks good. There are some things to be enhanced in doc and tests. Because I want to create RF 5.0 rc 1 tomorrow, and this issue was earlier neglected, I'll just merge this PR and do the enhancements myself. Thanks for contribution @miktuy!


Navbar Redesign

Refactored the code for navbar to ensure that the design is responsive.
Updated and reorganised the links to work in a systematic manner.

Pushing into master to keep work updated.


Text to speech support in Firefox

This is clear. But Firefox latest versions supports 'Speech Synthesis API'

Still I'm unable to see the Text to speech working in the firefox.

Hi @falahh6.
I have tested it out on my Firefox and it appears to work ok. May I ask what version of Firefox you are using, what Operating System do you have, does it work for you on Chrome and what code are you using to configure Deep Chat?
This is my version:

Since there has been no further communication I will be closing this issue. However feel free to comment below or create a new issue for anything else. Thanks!


Document how to use rustfmt as a library

Since there is a public API and there are various references to a rustfmt library in various issues here, it seems like it should be possible to use rustfmt as a library. However, most of the public API is not documented and I have not found a way of simply giving rustfmt some rust source code an having it format that.

I would appreciate this. This is the snippet I am using at the moment:
fn prettify_code(input: String) -> String {
    let mut buf = Vec::new();
    {
        let mut config = rustfmt_nightly::Config::default();
        config.set().emit_mode(rustfmt_nightly::EmitMode::Stdout);
        config.set().edition(rustfmt_nightly::Edition::Edition2018);
        let mut session = rustfmt_nightly::Session::new(config, Some(&mut buf));
        session.format(rustfmt_nightly::Input::Text(input)).unwrap();
    }
    String::from_utf8(buf).unwrap()
}

And to confirm, this isn't possible on stable at the moment?
Currently in insta we're shelling out. This is a bit hacky (e.g. can't guarantee versions / it's even installed), but simple & works.
If there were a way of compiling in rustfmt that would be an interesting alternative.

fn format_rust_expression(value: &str) -> Cow<'_, str> {
    const PREFIX: &str = "const x:() = ";
    const SUFFIX: &str = ";\n";
    if let Ok(mut proc) = Command::new("rustfmt")
        .arg("--emit=stdout")
        .arg("--edition=2018")
        .stdin(Stdio::piped())
        .stdout(Stdio::piped())
        .stderr(Stdio::null())
        .spawn()
    {
        {
            let stdin = proc.stdin.as_mut().unwrap();
            stdin.write_all(PREFIX.as_bytes()).unwrap();
            stdin.write_all(value.as_bytes()).unwrap();
            stdin.write_all(SUFFIX.as_bytes()).unwrap();
        }
        if let Ok(output) = proc.wait_with_output() {
            if output.status.success() {
                // slice between after the prefix and before the suffix
                // (currently 14 from the start and 2 before the end, respectively)
                let start = PREFIX.len() + 1;
                let end = output.stdout.len() - SUFFIX.len();
                return str::from_utf8(&output.stdout[start..end])
                    .unwrap()
                    .to_owned()
                    .into();
            }
        }
    }
    Cow::Borrowed(value)
}

I'd like to use rustfmt as a library, but not for the purpose of code -> code. Instead, for the purpose of rustc_ast -> code. Because I'd like to mutate the AST prior to producing code from it. Is this possible, with the currently public API, please?

I've received a tip that rust analyzer seems better suited for my purpose.


VS Code config

[ ] Add recommended packages useful for Next
Recommended packages (use Ctrl+P in VS code to run the command):

ext install vscode-styled-jsx
# ext install vscode-styled-jsx-languageserver # Do not seem to work correctly

There is a way to add recommended packages to the workspace config, so that VS Code recommend them directly:
https://medium.com/better-programming/how-to-configure-vs-code-like-a-pro-782d2d718586

Close as dupe of #50


Error on asn_check_constraint function

Hello,
I'm working with ETSI ITS messages for security (ETSI TS 103 097 V1.3.1). In the specific, I have some problem about the code generated for checking the constraints based on the EtsiTs103097Module.asn that can be download from this link https://forge.etsi.org/rep/ITS/ITS_ASN1/tree/master/SEC_TS103097
My problem is about the EtsiTs103097Data component whose definition is the following:
EtsiTs103097Data::=Ieee1609Dot2Data (WITH COMPONENTS {...,
  content (WITH COMPONENTS {...,
    signedData (WITH COMPONENTS {..., -- constraints on signed data headers
      tbsData (WITH COMPONENTS {
        headerInfo (WITH COMPONENTS {...,
          generationTime PRESENT,
          p2pcdLearningRequest ABSENT,
          missingCrlIdentifier ABSENT
        })
      }),
      signer (WITH COMPONENTS {...,  --constraints on the certificate
        certificate (SIZE(1))
      })
    }),
    encryptedData (WITH COMPONENTS {..., -- constraints on encrypted data headers
      recipients  (WITH COMPONENT (
        (WITH COMPONENTS {...,
          pskRecipInfo ABSENT,
          symmRecipInfo ABSENT,
          rekRecipInfo ABSENT
        })
      ))
    }),
    signedCertificateRequest ABSENT
  })
})

The problem is that when I checks the constraints of this module using the asn_check_constraints function, the code enters in an infinite loop that ends with a core dump.
The issue seems to be in the following function that is in the generated EtsiTs103097Data.c file:
int
EtsiTs103097Data_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}

	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}

	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

The variable asn_TYPE_descriptor_t *td seems to me that has not the encoding_constraints field, but in the code it tried to access it the same.
Does anyone else encounter the same problem? Is it a problem of the definition of ASN.1 module or of the compiler?
I thank you in advance for any explanation and suggestion for solving the issue.

Hi @edbunet,

I'm working with ETSI ITS messages for security (ETSI TS 103 097 V1.3.1). In the specific, I have some problem about the code generated for checking the constraints based on the EtsiTs103097Module.asn that can be download from this link https://forge.etsi.org/rep/ITS/ITS_ASN1/tree/master/SEC_TS103097

Can you provide all the commands you've used to compile these ASN.1 files?

My problem is about the EtsiTs103097Data component whose definition is the following:
EtsiTs103097Data::=Ieee1609Dot2Data (WITH COMPONENTS {...,
  content (WITH COMPONENTS {...,
    signedData (WITH COMPONENTS {..., -- constraints on signed data headers
      tbsData (WITH COMPONENTS {
        headerInfo (WITH COMPONENTS {...,
          generationTime PRESENT,
          p2pcdLearningRequest ABSENT,
          missingCrlIdentifier ABSENT
        })
      }),
      signer (WITH COMPONENTS {...,  --constraints on the certificate
        certificate (SIZE(1))
      })
    }),
    encryptedData (WITH COMPONENTS {..., -- constraints on encrypted data headers
      recipients  (WITH COMPONENT (
        (WITH COMPONENTS {...,
          pskRecipInfo ABSENT,
          symmRecipInfo ABSENT,
          rekRecipInfo ABSENT
        })
      ))
    }),
    signedCertificateRequest ABSENT
  })
})

The problem is that when I checks the constraints of this module using the asn_check_constraints function, the code enters in an infinite loop that ends with a core dump.

Can you provide an example binary and commands/code with which this problem can be reproduced?

The issue seems to be in the following function that is in the generated EtsiTs103097Data.c file:
int
EtsiTs103097Data_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}

	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}

	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

The variable asn_TYPE_descriptor_t *td seems to me that has not the encoding_constraints field,

Why do you think that? Can you check with gdb what's the value?

but in the code it tried to access it the same.
Does anyone else encounter the same problem? Is it a problem of the definition of ASN.1 module or of the compiler?
I thank you in advance for any explanation and suggestion for solving the issue.

Rebuild with -DASN_EMIT_DEBUG=1 in CFLAGS to get some more debug output.

Hello @velichkov,
please find in line the answers to your questions.

Hi @edbunet,

I'm working with ETSI ITS messages for security (ETSI TS 103 097 V1.3.1). In the specific, I have some problem about the code generated for checking the constraints based on the EtsiTs103097Module.asn that can be download from this link https://forge.etsi.org/rep/ITS/ITS_ASN1/tree/master/SEC_TS103097

Can you provide all the commands you've used to compile these ASN.1 files?

I used the following command
./asn1c -gen-PER -fnative-types -fcompound-names -pdu=all EtsiTs103097Module.asn IEEE1609dot2.asn IEEE1609dot2BaseTypes.asn
All the ASN.1 files can be downloaded from the link that I provided in the previous post

My problem is about the EtsiTs103097Data component whose definition is the following:
EtsiTs103097Data::=Ieee1609Dot2Data (WITH COMPONENTS {...,
  content (WITH COMPONENTS {...,
    signedData (WITH COMPONENTS {..., -- constraints on signed data headers
      tbsData (WITH COMPONENTS {
        headerInfo (WITH COMPONENTS {...,
          generationTime PRESENT,
          p2pcdLearningRequest ABSENT,
          missingCrlIdentifier ABSENT
        })
      }),
      signer (WITH COMPONENTS {...,  --constraints on the certificate
        certificate (SIZE(1))
      })
    }),
    encryptedData (WITH COMPONENTS {..., -- constraints on encrypted data headers
      recipients  (WITH COMPONENT (
        (WITH COMPONENTS {...,
          pskRecipInfo ABSENT,
          symmRecipInfo ABSENT,
          rekRecipInfo ABSENT
        })
      ))
    }),
    signedCertificateRequest ABSENT
  })
})

The problem is that when I checks the constraints of this module using the asn_check_constraints function, the code enters in an infinite loop that ends with a core dump.

Can you provide an example binary and commands/code with which this problem can be reproduced?

The problem can be reproduced with the following code. It is very minimal code but the problem can be reproduced.
char errbuf[255];
size_t errlen = sizeof(errbuf);
EtsiTs103097Data_t msg;
int result = asn_check_constraints(&asn_DEF_EtsiTs103097Data, &msg, errbuf, &errlen);

The issue seems to be in the following function that is in the generated EtsiTs103097Data.c file:
int
EtsiTs103097Data_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}

	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}

	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

The variable asn_TYPE_descriptor_t *td seems to me that has not the encoding_constraints field,

Why do you think that? Can you check with gdb what's the value?

I checked the definition of the structure asn_TYPE_descriptor and the encoding_constraints field is not present. I insert in the following the definition of the structure as_TYPE_descriptor_t that I have in my generated code.
typedef struct asn_TYPE_descriptor_s {
char *name; /* A name of the ASN.1 type. "" in some cases. */
char *xml_tag; /* Name used in XML tag */

/*
* Generalized functions for dealing with the specific type.
* May be directly invoked by applications.
*/
asn_struct_free_f  *free_struct; /* Free the structure */
asn_struct_print_f *print_struct; /* Human readable output */
asn_constr_check_f *check_constraints; /* Constraints validator */
ber_type_decoder_f *ber_decoder; /* Generic BER decoder */
der_type_encoder_f *der_encoder; /* Canonical DER encoder */
xer_type_decoder_f *xer_decoder; /* Generic XER decoder */
xer_type_encoder_f *xer_encoder; /* [Canonical] XER encoder */
per_type_decoder_f *uper_decoder; /* Unaligned PER decoder */
per_type_encoder_f *uper_encoder; /* Unaligned PER encoder */

/***********************************************************************
* Internally useful members. Not to be used by applications directly. *
**********************************************************************/

/*
* Tags that are expected to occur.
*/
asn_outmost_tag_f  *outmost_tag; /* <optional, internal> */
ber_tlv_tag_t *tags; /* Effective tags sequence for this type */
int tags_count; /* Number of tags which are expected */
ber_tlv_tag_t *all_tags;/* Every tag for BER/containment */
int all_tags_count; /* Number of tags */

asn_per_constraints_t *per_constraints; /* PER compiled constraints */

/*
* An ASN.1 production type members (members of SEQUENCE, SET, CHOICE).
*/
struct asn_TYPE_member_s *elements;
int elements_count;

/*
* Additional information describing the type, used by appropriate
* functions above.
*/
void *specifics;
} asn_TYPE_descriptor_t;

Concerning gdb I provide following lines, basically it seems that it call recursively the EtsiTs103097Data_constraint() function until there is the core dump.
#0  0x000000000041ec0d in EtsiTs103097Data_constraint ()
#1  0x000000000041ec0f in EtsiTs103097Data_constraint ()
...
#174647 0x000000000041ec0f in EtsiTs103097Data_constraint ()
#174648 0x000000000041ec0f in EtsiTs103097Data_constraint ()
#174649 0x000000000041e76d in asn_check_constraints ()

I rebuilt with debug information enabled and no debug output is provided using the command lines that I provided. I checked and the debug is really enabled since with other code, the debug information is displayed.
I modified the EtsiTs103097Data_constraint() function to avoid that it performs the line return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); in such a way that it just returns a fixed value (return 1;) and the error is solved.
I also tried to print the value returned by td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key) in the following way
printf("before encoding_constraints\n");
int ret = td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
printf("ret value is %d\n", ret);

no value is never printed, it just prints "before encoding_constraints" for several times, like that the EtsiTs103097Data_constraint() function is recursively called by the line of code td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key)

but in the code it tried to access it the same.
Does anyone else encounter the same problem? Is it a problem of the definition of ASN.1 module or of the compiler?
I thank you in advance for any explanation and suggestion for solving the issue.

Rebuild with -DASN_EMIT_DEBUG=1 in CFLAGS to get some more debug output.


Add link constraints for channels and agents

Need to add a few sets of link constraints for support v2:

relationships between channels and agents
relationships between channels and agent settings
relationships between agents and agent settings
relationships between channels and products

Completed with https://github.com/product-os/jellyfish-client-sdk/pull/578


Missing from lean 4: calc

calc
  a = b : by tac1
  ... = c : thm2

There are some open questions about what the lean 4 syntax should look like.

@digama0 I merged Sebastian's calc in the main repo. I am using it to port "Theorem proving in Lean" to Lean 4.
https://github.com/leanprover/theorem_proving_in_lean4


Serial comms issue

Hi,
im testing usage of the package, however it seems that serial communication doesnt goes through.
im working with a rpi 3, pretty clean new installation of raspian jessy, latest versions of Node Js and node red.
i have created a simple flow with serial modbus read connected to a debug module.
serial port is configured as /dev/ttyUSB0, 9600N81
the "connected" status appear under the modbus serial block, however no messages are read, nor i see traffic on the serial port..
where could be the problem? has anyone a demo flow to check?
thanks
m

Please post your flow so I can see what settings you have.
Also what make of RS 435 adapter are you using?
What user is node-red running as and is that user a member of the dialout group?
Are you sure your bus is running at 9600N81?
What device are you trying to query?

this the FDTI
usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB0
this is the flow..
[{"id":"14394a47.bb6836","type":"modbusSerial in","z":"46c4675b.5e0378","port":"f8eac122.f172b","slaves":"1","start":"1","count":"5","dtype":"holding","period":"5","topic":"stex","name":"Stelix200","x":447,"y":270,"wires":[["3fc0b758.0dc2c8"]]},{"id":"f8eac122.f172b","type":"modbusSerialConfig","z":"46c4675b.5e0378","port":"/dev/ttyUSB0","baud":"9600","data":"8","parity":"none","stop":"1","name":"FDTIAdapter"}]
what do you mean by node red User? the current user is the default pi
i have interfaced the same unit (it is a light sensor) with other software using the same fdti adapter, so im sure it is 9600N81

Yes, I did mean the user running node-red, is it part of the dialout group?
I assume there is more to your flow than what you've shared as just the node on it's own isn't going to show anything unless you link it to something like a debug node..
I still need to know what version of node you are running and while your at it the npm version will be useful.

yes the user pi is already member of dialout group
no that's the only flow i have, i'm just testing the basic functionalities before moving forward... i need also to understand how data is transfered by the module..
so i actually have only the modbus serial linked to the debug node... i assume polling is expressed in ... seconds? and i expect the module start polling the serial and send message payload to the debug node
node version is 0.14.6 npm is 2.15.9

The flow you posted doesn't actually contain anything other than the modbus node and it's config node, which is why I asked about what you have it connected to.
Can you add the node-red console log please as I asked last time, I need to see if there are any messages being logged.
I've just fired up my Raspberry Pi, it currently has Node 4.4. I was getting timeout errors until I pulled and re-plugged in my USB adapter, after that things started to work properly.

it is working now...
honestly dont know why, i have just upgraded node red to version 0.15, i get now binary messages...
now i go on trying and testing, ill keep the group informed..

node 4.4 you make reference to is Nodejs?

Yes Nodejs 4.4

I notice that the service is unstable, if i change something and re-deploy, the service doesnt work anymore, i tried to disconnect and reconnect USB bu no change. i need to reboot the rpi to get again the serial stream...

You've not mentioned what you've changed. If you want help with this you really need to share a lot more information about what you changed when.

you're right, however what i mean is any type of change...
using the same flow as before, so just serial modbus and debug.... i change polling from 10 to 5, redeploy and flow didn't resume....
i rebooted rpi and serial data appear...
all other parameters are same as those i already gave
i have tried this several time and resul is always same

to get data from multiple serial ID i understand i have to provide a list of RTU ID..... could be however possible to use several instantiations of the node? say one to read each ID?

I have a potential change that may reduce the need to reboot to make changes but I can't test it until I'm in the office.
While you can have multiple nodes attached to the same serial port polling different slaves the node is designed to poll the slaves in turn for the list of registers/coils. You can distinguish the messages from the node by the topic postfix. e.g. if you set the topic in the node to lightmeter then slave 1 data will be sent with the topic set to lightmeter/1.
The code should support multiple nodes attached to the same serial port but I only have 1 slave device so have not tested it with more

ok thanks,
so each tag shall have the ID as part of the suffix...
ill go on with more  tests... the need to reboot makes things quite slow...

I've pushed an update that should ensure that the port is closed when the config node is closed.
Please make sure you change the publish mode to only modified nodes, this will ensure that the config node is left alone when you change things in the input node. These changes should not effect the connection to the RS485 bus at all.

hi
it seems it works now, however it yest stucks if you change something, say polling time in the input node, and then redeploy. im yet using the same trivial flow just trying to insert a bynary converter between modbus serial input and debug


torch.nn.modules.module.ModuleAttributeError: 'GATConvNoSelfLoops' object has no attribute 'weight'

I am running training_job_example_aliens_superpix.py and I am getting the above attribute error during forward() in model file

I meet the same situation. And I find your  code in forward method is not same as GATConv's forward method, which is a contradiction for your statements.
      # The part before the feature propagation is exactly the same as in the         # parent class GATConv, since the primal features get multiplied by the         # weight matrix. However, self-loops are not added, as the would not         # have a corresponding node in the dual graph.


Improve example

Don't ask to solve x * 0 = 0 as it is hard to calculate.

You're right, that's too much of a brain teaser :wink:


[graphiql] Plugin Examples / CDN integration broken

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
When I try to use the CDN approach for any of the plugins, I run into the following issues:

Repo samples are broken
Unpkg versions are not fully published (3.0.1 loads, but not 3.0.3<EMAIL_ADDRESS><EMAIL_ADDRESS>3.0.1 errors out due to incompatible runtime bundling:

<!DOCTYPE html>

<title>Sample - GraphiQL</title>
<link href="https://unpkg.com/graphiql/graphiql.min.css" rel="stylesheet" />
<link<EMAIL_ADDRESS>rel="stylesheet" />


Select a row in a table & tabbed table

I'm looking to select a single row in the data table component. The 'selectable' and 'multiple' of the data table component lets to select more than one row which is not what I'm looking for. Also, is there an option for displaying the table as tabs using the data-table component?

Do you want to request a feature or report a bug?
Feature Request

Bug Report

StackBlitz template: https://stackblitz.com/edit/covalent
Plunker template: http://plnkr.co/edit/XhSrUWBw2RhCkXPoE4fn
Screenshots or link to CodePen/Plunker/JSfiddle
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Which version of Angular and Material, and which browser and OS does this issue affect?
Did this work in previous versions of Angular / Material?

Other information

closing as question answered no traction in 9 months


Fix broken link in comment

Current link in comment cannot redirect to the new URL.

Good catch, thanks @osanay.


tools: Don't lint generated packageVersion files

Some of the newer rules in the config are causing eslint to fail on our generated version files. This PR omits those files from linting altogether, since they are generated content.

you need to update the printed configs to make the build pass


rkt gc does not clean /var/lib/rkt/cas/tmp/docker2aci*

Environment
Replace this with the output of:
rkt Version: 1.27.0
appc Version: 0.8.10
Go Version: go1.7.6
Go OS/Arch: linux/amd64
Features: -TPM +SDJOURNAL
Linux 4.12.10-coreos x86_64
NAME="Container Linux by CoreOS"
ID=coreos
VERSION=1465.7.0
VERSION_ID=1465.7.0
BUILD_ID=2017-09-05-2043
PRETTY_NAME="Container Linux by CoreOS 1465.7.0 (Ladybug)"
ANSI_COLOR="38;5;75"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://issues.coreos.com"
COREOS_BOARD="amd64-usr"
systemd 233
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT -GNUTLS -ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD -IDN default-hierarchy=legacy
What did you do?
Ran etcd for a few days;  checked that rkt-gc.service was running.  ran rkt gc by hand and it didn't clean these files.
What did you expect to see?
A working system
What did you see instead?
The root (/) disk was 100% full to 27G.  26G of which were /var/lib/rkt/cas/tmp/docker2aci*

Not sure yet but I had a systemd unit that had too low of a MemoryLimit set and running rkt
It had been crash-looping with this error.  This may have led to the disk filling.. Still, should it have been GC'd?
run: error generating ACI: read /var/lib/rkt/cas/tmp/docker2aci-882096877/docker2aci-822627239/634796250/dockerlayer-792023560: cannot allocate memory

Having a similar issue. Obviously manual deletion of the files in /var/lib/rkt/cas/tmp is possible but that seems like a hack ... not seeing much about this issue other than here.


Non-C locale detected error

Hello everyone.
I'm using this package in a flutter-pi project running on a raspberry-pi 4 bullseye to play and audio (mp3 or wav file).
But when I want to play the audio, my app crashes with the following error:
Non-C locale detected. This is not supported.
Call 'setlocale(LC_NUMERIC, "C");' in your code.
Segmentation fault

what is the problem and solution?
Thanks in advance!

searching thorough google and chatgpt that was gpt answer, since i cant test it, i posted it here since it may help you dont know if works or not
The error message indicates that the flutter-pi project is running into a locale issue. This happens because the audio playback library you're using requires the numeric locale to be set to "C". The segmentation fault (segfault) occurs due to this locale mismatch.
Here’s a step-by-step guide to resolve this issue:
1. Modify the Locale Setting in Your Code
You need to set the numeric locale to "C" at the start of your application. In a Flutter project, you can do this by calling native C code to set the locale.
Steps:

Create a C/C++ file (e.g., locale_fix.c):
#include <locale.h>

void set_numeric_locale_to_C() {
    setlocale(LC_NUMERIC, "C");
}

Compile the C file to a shared library. You can use GCC for this:
gcc -shared -o liblocale_fix.so -fPIC locale_fix.c

Load and Call the Shared Library in Dart:

Add the ffi package to your pubspec.yaml:dependencies:
  ffi: ^1.1.2

Create a Dart file to load and call the C function (e.g., locale_fix.dart):import 'dart:ffi';
import 'dart:io';

typedef SetNumericLocaleC = Void Function();
typedef SetNumericLocaleDart = void Function();

void setNumericLocaleToC() {
  final DynamicLibrary dylib = Platform.isLinux
      ? DynamicLibrary.open('liblocale_fix.so')
      : DynamicLibrary.process();

  final SetNumericLocaleDart setLocale = dylib
      .lookup<NativeFunction<SetNumericLocaleC>>('set_numeric_locale_to_C')
      .asFunction();

  setLocale();
}

Call the Locale Fix Function at the start of your application (e.g., in main.dart):
import 'locale_fix.dart';

void main() {
  setNumericLocaleToC();
  // Your existing Flutter setup code
  runApp(MyApp());
}

2. Rebuild and Run Your Flutter Application
After adding the locale fix, rebuild your application and run it again on the Raspberry Pi.
Additional Considerations

Check Dependencies: Ensure all your project dependencies are compatible with your environment and the Raspberry Pi architecture.
Debugging: If the problem persists, use tools like gdb to get a more detailed stack trace of the segmentation fault, which can help identify the root cause more precisely.

By setting the numeric locale to "C", you align with the library's expectations, which should prevent the segmentation fault and allow your audio to play correctly.

Yup... we have same call on GNU/Linux. Regardless, flutter-pi or any other embedder support is not there.

@abdelaziz-mahdy I have tried to follow the code provided, but I was unable to get it to work. The error I get: liblocale_fix.so: cannot open shared object file: No such file or directory.
@alexmercerind is Flutter-pi support something that might be added in the future? I have tried the flutterpi_gstreamer_video_player package and it is given me trouble when playing video, GStreamer is not working correct on a Pi 4:
** (flutter-pi:3491): WARNING **: 13:48:00.613: v4l2h264dec0: 1 frames 677-677 left undrained after CMD_STOP, eos sent too early: bug in decoder -- please file a bug

(flutter-pi:3491): GStreamer-CRITICAL **: 13:48:00.660: gst_sample_set_caps: assertion 'gst_sample_is_writable (sample)' failed

I was hoping to use media-kit to try and run video's that way.

@Krakert
https://github.com/media-kit/media-kit/blob/88c49c6c0f6187a131a4053f0f1a3a42f2922a8a/libs/linux/media_kit_libs_linux/linux/media_kit_libs_linux_plugin.cc#L16
It's required on GNU/Linux.

Is Flutter-pi support something that might be added in the future?

The audio setup of media-kit works out of the box on every platform... that's due to project's architecture. The video rendering uses platform / embedder specific APIs for texture etc.
I don't really own a Raspberry Pi, neither I have any interest... contributions welcomed.

So it should work, but where do i need to add the files and build the liblocale_fix.so because it is unable to find it.

You can try:
sudo update-locale LC_NUMERIC=C


$popover-arrow-width SCSS variable in shards.css file

I kept receiving parsing errors when trying to import styles in a Node project.  These lines might be the culprit:
https://github.com/DesignRevision/shards-ui/blob/bab8f42fdf6a75fac447bc2feda27b2800c845e6/dist/css/shards.css#L3973-L3979

@hansy Can you please provide more details about your current setup? What version of Node are you using and what errors are you receiving?

Of course. Actually (I apologize), I'm using Nuxt v1.40, which is basically Vue.js.
Everything is the default configuration except that I included the use of the SASS preprocessor (yarn add node-sass sass-loader), and added a root .scss path to nuxt.config.js:
// nuxt.config.js

module.exports = {
  // ... default config
  css: [
<EMAIL_ADDRESS>  ],
}

My /assets/scss/index.scss is:
@import 'bootstrap/scss/bootstrap.scss';
@import 'shards-ui/dist/css/shards.min.css';

This fails with:
Module build failed: Error: Lexical error on line 1. Unrecognized text.
$popover-arrow-width
^
    at Parser.parseError (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/node_modules/reduce-css-calc/dist/parser.js:160:21)
    at Object.parseError (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/node_modules/reduce-css-calc/dist/parser.js:309:28)
    at Object.next (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/node_modules/reduce-css-calc/dist/parser.js:564:25)
    at Object.lex (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/node_modules/reduce-css-calc/dist/parser.js:574:22)
    at lex (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/node_modules/reduce-css-calc/dist/parser.js:196:27)
    at Parser.parse (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/node_modules/reduce-css-calc/dist/parser.js:209:26)
    at /Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/node_modules/reduce-css-calc/dist/index.js:35:30
    at walk (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-value-parser/lib/walk.js:15:13)
    at ValueParser.walk (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-value-parser/lib/index.js:18:5)
    at exports.default (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/node_modules/reduce-css-calc/dist/index.js:29:51)
    at transformValue (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/dist/lib/transform.js:24:45)
    at exports.default (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/dist/lib/transform.js:54:100)
    at /Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/dist/index.js:28:52
    at /Users/hansy/Dropbox/projects/project/landing/node_modules/postcss/lib/container.js:144:26
    at Rule.each (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss/lib/container.js:110:22)
    at Rule.walk (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss/lib/container.js:143:21)

 @ ./assets/scss/index.scss 4:14-200 13:3-17:5 14:22-208
 @ ./.nuxt/App.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js

Commenting out the shards import statement resolves the error.

@hansy Great find! The $popover-arrow-width is not interpolated properly in the dist Shards CSS files and therefore the css-loader cannot parse it as it's not valid CSS.
https://github.com/DesignRevision/shards-ui/blob/3fe228e4851bb65b268670b1e0ed2497672d35cd/src/scss/_variables.scss#L759
I'll push the fix for this bug in the 2.0.3 patch which will be published in the following days or Monday at the latest. Until then, a quick fix would be to recompile the shards.scss main file and override the $popover-arrow-width variable like so:
 $popover-arrow-outer-width: $popover-arrow-width + 1;

Sorry for the inconvenience and thank you for reporting this bug. 😃


Cuts in the collection of metrics of some cluster

A note for the community

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please let us know in a comment

Problem
Hello,
We have experienced cuts in the collection of metrics from some cluster for some time. I don't think that always happens in the same clusters and it something that I didn't find yet the pattern. This occurs during a period of time for one or some cluster in particular.
I've put in the poller box the cluster where I detected the problem now but as I said before I saw the same behavior previously in other clusters but in the past I thought the problem of the missing data could be related to a restart of the harvest service since the time in the graph  was lower.
Missing metrics for the blue line at the beginning (Poller name: sces1p3_03) and yellow line (Poller name: sces1p2_03) later.

The last point for the blue line is 24th may at 12:38 and for the yellow line at 14:50 the same day. These pollers started to draw points again for the blue line on 25th may at 12:35 and for the yellow 26th may at 15:01.
Configuration
Tools:
    grafana_api_token: -REDACTED-
Exporters:
    prometheus:
        exporter: Prometheus
        addr: -REDACTED-
        master: True
        port_range: 12989-13010
    influx:
        exporter: InfluxDB
        url: '-REDACTED-'
        addr: '-REDACTED-'
        bucket: ''
        org: ''
        token: '-REDACTED-'
Defaults:
    client_timeout: 60
    auth_style: basic_auth
    username: -REDACTED-
    password: -REDACTED-
    use_insecure_tls: true
    log_max_bytes: 10000000
    log_max_files: 10
    prefer_zapi: yes
    collectors:
        - Zapi
        - ZapiPerf
        - Ems
        - Rest
        - RestPerf
    exporters:
        - prometheus
        - influx
Pollers:
    unix:
        datacenter: local
        addr: -REDACTED-
        collectors:
            - Unix
        exporters:
            - prometheus
    SCES3T000:
        datacenter: technical
        addr: -REDACTED-
        exporters:
            - prometheus
    sces1t0_01:
        datacenter: technical
        addr: -REDACTED-
        exporters:
            - prometheus
            - influx
    sces1p1_03:
        datacenter: production
        addr: -REDACTED-
        exporters:
            - prometheus
            - influx
    sces1p2_03:
        datacenter: production
        addr: -REDACTED-
        exporters:
            - prometheus
            - influx
    sces1p3_03:
        datacenter: production
        addr: -REDACTED-
        exporters:
            - prometheus
            - influx
    SCES1P000:
        datacenter: production
        addr: -REDACTED-
        exporters:
            - prometheus
            - influx
    sces1p1_02:
        datacenter: production
        addr: -REDACTED-
        exporters:
            - prometheus
            - influx
    sces1p2_02:
        datacenter: production
        addr: -REDACTED-
        exporters:
            - prometheus
            - influx
    sces1p3_02:
        datacenter: production
        addr: -REDACTED-
        exporters:
            - prometheus
            - influx
    SCES1T200:
        datacenter: technical
        addr: -REDACTED-
        exporters:
            - prometheus
            - influx
    SCES1P200:
        datacenter: production
        addr: -REDACTED-
        exporters:
            - prometheus
            - influx
    sces1p0_04:
        datacenter: production
        addr: -REDACTED-
        exporters:
            - prometheus
            - influx
    sces1p1_01:
        datacenter: production
        addr: -REDACTED-
        exporters:
            - prometheus
            - influx
    sces1p2_01:
        datacenter: production
        addr: -REDACTED-
        exporters:
            - prometheus
            - influx
    sces1p3_01:
        datacenter: production
        addr: -REDACTED-
        exporters:
            - prometheus
            - influx
    SCES3P200:
        datacenter: brs
        addr: -REDACTED-
        exporters:
            - prometheus
            - influx
    sces2p0_01:
        datacenter: production
        addr: -REDACTED-
        exporters:
            - prometheus
            - influx
    sces4p0_01:
        datacenter: colocation
        addr: -REDACTED-
        exporters:
            - prometheus
            - influx

Poller
sces1p2_03,sces1p3_03
Version
harvest version 23.05.0-1 (commit 6f74c7a5) (build date 2023-05-03T08:08:46-0400) linux/amd64
Poller logs
I will send you the logs file to the email.

OS and platform
Red Hat Enterprise Linux release 8.4 (Ootpa)
ONTAP or StorageGRID version
NetApp Release 9.10.1P8
Additional Context
No response
References
No response

@rahulguptajss I've tried to attach again the files. Let me know if they are ok or you are still suffering the problem with the corruption.

@faguayot
Thanks for sharing the log files again. We have received them and did initial investigation.
Found few errors:

duplicate instancekey error, @rahulguptajss has created issue for this and we will look into it.

{"level":"error","Poller":"sces1p3_03","plugin":"ZapiPerf:Volume","object":"Volume","error":"duplicate instance key => .","key":".","caller":"volume/volume.go:88","time":"2023-05-24T10:28:02+02:00","message":"Failed to create new instance"}

System busy errors, These logs exist in both pollers and started to occur for poller xxxx_03_03 around 12:34(as you have mentioned). This logs are coming directly from ONTAP and Harvest show them as-is.

{"level":"info","Poller":"sces1p3_03","collector":"ZapiPerf:LIF","error":"API request rejected => System busy: 17 requests on table \"perf_object_get_instances\" have been pending for 2 seconds. The last completed call took 94 seconds.","task":"data","caller":"collector/collector.go:365","time":"2023-05-24T12:34:02+02:00","message":"API rejected, entering standby mode"}
{"level":"info","Poller":"sces1p3_03","collector":"ZapiPerf:NicCommon","error":"API request rejected => System busy: 17 requests on table \"perf_object_get_instances\" have been pending for 2 seconds. The last completed call took 94 seconds.","task":"data","caller":"collector/collector.go:365","time":"2023-05-24T12:34:02+02:00","message":"API rejected, entering standby mode"}
...

While searching System busy errors in ONTAP side, found this burt 1387773(not sure it's accessible from outside) which has same error stack.
Sharing the description detail and Public Review mentioned in the burt:
DESCRIPTION:
When counter manager appears to be hung which usually manifests as a problem in
terms of gathering perf data or polling perf objects, following kind of messages
from mgwd would help in ascertaining that the issue is indeed in counter manager
daemon:
>>Attempt to get cm object resource_headroom_cpu failed:System busy: 7 requests on
table "perf_object_get_instances" have been pending for 13510621 seconds. The
last completed call took 0 seconds.

PR
------------------------
%%% TITLE: Blocked object and transport threads hamper counter manager's functionality
%%% DESCRIPTION:
Performance NetApp Manageability SDK (NMSDK) requests appear to get blocked after
hitting the storage controller with multiple performance NMSDKs. This blockage occurs
because the transport threads indefinitely waits on a mutex which, on the other
hand, is held by a dead thread.
%%% WORKAROUND:
To temporarily resolve the issue, restart of the counter manager daemon(CMD) process on
each node.
%%% NOTES:
None
--------------

NFSv4 related issues, These logs exist in both pollers, Need to check if this is related to Counter Manager as mentioned above

{"level":"info","Poller":"sces1p3_03","collector":"ZapiPerf:NFSv42Node","error":"API request rejected => Object \"nfsv4_2:node\" was not found.","task":"counter","caller":"collector/collector.go:365","time":"2023-05-24T11:08:09+02:00","message":"API rejected, entering standby mode"}
{"level":"info","Poller":"sces1p3_03","collector":"ZapiPerf:NFSv42","error":"API request rejected => Object \"nfsv4_2\" was not found.","task":"counter","caller":"collector/collector.go:365","time":"2023-05-24T11:08:09+02:00","message":"API rejected, entering standby mode"}

Sure @Hardikl
I will share the information using the email.
Thanks.

I catched a new moment where it was happening the issue in one cluster.

hi @faguayot if you have the logs for that poller, please email them to us so we can take a look.
Hardik did a nice job analyzing the last set of logs you sent and found a logging issue. Let me explain what the problem is and why it might be related to the gaps shown above.
The Harvest perf collector works like this:

Harvest asks ONTAP for the instances of a resource (e.g. Volume)
Harvest uses the results of 1) to ask ONTAP for the counters for those instances
Harvest uses the results of 2) to calculate deltas, rates, etc.

The problem Hardik found in your logs occurs between 1 and 2. The instance we collected at step 1 was deleted by the time we got to step 2. That means at step 2, Harvest asks ONTAP for the counters of an instance that no longer exists. ONTAP returns an empty record when that happens, and Harvest was noisier about logging this than it should be. Hardik is working on a fix for that.
Is is possible that some of the gaps you're seeing on this cluster are because there are creates/deletes? Depending on the dashboard and whether the panel(s) are using topk or not, I think instance deletions could manifest as a gap because, on the left side of the gap, the instance was included in the top5, then it was deleted, and on the right side of the gap, a new instance was picked for the top5.

Hello @cgrinds,
It is great that you found the problem with the many information that you had to review. I understood your explanation chris, thanks for making really clear always. If I am right this issue is happening with every instance (Aggregate, Volume, Node, Lun,etc) that gather of performance metrics/counters, is it correct my affirmation?
I will wait until you have the fix to check if the behaviour it is happening again or not.
Thanks.

Hi @faguayot
While @Hardikl works on a potential fix for this issue, can you email the most recent logs for one of your pollers with gaps?
Any idea if that cluster may have deletions during the time of the gaps? And yes, to your question, the instance removal logic is the same for all object types.

Hello @cgrinds
I don't remember which cluster was this behaviour and I unknown during which period of time we have seen these cuts. Apologize but I didn't take note of this info. If I see the same behaviour in other times, I directly will share the logs and those info.
I don't know what are you refering about the deletions? Where?
Thanks.

Hi @cgrinds ,
I think that now I understood your questions about the deleted objects which are continuously gathering information from the cluster and you try to understand if during the cuts anybody could delete those objects. My answer is no, we manage the creating the volumes, lun and all the different objects in a ONTAP cluster, so we know when we are deleting but we don't know in the different upper levels of storage what people do if they are deleting information which are inside those objects or not.
I hope my clarification give you the information that you asked.
Thanks.

Hi @faguayot Hardik's changes are in nightly. If you want to try these out before the next release, you can grab the latest nightly build.
Feel free to email the most recent logs for any of your pollers with gaps.

Hello @cgrinds
Yes, I will try to test tomorrow but I don't know when I will find the problems if I do again.
Thanks for the warning.

@faguayot any updates on this issue?

Hello  @cgrinds ,
I haven't seen the cuts during this time but I don't know if the problem disappeared with any release or if I didn't see. If you want we can close the issue and if it appear again then we will review.
Thanks.

Hello,
Recently we are experiencing times in which we have cuts in the recollection of the data. These cuts was happened this night.

But I have catched other days in which this happens:

I don't know if this could be related with the same issue that you deallt here or if it is something different.

The harvest version it's the latest available
harvest version 24.02.0-1 (commit 8f9201cc) (build date 2024-02-21T10:01:19-0500) linux/amd64
Refering to the logs, I have sent the logs from today because their are heavy.

@rahulguptajss I am focusing on the last time where I have found this cuts which is 19April around 4:28am to 4:36am aproximately. I have checked the rest of pollers and at that time we don't see any cuts in the recollection, so it seems there is only 1 poller with that problem. I will let you know which is the information of the poller by email.
The metrics were we have seen those cuts are:

node_total_ops
node_total_data
node_total_latency
node_avg_processor_busy

Additionally to the node I think there are other metrics missing in the Power dashboard.

Let me know if you need something else.

Hi,
@rahulguptajss Thanks for the detailed analysis. We are having peformance issues in this poller so it makes sense what you said about load and response time.
About the command that you share to try took some time to show the result:
storage shelf show
I have stopped the harvest for this poller in others installations that we have for avoid that overload since it is the unique tool accesing for the cluster in conjunction with the OCUM/Active IQ.

I didn't know this option and it sounds good. Could you share with me, how can I use? It is an option for all pollers or is configurable only for one? Because I was thinking it will be beneficial for all pollers in general.

Yes, we are installing harvest by RPM.


Fixing 2286

The send_parcel_immediate, and send_immediate_done fnuctions can only be used by a parcelport that defines use_connection_cache as false - which is currently the verbs parcelport.
I will only enable th verbs PP if CXX14 Lambdas are supported and so I've #ifdef'ed out those routines for this PR.


Check for encryption of resources

It is now fairly easy to encrypt EC2 boot volumes. https://aws.amazon.com/blogs/security/how-to-quickly-launch-encrypted-ebs-backed-ec2-instances-from-unencrypted-amis/
Should check for that. Related to #274 for S3.

Related, check for EBS encryption on by default: https://aws.amazon.com/blogs/aws/new-opt-in-to-default-encryption-for-new-ebs-volumes/


feat: AWS ECR ScanOnPush configuration at the repository level is deprecated

Is your feature request related to a problem? Please describe.
When omitting image_scanning_configuration in a aws_ecr_repository resource, tfsec marks it as a HIGH severity security check miss and fails the tfsec run.
https://aquasecurity.github.io/tfsec/v1.9.3/checks/aws/ecr/enable-image-scans/
Introduced in PR aquasecurity/tfsec#101
However, AWS has issued a deprecation notice for repository level scans in favour of registry level scan filters.
Specifically, in the repository settings dialog in the Web UI they say:

Deprecation warning
ScanOnPush configuration at the repository level is deprecated in favor of registry level scan filters.

Also, in their documentation page, they say:

For Scan on push, while you can specify the scan settings at the repository level for basic scanning, it is best practice to specify the scan configuration at the private registry level. Specify the scanning settings at the private registry allow you to enable either enhanced scanning or basic scanning as well as define filters to specify which repositories are scanned. For more information, see Image scanning.

https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-create.html
Describe the solution you'd like
In view of that the official guidelines say that this is deprecated, the check should not fail the tfsec run.
Also perhaps issue a warning that a aws_ecr_registry_scanning_configuration should be set up, unless it is already set up.
Describe alternatives you've considered
Maybe check for a missing aws_ecr_registry_scanning_configuration [1] instead.
[1] https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_registry_scanning_configuration
Additional context

Not stale.

Not stale
On Sun, Sep 4, 2022 at 8:02 AM github-actions[bot] @.***>
wrote:

This issue is stale because it has been open 30 days with no activity.
Remove stale label or comment or this will be closed in 5 days.
—
Reply to this email directly, view it on GitHub
https://github.com/aquasecurity/defsec/issues/465#issuecomment-1236360027,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACV76YMMH4GS7OO72NZB63V4S2Y7ANCNFSM5SER6VFA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Not stale
On Wed, Oct 5, 2022 at 8:05 AM github-actions[bot] @.***>
wrote:

This issue is stale because it has been open 30 days with no activity.
Remove stale label or comment or this will be closed in 5 days.
—
Reply to this email directly, view it on GitHub
https://github.com/aquasecurity/defsec/issues/465#issuecomment-1268568938,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACV76YDKKTD3YBRWMH522DWBWKK7ANCNFSM5SER6VFA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Re-export ApiError from google-cloud/common to ease usage downstream

Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
In our code, we want to check if an error that's returned by the BQ library is an ApiError, and if so, we want to re-use properties off it.
Within our code, we have something like this for getting a user's datasets:
import { BigQuery } from '@google-cloud/bigquery';
import { ApiError } from '@google-cloud/common';

client = new BigQuery({ /* options */ });

// ....

client
  .getDatasets()
  .then(([datasets]) => {
    // do something with the datasets
  })
  .catch((e) => {
    if (e instanceof ApiError) {
      if (e.code === 403 || e.code === 404) {
        // show user permission error
      }
    }
    // show user generic error message
  });

where to make the instanceof ApiError check work, we were adding @google-cloud/common to our dependencies and importing from there. We ended up with a bug where @google-cloud/bigquery got updated and so the version of @google-cloud/common in our dependencies no longer matched what @google-cloud/bigquery used, and the instanceof ApiError check now failed.
Describe the solution you'd like
A clear and concise description of what you want to happen.
It'd be nice if @google-cloud/bigquery re-exported ApiError so that the above code snippet could be rewritten as :
import { ApiError, BigQuery } from '@google-cloud/bigquery';

client = new BigQuery({ /* options */ });

// ....

client
  .getDatasets()
  .then(([datasets]) => {
    // do something with the datasets
  })
  .catch((e) => {
    if (e instanceof ApiError) {
      if (e.code === 403 || e.code === 404) {
        // show user permission error
      }
    }
    // show user generic error message
  });

and then the instanceof check will never fail.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
We could remove @google-cloud/common from our dependency list, and rely on it being available implicitly via how node_modules works, but that seems risky, and we could end up with being broken still depending on how yarn decides to hoist things. We've also looked to use duck typing, but that gives us less type strength.
Additional context
Add any other context or screenshots about the feature request here.

@MasterOdin I've re-exported the whole google-common package, which might make coding a bit more verbose, but will help us hopefully avoid having to do this piecemeal.


Display user's nickname and avatar in group

It displays random user id in the group right now, it is hard to know who is talking.
Is there any solution to get the user info and update the virtual user?

solved in #83


add fly.io guide

We would take a pull-request on how to use code-server w/flyio.

this would be nice !!

@iamyuu

There are guides for both deploying code-server and Coder on fly.io.

Deploy code-server: https://fly.io/blog/remote-ide-machines
Deploy Coder v2: https://coder.com/blog/remote-developer-environments-on-fly-io