unable to fetch metrics from Kubelet kube-master (kube-master): Get https://kube-master:10250/stats/summary/

E0311 09:55:34.465238       1 manager.go:102] unable to fully collect metrics: [unable to fully scrape metrics from source kubelet_summary:kube-master: unable to fetch metrics from Kubelet kube-master (kube-master): Get https://kube-master:10250/stats/summary/: dial tcp: lookup kube-master on <IP_ADDRESS>:53: no such host, unable to fully scrape metrics from source kubelet_summary:kube-node1: unable to fetch metrics from Kubelet kube-node1 (kube-node1): Get https://kube-node1:10250/stats/summary/: dial tcp: lookup kube-node1 on <IP_ADDRESS>:53: no such host, unable to fully scrape metrics from source kubelet_summary:kube-node2: unable to fetch metrics from Kubelet kube-node2 (kube-node2): Get https://kube-node2:10250/stats/summary/: dial tcp: lookup kube-node2 on <IP_ADDRESS>:53: no such host]
E0311 09:56:29.335712       1 reststorage.go:129] unable to fetch node metrics for node "kube-node2": no metrics known for node
E0311 09:56:29.335763       1 reststorage.go:129] unable to fetch node metrics for node "kube-master": no metrics known for node
E0311 09:56:29.335769       1 reststorage.go:129] unable to fetch node metrics for node "kube-node1": no metrics known for node
E0311 09:56:34.459178       1 manager.go:102] unable to fully collect metrics: [unable to fully scrape metrics from source kubelet_summary:kube-node1: unable to fetch metrics from Kubelet kube-node1 (kube-node1): Get https://kube-node1:10250/stats/summary/: dial tcp: lookup kube-node1 on <IP_ADDRESS>:53: no such host, unable to fully scrape metrics from source kubelet_summary:kube-node2: unable to fetch metrics from Kubelet kube-node2 (kube-node2): Get https://kube-node2:10250/stats/summary/: dial tcp: lookup kube-node2 on <IP_ADDRESS>:53: no such host, unable to fully scrape metrics from source kubelet_summary:kube-master: unable to fetch metrics from Kubelet kube-master (kube-master): Get https://kube-master:10250/stats/summary/: dial tcp: lookup kube-master on <IP_ADDRESS>:53: no such host]

maybe look here : https://github.com/kubernetes-incubator/metrics-server/blob/master/pkg/sources/summary/summary.go#L276


Can't add new module into blueprint project

Current plugin don't support adding new module into blueprint project, the plugin will cancel adding process when it detects the project is blueprint project.

Now the plugin support content only project.
When add module to content only project, It will open add code to project dialog to make sure add primary game module first.


fix: missing authorization header for repos.get()

Octokit seems to expect headers (including authorization) to be passed along with the repo and owner params. The issue is described in #474.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

[X] Make sure to open an issue as a bug/issue before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
[X] Ensure the tests and linter pass
[X] Code coverage does not decrease (if any source code was changed)
[X] Appropriate docs were updated (if necessary)

Fixes #474 🦕

@googlebot I signed it!

@lancedikson thank you for the contribution, working on releasing now 👍


Invalidating cache programatically?

It could be great if my cache was invalidated after each production deploy. Any idea as to how to achieve that?

What type of cache?

Suppose I have bundle.js which I push to a CDN bucket on every weekly
deploy. However incase I pushed a bug I'd like to immediately push a fix
and invalidate the cache of the infected file.
On Thu, 9 Feb 2017 at 22:19 Stephen Sawchuk<EMAIL_ADDRESS>wrote:

What type of cache?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-node/issues/1978#issuecomment-278760670,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AX3wR2zltjHwSH_xHzIFT-5mLzC1SCpuks5ra3S7gaJpZM4L8ncY
.

--
[image: photo]
Ohad Navon
Founder & CEO, BrainPal
+972547706602 | brainpal.io |
Tel Aviv
http://www.facebook.com/ohad.navon.92
http://www.linkedin.com/in/ohad-navon-639b356a
http://twitter.com/OhadNavon

This is the repo for a Node.js client library for accessing Google APIs. I'm not sure which Google product or service your feature pertains to, possibly App or Compute Engine?

I was wondering whether you can programmatically invalidate the cache of a
file in Google Storage. i.e. is there a Node.js Google API that enables
this :)
On Thu, Feb 9, 2017 at 10:30 PM Stephen Sawchuk<EMAIL_ADDRESS>wrote:

This is the repo for a Node.js client library for accessing Google APIs.
I'm not sure which Google product or service your feature pertains to,
possibly App or Compute Engine?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-node/issues/1978#issuecomment-278764033,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AX3wR08yy-bvcFAGbYDUFZo9XvAtAM72ks5ra3d6gaJpZM4L8ncY
.

--
[image: photo]
Ohad Navon
Founder & CEO, BrainPal
+972547706602 | brainpal.io |
Tel Aviv
http://www.facebook.com/ohad.navon.92
http://www.linkedin.com/in/ohad-navon-639b356a
http://twitter.com/OhadNavon

Our API will let you set the metadata of an object (referred to as a File here), as well as upload new files. For any advice on how to manage the cache for your app, feel free to ask on StackOverflow-- this tracker is just for if you run into bugs with our API.


[Build System] Added flag to disable Swift PM sandboxes.

Added build flag to optionally disable the sandbox when building swift-syntax with Swift PM.
rdar://45882867

I've tested this locally and it works as expected.


TS12-P8 - Design for adding Standard annotations

Design and requirements work for adding standard annotations to the portal. This relates to some deprioritized work from Multiple tomograms (updates to download dialogs) as well as potential new needs to display annotations as different versions with different authors.
Will likely focus on max 60% completion, enough to know what we plan to implement for resourcing discussions

Delayed due to expand depositions #1199


Unable to build with Visual Studio 2022

This project won't build in Visual Studio 2022. The bundled version of the EASTL is outdated and references some removed constants, swapping the numeric_limits.h file out for a newer version allows you to build.
Very minor, and I imagine this has already been fixed internally!

We only support Visual Studio 2017. We try to stay backward compatible to help game developers build games. Every Visual Studio version has its own problems. It reduces productivity to support more than one.


[cloud_firestore] Transaction on iOS reports Unhandled Exception: PlatformException

Describe the bug
Reading and then writing a value in a transaction results in the following error:
[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: PlatformException(3, Every document read in a transaction must also be written in that transaction., null)
To Reproduce
final serializedEntry = // a map of values to add to an array

final DocumentReference docRef =
          Firestore.instance.collection('some_collection').document('some_document');

Firestore.instance.runTransaction((Transaction transaction) async {
      // Read the current snapshot for a document.
      DocumentSnapshot snapshot = await transaction.get(docRef);

      // Add an item to an array called "entries".
      List<dynamic> entries = List(snapshot.data['entries']);
      entries.add(serializedEntry);

      // Write the updated entries array back to firestore.
      await transaction.update(docRef, {
        'entries': entries,
      });
});

Expected behavior
The "entries" array in firestore is updated and the transaction function returns without error.
Additional context
I'm using v0.13.0+1 of the cloud_firestore plugin.
I'm running this code on a physical iPhone 7.
If I never reference the snapshot variable in the above sample code, the error does not occur. Therefore, at first blush it seems that accessing the data of the snapshot sets some kind of flag that leads to this error. For example, the following version of the repro code does not cause the error:
final serializedEntry = // a map of values to add to an array

final DocumentReference docRef =
          Firestore.instance.collection('some_collection').document('some_document');

Firestore.instance.runTransaction((Transaction transaction) async {
      // Read the current snapshot for a document.
      DocumentSnapshot snapshot = await transaction.get(docRef);

      // Write the updated entries array back to firestore.
      await transaction.update(docRef, {
        'entries': [serializedEntry],
      });
});

awaiting the runTransaction() ... fixes issues like this for me ... and also changing the update to use the READ value of the snapshot, i.e
  await transaction.update(snapshot.reference, {
        'entries': [serializedEntry],
      });

Hey all, as part of our on-going work for #2582, this has been resolved in our Firebase Firestore rework (#2913) - which has now been merged into master. We'll look at publishing some prereleases in the next few days. Thank you


the reply URL specified in the request does not match the reply URLs configured for the application

Following the guide, I am receiving this error once signing in.
Sorry, but we’re having trouble signing you in.
AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: 'bc18d5db-06ae-4c36-8ff0-a224453daa86'

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

ID: 3233e2cc-1075-1c20-d8f8-65161949e341
Version Independent ID: e3cef834-e81c-de56-9224-a22f7abdfb7e
Content: How to use the Spring Boot Starter for Azure Active Directory
Content Source: articles/java/spring-framework/configure-spring-boot-starter-java-app-with-azure-active-directory.md
Service: active-directory
GitHub Login: @KarlErickson
Microsoft Alias: brendm

@moarychan please take a look at it.

Hi @romainiac , Sorry to keep you waiting. We have just released library 4.0, samples for 4.0, you are welcome to upgrade. I just used the release version 3.9.0 in September 2021 and tested the sample of aad-web-application. The result is normal. Can you confirm the reply-url you configured? Or can I use your demo project so I can quickly locate the problem?

shall we close this one?

Hi @KarlErickson please help close this issue due to no updates for a long time. @romainiac any more updates are welcome, or you can open a new issue, thanks!


[FEAT] NOTIFICATION API ENDPOINT

Description
This issue provides a set of API endpoints needed to manage Notifications. These are CRUD endpoints to manage the creation, retrieval and delete operations on Notifications records in the database.
Acceptance Criteria

Notifications can be created
Records of Notifications can be retrieved
Specific Notifications can be updated or deleted by filtering with their Ids

Purpose
Implement a Notification API endpoint to manage user notifications. This endpoint will handle creating, retrieving, and deleting notifications, ensuring users receive timely and relevant updates within the application.
Requirements

[ ] Endpoint creation

Create a new endpoint /api/v1/notifications.
Implement methods for CRUD operations: GET, POST, DELETE.

[ ] Notification Model

Define a Notification model with the following properties:

id (string, unique, required)
user_id (string, required)
title (string, required)
message (string, required)
type (string, e.g., 'info', 'warning', 'error', required)
isRead (boolean, default: false)
createdAt (timestamp, default: current time)
updatedAt (timestamp, default: current time)

[ ] Endpoints

GET /api/v1/notifications: Retrieve all notifications for the authenticated user.
GET /api/v1/notifications/:id: Retrieve a single notification by its ID.
POST /api/v1/notifications: Create a new notification.
DELETE /api/v1/notifications/:id: Delete a notification by its ID.

[ ] Validation

Ensure all required fields are validated
Return appropriate error messages for validation failures with HTTP status code 422.

[ ] Authentication and Authorization

Ensure all endpoints are protected and only accessible to authenticated users.
Implement checks to ensure users can only access their own notifications.

A proper validation to ensure data integrity.
Secure endpoints that are only accessible to authenticated users.

Database Schema
Table name: notifications_table
- id:
     - constraints: string(uuid), unique, primary-key, not null
- user_id:
     - constraints: string(uuid), unique
- title:
     - constraints: string
-  message:
    - constraints: string, not null, text
- type:
    - constraints: (string, e.g., 'info', 'warning', 'error', required)
- isRead:
    - constraints: (boolean, e.g 'true')
- createdAt:
    - constraints: datetime
- updatedAt:
    - constraints: datetime

Database Diagram
An image of the database model

TEAM Backenders
@KennieLarkson

how do you mark notifications as read

what about the ticket to send notification emails (in aggregate and singly)? How does one bulk notify all users in an org?


DEFAULT LABEL

The keyword DEFAULT LABEL is currently not supported.
Additionally, the list following LABEL discriminator (labelList) can currently contain duplicate labels. This should not be allowed since all labels should be unique.

Additionally, the list following LABEL discriminator (labelList) can currently contain duplicate labels. This should not be allowed since all labels should be unique.
Not sure if this is still the case, need to investigate that.

The DEFAULT LABEL will likely not be supported, a user can omit the label altogether. The label will then be equal to the table name, since #82


Add zmp generator and populate all outputs of the unycycle trajectory generator

Some of the outputs of the UnicycleTrajectoryGenerator were not being populated.
This PR fixes it.
Moreover, the ZMP generator (and its outputs) is added to the UnicycleTrajectoryGenerator

At the code level, it looks good. What I am a bit afraid of is that from outside it is not clear that the different trajectories are not coherent with each other. At the unicycle planner level, you are calling to different generators, so somehow you can expect them to be separate. Here instead, the output is in a single data structure. Maybe it would be useful to have a trigger to turn on or off this output?

At the code level, it looks good. What I am a bit afraid of is that from outside it is not clear that the different trajectories are not coherent with each other. At the unicycle planner level, you are calling to different generators, so somehow you can expect them to be separate. Here instead, the output is in a single data structure. Maybe it would be useful to have a trigger to turn on or off this output?

 It makes totally sense.
With the commit ecbd51f I tried to make the dcmTrajectory and the zmpTrajectory optional (and enabled by boolean flags).
I like the fact that std::optional makes the code cleaner in my opinion.
There's the drawback. This change makes the blf Unicycle Trajectory Generator not backward compatible. But I think the number of users is still low.
Let me know what you think.

There's the drawback. This change makes the blf Unicycle Trajectory Generator not backward compatible. But I think the number of users is still low.
Let me know what you think.

It should be fine by changing the version number. On the other hand, another alternative is to apply this change only for the data you added


OnlyIfUsing for RemovePlugin

see title

There is a general purpose applicability test mechanism we should use instead now.


Appearance of Graph Visualisation and Infobar

Text in a circle (in the center):
Class
Person
Text in a rectangle (in the centre):
{name of column(e.g it should be Name instead of Person)}
In the inforbar:
for classes:
Class:{class name}  - (e.g Class:Person) class name is clickable like Person_uri now
{ontology}
{(expandable) List of example values ()}
For relations:
Property:{Property name} - ()

The smaller text on the top is a static value, so for the URI nodes it works however not for the literals, for now I will be renaming them to raw value

@StanRonzhin What was the request?

Fixed with #110


Add SoCo-CLI to the list of Sonos Apps

Add SoCo-CLI to the list of Sonos Apps
Description
As the title says ...
Your checklist for this pull request
🚨 Please review the guidelines for contributing to this repository.

[ ] Make sure you are requesting to pull a topic/feature/bugfix branch (right side). Don't request your main!
[ ] Make sure you are making a pull request against the main branch (left side). Also you should start your branch off svrooij/sonos-api-docs/main.
[ ] Check your code additions will fail neither code linting checks nor unit test. (mine sometimes also fail, will probably ignore the lint failures)
[ ] If you changed the documentation.json be sure to also regenerate the services files.
[ ] The docs/services/index.md and the docs/services/*.md files should not be manually changed, only with the generator.

💔 Thank you!

I missed something in the schema. All apps that didn’t specify if they used the generator were not shown. This is now changed and your app is added as well.

Thanks!


Output of kubectl describe pod formats incorrectly

What happened:
Output of kubectl describe pod formats incorrectly.
$ microk8s kubectl describe pod -n controller-c2 controller-0
...
Events:
  Type     Reason            Age   From               Message
  ----     ------            ----  ----               -------
  Warning  FailedScheduling  79s   default-scheduler  running PreFilter plugin "VolumeBinding": %!!(MISSING)w(<nil>)
$

Probably a bug in the formatting code.
What you expected to happen:
Display the output more nicely, e.g.
running PreFilter plugin "VolumeBinding": nil

How to reproduce it (as minimally and precisely as possible):

TBD
Anything else we need to know?:
Environment:

Kubernetes client and server versions (use kubectl version):$ microk8s kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.
Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"24+", GitVersion:"v1.24.4-2+2f38f78fa07274",
GitCommit:"2f38f78fa07274a290eb3b5802e82b1de6f70fa4", GitTreeState:"clean", BuildDate:"2022-08-22T10:27:57Z", GoVersion:"go1.18.5", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"24+", GitVersion:"v1.24.4-2+2f38f78fa07274",
GitCommit:"2f38f78fa07274a290eb3b5802e82b1de6f70fa4", GitTreeState:"clean", BuildDate:"2022-08-22T10:25:23Z", GoVersion:"go1.18.5", Compiler:"gc", Platform:"linux/amd64"}

Cloud provider or hardware configuration: running microk8s on local machine
OS (e.g: cat /etc/os-release):$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

kubectl describe lists events gotten from apiserver and it seems that message has a problem.
I think that is because of this line https://github.com/kubernetes/kubernetes/blob/3ac752e4a0a365b658b185d88bde7f4c620a96e9/pkg/scheduler/framework/runtime/framework.go#L608 does not handle empty cases.
/transfer kubernetes
/sig scheduler


[Bug Report] Sending string with ° or ³, randomly get ��

SerialPort Version: 6.2.0

NodeJS Version: 8.11.3

Operating System and Hardware Platform: macOS High Sierra 10.13.4

Have you checked the right version of the api docs?: yes.

Are you having trouble installing and you checked the Installation Special Cases docs?: no.

Are you using Electron and have you checked the Electron Docs?: no.

Summary of Problem
Send string with ° or ³, randomly get ��
Steps and Code to Reproduce the Issue
Two serial ports connected using a loop cable. One is opened for reading, and the other is opened for writing. While writing a string with ° or ³, from the reading port, randomly get ��.
writing code:
port.write(`<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><MT><temp_set>20.00 °C</temp_set><d>0.99940 g/cm³</d><other_elements>blah, blah, blah...</other_elements></MT>

reading code:
const parser = new RegexParser({
  regex: /<\/MT>/
})
port.pipe(parser)
parser.on('data', function (data) {
  const rawData = `${data}</MT>`
  console.log(rawData)
})

Looks like it's a bug of RegexParser.
const parser = new Readline({
  delimiter: '</MT>'
})

Changing the parser to Readline fixes the problem.


I tried for different images but result is same.
error " json: cannot unmarshal object into Go struct field Process.capabilities of type []string"
$ sudo ./bin/ctr  run --id abc docker.io/library/redis:latest /usr/local/bin/redis-server
json: cannot unmarshal object into Go struct field Process.capabilities of type []string
rpc error: code = 5 desc = open /run/containerd/linux/abc/init.pid: no such file or directory

I also tested with latest runc
$ runc --version
runc version 1.0.0-rc2
commit: 3d7cd1f1b2219151b42f875e19b57d637d4f68be-dirty
spec: 1.0.0-rc3

$ containerd --version
containerd github.com/docker/containerd 3c1c7ec

You need to install the latest runc
https://github.com/docker/containerd/pull/660

Thanks, I had updated runc but, it was still referring to old runc binary from my /usr/local/sbin folder.
Its fixed now.
Closing.


Fix issue with invalid DataReference URI

See here: https://github.com/digidentity/xmlenc/blob/master/lib/xmlenc/encrypted_key.rb#L57 - corrected URI to proper format (point to ID=ED)

Do you happen to know why that's the case?

It happens when I am trying to decode encoded SAML response generated by Samldp with use of Xmlenc gem. SamlResponse document has invalid URI in DataReference (should be URI="#ED" instaed of URI="ED" as it points to XML document fragment and therefore should be prefixed with hash sign: https://en.wikipedia.org/wiki/Fragment_identifier)

ah alrighty, think that makes sense. Will make a bug release

v0.7.2 released

Thanks @jphenow !!!


Song doesn't load after cutscene plays

Describe your bug here.
When I use a cutscene lua script it'll start the video but after it finishes the song never plays.
Crash Log or logcat logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Android
Which psych engine version you're on?
1.0 (Final)
Did you edit anything in this build? If so, mention or summarize your changes.
No

duplicate of https://github.com/MobilePorting/FNF-PsychEngine-Mobile/issues/216

How is it a duplicate? I am having the same problem as that person in issue 216.


"next marker" goes to the first error, not the next error after the cursor

Have this code:
let x = /foo

// comment

let y = /bar

Place the cursor on the comment
Press F8 for editor.action.marker.next

1.7: The error on /bar is highlighted (correct)
1.8: The error on /foo is highlighted
If you press F8 again, then it highlights the second error. But the first time you press it, it should always go to the next error after the cursor, not the first one.

It is common to have some import related problems at the top of the file during development, and now F8 always jumps to the top of the file when fixing problems down below. I guess this regression is a major one for many, I personally suffer this all the time as I find I'm memorizing how many times F8 needs to be pressed to arrive at the location at hand.


Build sample docs site using Starlight TypeDoc

There is a solution that seems to be close to what we want:
https://starlight-typedoc-example.vercel.app/
I need to check how it works, and is there any possibility that we could improve this one to get what we want.

TODO:

[ ] Run without any modifications on the sample TS project
[ ] Check if it's possible to adjust the design -- adding tables, links

Starlight seems to be unsuitable for custom-designed docs like PostCSS doc or Logux.
However, it can be enough for standard-looking docs for smaller projects.


[FEATURE] In Laravel 9, publish languages from "resources/lang" to "lang"

See
https://laravel.com/docs/9.x/upgrade#the-lang-directory

@gpibarra Thanks for share the info!

When will laravel 9 support come? @Shidersz

@fatihdurmaz Not really sure. I need to get some time to review the upgrade guide from Laravel, and check if we need to make any changes. You may try to install the package on a new fresh Laravel 9.x application to check and report issues...

I confirm the need. I wasted some 2 hours trying to figure out why my messages weren't showing haha. It would be great to make the modification for Laravel 9.
Regards


questions of inputing my own point cloud

Hi, haoxiang,
thanks for sharing such a great work, now I'm trying to follow what you mentioned in #3 to input my own point cloud, and I met some problems.
I got the same error after dumping the data_list into the pkl file as Eusford did in #7 :

As you said, data in my own pkl file should be a list not a dictionary, however, when data_loader_abc.py is loading my pkl file, the script tries to get the content of "filename" as the error shows. If it's a list, the index should be a number rather than the string "filename", I think this is why Eusford and I met the same error. So I wonder am I taking it in a wrong way?
Then I tried your train_small/*.pkl file and only change the "surface_points" to my own point cloud, as you said only this part is used for inference, but I visualized the predicition output, I find the "curves" and "patches" are still affecting my point cloud, the output is shown below:

So I want to ask that is it correct to only replace "surface_points" and keep the old "curves" and "patches"?
I'll be appreciate if you can help me with these two questions!
Best regards,
Enyang Feng

Can you tell me the exact commands you used for inference after replacing "surface_points" ?

By the way, can you pack the original data/train_small folder and send it to me?

Besides, please provide your prepared data to me. Thanks!

Sure, here are my related files and please allow me to show you my whole process which may make my problem clear:

At first, I normalized my pointcloud "torus1.pcd" in [-0.5,0.5]^3. By the way, Im not sure if I'm doing this correctly because this will change the shape of my pointcloud:

  import open3d as o3d
  import numpy as np

  pcd=o3d.io.read_point_cloud('torus1.pcd')

  #normalize
  xmax=(pcd.points)[np.argmax((pcd.points),axis=0)[0]][0]
  xmin=(pcd.points)[np.argmin((pcd.points),axis=0)[0]][0]
  ymax=(pcd.points)[np.argmax((pcd.points),axis=0)[1]][1]
  ymin=(pcd.points)[np.argmin((pcd.points),axis=0)[1]][1]
  zmax=(pcd.points)[np.argmax((pcd.points),axis=0)[2]][2]
  zmin=(pcd.points)[np.argmin((pcd.points),axis=0)[2]][2]

  for i in (pcd.points):
      i[0]=(i[0]-xmin)/(xmax-xmin)-0.5
      i[1]=(i[1]-ymin)/(ymax-ymin)-0.5
      i[2]=(i[2]-zmin)/(zmax-zmin)-0.5

  points=np.asarray(pcd.points)
  normals=np.asarray(pcd.normals)
  input_point=np.concatenate((points,normals),axis=1)

I load the pkl file "packed_000000.pkl"in "train_small" folder, change the surface_points in the first dictionary and save this dictionary in my own pkl file "input.pkl".

import pickle
read_pkl=open('packed_000000.pkl','rb')
write_pkl=open('input.pkl','wb')
dump_data=pickle.load(read_pkl)

dump_data['surface_points']=input_point
pickle.dump(dump_data,write_pkl)

read_pkl.close()
write_pkl.close()

I put my own pkl file "input.pkl" into ComplexGen/data/default/test/packed/ . Then following your instructions, I run command ./scripts/test_default.sh and './scripts/extraction_default.sh' to get extraction.complex file. In Windows system, I run ./scripts/geortric_refine.py to get json file. At last, I use gen_vis_result.py to get the obj file.

Thanks for your help!
files.zip

HI,  I've update the input data preparation procedure in https://github.com/guohaoxiang/ComplexGen/issues/3. I think you are doing the correct thing except that the normals of your input point cloud are all zero. Please prepare a point cloud with correct normal for testing.

Thanks for your help! I'll try to change the normals for testing. And I have another question, recently I'm using your pre-processed ABC dataset for testing, I followed your instructions : test_default.py -> extraction_default.py -> geometric_refine.py. At last, I visualized the generated json file which are shown as follow, these B-Rep models looks a little strange， are they normal? I  found you said you didn't release the trimming step code in #9, does it cause my problem?

00866067_0_extraction_input

00866904_0_extraction_input

00869648_2_extraction_input

Yes, the shown results are not trimmed. It should be mentioned that trimming is only conducted after geometric refinement, not in any intermediate steps.

Ok haoxiang, I got it! I appreciate your help!
Best regards,
enyang


Enable Lighthouse as an action on all PRs

Background
Now that the accessibility epic is wrapping up, we're in a place to enable Lighthouse accessibility testing on our PRs. We have an existing Lighthouse action, but:

it runs daily, not against PRs, so we didn't realize it had failures for a long time
it only tests against a few pages in the app, and doesn't appear to be interactive (it can't click buttons or interact with the page right now).

Action requested

Enable the Lighthouse changes to run on individual branches, instead of the demo site
Ensure that the action fails when accessibility violations are introduced (accessibility score less than 100)

Acceptance Criteria
Lighthouse is running as a status check on PRs.
Additional context
To see detailed information about a given lighthouse run, look at the lighthouse-results artifact produced (available in the run summary). You can open the HTML files generated for a detailed look at the failures.
There's a guide to enabling Lighthouse as a Github Action here that may be useful.
I also spent some time looking into the testing offered by axe-core (the same folks who make the extension we run manually). I don't think it's worth moving forward with it at this time, because we'd need to render and test components individually (rather like Jest). But we aren't tied to Lighthouse; if there's a better testing tool you come across it's worth investigating.

Thinking through a couple options for this
Option 1: Run against localhost on branches (like e2e)
https://github.com/treosh/lighthouse-ci-action#lighthouse-ci-action
https://github.com/GoogleChrome/lighthouse-ci/blob/main/docs/getting-started.md#getting-started
Wait to turn on for PR pushes until:

Have existing seed files that facility id's can easily be grabbed from

Then:

Set up lighthouse job to start the app with the given seed files (may need a chromium installation)
Run lighthouse against that local app (like e2e tests)

Option 2: Run against static html from local build on branch

https://github.com/treosh/lighthouse-ci-action#mainyml-3
super easy but not super useful for a dynamic app - it would likely only run against index.html

Adding some documentation here for future reference:
lighthouse ci aka lhci
lhci configuration
the plain not-optimized-for-ci tool aka lighthouse


correct the documentation for JS widget types

this function is called widgetTypes and not widget_types.

Coverage increased (+0.03%) to 97.65% when pulling c67abef54144d62d2d83660f6590270253f598f9 on scrollytelling:widgetTypes-doc into a90d696a0ec99b80aece0cda0eb99b9a67f7400f on codevise:master.


Loading bar

Currently the queries are making the page load slowly. We need to add a loading bar to inform users that the app is working, just loading. Add in loading view for the visualizations as well
https://www.youtube.com/watch?v=t1bKNj021do&list=PLh3I780jNsiS3xlk-eLU2dpW3U-wCq4LW&index=6

closed with pr #56


Translate "guidelimited" and "jgmd" for de

I've recently changed extension_browser, and extensionp1 to extensionp5 to also mention the Firefox extension. Can you check if the translations there remain valid? You can use the https://github.com/jdm-contrib/jdm/blob/master/TRANSLATION_REFERENCE.md file or my last comment on issue #493 for more details. Thanks!

I am not sure about the extension_browser translation, but it seems to be correct to me. A bigger issue whether the project should use honorific language for the translations.

I've recently changed extension_browser, and extensionp1 to extensionp5 to also mention the Firefox extension. Can you check if the translations there remain valid? You can use the https://github.com/jdm-contrib/jdm/blob/master/TRANSLATION_REFERENCE.md file or my last comment on issue #493 for more details. Thanks!

I am not sure about the extension_browser translation, but it seems to be correct to me. A bigger issue whether the project should use honorific language for the translations.

In Germany (and probably also other languages), you use different pronouns depending on who you are talking to. JDM seems to use the honorific ones which are not that common on websites anymore today.

fr.json seems to use honorific pronouns too.

If it feels too formal and unnatural, feel free to change, it makes sense to me to not use them as well.

Did you use Goggle Translate to translate the website?

Did you use Goggle Translate to translate the website?

I did not, we relied on volunteer translations, but then, if it's a language I'm unfamiliar with, I couldn't really tell if they themselves used Google Translator.

(Btw, let me know if you've finished reviewing, so I can merge :))

(Btw, let me know if you've finished reviewing, so I can merge :))

It is ready to be merged.

Did you use Goggle Translate to translate the website?

I did not, we relied on volunteer translations, but then, if it's a language I'm unfamiliar with, I couldn't really tell if they themselves used Google Translator.

I was asking because Google Translate is sometimes a bit weird. DeepL is much better in almost any way.


Document how to add content to the site

[ ]  document on the site how to add to the site @TylerTrott
[ ] Documentation should be on the site itself! @TylerTrott @aannttoo @cconstab

Current documentation on how to add content to the site can be found within two separate articles:
Working With Hugo (Static Webpage Generator)
Contributing to an Open-Source GitHub Project
Status of articles:
Working With Hugo (Static Webpage Generator) --> Current Task
Contributing to an Open-Source GitHub Project --> Complete

@TylerTrott it would be better to have the docs here in GitHub, or as part of the site itself (per second check box on the issue root)


ext: remove use_celery?

Can we remove the parameter use_celery?
Because it looks like not really used and superseded by ACCOUNTS_USE_CELERY
WDYT @jirikuncar @lnielsen ?

👍


Tried to fix leaderboard

Still need to fix the handlebars file. Need to be done by Monkeyy

fixed!


Using directional arrows on d-pad exits from fullscreen mode

I am making a RN app for android TV and I have this problem when I reproduce a video in fullscreen with 'react-native-media-console': when I press any arrow(except the center one) the video player will exit from fullscreen.
I would like to prevent that behaviour, and I'd like to use directional arrow to directly navigate among the controls.

👋 Hello @IvanCoppola
Thank you for using react-native-media-console and opening an issue!
I will try to have a look this weekend, however, if you want this issue to get solved faster, it will be VERY helpful if you provide a reproducible example. 🙏
If you try to reproduce it by creating a new tvOS app, install react-native-video and react-native-media-console and give me access to the repo, that would be actually the best. 💪
Thank you!


Support optional properties in objects

If I have the following type:
type MyType = {
  a: ?any;
  b: ?any;
}

And the following instance of it:
var myThing : MyType = {
  a: 'hello'
};

Flow will find the following error:
/Users/tboyt/Coding/mode7/src/Foo.js:2:15,5:1: property b
Property not found in
  /Users/tboyt/Coding/mode7/src/Foo.js:7:24,9:1: object literal

This makes sense, given that the maybe type is intended to be either the given type or null, not the type or undefined. However, not being able to define a property as entirely optional - e.g., being either a specific type or undefined - seems like a big missing feature.
For an example use case, imagine an API with a constructor that uses a hash of keyword arguments, most of which are optional. It would be great to be able to enforce the types of those arguments, if present, using Flow, and ignore missing arguments.

+1

As for v0.4 this issue seems fixed:
/* @flow */

var x: {a?: string;} = {}; // ok!

Can this be closed?

Closing. Please reopen if this is still an issue.

const config = {
  baseURL: apiUrl,
};

if (accessToken) { // <-- property `headers`. Property not found in object literal
  config.headers = {
    Authorization: `Bearer ${accessToken}`,
  };
}

Do I have to manually add type hints to config to suppress this error message?

Does not seem to be fixed or what am I doing wrong?
export type AsyncObjectMeta = {
  updating: boolean,
  updateError: ?Error,
  updateSuccess: ?Date,
}

export type GeneralSettingsType = {
  allowAdd: boolean,
  allowManage: boolean,
  _allowAdd: ?AsyncObjectMeta,
  _allowManage: ?AsyncObjectMeta,
}

const test: GeneralSettingsType = {
  allowAdd: true,
  allowManage: false,
};

Errors from Flow 0.35.0

Error:(6, 17) Flow: property _allowAdd. Property not found in object literal
Error:(6, 17) Flow: property _allowManage. Property not found in object literal

I know this is an old issue but just in case someone else is curious about the comment of @romulof you have to type the object like so:
const config : Object = {
  baseURL: "apiUrl",
};

and no more error voila

I know this is old, but am running into the case where I am checking a property that does not exist in a flow type.
var x: {a?: string;} = {}; // ok!
if (x.b ==="something") {
  // do something
}

I think it would be helpful if this also gave an error.


feat(CategoryTheory/Galois): characterisation of connected finite G-sets

A finite G-set is connected if and only if the G-action is transitive.

bors r+


[BUG]: Improve Documentation - Multipath configuration for FC and FC-NVMe attached arrays

Bug Description
The documentation lacks proper explanation on multipathing requirements. End users do not understand where to prepare the working configuration mentioned below and how to use it. Users are also confused as to what to do with the MachineConfig object and where to deploy it.
user_friendly_names yes find_multipaths yes } blacklist { }' | base64 -w0
Please refer below for the sections of the documentation that must be improved:
PowerStore - https://dell.github.io/csm-docs/docs/deployment/csmoperator/drivers/powerstore/#linux-multipathing-requirements
PowerMax - https://dell.github.io/csm-docs/docs/deployment/csmoperator/drivers/powermax/#linux-multipathing-requirements
Logs
NA
Screenshots
No response
Additional Environment Information
No response
Steps to Reproduce
NA
Expected Behavior
NA
CSM Driver(s)
PowerStore CSM 2.11 and PowerMax CSM 2.11
Installation Type
No response
Container Storage Modules Enabled
No response
Container Orchestrator
OpenShift
Operating System
RHCOS

Some work was done for PowerStore as part of #1459.  Remaining work left is for PowerMax.

link: 29394

Documentation updates made to PowerMax and PowerStore sections for Helm and Operator installation prerequisites. Will make more improvements in 1.13 release.

Reopening to address the typo

Typo fixed.


For paginated questionnaires, validate the active page before moving to the next page

Is your feature request related to a problem? Please describe.
I'm always frustrated when I get to the last page of a paginated questionnaire, attempt to save and realize I missed something on an earlier page. This means I have to repeatedly tap the 'previous' button, till I find where the required field is and then I can attempt to save once again.
Describe the solution you'd like
It would be great if pressing the 'next' button would first validate the active page and only let the user proceed if the page is valid.
Describe alternatives you've considered
N/A
Additional context
N/A
Would you like to work on the issue?
I can't work on this issue at the moment but if there is someone who can pick it up, that would be greatly appreciated.

@f-odhiambo Kindly take a look

This issue was part of the test cases being resolved via ticket #1001. I will check if this applies or if perhaps missing from the latest release

This https://github.com/google/android-fhir/pull/1301 PR (merged) solved that problem


Bring back the preview of if the app is in the catalog

In MunkiAdmin 1.1, when viewing a manifest, you can see the packages that are listed. Also very helpfully, MunkiAdmin shows you the latest version of the package listed in the catalog for that manifest,
as shown here:

However in MunkiAdmin 1.2.1, this extra feedback is not visible. This makes quick troubleshooting a little harder.

Would it be possible to re-add this functionality?

This (or something similar) will be back at some point.


pinpoint web view problem

in Pinpoint web requested page, "Argument" field is the collection which value?
The following example can be shown as "argument" field. and this is an HTTP request.
spanEventRecorder.recordServiceType(ServiceTypeConstants.http);
spanEventRecorder.recordAttribute(AnnotationConstants.http_url, con.serviceID);

but if it is a DUBBO request  , Which value should be "Argument" field
spanEventRecorder.recordServiceType(ServiceTypeConstants.node_zookeeper_dubbo);

You can define any value you want to record.
And It should be defined in java agent because it's written by java.
So, you should defined the filed in pinpoint agent ,for example DUBBO.header = 5000(for attention, don't be  duplicated with other plugin)
And then just execute  shell command "cd pinpoint/agent/utils/tools && node java_code_generator.js ${pluginName}". it will generate java plugin jar package of you node plugin.
finally ,put the jar package to the web and collector module
please refer to the details https://github.com/peaksnail/pinpoint-node-agent/wiki/Pinpoint-node-agent-Plugin-Developer-Guide and
https://github.com/naver/pinpoint/wiki/Pinpoint-Plugin-Developer-Guide


Sentinel M2: Add analytic rules to Illumio SaaS solution

Required items, please complete
Change(s):

Added analytic rules

Reason for Change(s):

Adding analytic rules to solution

Version Updated:

Will do

Testing Completed:

Yes

Checked that the validations are passing and have addressed any issues that are present:

Will do

@v-prasadboke can you please help the Author with validation errors? @ashwinvenkatesha please reachout to Prasad for queries related to validations.

@v-prasadboke @v-atulyadav
Can you please check this PR and help merge this? thanks


lb_4

Closes #250
Original NCL plot:

Python recreation:

@hCraker make one more push (can even be empty), and you'll be good to go.

please make an empty commit to trigger the docs build now that the master fix has been merged. :)

@pilotchute I just made a small change but the checks aren't running. Did I do what you wanted me to or did I make a mistake?


tableView 嵌套不同的cell，每个cell又是不同的collectionView，如何处理

New Issue Checklist

[ ] I have read the Documentation
[ ] I have searched for a similar issue in the project and found none

Issue Info

Info
Value

Platform Name
e.g. iOS / macOS

Platform Version
e.g. 12.0 / 10.14.0

TABAnimated Version
e.g. 5.0.0 / 4.4.0

Xcode Version
e.g. Xcode 11 / Xcode 10

Repro rate
e.g. all the time (100%) / sometimes x% / only once

Repro with our demo prj
e.g. does it happen with our demo project?

Demo project link
e.g. link to a demo project that highlights the issue

Issue Description and Steps
Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue.

具体想要骨架屏效果的区域是什么


search: improve mechanism

I know it's a bit of a vague request, but we are using this theme for an internal handbook. We recently switched to your theme instead of the old one. Thanks for your work.
Unfortunately, we receive many internal complains about the search mechanism of the theme (also when we were using the old theme, but not it starts to become a real issue). We activated the dedicated search page to make it easier but still, there are too many results shown, especially when you try to search for a combination of words or exact sentences. I'm not an Hugo expert at all, but it would be nice if the theme offers other/multiple possibilities to implement searching. The official docs describe some of them. I do understand if you see this as "overkill" but we're just looking for some improvements here. Feel free to make other recommendations.

This partly plays together with #407 where more options to the search will be added.
The theme already uses Lunr to provide search capabilities. So generating an index is not the real issue here.
Instead, some research must be done on how to improve search results for multiple terms and options. This could also mean to replace the whole Lunr library in case it does not suffice all requirements.
I plan to tackle this somewhere around this year.

One of my customers reported the opposite- results aren't showing up for indexed words. I don't have bandwidth to dive deeper on this one at the moment.

@tlindsay42 @MarciaRieferJohnston I can not reproduce this with the exampleSite. Especially searching there for like and line produces the correct search results.
I need access to your source or a stripped down minimal example.
I have the feeling that there may be shortcodes involved but that's just a nerdy guess.
Anyways, search is configured to be fusy and tries to compensate typos. So there might be false positives on the result page. Currently it is configured to allow for the following number of typos per word length:

length in chars
allowed typos

<= 4
0

<= 8
1

<= 12
2

<= 16
3

<= 20
4

<= 40
3

<= 60
2

> 60
1

Thanks for the quick response @McShelby! These are internal projects, so we're not authorized to share the source for these, but I'll put together an example for repro in the next day or so.

@McShelby Thanks from me too. In case it's relevant, the screenshots above are from a doc built from .adoc files. I haven't tried .md files yet.

I need to check out whether there could be a setting for enabling full word matching only, or maybe match the word and its plural form (when plural is just addition of some characters to the singular form). In particular, when looking for "chat" on my live site I have some results that absolutely don't contain this. It looks like it performs a proximity search. i.e. in French "chat" gives a result with "chapelet" and "chant" as close words.

It looks like it performs a proximity search

That's correct. See my previous comment here. This not configurable at the moment.


Plans to handle basic auth?

Would be mice to have some middleware to handle basic authentication.  Or, is there already something that works nicely?  was thinking about basic-auth from express, but not sure how it'll jive with TS.

I'll take a look, I'd say this is a wonderful opportunity for someone to make like a itty-router-basic-auth middleware or something.
Ideally, I wouldn't have all the stuff built in to itty, only the absolute basics (like request parsing and response handling).  This means the maintenance of those various branches don't get bottlenecked by me (and believe me, I'm quite the bottleneck!) :)

@kwhitley i hear you on being bottlenecked!  i love the idea of it living inside itty-router-extras though.  given that it gets tree shaken, and it follows the pattern you already have here.

Well I just happen to be working on a global auth SaaS solution, so I'm knee deep in auth anyway... if I have any ideas, I may float it out there!
I'd suggest you hop onto Discord and throw out the suggestion as well.  Sidenote, all the extras are pretty close to going in-house into itty core.  Itty itself is sitting on a next release (full TS conversion), with extras to follow!
https://discord.gg/53vyrZAu9u


CI/PERF: Add performance benchmarks

There seem to be a decent number of issues around performance and graph optimization. Having a suite of benchmarks can help with tracking performance across revisions.
asv is popular among scientific python projects. Pandas recently switched to it and things are working well.
If people are interested, then I'll volunteer to do the setup work.

Definitely interested.  If you set up a scaffold I'll also be happy to pitch in and contribute benchmarks.

See https://github.com/dask/dask-benchmarks


Why clear the text input when we do not select any option?

i am new to vue and vue-multiselect
i want the text input remain when the user do not select any option, then he/she can edit the input parameter not retyping whole text again. is there any solution?

I do not know way do that but fine some solution so test this...
first add :preserve-search="true" and then you must add some class in multiselect and then add method for close @close="closed"
and write this method
	closeDoc(param,id){
		var thisVal = document.querySelector(`.${id} input`).value
		var thisInput = document.querySelector(`.${id} input`)
		if (!param){
	            this.nameSearch = {fname:thisVal,lname:''}
		}
	},

i hope useful this solution...

:preserve-search is not documented. Will try that.

this is just for when time your v-modal don't has value but when you has value in v-modal
and focus clear your input


Problem with build and command line

Hello.
I try to build vJoy, but cmd write me error like
   "X:\PARTYZONE\download\vJoy-master\vJoy-master\vjoy.sln" (целевой объект по умолчанию) (1) ->
   "X:\PARTYZONE\download\vJoy-master\vJoy-master\driver\sys\vJoy.vcxproj.metaproj" (целевой объект по умолчанию) (
   10) ->
   "X:\PARTYZONE\download\vJoy-master\vJoy-master\driver\sys\vJoy.vcxproj" (целевой объект по умолчанию) (16) ->
   "X:\PARTYZONE\download\vJoy-master\vJoy-master\driver\sys\vJoy.vcxproj" (целевой объект TestSign ) (16:2) ->
   (Целевой объект TestSign) ->
     E:\Windows Kits\10\build\WindowsDriver.common.targets(1370,5): error : Invalid argument <CN="WDKTestCert Benja
   min,132277919481947922" | 0E33DBA13D3AF4CA5BA140EF6C35C50652292AAB> for property <TestCertificate>. [X:\PARTYZON
   E\download\vJoy-master\vJoy-master\driver\sys\vJoy.vcxproj

What need to fix that error?
main: DeviceHWID --> root\VID_1234&PID_BEAD&REV_0221 ; InfFile --> vJoy.inf
[I] FindInstalled: Searching for HWID root\VID_1234&PID_BEAD&REV_0221
[I] FindInstalled: Searching for HWID root\VID_1234&PID_BEAD
[I] Install: GetFullPathName --> X:\PARTYZONE\download\vJoy-master\vJoy-master\x64\Release\vJoy.inf
[I] Install: hwIdList --> root\VID_1234&PID_BEAD&REV_0221
[E] SetupDiGetINFClass failed with error: Cant find file

It probably fails to find vJoy.inf - if the file is not on a different disk (X:) it may cause a problem.

It probably fails to find vJoy.inf - if the file is not on a different disk (X:) it may cause a problem.
It is for second part. What about compile?
Invalid argument <CN="WDKTestCert Benja
min,132277919481947922" | 0E33DBA13D3AF4CA5BA140EF6C35C50652292AAB> for property .
I cant create new certificate - access denied and cant build because problem with command line in Visual.

The test certificate in the solution you picked was mine (I see "Benjamin" in the error). This is because the commited project files store this parameter. You can simply generate your test certificate to build the solution, or buy an official developper certificate from Microsoft.
Regarding the "vJoy failed to install", it has multiple reasons. Among them it could be that you are actually not running on a test-sign enabled computer (if you build a test version), or maybe you face an issue with the driver or installer.


[multiplatform] [wip] Platform: Add HTC HD7 (schubert) support

Let's move to a cleaner branch :-)


Redis streams input allows for automatic creation of streams

This is just enabling passing the Redis XGROUP CREATE ... MKSTREAM option. In some scenarios it is important that the consumer is present before producers arrive. This option facilitates that scenario. Given that a Redis stream does not have any configuration, automatic creation is rather harmless and this option should ideally be turned on by default, but I don't know enough about Benthos usage to discern whether such a change would be polite.
Also fixes the error messages where group and stream names were flipped.

Yes, I suppose. There is a small risk that existing producers assume that they own the stream and will get confused if it is created by the consumer, but that sounds remote. Kafka defaults this option to true, so it may be what users expect here. I've updated the PR.

Thanks @bittrance, looks good!


The mouseenter and mouseleave events

The mouseenter and mouseleave events

This issue was imported from Google Moderator
Moderator votes: +4
Issue added by mmj on 2014-10-14
To vote this issue up or down, simply include +1 or -1 in your comment.

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

also onmouseover and onmouseout

+1

Now available at https://caniuse.com/#feat=mdn-api_element_mouseenter_event & https://caniuse.com/#feat=mdn-api_element_mouseleave_event


Segfault in Setup when building Haskell packages

Issue description
When building the HEAD revision of haskell-opencv on nixpkgs master I get a segfault when compiling one of the executables. This doesn't happen on release-18.09.
Unsurprisingly, when I keep the build directory like:
nix-build -A haskellPackages.opencv --keep-failed --option sandbox false

and then build manually I also get the segfault:
⚡ root@bassbox > ⌚13:59:53 > /tmp/nix-build-opencv-<IP_ADDRESS>.drv-0/opencv-src >
$ ./Setup build
Preprocessing library for opencv-<IP_ADDRESS>..
Building library for opencv-<IP_ADDRESS>..
Preprocessing test suite 'test-opencv' for opencv-<IP_ADDRESS>..
Building test suite 'test-opencv' for opencv-<IP_ADDRESS>..
Preprocessing test suite 'doc-images-opencv' for opencv-<IP_ADDRESS>..
Building test suite 'doc-images-opencv' for opencv-<IP_ADDRESS>..
[3 of 3] Compiling Main             ( doc/images.hs, dist/build/doc-images-opencv/doc-images-opencv-tmp/Main.o )
[1]    18313 segmentation fault  ./Setup build

However, when I then build again the segfault disappears and I have a successful build:
 ⚡ root@bassbox > ⌚14:00:15 > /tmp/nix-build-opencv-<IP_ADDRESS>.drv-0/opencv-src >
$ ./Setup build
Preprocessing library for opencv-<IP_ADDRESS>..
Building library for opencv-<IP_ADDRESS>..
Preprocessing test suite 'test-opencv' for opencv-<IP_ADDRESS>..
Building test suite 'test-opencv' for opencv-<IP_ADDRESS>..
Preprocessing test suite 'doc-images-opencv' for opencv-<IP_ADDRESS>..
Building test suite 'doc-images-opencv' for opencv-<IP_ADDRESS>..
Linking dist/build/doc-images-opencv/doc-images-opencv ...

@nh2 and I are currently bisecting this. We'll update this ticket when we have more information.
Steps to reproduce
Clone haskell-opencv, set nixpkgs-version.nix to the latest nixpkgs and build it using nix-build -A haskellPackages.opencv
Technical details
$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 4.19.6, NixOS, 18.09pre-git (Jellyfish)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.1.3`
 - channels(root): `"nixos-17.03.982.b647a67dfe"`
 - nixpkgs: `/nix/store/ri1gi55p938rhrcv28fiicmsqiljwzlr-ahlshsgma50hzi07wya3rmn2mkfgrgyw-source`

CC @NorfairKing, who I know also had this issue on another Haskell package.

Bisection completed. It suggests that the first bad commit is 81caec3568d96edc0a52762705dc0e2dae7e7c8b:
commit 81caec3568d96edc0a52762705dc0e2dae7e7c8b (refs/bisect/bad)
Author: Dmitry Vyal<EMAIL_ADDRESS>Date:   Sun Sep 2 11:18:35 2018 +0300

    openblas-0.3.1 -> 0.3.3

Bisection log:
% git bisect log
git bisect start
# good: [873173aa3833487147b3c34c056e121a57791be7] inboxer: 1.1.4 -> 1.1.5 (#47047)
git bisect good 873173aa3833487147b3c34c056e121a57791be7
# bad: [1b769de74c5b7c4708e1a4aa8f46beca58ace5d8] Merge pull request #47716 from r-ryantm/auto-update/visualvm
git bisect bad 1b769de74c5b7c4708e1a4aa8f46beca58ace5d8
# skip: [2b4b7d4ef3bba661fbafbced814a8b39c65ea81a] Merge pull request #47233 from oxij/tree/mass-rebuild-noop-cleanups
git bisect skip 2b4b7d4ef3bba661fbafbced814a8b39c65ea81a
# bad: [56621c016d543f58817e0dc2c6189bf635ae9799] ffmpeg: unbreak build of older versions after #46078
git bisect bad 56621c016d543f58817e0dc2c6189bf635ae9799
# good: [0d91e3b5509bada40a1c83f5a503d294cad81749] mesa: add new required dep on libXrandr
git bisect good 0d91e3b5509bada40a1c83f5a503d294cad81749
# bad: [0ae8ac86510aae6491f49964f0b8af99dc2869e9] Merge pull request #47219 from lheckemann/xcb-1.13
git bisect bad 0ae8ac86510aae6491f49964f0b8af99dc2869e9
# good: [2744f5a3ada448b7d82a954ec71ab18e71583894] [cpan2nix] perlPackages.IOSocketSSL: 2.059 -> 2.060
git bisect good 2744f5a3ada448b7d82a954ec71ab18e71583894
# good: [7cf45d7a3cccb25d0c8b760fdfd3ff8284133f06] [cpan2nix] perlPackages.LogDispatch: 2.67 -> 2.68
git bisect good 7cf45d7a3cccb25d0c8b760fdfd3ff8284133f06
# good: [2e3d8413992e11fc66ed3ee53c2587075cf1f44d] Merge pull request #47106 from volth/cpan2nix-2018-09-21
git bisect good 2e3d8413992e11fc66ed3ee53c2587075cf1f44d
# bad: [81caec3568d96edc0a52762705dc0e2dae7e7c8b] openblas-0.3.1 -> 0.3.3
git bisect bad 81caec3568d96edc0a52762705dc0e2dae7e7c8b
# good: [14673d61ed94bcb9c54d24bacd7b15420d3e3fab] Merge master into staging
git bisect good 14673d61ed94bcb9c54d24bacd7b15420d3e3fab
# first bad commit: [81caec3568d96edc0a52762705dc0e2dae7e7c8b] openblas-0.3.1 -> 0.3.3

@nh2 What has openblas to do with haskell compilation?
Does GHC use linear algebra for compilation?

@NorfairKing I'd expect opencv to use it. I'm not sure if it's also used in your failing build.

@nh2 I was compiling my blog server: cs-syd.eu
Specifically the module that embeds the assets into the executable yesod-static failed.

nix-store -qR '/nix/store/wpcxxk9vgdhs416m5ggcq4vvd5f9zfd3-site-0.0.0.drv' | grep openblas
 ✘

My drv doesn't depend on openblas either.

I tried to build 20 times, 2 successes and 18 failures:
nix-store --delete /nix/store/18cx4f0q70z46wgz7nyz9a073m05hpk4-site-0.0.0 && time nix-build --no-link```

When I revert the commit above on top of 3ab361cb57b1c37a46b568e97d2e5025a1361c0c, I get this when running opencv's tests:
      Feature Detection
        houghLinesP:
  libgomp: Out of memory allocating<PHONE_NUMBER>64 bytes

927 GB, nice.

I'm trying now with openblas-0.3.4.

I'm trying now with openblas-0.3.4.

Doesn't help: The tests hang for 15 hours already at 100% CPU, strace shows a loop of:
[pid  8658] rt_sigreturn({mask=[]})     = 64
[pid  8658] --- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=0} ---
[pid  8658] rt_sigreturn({mask=[]})     = 64
[pid  8658] --- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=0} ---
[pid  8658] rt_sigreturn({mask=[]})     = 64
[pid  8658] --- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=0} ---

Unsurprisingly disabling openblas in opencv3 gets rids of the segfault. It does fail on the libgomp error that @nh2 reported earlier:
$ cd haskell-opencv
$ nix-build -E \
  "let pkgs = import ./. {}; \
   in pkgs.haskellPackages.opencv.override { \
     opencv3 = pkgs.opencv3.override { \
       enableOpenblas = false; \
     }; \
   }"
...
    Feature Detection
      houghLinesP:
libgomp: Out of memory allocating<PHONE_NUMBER>64 bytes

The segfault is also not present when building with openblas-0.3.2. So it has to be caused by something in https://github.com/xianyi/OpenBLAS/compare/v0.3.2..v0.3.3.

I'm trying now with openblas-0.3.4.

Doesn't help: The tests hang for 15 hours already at 100%

I forgot to mention: That one succeeds past the linker step where we usually get the segfault:
[3 of 3] Compiling Main             ( doc/images.hs, dist/build/doc-images-opencv/doc-images-opencv-tmp/Main.o )
Linking dist/build/doc-images-opencv/doc-images-opencv ...
Preprocessing benchmark 'bench-opencv' for opencv-<IP_ADDRESS>..
...

However, when I then build again the segfault disappears and I have a successful build:

This part is still utmost suspicious (it happens to me reliably as well).
Doing rm dist/build/doc-images-opencv/doc-images-opencv-tmp/Main.o and building again re-triggers the segfault.

I've built with ./Setup build -v and confirmed that indeed it's crashing as part of the GHC invocation, not something further up:
niklas@ares:/tmp/nix-build-opencv-<IP_ADDRESS>.drv-0/opencv-src$ /nix/store/wc4chfs9wgi67g1r7im93358h1j6cdkz-ghc-8.4.4/bin/ghc --make -no-link -fbuilding-cabal-package -O -static -outputdir dist/build/doc-images-opencv/doc-images-opencv-tmp -odir dist/build/doc-images-opencv/doc-images-opencv-tmp -hidir dist/build/doc-images-opencv/doc-images-opencv-tmp -stubdir dist/build/doc-images-opencv/doc-images-opencv-tmp -i -idist/build/doc-images-opencv/doc-images-opencv-tmp -idoc -idist/build/doc-images-opencv/autogen -idist/build/global-autogen -Idist/build/doc-images-opencv/autogen -Idist/build/global-autogen -Idist/build/doc-images-opencv/doc-images-opencv-tmp -I/nix/store/j573pqybmmy6n2wjb9mw9h657hmqf7wb-opencv-3.4.4/include -optP-include -optPdist/build/doc-images-opencv/autogen/cabal_macros.h -hide-all-packages -Wmissing-home-modules -no-user-package-db -package-db /tmp/nix-build-opencv-<IP_ADDRESS>.drv-0/package.conf.d -package-db dist/package.conf.inplace -package-id base-<IP_ADDRESS> -package-id bytestring-<IP_ADDRESS> -package-id containers-<IP_ADDRESS> -package-id data-default-<IP_ADDRESS>-JU0tK7MsWQxFeBDXsMopAU -package-id directory-<IP_ADDRESS> -package-id Glob-0.9.3-7ezF27bLnby7o45COKo9bc -package-id haskell-src-exts-1.20.3-KjyAxm84ddk16DoDOnTGLG -package-id JuicyPixels-<IP_ADDRESS>-228KAmffah2EHAhe61mJze -package-id linear-1.20.8-4ZVKNh6PPLgAMGxipcwitY -package-id opencv-<IP_ADDRESS>-HWLEHw8y7ZcCelxlYQnnuM -package-id primitive-<IP_ADDRESS>-DaZpcxwJp2TGn8ITSgfI4C -package-id template-haskell-<IP_ADDRESS> -package-id text-<IP_ADDRESS> -package-id transformers-<IP_ADDRESS> -package-id vector-<IP_ADDRESS>-4IpdnxtqTfNJ9xEZNSAM2c -XHaskell2010 -XBangPatterns -XDataKinds -XLambdaCase -XOverloadedStrings -XPackageImports -XPolyKinds -XScopedTypeVariables -XTupleSections -XTypeFamilies -XTypeOperators ExampleExtractor Language.Haskell.Meta.Syntax.Translate doc/images.hs -Wall -fwarn-incomplete-patterns -threaded -funbox-strict-fields -rtsopts -j4 -split-sections

[3 of 3] Compiling Main             ( doc/images.hs, dist/build/doc-images-opencv/doc-images-opencv-tmp/Main.o )
Segmentation fault (core dumped)

Expanding the ghc invocation (which is a bash script):
niklas@ares:/tmp/nix-build-opencv-<IP_ADDRESS>.drv-0/opencv-src$ rm dist/build/doc-images-opencv/doc-images-opencv-tmp/Main.o niklas@ares:/tmp/nix-build-opencv-<IP_ADDRESS>.drv-0/opencv-src$ /nix/store/wc4chfs9wgi67g1r7im93358h1j6cdkz-ghc-8.4.4/lib/ghc-8.4.4/bin/ghc -B/nix/store/wc4chfs9wgi67g1r7im93358h1j6cdkz-ghc-8.4.4/lib/ghc-8.4.4 --make -no-link -fbuilding-cabal-package -O -static -outputdir dist/build/doc-images-opencv/doc-images-opencv-tmp -odir dist/build/doc-images-opencv/doc-images-opencv-tmp -hidir dist/build/doc-images-opencv/doc-images-opencv-tmp -stubdir dist/build/doc-images-opencv/doc-images-opencv-tmp -i -idist/build/doc-images-opencv/doc-images-opencv-tmp -idoc -idist/build/doc-images-opencv/autogen -idist/build/global-autogen -Idist/build/doc-images-opencv/autogen -Idist/build/global-autogen -Idist/build/doc-images-opencv/doc-images-opencv-tmp -I/nix/store/j573pqybmmy6n2wjb9mw9h657hmqf7wb-opencv-3.4.4/include -optP-include -optPdist/build/doc-images-opencv/autogen/cabal_macros.h -hide-all-packages -Wmissing-home-modules -no-user-package-db -package-db /tmp/nix-build-opencv-<IP_ADDRESS>.drv-0/package.conf.d -package-db dist/package.conf.inplace -package-id base-<IP_ADDRESS> -package-id bytestring-<IP_ADDRESS> -package-id containers-<IP_ADDRESS> -package-id data-default-<IP_ADDRESS>-JU0tK7MsWQxFeBDXsMopAU -package-id directory-<IP_ADDRESS> -package-id Glob-0.9.3-7ezF27bLnby7o45COKo9bc -package-id haskell-src-exts-1.20.3-KjyAxm84ddk16DoDOnTGLG -package-id JuicyPixels-<IP_ADDRESS>-228KAmffah2EHAhe61mJze -package-id linear-1.20.8-4ZVKNh6PPLgAMGxipcwitY -package-id opencv-<IP_ADDRESS>-HWLEHw8y7ZcCelxlYQnnuM -package-id primitive-<IP_ADDRESS>-DaZpcxwJp2TGn8ITSgfI4C -package-id template-haskell-<IP_ADDRESS> -package-id text-<IP_ADDRESS> -package-id transformers-<IP_ADDRESS> -package-id vector-<IP_ADDRESS>-4IpdnxtqTfNJ9xEZNSAM2c -XHaskell2010 -XBangPatterns -XDataKinds -XLambdaCase -XOverloadedStrings -XPackageImports -XPolyKinds -XScopedTypeVariables -XTupleSections -XTypeFamilies -XTypeOperators ExampleExtractor Language.Haskell.Meta.Syntax.Translate doc/images.hs -Wall -fwarn-incomplete-patterns -threaded -funbox-strict-fields -rtsopts -j4 -split-sections

[3 of 3] Compiling Main             ( doc/images.hs, dist/build/doc-images-opencv/doc-images-opencv-tmp/Main.o )

<no location info>: error:
    /tmp/nix-build-opencv-<IP_ADDRESS>.drv-0/ghc17140_0/ghc_10.s: hClose: resource exhausted (No space left on device)
Segmentation fault (core dumped)

This is just because I'm out of disk space right no, but interesting about it is that it still segfaults after this critical error!
Making some space, the No space left on device goes away and the segfault stays. Showing the core dump with gdb:
niklas@ares:/tmp/nix-build-opencv-<IP_ADDRESS>.drv-0/opencv-src$ /usr/bin/gdb /nix/store/wc4chfs9wgi67g1r7im93358h1j6cdkz-ghc-8.4.4/lib/ghc-8.4.4/bin/ghc core
...
Reading symbols from /nix/store/wc4chfs9wgi67g1r7im93358h1j6cdkz-ghc-8.4.4/lib/ghc-8.4.4/bin/ghc...(no debugging symbols found)...done.
[New LWP 17576]
...
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
Core was generated by `/nix/store/wc4chfs9wgi67g1r7im93358h1j6cdkz-ghc-8.4.4/lib/ghc-8.4.4/bin/ghc -B/'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f7a31534880 in blas_memory_free () from /nix/store/ww2lj137v7mpkxcsmpnv67xa2ybrff77-openblas-0.3.3/lib/libopenblas.so.0
...
(gdb) bt
#0  0x00007f7a31534880 in blas_memory_free () from /nix/store/ww2lj137v7mpkxcsmpnv67xa2ybrff77-openblas-0.3.3/lib/libopenblas.so.0
#1  0x00007f7a31535325 in blas_thread_shutdown_ () from /nix/store/ww2lj137v7mpkxcsmpnv67xa2ybrff77-openblas-0.3.3/lib/libopenblas.so.0
#2  0x00007f7a315348bb in blas_shutdown () from /nix/store/ww2lj137v7mpkxcsmpnv67xa2ybrff77-openblas-0.3.3/lib/libopenblas.so.0
#3  0x00007f7a313bb014 in gotoblas_quit () from /nix/store/ww2lj137v7mpkxcsmpnv67xa2ybrff77-openblas-0.3.3/lib/libopenblas.so.0
#4  0x00007f7a950cb3b7 in _dl_fini () from /nix/store/1mnsmslnx5anjfksac6417xfzzglrwhr-glibc-2.27/lib/ld-linux-x86-64.so.2
#5  0x00007f7a8a3f9351 in __run_exit_handlers () from /nix/store/1mnsmslnx5anjfksac6417xfzzglrwhr-glibc-2.27/lib/libc.so.6
#6  0x00007f7a8a3f943a in exit () from /nix/store/1mnsmslnx5anjfksac6417xfzzglrwhr-glibc-2.27/lib/libc.so.6
#7  0x00007f7a8b4c3bfb in stg_exit () from /nix/store/wc4chfs9wgi67g1r7im93358h1j6cdkz-ghc-8.4.4/lib/ghc-8.4.4/bin/../rts/libHSrts_thr-ghc8.4.4.so
#8  0x00007f7a8b4c404e in shutdownHaskellAndExit () from /nix/store/wc4chfs9wgi67g1r7im93358h1j6cdkz-ghc-8.4.4/lib/ghc-8.4.4/bin/../rts/libHSrts_thr-ghc8.4.4.so
#9  0x00007f7a8b4b46ff in hs_main () from /nix/store/wc4chfs9wgi67g1r7im93358h1j6cdkz-ghc-8.4.4/lib/ghc-8.4.4/bin/../rts/libHSrts_thr-ghc8.4.4.so
#10 0x000000000042a8b9 in main ()

So this does point directly at blas_memory_free () from blas_thread_shutdown_ () (note above I'm using openblas 0.3.3.

@basvandijk To debug further I must be able to iterate more quickly, right now I'm stuck in this dependency that will recompile GHC when I change openblas:
/nix/store/749p6rgih94vdcd8bdvbigbiwcl3pqcf-openblas-0.3.3.drv
/nix/store/xvlapll4syvnsi22w6jyvgwsi8sv1j7i-python3.7-numpy-1.15.3.drv
/nix/store/1c1plclk0w7k70h5hjfazsp0pbkm5jpj-python3.7-Cython-0.29.drv
/nix/store/abqd6m4v1l3lrzkiglkd1sws98prcm0j-python3.7-PyStemmer-1.3.0.drv
/nix/store/1wkm45qp3am1i6n85gbdwhprmbqdgbcy-python3.7-snowballstemmer-1.2.1.drv
/nix/store/8iixy91cdws6qim9d6vbmw348y53p2bj-python3.7-sphinx-1.7.9.drv
/nix/store/lp43k60dkccaksv6lsvkljgypnwnxvhi-ghc-8.4.4.drv
/nix/store/539hw3c9kmrivsy5d9i5cxxbn05bvsfj-cabal2nix-2.12.drv
/nix/store/f5l6viwsn94pbfihh349j3v6psvrj71h-cabal2nix-opencv.drv
/nix/store/f5l6viwsn94pbfihh349j3v6psvrj71h-cabal2nix-opencv.drv

Even with your commit d899185 it'll build GHC (though not via cabal2nix so at least I can see it immediately). Maybe we can LD_LIBRARY_PATH openblas to iterate quickly.

@nh2 instead of overriding openblas globally you could override it only for opencv3 as in:
$ nix-build -E \
  "let pkgs = import ./. {}; \
   in pkgs.haskellPackages.opencv.override { \
        opencv3 = pkgs.opencv3.override { \
          openblas = myOpenblas; \
        }; \
      }"

Maybe we can LD_LIBRARY_PATH openblas to iterate quickly.

This approach works for me, I run e.g.
niklas@ares:/tmp/nix-build-opencv-<IP_ADDRESS>.drv-0/opencv-src$ LD_LIBRARY_PATH=/nix/store/lr9r9pwmndbsnva9miap5aa1l4nlv5jx-openblas-0.3.3/lib:$LD_LIBRARY_PATH /usr/bin/time /nix/store/wc4chfs9wgi67g1r7im93358h1j6cdkz-ghc-8.4.4/lib/ghc-8.4.4/bin/ghc -B/nix/store/wc4chfs9wgi67g1r7im93358h1j6cdkz-ghc-8.4.4/lib/ghc-8.4.4 --make -no-link -fbuilding-cabal-package -O -static -outputdir dist/build/doc-images-opencv/doc-images-opencv-tmp -odir dist/build/doc-images-opencv/doc-images-opencv-tmp -hidir dist/build/doc-images-opencv/doc-images-opencv-tmp -stubdir dist/build/doc-images-opencv/doc-images-opencv-tmp -i -idist/build/doc-images-opencv/doc-images-opencv-tmp -idoc -idist/build/doc-images-opencv/autogen -idist/build/global-autogen -Idist/build/doc-images-opencv/autogen -Idist/build/global-autogen -Idist/build/doc-images-opencv/doc-images-opencv-tmp -I/nix/store/j573pqybmmy6n2wjb9mw9h657hmqf7wb-opencv-3.4.4/include -optP-include -optPdist/build/doc-images-opencv/autogen/cabal_macros.h -hide-all-packages -Wmissing-home-modules -no-user-package-db -package-db /tmp/nix-build-opencv-<IP_ADDRESS>.drv-0/package.conf.d -package-db dist/package.conf.inplace -package-id base-<IP_ADDRESS> -package-id bytestring-<IP_ADDRESS> -package-id containers-<IP_ADDRESS> -package-id data-default-<IP_ADDRESS>-JU0tK7MsWQxFeBDXsMopAU -package-id directory-<IP_ADDRESS> -package-id Glob-0.9.3-7ezF27bLnby7o45COKo9bc -package-id haskell-src-exts-1.20.3-KjyAxm84ddk16DoDOnTGLG -package-id JuicyPixels-<IP_ADDRESS>-228KAmffah2EHAhe61mJze -package-id linear-1.20.8-4ZVKNh6PPLgAMGxipcwitY -package-id opencv-<IP_ADDRESS>-HWLEHw8y7ZcCelxlYQnnuM -package-id primitive-<IP_ADDRESS>-DaZpcxwJp2TGn8ITSgfI4C -package-id template-haskell-<IP_ADDRESS> -package-id text-<IP_ADDRESS> -package-id transformers-<IP_ADDRESS> -package-id vector-<IP_ADDRESS>-4IpdnxtqTfNJ9xEZNSAM2c -XHaskell2010 -XBangPatterns -XDataKinds -XLambdaCase -XOverloadedStrings -XPackageImports -XPolyKinds -XScopedTypeVariables -XTupleSections -XTypeFamilies -XTypeOperators ExampleExtractor Language.Haskell.Meta.Syntax.Translate doc/images.hs -Wall -fwarn-incomplete-patterns -threaded -funbox-strict-fields -rtsopts -j4 -split-sections

and then
niklas@ares:/tmp/nix-build-opencv-<IP_ADDRESS>.drv-0/opencv-src$ LD_LIBRARY_PATH=/nix/store/lr9r9pwmndbsnva9miap5aa1l4nlv5jx-openblas-0.3.3/lib:$LD_LIBRARY_PATH /usr/bin/gdb /nix/store/wc4chfs9wgi67g1r7im93358h1j6cdkz-ghc-8.4.4/lib/ghc-8.4.4/bin/ghc core

That way I generated https://github.com/xianyi/OpenBLAS/issues/1923#issuecomment-448728671

@nh2 @basvandijk I'm thinkin that blas may be a red herring because the segfault that I see, happens in a closure that doesn't involve blas.

@NorfairKing That's right, I also think that (https://github.com/xianyi/OpenBLAS/issues/1923#issuecomment-448715395).
We should gdb your failure, so we can see where it is; in the case of OpenBLAS gdb showed the error location precisely. Let me know when you have time.

I noticed that we have this problem with GHC 8.4.
I just encountered another bug, where haddock in a Stackage resolver with GHC 8.4 segfaulted:
https://github.com/haskell/haddock/issues/928#issuecomment-480896983
There it was fixed by upgrading everything to a Stackage LTS that has GHC 8.6. I wonder whether the underlying source for these segfaults is related.


Array Assign: Fix reference copy to protect the source from the GC

Fixes #709.
The problem is that it's possible that the garbage collector frees the data which should be copied.
Problem analysis:
zephir_array_fetch(&_1, arr, _2, PH_NOISY | PH_READONLY, "xxx", 59 TSRMLS_CC);
ZEPHIR_CPY_WRT(arr, _1);

The problem is that _1 is potentially a pointer to an element of arr
and ZEPHIR_CPY_WRT does add the reference AFTER calling
the Destructor (which may lead to garbage collector activity
and therefore to an "use-after-free" bug.)

Seems to be okey
Thank you :smiley:


Title bar eats up full window height

I like the look of this library but when I try to add it to my application, the title bar is always taking up the full height of the whole application window.
I tracked it down in the debugger to some elements within the title bar having height: 100% set, while the top-level div has no explicit height set. If I manually set height: 28px to the top-level div in the debugger, everything looks fine.
I then figured maybe I needed to manually set the height in the theme, but that didn't work either:
<TitleBar
  app="Filur"
  menu={menuTemplate}
  theme={{
    barHeight: "28px",
    winBarHeight: "28px",
  }}
/>

What am I doing wrong? This is on Windows btw.
UPDATE: Just tried using plain numbers (e.g. 28 instead of "28px") in the theme object but it made no difference.

@erikjalevik I'm looking into it now.. I think it's an incorrect react version which I need to fix in the package.json since I use the React Context API to pass along the theme's properties.
What version of react are you using?
In the meantime, if you for example, use this boilerplate:
https://github.com/electron-react-boilerplate/electron-react-boilerplate
in the main.dev.js - make the window frameless
  mainWindow = new BrowserWindow({
    show: false,
    width: 1024,
    height: 728,
    frame: false,
    titleBarStyle: 'hidden'
  });

remove the padding and margins from the body in the app.global.css file
body {
  ....
  padding: 0px;
  margin: 0px;
}

and add the titlebar
yarn add frameless-titlebar

In the App.js file include the Titlebar
import TitleBar from 'frameless-titlebar';
...
   return (
      <React.Fragment>
        <TitleBar
          title="Titlebar"
          theme={{
            barTheme: 'dark',
            barBackgroundColor: 'rgb(36, 37, 38)',
            barColor: 'rgb(230, 230, 230)',
            menuHighlightColor: '#373277',
            menuDimItems: false,
            showIconDarLin: false
          }}
        ></TitleBar>
        {children}
      </React.Fragment>
    )

Or have a look at the example folder in the project repository! :) I'll close this out when I update the project's package.json

@erikjalevik this commit https://github.com/Cristian006/frameless-titlebar/commit/ab87734baaff2925b927a35bf57717396a7a3844 should fix that 👍just make sure you update your react and react-dom version to 16.6.X and you should be good

I now updated React to 16.7 and it all works fine.


Android SDK 29 Deprecation Overhaul

Describe the Feature
The entire NetworkInfo package in Android has been Deprecated in place of using ConnectivityManager.NetworkCallback in Android SDK 29
https://developer.android.com/reference/android/net/NetworkInfo.html
https://developer.android.com/reference/android/net/ConnectivityManager.NetworkCallback.html
Most of the ConnectivityManager types have been deprecated since Android 28
https://developer.android.com/reference/android/net/ConnectivityManager.html#TYPE_BLUETOOTH as an example
The Android codebase should probably be overhauled to use the non-deprecated APIs, especially now that SDK 29 is officialy out and will be supported on more phones going forward.
Possible Implementations
Looking for some guidance on this front as I am primarily a React developer and am relatively new to native mobile dev.
To the NetworkInfo deprecation, the docs for https://developer.android.com/reference/android/net/ConnectivityManager.NetworkCallback.html
Say that is has only been supported since API level 21, which i think would mean that the library would need to separately support old devices using NetworkInfo and new devices using the aformentioned API, but I could be wrong.
Similar case for the https://developer.android.com/reference/android/net/NetworkCapabilities.html#hasTransport(int) recommendation they make for the various ConnectivityManager constatns.
Related Issues

👋 Thank you for opening this issue. It's something that's been on my list for a little while now.
The next time I have time to work on this project, I will look into making these changes.

Any news regarding the new update? on Android 10 NetInfo it s not working due to deprecated packages.
Thank you!

@VSoull No news on this. Can you define "not working" though? The APIs might be deprecated, but they should still be working right?

@VSoull What is your targetSdkVersion on Android?  @matt-oakes Some of the oddities around the API 29 deprecations is that some are destructive.  I don't know about network info, but for file IO they made certain deprecated calls always fail no matter what permissions are set.

@phil-flyclops I have it set to whatever is the default for the latest version of React Native. I'll take a look into this in more detail soon.

@VSoull No news on this. Can you define "not working" though? The APIs might be deprecated, but they should still be working right?

Sorry for the late reply, on Pixel 3 XL with Android 10   NetInfo.isConnected it s not returning any data, and the project it s setup for API 29. On ios it s working fine but on Android we have issues.

Ok. It seems like I'll need to take a look at this.

Any updates on this

Following this as well

Following this D:

You guys all want to just hit the "subscribe" button on the right of the GitHub web UI. Then you get to follow without sending comment notification spam out to everyone :-)


Single-character callouts don't look as expected

The corners seem cut off when you have a single callout option. The callout UI wasn't customized. (KeyboardKit version is 7.3.1)
See the attached picture for a visual representation of the issue:

Hi @f-person
Thank you for letting me know - I'll make single callout buttons a little wider 👍
Btw, the keyboard looks really cool - I love the numbers. Do you support swiping down to enter them?
Best
Daniel

Btw, the keyboard looks really cool - I love the numbers.

Thanks! The beta users love it too! I'm going to write a "customizing KeyboardKit guide" blog post once I finish the project (basically, a "shortcut" to other people who are interested in building custom keyboards with KeyboardKit). Also, it's open-source in case you're interested in how others use KeyboardKit :)

Do you support swiping down to enter them?

No, at least not yet. They're implemented as callouts for now. On a side note, I'm considering trying to implement swipe-typing at some point, though (I'll make a PR in case I do it before it's part of the package). I think the API should provide an overridable method that has the raw swipe sequence as a parameter. Then the users can use it to return the "final" string (so the package doesn't handle the prediction/ML/whatever).

Cool - please share when you do :)
Regarding swipe typing, I will try to setup swipe gestures, but that will involve moving the gestures from each button to the entire keyboard, which I am concerned will have some side-effects when two hand typing. But when I do, the action sequence will be added as well.

I have fixed this, and will release this in 7.4.


Destroy models in reverse-created order.

Currently, if you create dependent models on a system with foreign key checks enabled, your tests will error out when running cleanUp because it destroys them in the order they are created.
All that's needed to fix that is to destroy the models in reverse order, so dependant models are destroyed first.

+1 for this

Closing this pull request, as it has already been fixed in the maintained fork: https://github.com/ratson/factory-bot


Explanation needed for "Allow trusted Microsoft services to bypass this firewall?"

If [Yes] is enabled for "Allow trusted Microsoft services to bypass this firewall?", access to key containers from trusted services  bypasses firewall settings. However, the trusted services are limited to specific operations as described below. Could you add the same contents to this page?
https://azidentity.azurewebsites.net/post/2019/01/03/key-vault-firewall-access-by-azure-app-services

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

ID: 3f3821d7-a433-9271-303d-52e1d6b6df03
Version Independent ID: ce37d52d-2b87-ce34-ebba-be2afba9ccc8
Content: Configure Azure Key Vault firewalls and virtual networks - Azure Key Vault
Content Source: articles/key-vault/key-vault-network-security.md
Service: key-vault
GitHub Login: @amitbapat
Microsoft Alias: ambapat

@juntakata
Thanks for your feedback! We will investigate and update as appropriate.

@juntakata I have assigned this issue to content author to investigate and update the document as appropriate.

This should be absolutely be documented. We are getting 401 from a webapp which is trying to get secrets with Managed Identity and the Keyvault was configured to allow Microsoft Trusted Services. So we thought that it should work smoothly.
But that's not the case, this is supposed to work only for certificates from a webapp!

Any update to this?

https://docs.microsoft.com/en-us/azure/key-vault/key-vault-overview-vnet-service-endpoints#trusted-services
Get Outlook for iOShttps://aka.ms/o0ukef

From: nicolasevens<EMAIL_ADDRESS>Sent: Tuesday, September 24, 2019 5:39:41 AM
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: Amit Bapat<EMAIL_ADDRESS>Assign<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] Explanation needed for "Allow trusted Microsoft services to bypass this firewall?" (#32741)
Where can I find a list of the "trusted Microsoft services" ?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F32741%3Femail_source%3Dnotifications%26email_token%3DAEO763B4VGPHJ2L4LX72HTLQLIDA3A5CNFSM4HTQVWGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7OF3QI%23issuecomment-534535617&data=02|01|amit.bapat%40microsoft.com|8555852deb2b426118dd08d740ec45d5|72f988bf86f141af91ab2d7cd011db47|1|0|637049255834599206&sdata=lvDOxXHOrbTiMjmAw3HHswTitP2ZoCVUc5N7Tr2FUiI%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAEO763DIQ5JR3L2T4ZBAAKDQLIDA3ANCNFSM4HTQVWGA&data=02|01|amit.bapat%40microsoft.com|8555852deb2b426118dd08d740ec45d5|72f988bf86f141af91ab2d7cd011db47|1|0|637049255834599206&sdata=PET3OtsUBOrprkzhBTTLLzVW72nQwWB8PLAuXCfeMBU%3D&reserved=0.

This should be absolutely be documented. We are getting 401 from a webapp which is trying to get secrets with Managed Identity and the Keyvault was configured to allow Microsoft Trusted Services. So we thought that it should work smoothly.
But that's not the case, this is supposed to work only for certificates from a webapp!

The 401 response you are receiving has nothing to do with trusted services. More about 401 response (which is part of normal authentication flow): https://docs.microsoft.com/en-us/azure/key-vault/authentication-requests-and-responses#authentication

Will the AppGw also be added to the Trusted Microsoft Services?

Currently there is no plan to add application gateway to the Trusted Services List.
There is a requirement that a trusted service only runs Microsoft code. Since application gateway can be used to connect to 3rd party websites, we cannot add the service to the trusted service list.

The trusted services list changes continuously, to provide the most up to date information, a link has been added to step 7 under the "Use the Azure Portal" instructions.

#please-close


The crew voices Doesnt listen

Help me i instaled good the mod but the crew of All nation  i can t listen and i don t no why

Read Instructions given with the modpack e.g README.txt


Add support for network manager events

Signed-off-by: Sunbreak<EMAIL_ADDRESS>

This is great! Thank you. I don't think INetworkListManagerEvents can be instantiated through a class -- at least, based off a quick look at the documentation and the fact that the metadata can't find a GUID for it. I've removed that annotation; please file a bug if you see different and I'll take a look.

I'm implementing connectivity_windows via dart:ffi
There is a snippet to try with INetworkListManagerEvents
void _onListen() {
  if (_netManager != null) return;

  var hr = CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
  if (FAILED(hr)) {
    throw WindowsException(hr);
  }

  NetworkListManager netManager = NetworkListManager.createInstance();

  var connectionPointContainerID = calloc<GUID>()..ref.setGUID(IID_IConnectionPointContainer);
  var networkListManagerEventsID = calloc<GUID>()..ref.setGUID(IID_INetworkListManagerEvents);
  var cookiePtr = calloc<Uint32>();
  try {
    var connectionPointContainerPtr = calloc<Pointer>();
    hr = netManager.QueryInterface(connectionPointContainerID, connectionPointContainerPtr);
    if (FAILED(hr)) {
      throw WindowsException(hr);
    }
    var connectionPointContainer = IConnectionPointContainer(connectionPointContainerPtr.cast());

    var connectionPointPtr = calloc<Pointer>();
    hr = connectionPointContainer.FindConnectionPoint(networkListManagerEventsID, connectionPointPtr);
    if (FAILED(hr)) {
      throw WindowsException(hr);
    }
    var connectionPoint = IConnectionPoint(connectionPointPtr.cast());

    // connectionPoint.Advise(pUnkSink, cookiePtr);

    _netManager = netManager;
    _connectionPointContainer = connectionPointContainer;
    _connectionPoint = connectionPoint;
    _cookie = cookiePtr.value;
  } finally {
    calloc.free(connectionPointContainerID);
    calloc.free(networkListManagerEventsID);
    calloc.free(cookiePtr);
  }
}

Right -- INetworkListManagerEvents has a GUID, but there's no class NetworkListManagerEvents (as far as I can figure out). Likely there's another class that implements INetworkListManagerEvents; if so, then you should have what you need with my change, because you can call QueryInterface on that to get the right interface.

The snippet above requires IID_INetworkListManagerEvents however. Could we declare the contants only?
  var connectionPointContainerID = calloc<GUID>()..ref.setGUID(IID_IConnectionPointContainer);
  var networkListManagerEventsID = calloc<GUID>()..ref.setGUID(IID_INetworkListManagerEvents);

I re-check the generated code and find the IID_INetworkListManagerEvents. Sorry to bother!


Fixed builds on VS 2022 version 17.2.

[x] Have you signed the Contributor License Agreement?
[ ] Are you working against an Issue?

For those of us who keep forgetting minor VS version bumps change the compiler enjoy living on the bleeding edge, Visual Studio 2022 was updated to version 17.2 this week, again breaking winget builds. This PR resolves the errors, by adding a missing typename keyword in a couple places.
The kicker is, I can't find a changelog (publicly) that mentions what changed to cause this. Nothing in the STL changelog looks to be it, and the conformance changes don't mention it either. This seems more correct anyway, so I think it is fine, but if anyone could shed some more light that would be great!
(My daily builds broke because GitHub Actions' image was updated this week. I believe hosted ADO pools use the same images, so I think the CI for this repo may have broken too? In any case, this fixes the issue.)
Microsoft Reviewers: Open in CodeFlow

/azp run


Adds new set of nursing care procedures

Proposed Changes

Adds new set of procedures
Switch to using Autocomplete input instead of select menu for procedures dropdown
Fixes missing border when procedures are selected

@ohcnetwork/care-fe-code-reviewers
Merge Checklist

[ ] Add specs that demonstrate bug / test a new feature.
[ ] Update product documentation.
[ ] Ensure that UI text is kept in I18n files.
[ ] Prep screenshot or demo video for changelog entry, and attach it to issue.
[ ] Request for Peer Reviews
[ ] Completion of QA

@nihal467 please make sure we merge it in the current sprint.


No longer working beyond 4.1.4

When I upgrade to any 5.x version, npm-check is suddenly somehow mapped to tsc:
$ npm-check
Version <IP_ADDRESS>
Syntax:   tsc [options] [file ...]

Examples: tsc hello.ts
          tsc --out foo.js foo.ts
          tsc @args.txt

Options:
 -d, --declaration  Generates corresponding '.d.ts' file.
 -h, --help         Print this message.
 --mapRoot          Specifies the location where debugger should locate map files instead of generated locations.
 -m, --module       Specify module code generation: 'commonjs' or 'amd'
 --noImplicitAny    Warn on expressions and declarations with an implied 'any' type.
 --out              Concatenate and emit output to single file.
 --outDir           Redirect output structure to the directory.
 --removeComments   Do not emit comments to output.
 --sourceMap        Generates corresponding '.map' file.
 --sourceRoot       Specifies the location where debugger should locate TypeScript files instead of source locations.
 -t, --target       Specify ECMAScript target version: 'ES3' (default), or 'ES5'
 -v, --version      Print the compiler's version.
 -w, --watch        Watch input files.
 @<file>            Insert command line options and files from a file.

When I downgrade to 4.1.4, everything is back to normal.
This is in MINGW64 on Windows 10.

Hey @oliversalzburg Are you using nvm or other version manager?

Can you please update your npm and node versions and try this again?

It actually started working again some time ago. I use npm-check all the time.


Grid does not work using React library.

Check that this is really a bug

[X] I confirm

Reproduction link
https://codesandbox.io/s/owkwb
Bug description
Same bug as reported here: #5157
Slides Grid does not work in React the official CodeSandbox is broken too, I can't find what exactly the problem is but the Core demo in CodeSandbox is working fine, but React is broken, even it is the same as Core.
Expected Behavior
Working Slides Grid in React
Actual Behavior
https://codesandbox.io/s/owkwb
Swiper version
7.3.1
Platform/Target and Browser Versions
macOS - Chrome
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

[ ] I'm willing to open a PR

.swiper-slide {
  height: calc((100% - 30px) / 2) !important;
}


In progress new logo

As mentioned on the triage call today, there should be a better AL logo. I started brainstorming some designs tonight, and figured I'd make a PR for them:
Design 1: punchcards
The one I worked the most on is based on weaver punchcards

However, when shrunk down to the size of the bar, it's not as good IMO.

I also made a shorter version that just says ALW, but that could be confusing:

Design 2:
This one is much rougher, only spent a few minutes on it. It just includes a spinning wheel instead of the "Weaver" text.

Any feed back or other brainstormed ideas welcome!

I prefer the punchcard, even when it is scaled down I think it looks quite nice

Love the punchcard design, brilliant! 🌹
Maybe add two more punches in the middle bar of the W to make it taller?

Sorry, definitely let the ball drop on this, I was doing it in my off time. Good to see everyone likes it, I can add that suggestion and make it a bit easier to use sometime this week!


Add add_locations method to SimpleWriter

Hi, and thanks for pyosmium.
I've been relying on it for my fork of phyghtmap, used to build contour lines from HGT elevation files.
This tool outputs elevation contour lines in OSM formats (PBF being preferred), relying on ways containing a LOT of location nodes. The current public API of SimpleWriter enforces a call from Python to C++ for each and every node, which is very resource consuming when adding a lot of them.
This PR adds an efficient method to add a lot of nodes containing only location and ID.
More context and basic benchmark are available here: https://github.com/agrenott/pyhgtmap/issues/15

Hi @lonvia , any feedback on my proposal? Thanks

I'm fine with adding such a add_locations() function in general. I do have doubts about adding a required dependency to numpy. Is it much of a performance issue to hand in a Python array of int-Coordinate tuples instead?

I'm fine with adding such a add_locations() function in general. I do have doubts about adding a required dependency to numpy. Is it much of a performance issue to hand in a Python array of int-Coordinate tuples instead?

I'm fine with adding such a add_locations() function in general. I do have doubts about adding a required dependency to numpy. Is it much of a performance issue to hand in a Python array of int-Coordinate tuples instead?

According to pybind documentation (https://pybind11.readthedocs.io/en/stable/advanced/pycpp/numpy.html) numpy is a runtime dependency. I understand it's needed only when calling the new method. I'll confirm with a test while fixing other pr issues.
I'd rather keep the numpy array interface, which is much more performant and avoid massive date conversion.

Looks like the "build-ubuntu" builds are failing for some external reason: I guess some change introduced in recent pybind changes, as those builds use latest version from github where "build-default' ones rely on versioned dependencies.
I don't really understand why there are 2 different ways to handle builds dependencies, and feel using the latest version from GitHub is quite hazardous. How do you want to handle this?

The change of behavior comes from this commit from pybind: https://github.com/pybind/pybind11/commit/f70165463328c218d118204efc13aac93783d17b
Starting this commit, many tests fail with such error:
    def __init__(self, parent: 'cosm.TagContainerProtocol') -> None:
        self._pyosmium_data = parent
>       self.iterator = self._pyosmium_data.tags_begin()
E       RuntimeError: return_value_policy = move, but type osmium::memory::CollectionIterator<osmium::Tag const> is neither movable nor copyable!

build/lib.linux-x86_64-cpython-310/osmium/osm/types.py:57: RuntimeError

I've fixed the compatibility issue with recent pybind11.

Was so focused on the latest version compatibility I forgot the current one's... Should be fixed now.
BTW, is there any way to automate the execution of CI/CD on PR update? It would speed up the collaboration quite a lot.

Now it seems Ubuntu 18.04 workers are deprecated...
https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/

Could you please approve the CI workflow?

Hi, could you please approve the CI workflow?

Hi @joto , I'm sorry I hurt your feelings. I'm just trying to contribute to an open source project, going further than what I needed to fix the existing code base, and you can imagine from my perspective waiting for more than a week for one of the maintainers to click on a button is frustrating as well.
But fine, if you don't have time to follow up on this project I guess I'll simply fork it and save time and frustration to everyone...

Sorry if I gave the impression that my comment on numpy was optional. I won't take a PR where a function can only be used with numpy. It's fine if it can handle numpy arrays next to Python arrays but if only numpy arrays are supported, it's a no-no.
The CI-related stuff should go on a different PR to not be tied to the design discussion around add_locations().

That's fine, I'll handle what I need on the fork.
You may of course re-use whatever part you may find useful.

I've cherry-picked the pybind fix to master now.


populate init for modules

closes #190.
Also fixes some circular dependencies. Certificate objects now don't touch CPEDataset and CVEDataset, also References were moved from model module to sample.Certificate

Btw. instead of listing __all__ manually which can get tedious, there is the public package (installed as atpublic). With it you can do:
from public import public

@public
class Something:
  ...

and Something will automagically be added to __all__.

Btw. instead of listing __all__ manually which can get tedious, there is the public package (installed as atpublic). With it you can do:
from public import public

@public
class Something:
  ...

and Something will automagically be added to __all__.

magic. One of the reasons I've listed __all__ is because of flake8 complaining about unused imports in __init__.py :smile: