[DataStore] web socket does not recover after extended background time

Describe the bug
We have a working Amplify application that uses DataStore.
DataStore is working as expected under normal conditions.
If the app is placed into the background (but not terminated) for a short period of time say < 50 minutes, DataStore (or AppSync) determines that the socket is stale and disconnected, and it successfully re-connects.
If the app is in the background (and does not terminate) for a long period of time, say > 50 minutes, DataStore appears to go through the same recovery procedure but the reconnection is not successful and the app must be restarted.
To Reproduce
Run application, place the application in the background by tapping the home button.
Wait for various durations (we haven't got this down to an exact number, but an hour definitely does it), and activate the application
Expected behavior
We expect the socket connection to be re-connected and data sync to resume
Also DESIRED behaviour would be hub events that explicitly tell us when the DataStore sync is no longer operating and/or when the web socket connection cannot be established
Screenshots
If applicable, add screenshots to help explain your problem.
Environment(please complete the following information):
PODS:
  - Amplify (1.0.0):
    - Amplify/Default (= 1.0.0)
  - Amplify/Default (1.0.0)
  - AmplifyPlugins/AWSAPIPlugin (1.0.0):
    - AppSyncRealTimeClient (~> 1.1.0)
    - AWSPluginsCore (= 1.0.0)
    - ReachabilitySwift (~> 5.0.0)
  - AmplifyPlugins/AWSCognitoAuthPlugin (1.0.0):
    - AWSMobileClient (~> 2.13.4)
    - AWSPluginsCore (= 1.0.0)
  - AmplifyPlugins/AWSDataStorePlugin (1.0.0):
    - AWSPluginsCore (= 1.0.0)
    - SQLite.swift (~> 0.12.0)
  - AmplifyPlugins/AWSPinpointAnalyticsPlugin (1.0.0):
    - AWSPinpoint (~> 2.13.4)
    - AWSPluginsCore (= 1.0.0)
  - AmplifyPlugins/AWSS3StoragePlugin (1.0.0):
    - AWSPluginsCore (= 1.0.0)
    - AWSS3 (~> 2.13.4)
  - AppSyncRealTimeClient (1.1.6):
    - Starscream (= 3.0.6)
  - AWSAppSync (3.1.2):
    - AppSyncRealTimeClient (~> 1.1)
    - AWSCore (~> 2.13.0)
    - ReachabilitySwift (~> 5.0.0)
    - SQLite.swift (~> 0.12.2)
  - AWSAuthCore (2.13.4):
    - AWSCore (= 2.13.4)
  - AWSCognitoIdentityProvider (2.13.4):
    - AWSCognitoIdentityProviderASF (= 1.0.1)
    - AWSCore (= 2.13.4)
  - AWSCognitoIdentityProviderASF (1.0.1)
  - AWSCore (2.13.4)
  - AWSMobileClient (2.13.4):
    - AWSAuthCore (= 2.13.4)
    - AWSCognitoIdentityProvider (= 2.13.4)
  - AWSPinpoint (2.13.4):
    - AWSCore (= 2.13.4)
  - AWSPluginsCore (1.0.0):
    - Amplify (= 1.0.0)
    - AWSCore (~> 2.13.4)
    - AWSMobileClient (~> 2.13.4)
  - AWSS3 (2.13.4):
    - AWSCore (= 2.13.4)
  - PromisesObjC (1.2.8)
  - PromisesSwift (1.2.8):
    - PromisesObjC (= 1.2.8)
  - ReachabilitySwift (5.0.0)
  - SDWebImage (5.8.0):
    - SDWebImage/Core (= 5.8.0)
  - SDWebImage/Core (5.8.0)
  - Signals (6.1.0)
  - SQLite.swift (0.12.2):
    - SQLite.swift/standard (= 0.12.2)
  - SQLite.swift/standard (0.12.2)
  - Starscream (3.0.6)

Swift Version : latest

Device Information (please complete the following information):

Device: iPhone 11 simulator, iPhone XR (real device), and indicated on other test devices
iOS Version: 13.6
Specific to simulators:

Additional context
We log all the HUB events and indicate when the application is coming out of background with trace messages.
Here is the app starting up, then being placed into the background, then coming out of the background after a short period of time ( ~ 10 minutes) -- logs have been cleaned for anyone sensitive info. The DATASTORE IS READY message is a DataStore.syncStarted hub event.
*** SCENE DID ENTER FOREGROUND ***
*** SCENE DID BECOME ACTIVE ***
AMPLIFY EVENT Auth.fetchSessionAPI
AMPLIFY EVENT Amplify.configured
AMPLIFY EVENT Amplify.configured
AMPLIFY EVENT Amplify.configured
AMPLIFY EVENT Amplify.configured
AMPLIFY EVENT Amplify.configured
AMPLIFY EVENT Amplify.configured
AMPLIFY EVENT API.subscribe
AMPLIFY EVENT API.subscribe
AMPLIFY EVENT API.subscribe
AMPLIFY EVENT API.subscribe
AMPLIFY EVENT Auth.fetchSessionAPI
AMPLIFY EVENT API.subscribe
AMPLIFY EVENT API.subscribe
AMPLIFY EVENT Auth.fetchSessionAPI
AMPLIFY EVENT API.subscribe
2020-08-10 18:39:57.671315-0400 MyAppDev[18425:835286] Header - Optional("{\"Authorization\":\"...")
2020-08-10 18:39:57.671852-0400 MyAppDev[18425:835281] Connecting to url ...
 (AppSyncRealTimeClient.ConnectionProviderError error 3.)
*** SCENE DID ENTER FOREGROUND ***
AMPLIFY EVENT API.subscribe
2020-08-10 18:59:59.811407-0400 MyAppDev[18425:836263] The operation couldn’t be completed. (AppSyncRealTimeClient.ConnectionProviderError error 3.)
AMPLIFY EVENT API.subscribe2020-08-10 18:59:59.812452-0400 MyAppDev[18425:836263] The operation couldn’t be completed. (AppSyncRealTimeClient.ConnectionProviderError error 3.)
AMPLIFY EVENT Auth.fetchSessionAPI
AMPLIFY EVENT API.subscribe
2020-08-10 18:59:59.824698-0400 MyAppDev[18425:836263] The operation couldn’t be completed. (AppSyncRealTimeClient.ConnectionProviderError error 3.)
AMPLIFY EVENT API.subscribe
--- bunch of these ---
2020-08-10 18:59:59.828631-0400 MyAppDev[18425:853136] [AWSModelReconciliationQueue] receiveCompletion: error: DataStoreError: subscription item event failed with error
Caused by:
APIError: subscription item event failed with error
Caused by:
connection
2020-08-10 18:59:59.828627-0400 MyAppDev[18425:837350] [AWSModelReconciliationQueue] receiveCompletion: error: DataStoreError: subscription item event failed with error
--- bunch of these ---
AMPLIFY EVENT API.subscribe
2020-08-10 18:59:59.832345-0400 MyAppDev[18425:853159] Unsubscribe - 4C44A69F-E5AB-4A09-BF14-C8CBA4D18CAC
2020-08-10 18:59:59.832352-0400 MyAppDev[18425:836263] The operation couldn’t be completed.
AMPLIFY EVENT API.subscribe
2020-08-10 19:00:00.134966-0400 MyAppDev[18425:853161] Connecting to url ...
AMPLIFY EVENT API.subscribe
--- bunch of these ---
2020-08-10 19:00:00.542672-0400 MyAppDev[18425:853159] WebsocketDidConnect
2020-08-10 19:00:00.542793-0400 MyAppDev[18425:853159] WebsocketDidConnect, sending init message...
2020-08-10 19:00:00.542946-0400 MyAppDev[18425:853159] Validating connection
AMPLIFY EVENT Auth.fetchSessionAPI
2020-08-10 19:00:00.551280-0400 MyAppDev[18425:836974] Message type does not need signing - connectionInit("connection_init")
2020-08-10 19:00:00.551394-0400 MyAppDev[18425:836974] Websocket write - {"type":"connection_init"}
2020-08-10 19:00:00.576357-0400 MyAppDev[18425:836974] WebsocketDidReceiveMessage - {"type":"connection_ack","payload":{"connectionTimeoutMs":300000}}
2020-08-10 19:00:00.576843-0400 MyAppDev[18425:836974] WebsocketDidReceiveMessage - {"type":"ka"}

2020-08-10 19:00:00.576986-0400 MyAppDev[18425:853159] Start subscription
--- bunch of these ---

Here is the app coming out of the background (the initial startup will be the same) after around > 50 minutes... the web socket connection is never recovered
2020-08-10 19:57:58.496945-0400 MyAppDev[18710:891059] Validating connection
*** SCENE DID ENTER FOREGROUND ***
2020-08-10 19:57:58.507395-0400 MyAppDev[18710:891060] Realtime connection is stale, disconnected.
2020-08-10 19:57:58.532293-0400 MyAppDev[18710:860934] The operation couldn’t be completed. (AppSyncRealTimeClient.ConnectionProviderError error 3.)
AMPLIFY EVENT API.subscribe
2020-08-10 19:57:58.533215-0400 MyAppDev[18710:860903] [AWSModelReconciliationQueue] receiveCompletion: error: DataStoreError: subscription item event failed with error
Caused by:
APIError: subscription item event failed with error
Caused by:
connection
2020-08-10 19:57:58.533452-0400 MyAppDev[18710:860934] The operation couldn’t be completed. (AppSyncRealTimeClient.ConnectionProviderError error 3.)
AMPLIFY EVENT API.subscribe
2020-08-10 19:57:58.533800-0400 MyAppDev[18710:891061] Unsubscribe - B14FF4F0-9809-435C-92A9-DA4191E506B3
2020-08-10 19:57:58.533893-0400 MyAppDev[18710:891060] [AWSModelReconciliationQueue] receiveCompletion: error: DataStoreError: subscription item event failed with error
Caused by:
APIError: subscription item event failed with error
Caused by:
connection
2020-08-10 19:57:58.533895-0400 MyAppDev[18710:860934] The operation couldn’t be completed. (AppSyncRealTimeClient.ConnectionProviderError error 3.)
2020-08-10 19:57:58.534015-0400 MyAppDev[18710:891061] Unsubscribe - 9069D0DA-8C9C-4546-AD3A-3157B249EC8F
2020-08-10 19:57:58.534162-0400 MyAppDev[18710:891061] Unsubscribe - 10EC4ABB-7A18-425D-BC25-1B4C3A78EB84
AMPLIFY EVENT API.subscribe
2020-08-10 19:57:58.534349-0400 MyAppDev[18710:891061] Unsubscribe - 1D7636A1-308D-427B-BF3E-877CAF973D49
2020-08-10 19:57:58.534475-0400 MyAppDev[18710:860933] [AWSModelReconciliationQueue] receiveCompletion: error: DataStoreError: subscription item event failed with error
Caused by:
APIError: subscription item event failed with error
Caused by:
connection
2020-08-10 19:57:58.534537-0400 MyAppDev[18710:860934] The operation couldn’t be completed.  (AppSyncRealTimeClient.ConnectionProviderError error 3.)
--- and it repeats ---
2020-08-10 19:58:00.042775-0400 MyAppDev[18710:891087] WebsocketDidConnect
2020-08-10 19:58:00.042908-0400 MyAppDev[18710:891087] WebsocketDidConnect, sending init message...
2020-08-10 19:58:00.043000-0400 MyAppDev[18710:891087] Validating connection
2020-08-10 19:58:00.043374-0400 MyAppDev[18710:891087] Realtime connection is stale, disconnected.
2020-08-10 19:58:00.043632-0400 MyAppDev[18710:860934] The operation couldn’t be completed. (AppSyncRealTimeClient.ConnectionProviderError error 3.)
--- and again ---
2020-08-10 19:58:01.040277-0400 MyAppDev[18710:891102] WebsocketDidConnect
2020-08-10 19:58:01.040374-0400 MyAppDev[18710:891102] WebsocketDidConnect, sending init message...
2020-08-10 19:58:01.040438-0400 MyAppDev[18710:891102] Validating connection
2020-08-10 19:58:01.040772-0400 MyAppDev[18710:891102] Realtime connection is stale, disconnected.
2020-08-10 19:58:01.041108-0400 MyAppDev[18710:860934] The operation couldn’t be completed. (AppSyncRealTimeClient.ConnectionProviderError error 3.)
--- and again ---
2020-08-10 19:58:06.588616-0400 MyAppDev[18710:891090] WebsocketDidConnect
2020-08-10 19:58:06.588748-0400 MyAppDev[18710:891090] WebsocketDidConnect, sending init message...
2020-08-10 19:58:06.588865-0400 MyAppDev[18710:891090] Validating connection
2020-08-10 19:58:06.589365-0400 MyAppDev[18710:891102] Realtime connection is stale, disconnected.
2020-08-10 19:58:06.589666-0400 MyAppDev[18710:860903] The operation couldn’t be completed. (AppSyncRealTimeClient.ConnectionProviderError error 3.)
... goes on for a while

Hi @Tom-RulesCube ,
I suspect the issue you are seeing is related to a fix we released in Amplify 1.0.6, which depends on the AppSyncRealTimeClient 1.0.4.
In AppSyncRealTimeClient 1.0.4, we believe addressed this issue here:
https://github.com/aws-amplify/aws-appsync-realtime-client-ios/commit/74c5079ecd67e4cdd47a69d3d5c92c33c9eb84b1
Based on the logs you uploaded, it looks like you are using Amplify 1.0.0.  Would you be able to upgrade your version of Amplify to 1.0.6 and see if this issue is resolved?

If I delete Podfile.lock and lock and do a naive install, I end up with Amplify 1.0.0 and AppSyncRealTimeClient 1.1.6 ... should I try a pod install directly from the repo?

@Tom-RulesCube You need to do a pod update, not just a pod install, in order to get the latest version of Amplify. Alternately, you can remove the existing Podfile.lock and pod install --repo-update

Sorry I deleted my original response to get some more info ... but I was wondering because my AppSyncRealTimeClient was 1.1.6 not 1.0.6 .. in any case I'll pod update and see where that puts me

Right so it's AppSyncRealTimeClient 1.4  ... have this installed and will re-test shortly.

Question though: is there any housekeeping we should or could be doing in the transition to background/foreground that makes sense?
Are operations performed on DataStore while it is validating the socket connection (and potentially re-connecting) valid?

Hi @Tom-RulesCube ,

is there any housekeeping we should or could be doing in the transition to background/foreground that makes sense?

If you are using DataStore in your application, there is no housekeeping (that I'm aware of) that you are responsible for if the user background/foregrounds the app.

Are operations performed on DataStore while it is validating the socket connection (and potentially re-connecting) valid?

If you are performing operations on datastore (query, save, delete), while the socket connections and/or subscriptions are being made (or rather, while the sync engine is attempting to come up), it should be fine.  These operations are applied to your local DataStore first (currently implemented as a SQLite3 db), and these changes are eventually sync'ed with the backend once the entire sync engine comes up.
More inforomation can be found here: https://docs.amplify.aws/lib/datastore/how-it-works/q/platform/ios but feel free to let us know if you have specific questions about our documentation.  We are always striving to make our documentation better/clearer/more easier to understand, so any feedback would be greatly appreciated!

Upgrading to 1.4 Amplify appears to have addressed the issue, although we'll need a little more testing in the field to see how robust this in real world conditions.

Optimistically closing the issue hoping that the issue is resolved. Feel free to reach back if you are still facing any issue.


reject duplicate transitions (same starting state and input)

closes #51

Coverage decreased (-0.1%) to 99.894% when pulling 8ffad60ed1b1ebc88b0f8adccaca4f6bc32a83e2 on warner:51-unique into 56e4db26a85a8c274cf5911aecdb45d66d051bf0 on glyph:master.

Ah, so that's why you don't use pass in the test cases. Let me fix that..

Coverage remained the same at 100.0% when pulling 06f6e0ae1139ed2858681f8811c47b272abab328 on warner:51-unique into 56e4db26a85a8c274cf5911aecdb45d66d051bf0 on glyph:master.


Init MDX

closes #2203
Dummy File is located at /docs
Disclaimer: I'm not sure if this is following best practices, maybe a more familiar next-dev should have a look into it 😅

[x] MDX Setup
[x] Header Link
[x] setup syntax highlighting (which surprisingly doesn't get delivered OOB :o )

I made some tweaks and added the header link, thank you for setting up @Cahllagerfeld
Here is the screenshot of what we have so far, let me know what you think...


How do I update the user.js?

Hi, a newbie question sorry. I would like to know how to update the user.js version after version keeping the modifications I made. Thank you very much for your work. Best regards.

https://github.com/yokoffing/Betterfox/blob/229d6697baae385de9a979900d0bc15693e7df5d/user.js#L4-L8
Put your modifications ("overrides") at the bottom of the file, and move them over when you update your user.js.
https://github.com/yokoffing/Betterfox/blob/229d6697baae385de9a979900d0bc15693e7df5d/user.js#L271-L275

Thank you very much, best regards!


nginx log format error 1033

I'm trying to use goaccess on ubuntu 16.04 for analyze nginx log and using a custom log format in my goaccess.conf.
here's my goaccess.conf file:
time-format %T
date-format %d/%b/%Y
log_format [%d:%t %^] %s %h "%^" %T %v "%r" %r_length %b "%R" "%u"

Here's the error I get when I run goaccess  -f access_log
goaccess  -f access_log

GoAccess - version 0.9.4 - Feb  7 2016 10:13:30
Config file: /etc/goaccess.conf

Fatal error has occurred
Error occured at: src/goaccess.c - main - 1033
Nothing valid to process.

this is my log format
[$time_local] $status $remote_addr "$http_x_forwarded_for" $request_time $host "$request" $request_length $bytes_sent "$http_referer" "$http_user_agent"

this is my access log
[15/May/2018:00:05:48 +0800] 200 <IP_ADDRESS> "XX.XXX.XX.XXX" 0.202 www.xxx.com "GET /XXXXXXX/cover.jpg HTTP/1.0" 609 4811 "http://XXXXXXX/4992" "Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1"

thanks

This should work and please make sure to upgrade to the latest version.
goaccess access.log --log-format='[%d:%t %^] %s %h %^ %T %v "%r" %^ %b "%R" "%u"' --date-format=%d/%b/%Y --time-format=%T

upgrade 1.2 is working
thanks very much

Glad that worked. Stay tuned for the upcoming release!


Security And Privacy Concerns for input data on latest release

in the latest release we are getting following error while installing private GPT
LLM model downloaded!
Downloading tokenizer mistralai/Mistral-7B-Instruct-v0.2
Traceback (most recent call last):
  File "/home/epanumk/miniconda3/envs/privategpy/lib/python3.11/site-packages/huggingface_hub/utils/_errors.py", line 270, in hf_raise_for_status
    response.raise_for_status()
  File "/home/epanumk/miniconda3/envs/privategpy/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2/resolve/main/config.json

In order to resolve this we need to login to hugging face and generate token .   Which was not the case earlier
How can i make sure that my input data is still secure and is not exposed to outside.

This project is open source and you can read if it sends some of your data outside easily. As for the huggingface part, its just required when you download the models from the start just to verify if youre their costumer, this is not a scope from this app but from the huggingface itself

You'll need a HF_TOKEN in order to download mistral tokenizer. Please check: https://huggingface.co/docs/hub/en/models-gated
Let's try to find a solution to avoid having to download something when it is not necessary (e.g. ollama, api, etc).


Example: Copying the .h to a .ixx module would look like:

(From the reddit comment)
// Noisy.ixx file:

-#pragma once
+module;

#include <iomanip>
#include <iostream>

+export module Noisy;

-namespace vz {
+ export namespace vz {

Normally you could just export the public stuff and keep the internals 'hidden' 😃
This is not a real issue, just an example if you would like to use it as a module.

So if I understand correctly, the .ixx file would be an addition, not a replacement, to the .h file? I don't have experience using modules, so I think you would be better at submitting a PR if you think it is a valuable addition. Personally, as this is intended primarily for code exploration, I find modules a little overkill in this case, but I don't mind if it doesn't affect non-modules users.


Optical improvements

Show popup on nodes
Remove " from node names

I am not sure which unit the size is in?
Preview:

Thanks! The size is in 'vars'.
The quotes could actually be useful though - might be worth keeping - for instance what about seeing "" - or there is a difference between "5" and 5 - because one is a string and one is a number


How to create a custom button

Hi,
I am trying to figure out how could i automate a task "clean a zone" and then stop. So that i could empty the trash bin and sent the robot back to home.
Is that possible via custom button? If yes, how can i do that?
Kindly,
Jonathan

Just to add to this for others, here's my example for multiple buttons
`custom_buttons:

service: script.clean_dining_room
icon: mdi:table-chair
service: script.clean_dining_room
icon: mdi:sofa
service: script.clean_living_room
icon: mdi:stove
service: script.clean_kitchen
icon: mdi:stairs
service: script.clean_landing
icon: mdi:toilet
service: script.clean_toilet
icon: mdi:bed-king
service: script.clean_master_bedroom
icon: mdi:shower
service: script.clean_master_bathroom

and here's my background script
#Clean Dining Room clean_dining_room:   alias: "Dr Robotnick Clean Dining Room"   sequence:     - service: mqtt.publish       data:         topic: valetudo/robot/ZoneCleaningCapability/start/set         payload: "[\"ID_OF_ROOM_HERE\"]"
In my configuration.yaml I have this line to point to my scripts.yaml
script: !include scripts.yaml


rocksdb is too slow and taking too much RAM

I'm porting EOSIO 2.1 to WAX (https://github.com/cc32d9/wax2.1), and tried to run a node with rockdb backend:
backing-store = rocksdb
persistent-storage-num-threads = 6
persistent-storage-max-num-files = 10
persistent-storage-write-buffer-size-mb = 512

state history is also enabled.
When starting from a portable snapshot, nodeos RAM consumption grew up to 88GB, then it lowered to 67GB (still twice as much as chaindb in heap mode). After stopping and starting the node, it occupies about 12GB in RAM.
Resynching is very slow: at 100% CPU load (Intel Core i9-9900K, cores running at 4.5Ghz), it chews up 27 blocks per 30 seconds from recent WAX history. A node in chaindb would normally resync at about 30 blocks per second.
the storage I/O is very low, but it's difficult to compare because the node is not processing as many blocks per second as one with chaindb.

After running overnight, the process occupies 15GB RAM. It looks like there's no control over memory recycling, or maybe it's a memory leak.

We need to reevaluate our rocksdb approach. That work is in progress.


Add New Favicon

I want to add a new favicon to the website replacing the old One which is as same as Twitter. The new logo will be completely the website's own and customized.

I have to work on this issue kindly assign me it under gssoc 2023 tag

Please assign me this issue under GSSoC'23, thank you.

Closing this because of no response or pr from your side.


Login & Logout

Hello,
as you asked on your stream, here's some contribution.
I don't know if it's any good, I have never really done anything in JavaFX. :-)
That PircBotX might need some attention, it likes to throw exceptions when logging out immediately after login.

Hmm, with the current branch the failed login hanging brings up a bug in one of my additions, I think your change will resolve this.

Hi. thanks for your contribution, I'll look into it

Can we decide what we want to do with this?


Revert "Merge pull request #566 from viccuad/feat-webhooks-reconciled"

Description
I've opened this PR to revert the change adding owner reference the webhooks.  This is necessary because the version v1.9.0-rc2 containing this feature is not able to set the admission policy as active. This is the error from the controller logs:
2023-11-01T14:05:06Z    ERROR   Reconciler error        {"controller": "admissionpolicy", "controllerGroup": "policies.kubewarden.io", "controllerKind": "AdmissionPolicy", "AdmissionPolicy": {"name":"pod-privileged","namespace":"kubewarden"}, "namespace": "kubewarden", "name": "pod-privileged", "reconcileID": "cf067c30-e596-4eaa-ae89-91dc683a659e", "error": "error reconciling validating webhook\ncannot set OwnerReference on WebhookConfiguration: cluster-scoped resource must not have a namespace-scoped owner, owner's namespace kubewarden"}

As far as I can see, the issue is that we are using a namespace scoped resource (AdmissionPolicy) as the owner of a cluster scoped resource (ValidatiningWebHook). This is not allowed:
Cross-namespace owner references are disallowed by design. Namespaced dependents can specify cluster-scoped or namespaced owners. A namespaced owner must exist in the same namespace as the dependent. If it does not, the owner reference is treated as absent, and the dependent is subject to deletion once all owners are verified absent.

Cluster-scoped dependents can only specify cluster-scoped owners. In v1.20+, if a cluster-scoped dependent specifies a namespaced kind as an owner, it is treated as having an unresolvable owner reference, and is not able to be garbage collected.

In v1.20+, if the garbage collector detects an invalid cross-namespace ownerReference, or a cluster-scoped dependent with an ownerReference referencing a namespaced kind, a warning Event with a reason of OwnerRefInvalidNamespace and an involvedObject of the invalid dependent is reported. You can check for that kind of Event by running kubectl get events -A --field-selector=reason=OwnerRefInvalidNamespace.

I'm fine with the revert, we can figure out the proper solution without blocking the 1.9 release

@kravciak it would be nice to expand the e2e tests to catch this type of regression we've introduced


feat(select): add select clearable prop

This PR fixes the breaking change:

Select component shouldn't have clear button by default, instead clearable attribute should be given to set it clearable

Sorry to being late to the discussion but I think this change proposes bad UX in the case of "non-required and non-clearable" selects. User initially don't need to make a selection but once they make, then there is no returning back.
I think instead we should promote using "required" attribute properly as we already discussed in the PR we added this feature.

What do I do if I want to display clear button to user but select is also required? I believe the prop was necessary.

In single selection mode with a required select, what is the purpose of clearing the selection? You already need to make selection anyway?

Considering the complexity and diversity of real-world business flows, it is challenging to anticipate every scenario that users might encounter.
Just an example that came into my mind:
Imagine a real-time based scenario where the user may select an option (optional), however after the selection I don't want the option to be cleared. There are many cases that you cannot cover, so this should solely depend on the developer.
Or there could be an input depends on the select component, if it has value it will take specific action and don't want it to be cleared back, whilst it could be optional at beginning.
Providing a "clearable" prop gives developers the flexibility to customize the behavior of the select component based on specific use cases. Some situations might require a clear button, while others may not. Giving control to the developers allows them to align the component with the project's requirements.


about the running time cost

May I ask you the running time of one video? I find it cost a lot of time to run one demo, about 3 hours or so in 1 A100. I wonder whether this time cost is a normal case. Or what is your time cost of running one video

Hi @CJ416 ,
Inference of a whole cascaded video diffusion pipeline takes some time.
In the case of training with a single video of 8 frames, training should be done within 4 minutes.
Once training is done, generating one video takes about 15 minutes.

To minimize the time consumption, you can modify the yaml files in configs.
For example,
you can remove the target prompts like from this
validation_sample_logger:
prompts: [
"a car is moving, underwater",
"a car is moving, under the deep sea",
"a tank is moving on the snow",
"a lamborghini is moving in space",
"a lamborghini is moving in desert",
]
to this
validation_sample_logger:
prompts: [
"a tank is moving on the snow",
]

Also, we recommend to set validation_steps: 100 in the yaml file to bigger number like validation_steps: 200 or validation_steps: 400.


Error with PHP 8

Hello,
the formatting doesn't work with PHP 8.
Screenshot with error message attached below.
With PHP 7 everything works correctly.

+1

Same problem.

+1

See this solution that works:
https://github.com/nanch/phpfmt_stable/issues/77

I'm starting with it.
https://github.com/driade
While it's added on Sublime Text packege manager to may download it and save it to your plugins directory. I'd also recommend deleting the old one.


fix(docs): remove unnecessary quotes

I found unnecessary quotes, and delete them.
before:

after:

Hi @dev-mkr, thank you for the PR. However those quotes are not unnecessary. Names cannot contain hyphens in JS.
Please close this PR.


Add developers and help to navbar

Add a developers dropdown and a help link to the navbar. Help should redirect to the Neon2 wiki.

Added an issue guide to the wiki.

added help button that redirects the the Neon2 wiki. Developers will be listed in the wiki.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_4bcafdd6-3063-49d1-a67c-d37884df3f85/pull/1 is merged into live branch.
Auto archive content to https://github.com/OPS-E2E-PPE/docs-archive-test-target_4bcafdd6-3063-49d1-a67c-d37884df3f85.git

Docs Build status updates of commit bbfcb75:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error]

Cannot sync git repo to specified commit because branch Archive_master_2019-10-09-16-19-50 has been deleted or has been force pushed: fatal: Couldn't find remote ref Archive_master_2019-10-09-16-19-50

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


[237] Missing Command

Title:
Missing Command
Description:
Command is missing.
Summary:
Customer is reporting that a command is missing. Further investigation may be needed to determine the specific issue.
Info
Reported by: Guest<EMAIL_ADDRESS>- Open in Gleap
Location: PL
Type: 🚨 BUG
🔗 Open share link
🌍 Open ticket in Gleap
Metadata
browserName: Chrome(<IP_ADDRESS>)
userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
browser: Chrome
systemName: Windows
sessionDuration: 15659
devicePixelRatio: 1.25
screenWidth: 1536
screenHeight: 864
innerWidth: 1536
innerHeight: 730
currentUrl: https://docs.near.org/sdk/rust/testing/integration-tests
language: en
sdkVersion: 10.1.0
sdkType: javascript
environment: prod

Internal note 📝: Customer is reporting that a command is missing. Further investigation may be needed to determine the specific issue.


Please explain this

Opening all the images in photoshop using the Place command to import all images as new layers.

File > Place
Select the file you want to place
3 Click Place.

This will add the image as a new layer to the current document. Very useful for this challenge as it's important to be able to move individual images.
You can read more about the place command here: https://helpx.adobe.com/photoshop/using/placing-files.html.
Hope that clears it up for you.

Yes, thank you

Playing in team with my buddies from school!


backspace can't remove char after the latest YCM update.

In above git, I trigger BS the result is like TAB in some degree, not delete a char.

disable ycm for certain buffer.

Works, thanks a lot!


Android app/build.gradle error

Please provide all the information requested. Issues that do not follow this format are likely to stall.
Description
The issue is related to<EMAIL_ADDRESS>with the error message of cannot resolve symbol 'build' in app/build.gradle, which happens when I upgrade to 0.64.2. My previous version is 0.64.0 does not have that.
React Native version:
System:
OS: Windows 10 10.0.19042
CPU: (8) x64 Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz
Memory: 5.03 GB / 15.92 GB
Binaries:
Node: 14.16.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
npm: 6.14.12 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
Versions: 10.0.18362.0, 10.0.19041.0
IDEs:
Android Studio: 4.1.3
Visual Studio: 16.10.31410.357 (Visual Studio Community 2019)
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: ^0.64.2 => 0.64.2
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.

Upgrade to<EMAIL_ADDRESS>Re-sync app/build.gradle

Expected Results
Describe what you expected to happen.
Upgrade to<EMAIL_ADDRESS>should show no error
Snack, code example, screenshot, or link to a repository:

notice: with using Avatar.Image from react native paper it work!

i think that's because you don't have an Android SDK installed


[Bug] Use corev1.ConditionTrue ?

Describe the bug
A clear and concise description of what the bug is.
Not a bug, just a question i have :)
Here https://github.com/integr8ly/grafana-operator/blob/master/controllers/common/readiness_checks.go#L11 i see ConditionStatus is an untyped string set to "true". Why not use corev1.ConditionTrue ?
@HubertStefanski

@AdheipSingh, the initial code for that was written 2 years ago (before my time), so your guess is as good as mine 😅  I would assume that this was to avoid having magic strings in code, I suppose there's no harm in refactoring to use  corev1.ConditionTrue , they'll both work the same AFAICT

ha cool, ill send a PR with some tweaks. Thanks @HubertStefanski

ping @AdheipSingh is this something that you have had a time to look at?

@NissesSenap  missed this, ill PR it sometime this week.
Thanks for the ping ! l

I will close this issue for now.
If anyone feels that they have the time to look in to it please feel free to do so.


New error handling design

message and type became mandatory in TypedError. It should prevent us from creating UntypedErrors, and errors without description in the future.
errorPath added to all ServerErrros's as a part of errorContext.
error context moved to ServerError since it's ServerError specific.
typed errors deleted

Breaking Changes:

TypedError.message became mandatory field
TypedError.type became mandatory field
context moved from TypedError to ServerError
Transaction errors changed their type from X_Error to ServerError

TypedError is exported as a part of near-api-js interface, but I don't think that it's intended to be used in other projects.

I Will request feedback after these changes: https://github.com/near/near-api-js/discussions/515#discussioncomment-543925

Update: Serhii will break out some code into separate PRs.


Added-icon-for-meshmodel-prometheus-component-Alertmanager

This PR fixes icon for Promethueus Alertmanager
This PR fixes #https://github.com/meshery/meshery/issues/8736
Signed commits

[x] Yes, I signed my commits.

Good work @Ayush9026 🚀


Error : Extra data: line 1 column 11 (char 10)

I followed config lines in README.md but I have this error message in prompt instead of the execution time :
"Extra data: line 1 column 11 (char 10)"

Your bash binding seems somehow corrupt.
Could you execute the commands below and attach the output in your reply?
echo "$PS0"
echo "$_POWERLINE_EXECTIME_TIMER_START"

Thank's for your reply.
Here what I get :
 arnaud > ~ > echo "$PS0"
\[${PS1:$((_POWERLINE_EXECTIME_TIMER_START="${EPOCHREALTIME/./}")):0}\]
Extra data: line 1 column 11 (char 10)
 arnaud > ~ > echo "$_POWERLINE_EXECTIME_TIMER_START"
1726990689
Extra data: line 1 column 11 (char 10)

That's quite strange. PS0 is correct, but _POWERLINE_EXECTIME_TIMER_START is not. The latter should be a decimal number with 16 digits, e.g.<PHONE_NUMBER>076139.
Furthermore, even if it is incorrect, a JSON decode error should not be raised as long as it is still decimal.
 rongrong  ~                           0.074ms
   _POWERLINE_EXECTIME_TIMER_START=1726990689
 rongrong  ~                        1.727e+09s
   _POWERLINE_EXECTIME_TIMER_START=0
 rongrong  ~                        1.727e+09s
  

Could you check the versions of Bash and Powerline?
In addition, try these commands one after another to see what happens:
echo "$EPOCHREALTIME" "${EPOCHREALTIME/./}"
sleep 1.5
echo "$EPOCHREALTIME" "${EPOCHREALTIME/./}"
# Press Enter without typing anything
_POWERLINE_EXECTIME_TIMER_START=1727002475076139
unset _POWERLINE_EXECTIME_TIMER_START
unset PS0
sleep 1

Hello,
Here my versions :
 ```
arnaud  ~  echo "$BASH_VERSION"
5.1.16(1)-release
Powerline version is : Version: 2.8.2-1

Here the results of the test commands :

arnaud  ~  echo "$EPOCHREALTIME" "${EPOCHREALTIME/./}"
1727078275,558255<PHONE_NUMBER>,558259
Extra data: line 1 column 11 (char 10)
 arnaud  ~  sleep 1.5
Extra data: line 1 column 11 (char 10)
 arnaud  ~  echo "$EPOCHREALTIME" "${EPOCHREALTIME/./}"
1727078310,418406<PHONE_NUMBER>,418409
Extra data: line 1 column 11 (char 10)
 arnaud  ~ 
 arnaud  ~  _POWERLINE_EXECTIME_TIMER_START=1727002475076139
Extra data: line 1 column 11 (char 10)
 arnaud  ~  unset _POWERLINE_EXECTIME_TIMER_START
bash: _POWERLINE_EXECTIME_TIMER_START=1727078335,069777 : valeur trop grande pour la base (le symbole erroné est « 069777 »)
Extra data: line 1 column 11 (char 10)
 arnaud  ~  unset PS0                                                                                 1
Extra data: line 1 column 11 (char 10)
 arnaud  ~  sleep 1
 arnaud  ~ 
``
If y translate "valeur trop grande pour la base (le symbole erroné est « 069777 »)" it means : "value is too big for the base (wrong symbol is « 069777 »)"
And my guess would be that in french environment (like mine) the coma in numbers is replacing the dot in english numbers (for decimal numbers)

And my guess would be that in french environment (like mine) the coma in numbers is replacing the dot in english numbers (for decimal numbers)

Yes, that's the direct cause of the issue. I forgot that some locales use decimal commas, so the PS0 only erased decimal dots.
Could you check if 8de2850e fixes your issue?

It works perfectly now.
Thanks a lot for your work and your help :)
I'm so glad to have this feature in my terminal :+1:


Add "Tech Mahindra" career page .

Add Tech Mahindra career page, and don't forget to increase the count.
Also, after creating a PR , Make sure to mention issue no. in the PR's comment section .
In ex.  :-   (  Fixed issue - #499496  )

Add Tech Mahindra career page, and don't forget to increase the count.
Also, after creating a PR , Make sure to mention issue no. in the PR's comment section . In ex. :- ( Fixed issue - #499496 )

ping me on linkedin


NestedTabularInline layout broken by "Add another..." button

The "Add another..." button, in the context of the NestedTabularInline template, is breaking the layout of the table, because the JS is inserting div.add-row after all the tr elements within the tbody, which is invalid.  If it were instead inserting it after the table, inside the fieldset, the layout would be fine.

Chrome on Linux is ok, but not Firefox - see attachment.
Other admin pages put the add link within a td with an appropriate colspan inside a new tr.

Same discussion here with possible solutions
https://github.com/s-block/django-nested-inline/issues/36

There's a PR that fixes this in #34


Update pipelines to support suc for arm64 and remove all arm support

The drone pipelines are currently failing because the drone/git image which is implicitly used by drone-ci no longer publishes an arm variant of the image. This PR removed support for it.

Removed arm support as per @snasovich 's request.


Video CNN Tutorial

Click to expand!
Issue Type
Bug
Have you reproduced the bug with TF nightly?
Yes
Source
source
Tensorflow Version
tf 2.11.0
Custom Code
No
OS Platform and Distribution
No response
Mobile device
No response
Python version
3.9
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
I do not know if this belongs here.

I was trying to work through your "Video classification with a 3D convolutional neural network" tutorial. Going through the "Load Video Data" portion. I keep coming across an error that I cannot resolve.

" line 102, in convert_to_eager_tensor
    return ops.EagerTensor(value, ctx.device_name, dtype)

ValueError: Attempt to convert a value (None) with an unsupported type (<class 'NoneType'>) to a Tensor.
"
this is the code step:
ucf_sample_video = frames_from_video_file(next(subset_paths['train'].glob('*/*.avi')), 50)

The isolated video_path argument in the tutorial works, it just seems to be this assignment and I am not sure how to fix it.

I have tried to work through with little success and end up getting the same error farther down in the tutorial with:

for frames, labels in train_ds.take(10):
  print(labels)

I apologize if this is not where I should be posting stuff about the tutorial.

Standalone code to reproduce the issue
https://www.tensorflow.org/tutorials/load_data/video

I have copied and pasted everything that you see in your tutorial.

Relevant log output
No response

@chewman19  I was able to execute the code from Load video data tutorial succesfully using TF v 2.11. Kindly refer to the gist here. For better assistance please share the colab gist in which you are executing the code from Load video data tutorial.  Thank you!

Closing as stale. Please reopen if you'd like to work on this further.


Save button doesn't work in the transcriber panel in Firefox

The user describes that the save button for the transcriber panel does not work in Firefox although it does work in Chrome.
The user tried to reload the page and log out and back in but it did not make a difference. They also note that after inputting the transcriptions on Chrome, they did not appear in Firefox.
https://user-images.githubusercontent.com/46582468/120856503-fe07a680-c54d-11eb-9a1a-92b890241b71.mp4

this is no longer a bug


Update Resources.resw

Fixed typo in string

Summary of the Pull Request

PR Checklist

[ ] Closes: #xxx
[ ] Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
[ ] Tests: Added/updated and all pass
[ ] Localization: All end user facing strings can be localized
[ ] Dev docs: Added/updated
[ ] New binaries: Added on the required places

[ ] JSON for signing for new binaries
[ ] WXS for installer for new binaries and localization folder
[ ] YML for CI pipeline for new test projects
[ ] YML for signed pipeline

[ ] Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

"typing into a machine" sounds strange to me, though

@mattregul
Please link or create a new issue.

Thank you for opening the PR.
I'm closing it at this moment, as it's not clear this is an improvement, please reopen if you feel that this is still needed and the feedback is addressed.


pull request for e2e test at 11/08/2016 07:15:41

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

Details

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Scope and time scheduling of the meeting for analysis of the deformation state, stress and load in a thin-walled plate (issue #1019 related)

The goal is to schedule the meeting in Teams calendar on 2024.11.12 at 19:15.

Meeting has been scheduled.


nonce missing form script on home page.

Nonce is not populated on home page causing a 505 error.
This is not occurring on other pages. Nonce is on loaded in base.html.
<script nonce="">   let url_theme = "/theme/";   let theme = "";  let recaptcha_site_v3 = "";  ...   </script>

Turned out to be a migration issue. That was causing the nonce issue. Once the database was migrated the issue was resolved.


Set channel plan per device

Is this a bug or a feature request?
Feature Request
What did you expect?
For US 915 networks with some gateways with 8 channels and some with 16 channels, having one channel plan for all devices on the network doesn't work very well. It would be great if we could override the default channel plan for certain devices. That way, the default plan could be to use all 16 channels by default, but override the channel plan to only 8 channels for devices using an 8 channel gateway for example.
What happened?
What version are your using?
How can your issue be reproduced?
Could you share your log output?

I would recommend setting up two LoRa Server instances one for a 8 channel US915 network, an other for a 16 channel US915 network.
Ideally the end-user setting up devices should not be concerned with the network specific settings (like active channels). Giving the end-user the power of selecting which channels to use could cripple your network.

Setting up two different network servers wouldn't work for my case. I have many devices that move around between 8 and 16 channel gateways. Unless there is a way to setup some sort of roaming between my two network servers, I don't think it would work.

Potentially you could forward all data to a single MQTT broker and let both LoRa Server instances use the uplink data from all 16 ch + 8 ch gateways.
Make sure that each LoRa Server instance has its own Redis and PostgreSQL database. So they share the same gateways, but not the device states.

That's a good idea. I think that should work. I will give it a try. Thanks!
Is there a way to disable the gateway channel reconfiguration packet on the loraserver? I can ignore it on the gateways, but having that packet sent from each network server uses that much more data. I don't know how much data this actually uses - maybe it is negligible?

Just not assign a gateway profile :-) The only thing it is used for is sending the config to the LoRa Gateway Bridge.

I didn't realize that! Thanks for the help

Can this issue be closed?

Yes it can. Thanks!
From: Orne Brocaar
Sent: Wednesday, June 5, 2019 7:00 AM
To: brocaar/loraserver
Cc: lancepitka; Author
Subject: Re: [brocaar/loraserver] Set channel plan per device (#392)
Can this issue be closed?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


NameError: name 'L1' is not defined

Hi,
I am trying to run the my code step by step in the Python Shell.
When I put rbt.calc_base_parms(), I got the following errors.
Please give me any advice to fix this issue.
generating geometric model
generating kinematic model
generating inverse dynamics code
generating gravity term code
generating coriolis term code
generating coriolis matrix code
generating inertia matrix code
generating regressor matrix code
generating friction term code
done
Traceback (most recent call last):
File ".\symbotics_test.py", line 22, in
rbt.calc_base_parms()
File "D:\Program Files\python3.7\lib\site-packages\sympybotics-1.0.dev0-py3.7.egg\sympybotics\robotmodel.py", line 122, in calc_base_parms
File "D:\Program Files\python3.7\lib\site-packages\sympybotics-1.0.dev0-py3.7.egg\sympybotics\dynamics\dynamics.py", line 55, in calc_base_parms
File "D:\Program Files\python3.7\lib\site-packages\sympybotics-1.0.dev0-py3.7.egg\sympybotics\dynamics\dyn_parm_dep.py", line 22, in find_dyn_parm_deps
File "", line 6, in regressor_func
NameError: name 'L1' is not defined
This is my code:
import sympy
import sympybotics
from sympybotics._compatibility_ import exec_

pi = sympy.pi
q = sympybotics.robotdef.q
L1,L2 = sympy.symbols('L1,L2')

twolink = sympybotics.RobotDef('twolink',[(0,0,0,q),
                                         (0,L1,0,q)],
                              dh_convention='modified')

twolink.frictionmodel = {'Coulomb', 'viscous'}
twolink.gravityacc = sympy.Matrix([0.0, 0.0, 'g'])
rbt = sympybotics.RobotDynCode(twolink, verbose=True)

rbt.calc_base_parms()
rbt.dyn.baseparms

Maybe I have found the answer.
In robotmodel.py file:
    def calc_base_parms(self, verbose=False):

        q_subs = {q: 'q[%d]' % i for i, q in enumerate(self.rbtdef.q)}
        q_subs.update(
            {dq: 'dq[%d]' % i for i, dq in enumerate(self.rbtdef.dq)})
        q_subs.update(
            {ddq: 'ddq[%d]' % i for i, ddq in enumerate(self.rbtdef.ddq)})
        func_def_regressor = code_to_func(
            'python', self.H_code, 'regressor', 'regressor_func',
            ['q', 'dq', 'ddq'], q_subs)

func_def_regressor  is an automatically generated program,but the parameters are missing when executing the program.I tried to increase the required parameters, but I'm failed.
When the link length parameter is a number, the program will not cause problems.

This is the same problem as https://github.com/cdsousa/SymPyBotics/issues/23
The dynamics part is not supposed to work with symbols, you have to replace those 'L1', 'L2' by the actual numeric values!

Thank you for your prompt reply
------------------ 原始邮件 ------------------
发件人: "Cristóvão Duarte<EMAIL_ADDRESS>发送时间: 2020年4月26日(星期天) 晚上6:29
收件人<EMAIL_ADDRESS>抄送: "🐳"<562047964<EMAIL_ADDRESS>主题: Re: [cdsousa/SymPyBotics] NameError: name 'L1' is not defined (#29)
Closed #29.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

This is the same problem as #23
The dynamics part is not supposed to work with symbols, you have to replace those 'L1', 'L2' by the actual numeric values!

ok, thanks very much!


Hop length

I am still a bit confused because in the code is the following comment
in line 241 stft_hop_length = 512, # 10ms at 44100Hz, from sections 4.1, 4.4 in the paper - @faroit recommends // 2 or // 4 for better
It's true that they are mentioned to use a hop_size of 10ms for a 44.1kHz sample rate, but in my calculation 512 is not 10ms but ~11.6ms
Did I missunderstood something or what is the intention here ?

@Psarpei 512 is just a lot more common. Also torch istft and stft is slow so I suggest to not make it slower with non power of 2 values.

Okay thanks for your answer :) but than there is the problem that the resulting audio length will not match the original one. What is your suggestion to handle that?

Not all lengths are compatible. Check the length of the output you are getting and use that as the input length.

but in that way I loose information at the end of the audio, how do you avoid that using this approach ?

If you use a compatible length, the length of the output will be the same as the length of the input. You are not losing anything this way. If you need to apply it to longer audio snippets, check out the part of the paper that describes overlap-add (OA) as one of several viable techniques.

okay thanks :)


Keras 2.2.4 Leaks Memory when using Tensorflow 2.0.0

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows and Ubuntu 19.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 2.0.0
Python version: 3.6.9
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version: 7.6.0
GPU model and memory: Quadro RTX 5000 16Gb

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with: 1. TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)" 2. TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
Describe the current behavior
As I fit a custom model using the Keras API. I monitor the memory usage via Task Manager and I see that every .fit() call the memory increases until it eventually crashes the script with no warning whatsoever. It starts off with allocated 5gb of memory and by the time it crashes it as exceeded 16gb of memory.
Describe the expected behavior
I expect the memory to not continuously increase
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.

import numpy as np
import tensorflow as tf

class Generator:
    def __init__(self, latent_dim=5, seq_length=30, batch_size=28, hidden_size=100, num_generated_features=1):
        self.latent_dim = latent_dim
        self.seq_length = seq_length
        self.batch_size = batch_size
        self.hidden_size = hidden_size
        self.num_generated_features = num_generated_features

        # self.model = tf.keras.models.Sequential([
        #     LSTM(self.hidden_size, input_shape=(self.seq_length, self.latent_dim), return_sequences=True),
        #     tf.keras.layers.Dense(1, input_shape=[None, self.hidden_size]),
        #     tf.keras.layers.Activation('tanh'),
        #     Reshape(target_shape=(self.batch_size, self.seq_length, self.num_generated_features))
        # ])
        self.model = tf.keras.models.Sequential([
            tf.keras.layers.LSTM(self.hidden_size, input_shape=(
                self.seq_length, self.latent_dim), return_sequences=True, name='g_lstm1'),
            tf.keras.layers.LSTM(
                self.hidden_size, return_sequences=True, recurrent_dropout=0.4, name='g_lstm2'),
            tf.keras.layers.LSTM(1, return_sequences=True, name='g_lstm3')
        ], name='generator')

class Discriminator:
    def __init__(self, input_shape, hidden_size=100):
        self.model = tf.keras.models.Sequential([
            tf.keras.layers.LSTM(
                hidden_size, input_shape=input_shape, return_sequences=True, name='d_lstm'),
            tf.keras.layers.LSTM(
                hidden_size, return_sequences=True, name='d_lstm2', recurrent_dropout=0.4),
            tf.keras.layers.Dense(1, activation='linear', name='d_output')
        ], name='discriminator')

        self.model.compile(
            loss=self.d_loss, optimizer=tf.keras.optimizers.SGD(lr=0.1), metrics=['acc'])

    def d_loss(self, y_true, y_pred):
        loss = tf.keras.losses.binary_crossentropy(
            y_true, y_pred, from_logits=True)
        return loss

class GAN:
    real_loss = []
    fake_loss = []
    def __init__(self, *args, **kwargs):

        self.generator = Generator(*args, **kwargs)
        gen_output = (self.generator.seq_length,
                      self.generator.num_generated_features)
        self.discriminator = Discriminator(input_shape=gen_output)
        self.discriminator.model.trainable = False

        self.batch_size = self.generator.batch_size
        self.seq_length = self.generator.seq_length

        self.model = tf.keras.models.Sequential([
            self.generator.model,
            self.discriminator.model
        ], name='gan')

        self.model.compile(
            loss=self.gan_loss, optimizer=tf.keras.optimizers.SGD(lr=0.1), metrics=['acc'])

    def train(self, epochs, n_eval, d_train_steps=5, load_weights=False, metric='loss'):
        for epoch in range(epochs):
            start = time.time()

            for step in range(steps_over_data):
                tmp_r, tmp_f = [], []

                for _ in range(d_train_steps):

                    x_r, y_r = self.generator.real_samples()
                    x_f, y_f = self.generator.fake_samples()

                    real = self.discriminator.model.fit(
                        x_r, y_r, epochs=1, batch_size=self.batch_size, verbose=0, shuffle=True).history
                    fake = self.discriminator.model.fit(
                        x_f, y_f, epochs=1, batch_size=self.batch_size, verbose=0, shuffle=True).history

                    tmp_r.append(real[metric])
                    tmp_f.append(fake[metric])

            self.real_loss.append(np.mean(tmp_r))
            self.fake_loss.append(np.mean(tmp_f))

            x_gan = self.generator.sample_latent_space()
            y_gan = np.ones((self.batch_size, self.seq_length,
                             self.generator.num_generated_features)).astype(np.float32)

            self.model.fit(
                x_gan, y_gan, batch_size=self.batch_size, epochs=1, verbose=0)

if __name__ == '__main__':
    gan = GAN(latent_dim=5, seq_length=30, batch_size=128)
    gan.discriminator.model.summary()
    gan.load_weights()

    # crashes around epoch ~35
    gan.train(epochs=40, n_eval=1, d_train_steps=3,
              load_weights=True, metric='loss')

Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

I can't run the provided example because gan_loss isn't defined; could you update the code?

Just an update: I found similiar issues about keras leaking memory on the net. I still couldn't find exactly what was wrong, but it seemed that the .fit() method doesn't like to be called in loop, this somehow creates things. I was able to partially subdue this problem by calling tf.keras.backend.clear_session() however that only slowed the memory leaked, it didn't stop it.
I managed to fix this problem by replacing .fit() with .train_on_batch() method. Now my model is stable and I can run for n epochs without it crashing. I hope this helped some

I have similar errors. I have GAN model to generate fake images but after few epochs, program crash due to out of memory error. Error happened at the line of
g_loss = model.train_on_batch(x, y)
My intuition is when Generator create an image from noise (size is 400) and output of generator is image size of (batch_size, 128, 128, 3).  It is allocating gpu memory in each train_on_batch call. After few epochs, it crash due to not enough GPU memories.
Below is code to create noise of size 400.
np.random.multivariate_normal(np.zeros(400), np.eye(400) * 400 / np.sqrt(400), batch_size)
May be I am wrong in understanding the issue. How can I resolve this issue?

Hi @humayun, I am having exactly the same isuse, have you been able to find a solution or a workaround ?

This is due to Tensorflow 2.0 version. Just install new version tensorflow 2.1 and problem go away.


Custom button on back container view becomes disabled after animation

Great library! I love this thing. But I noticed something very strange, and didn't quite figure out what's going on. I have a button on the back view, but looks like it's disabled when shown after the first animation. Any idea what might cause this? And how it could  be fixed?

I saw a similar issue, and I think it could be due to the layout of the cells after scrolling or when data gets reloaded.  I saw a problem in the layout where cells were overlapping. Visually everything looks fine, but if you examine the view order, you'll see the cells overlapping and blocking the touch that should get through to the button you want.  I fixed this by making sure the center cell is always on top by adding one line to the layout: https://github.com/ctscoville/expanding-collection/commit/51edd4a28ac055964db4825554ef1a30858525db
You can disregard the whitespace changes in that commit, and you should see the line I added on line 131.

However, buttons on the back container view arent getting active

@ctscoville  are you sure? Because not working :(

I have similar issue, and unfortunately @ctscoville's fix does not work. Any other ideas?

@ctscoville  hi do you have any open source project I couldnt implement that if there is something please let us know and use it I couldnt understand nothing from usage and demo
if there is some please help us to know it


Fixes #60 Consumes REST API using React to generate Canvas App Components

Starting point for addressing issue #60. Fetches JSON file from REST API, and using JSON data to create new ProductCards with custom information.

We talked on the meeting that this should

Do a for each on the return from the API call and just use that rather than a fixed value
Include the headers and footers from the PlasmicHome component
Do a few other touchups on the cards

It's possible the images won't be working here yet but we can fix that with #57

@jonespm Implemented all the necessary code in Home.jsx, but can't get the json to work. I was wondering if you had any idea why. When I use async await, there isn't even a GET request in the terminal for /api/lti_tools/ and the webpage doesn't load, and when I remove async and await, a GET /api/lti_tools is shown, but the webpage still doesn't load.


Example of Codebase Context Spec with Cody

Is your feature request related to a problem? Please describe.
To get started with Codebase Context Spec, I would appreciate an example with Cody.
Describe the solution you'd like
A step by step guide that explains by example how to use Codebase Context Spec with Cody.
Describe alternatives you've considered
Alternatively, other AI Coding Assistants could be examplified.
Additional context
As there are no examples yet, no resources are as of yet available that could be used as template.

take a look at:
CODING-ASSISTANT-PROMPT.md in the root, also review this project, it has several examples in the root and in the typescript linter folder.
You can add these types of files to your repo and then use a prompt similar to the above.
I am not familiar with Cody, it might be the only coding assistant that I haven't tried yet.
Could you try this and see how it works for you?

I copy the text from CODING-ASSISTANT-PROMPT.md and create a prompt with this for Cody. If I ask Cody to use the .context.md file in the root of the repository as additional input, it returns with indeed a very nice summary of all the information provided in the .context.md file. It thus describes my repository correctly as intended, i.e. by echoing the details specified in the .context.md file. Thanks @killerapp for this wonderful tool! Conclusion: Cody is already supported.

Awesome, but I would love for you to reach out to the author and ask them to support the other aspects of the convention with tooling, specifically, the .contextdocs.md sytem and .contextignore


Recognize coreclr embedded breakpoints

Embedded breakpoints in coreclr (e.g. Debugger.Break() commands) are sent with an <EMBEDDED> id, as they don't correlate to any bound breakpoints. Add a case to check for them and send an empty breakpoint list instead of defaulting to the else clause and immediately continuing from them.

:+1:

LGTM


Housekeeping

Adds a readme to the marketplace folder
Adds more tests to the Google Analytics extension
Enable automatic deployments

LGTM, only two comments about docs.

👍


cargo tests failed when build rust 1.31

Problem
Two tests fail on alpine linux when build rust 1.31
failures:

---- package::exclude stdout ----
running `/home/build/rust/src/rustc-1.31.1-src/build/x86_64-alpine-linux-musl/stage2-tools/x86_64-alpine-linux-musl/release/cargo package --no-verify -v`
thread 'package::exclude' panicked at '
Expected: execs
    but: differences:
 14 - |[WARNING] No (git) Cargo.toml found at `[..]` in workdir `[..]`|
    + |warning: No (git) VCS found for `/home/build/rust/src/rustc-1.31.1-src/build/x86_64-alpine-linux-musl/stage2-tools/x86_64-alpine-linux-musl/cit/t848/foo`|

other output:
``', tools/cargo/tests/testsuite/support/mod.rs:741:13
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::print
             at libstd/sys_common/backtrace.rs:71
             at libstd/sys_common/backtrace.rs:59
   2: std::panicking::default_hook::{{closure}}
             at libstd/panicking.rs:211
   3: std::panicking::default_hook
             at libstd/panicking.rs:221
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:476
   5: std::panicking::continue_panic_fmt
             at libstd/panicking.rs:390
   6: std::panicking::begin_panic_fmt
             at libstd/panicking.rs:345
   7: testsuite::support::Execs::run
   8: core::ops::function::FnOnce::call_once
   9: <F as alloc::boxed::FnBox<A>>::call_box
             at libtest/lib.rs:1468
             at /home/build/rust/src/rustc-1.31.1-src/src/libcore/ops/function.rs:238
             at /home/build/rust/src/rustc-1.31.1-src/src/liballoc/boxed.rs:672
  10: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:102

---- package::include stdout ----
running `/home/build/rust/src/rustc-1.31.1-src/build/x86_64-alpine-linux-musl/stage2-tools/x86_64-alpine-linux-musl/release/cargo package --no-verify -v`
thread 'package::include' panicked at '
Expected: execs
    but: differences:
  2 - |[WARNING] No (git) Cargo.toml found at `[..]` in workdir `[..]`|
    + |warning: No (git) VCS found for `/home/build/rust/src/rustc-1.31.1-src/build/x86_64-alpine-linux-musl/stage2-tools/x86_64-alpine-linux-musl/cit/t852/foo`|

other output:
``', tools/cargo/tests/testsuite/support/mod.rs:741:13
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::print
             at libstd/sys_common/backtrace.rs:71
             at libstd/sys_common/backtrace.rs:59
   2: std::panicking::default_hook::{{closure}}
             at libstd/panicking.rs:211
   3: std::panicking::default_hook
             at libstd/panicking.rs:221
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:476
   5: std::panicking::continue_panic_fmt
             at libstd/panicking.rs:390
   6: std::panicking::begin_panic_fmt
             at libstd/panicking.rs:345
   7: testsuite::support::Execs::run
   8: core::ops::function::FnOnce::call_once
   9: <F as alloc::boxed::FnBox<A>>::call_box
             at libtest/lib.rs:1468
             at /home/build/rust/src/rustc-1.31.1-src/src/libcore/ops/function.rs:238
             at /home/build/rust/src/rustc-1.31.1-src/src/liballoc/boxed.rs:672
  10: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:102

Steps

Compile rust 1.31 on alpine linux with rust 1.30

Notes
Alpine linux edge, rust 1.30, rust 1.31

Thanks for the report! This has been fixed in #6260.  1.32 should not have this problem.  I think one workaround is to build inside a git repo. Or you can apply the patch in that PR.

Thank you


Ensure symbols are exported for bpftrace executable

bpftrace executable needs to lookup BEGIN_trigger and END_trigger
symbols. Since the bump of the minimal versin of CMake in
1a1a4a92f7bcb154282df228d080d5c3083e04f8, these symbols are stripped
from bpftrace: the executable is built without the -rdynamic option
and the symbol is not present anymore (tested with GCC 10). To restore
this compile option, we can instruct CMake to export symbols for
bpftrace executable.
Also, see #954.

i think this broke master for embedded builds, just looking at CI history, and also suspicious is linked by #1440
Maybe we need to back this out while we figure it out. Is this fix just needed for GCC 10?

from bpftrace: the executable is built without the -rdynamic

I think we don't have this by default in the embedded builds, but i'll have to check the flags.

Yeah, let's revert for now so we get CI back

Revert in #1441 1441

❦ 28 juillet 2020 11:20 -07, Dale Hamel:

Maybe we need to back this out while we figure it out. Is this fix just needed for GCC 10?

If useful, I can test with GCC 9.


[DOCS] Remove dates from release notes

Problem
Duplicating the release date in the Elasticsearch-Hadoop release notes (RNs) creates some potential issues:

It's possible for the RNs to erroneously drift from the dates on https://www.elastic.co/downloads/past-releases#es-hadoop, which are regarded as the source of truth.
It puts extra burden on the docs coordinator to update and publish ES-Hadoop RNs on the day of the release. If we choose to remove dates, we can safely publish release notes before release.
The inclusion of release dates is inconsistent with RNs for other Elastic solutions and products.

Proposal

Do not include release dates for Elasticsearch-Hadoop RNs going forward.
Remove release dates from any RNs on the master, 7.x, 7.5, and 6.8  branches. Earlier release notes will be left as-is.

Closed by #1396, #1397, and #1398.


[FEATURE REQUEST] Let the last item stop to the end of container.

    Hey @dohooo, I've been looking at your [multiple example](https://github.com/dohooo/react-native-reanimated-carousel/blob/main/exampleExpo/src/multiple/index.tsx) again, and I've been hitting an issue which I would call "overscrolling".

When the carousel is set to "loop", everything works as expected, however when loop is disabled, you can scroll the last element all the way to "position 1" instead of it being the last item in the carousel.
Current Implementation:

Slot 1
Slot 2
Slot 3

LastItem
Empty
Empty

Ideal Implementation

Slot 1
Slot 2
Slot 3

ThirdLastItem
SecondLastItem
LastItem

I've attached a minimal reproduction in expo here:
https://snack.expo.dev/@srobbins/reanimated-carousel-overscroll-example
I think this would be made possible by allowing us to set maxPages on the ScrollViewGesture, where maxPages would be totalItems.length - numberOfItemsOnScreen, however there would still be a slight problem of navigating to the last item.
Curious what you think about this!
Edit: I believe this is the same issue as #240.
Originally posted by @IAmNatch in https://github.com/dohooo/react-native-reanimated-carousel/issues/88#issuecomment-1297629539

I have a PR up here: https://github.com/dohooo/react-native-reanimated-carousel/pull/295

Solved in #335


Displaying dropouts at nodes

I'm using Sankey and it is great!
I do however need to display the dropouts at each node.
For example, if there is an inbound link with a value of 100 and an outbound link with a value of 75,
I need to display a 25 dropout (like in Google's Multi-Channel Funnel).
Any thought on how this can be done?

+1


Unable to run npm build without errors if add ng-socket-io package to project!

Note: for support questions, please use one of these channels: Chat: AngularClass.slack or Twitter: @AngularClass

I'm submitting a Bug report

If I add a socket.service.ts using the package ng-socket-io to the project by adding the socket.service.ts service to the project and add a bit of code into app.module.ts
    import { Socket, SocketIoModule, SocketIoConfig } from 'ng-socket-io';
    import { SocketService } from './socket.service';
    // SocketIoConfig
    const config:
      SocketIoConfig  = { url: 'https://localhost', options: {} };

and add the SocketService provider:
   providers: [
      environment.ENV_PROVIDERS,
      APP_PROVIDERS,
      {
        provide: SocketService,
        useFactory: (socket: Socket) => {
          return new SocketService(socket);
        },
        deps: [Socket]
      },
    ]

and the file socket.service.ts  to the project:
  import { Injectable } from '@angular/core';
  import { Socket } from 'ng-socket-io';

  @Injectable()
  export class SocketService {
    public id: string;

    constructor(private socket: Socket) {
      socket.on('connect', (ev: any) => {
        this.id = socket.ioSocket.id;
      });
      socket.on('disconnect', (ev: any) => {
        this.id = null;
      });
      socket.on('disconnecting', (ev: any) => {
        console.log('disconnecting ID:', socket.ioSocket.id);
      });
    }

    public close() {
      console.log('closing');
      this.socket.disconnect();
    }
  }

the project fails to build!!

What is the current behavior?
Run 'npm run build' and see:
      ><EMAIL_ADDRESS>build /home/joel/workspace/angular-starter
      > npm run build:dev
      .
      .
      .
      ><EMAIL_ADDRESS>webpack /home/joel/workspace/angular-starter
      > node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js "--config" "config/webpack.dev.js" "--progress" "--profile"

      2076ms building modules
      6ms sealing
      0ms optimizing
      1ms basic module optimization
      8ms module optimization
      4ms advanced module optimization
      3ms basic chunk optimization
      0ms chunk optimization
      0ms advanced chunk optimization
      1ms module and chunk tree optimization
      0ms chunk modules optimization
      0ms advanced chunk modules optimization
      1ms module reviving
      3ms module order optimization
      2ms module id optimization
      1ms chunk reviving
      0ms chunk order optimization
      4ms chunk id optimization
      26ms hashing
      0ms module assets processing
      1674ms chunk assets processing
      1ms additional chunk assets processing
      0ms recording
      0ms additional asset processing
      0ms chunk asset optimization
      77ms asset optimization
      149ms emitting
      Hash: bf86ad86435f34290435
      Version: webpack 3.8.1
      Time: 6405ms
                                       Asset       Size  Chunks                    Chunk Names
            assets/icon/apple-icon-60x60.png    3.56 kB          [emitted]
                                  0.chunk.js    9.35 kB       0  [emitted]
                                  2.chunk.js    9.35 kB       2  [emitted]
                                  3.chunk.js    9.33 kB       3  [emitted]
                                  4.chunk.js  876 bytes       4  [emitted]
                              main.bundle.js    9.16 MB       5  [emitted]  [big]  main
                         polyfills.bundle.js     595 kB       6  [emitted]  [big]  polyfills
                            inline.bundle.js     5.8 kB       7  [emitted]         inline
                         assets/css/.gitkeep   14 bytes          [emitted]
                            assets/data.json   30 bytes          [emitted]
                           assets/humans.txt  251 bytes          [emitted]
        assets/icon/android-icon-192x192.png    9.71 kB          [emitted]
        assets/icon/android-icon-144x144.png    8.43 kB          [emitted]
          assets/icon/android-icon-48x48.png    2.92 kB          [emitted]
          assets/icon/android-icon-72x72.png    4.23 kB          [emitted]
          assets/icon/android-icon-36x36.png     2.3 kB          [emitted]
          assets/icon/android-icon-96x96.png     5.6 kB          [emitted]
          assets/icon/apple-icon-114x114.png    6.55 kB          [emitted]
          assets/icon/apple-icon-120x120.png    6.92 kB          [emitted]
          assets/icon/apple-icon-144x144.png    8.43 kB          [emitted]
          assets/icon/apple-icon-152x152.png    8.99 kB          [emitted]
          assets/icon/apple-icon-180x180.png      11 kB          [emitted]
            assets/icon/apple-icon-57x57.png     3.4 kB          [emitted]
                                  1.chunk.js    9.33 kB       1  [emitted]
            assets/icon/apple-icon-72x72.png    4.23 kB          [emitted]
      assets/icon/apple-icon-precomposed.png    10.3 kB          [emitted]
            assets/icon/apple-icon-76x76.png    4.46 kB          [emitted]
                  assets/icon/apple-icon.png    10.3 kB          [emitted]
               assets/icon/browserconfig.xml  281 bytes          [emitted]
               assets/icon/favicon-16x16.png    1.52 kB          [emitted]
               assets/icon/favicon-32x32.png    2.07 kB          [emitted]
               assets/icon/favicon-96x96.png     5.6 kB          [emitted]
                     assets/icon/favicon.ico    1.15 kB          [emitted]
             assets/icon/ms-icon-144x144.png    8.43 kB          [emitted]
             assets/icon/ms-icon-150x150.png    8.88 kB          [emitted]
             assets/icon/ms-icon-310x310.png    24.1 kB          [emitted]
               assets/icon/ms-icon-70x70.png    4.12 kB          [emitted]
                      assets/img/angular.png      19 kB          [emitted]
                        assets/manifest.json  654 bytes          [emitted]
             assets/mock-data/mock-data.json   22 bytes          [emitted]
                         assets/img/tipe.png    45.9 kB          [emitted]
                           assets/robots.txt   31 bytes          [emitted]
                    assets/service-worker.js   44 bytes          [emitted]
                                  humans.txt  251 bytes          [emitted]
                                  robots.txt   31 bytes          [emitted]
                                  index.html    2.71 kB          [emitted]
      [./$$_lazy_route_resource lazy recursive] ./$$_lazy_route_resource lazy 160 bytes {5} [built]
             [] -> factory:9ms building:0ms = 9ms
      [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 488 bytes {5} {6} [built]
             [] -> factory:0ms building:1ms = 1ms
      [./src/app/app.module.ts] ./src/app/app.module.ts 2.78 kB {5} [built]
             [] -> factory:224ms building:4ms dependencies:674ms = 902ms
      [./src/app/app.resolver.ts] ./src/app/app.resolver.ts 572 bytes {5} [built]
             [] -> factory:23ms building:1ms dependencies:649ms = 673ms
      [./src/app/app.routes.ts] ./src/app/app.routes.ts 479 bytes {5} [built]
             [] -> factory:18ms building:1ms dependencies:97ms = 116ms
      [./src/app/app.service.ts] ./src/app/app.service.ts 1.32 kB {5} [built]
             [] -> factory:28ms building:1ms dependencies:645ms = 674ms
      [./src/app/home/index.ts] ./src/app/home/index.ts 34 bytes {5} [built]
             [] -> factory:114ms building:0ms = 114ms
      [./src/app/home/x-large/index.ts] ./src/app/home/x-large/index.ts 37 bytes {5} [built]
             [] -> factory:116ms building:1ms = 117ms
      [./src/app/index.ts] ./src/app/index.ts 45 bytes {5} [built]
             [] -> factory:198ms building:1ms = 199ms
      [./src/app/no-content/index.ts] ./src/app/no-content/index.ts 40 bytes {5} [built]
             [] -> factory:116ms building:0ms = 116ms
      [./src/app/socket.service.ts] ./src/app/socket.service.ts 908 bytes {5} [built]
             [] -> factory:13ms building:1ms dependencies:677ms = 691ms
      [./src/environments/environment.ts] ./src/environments/environment.ts 830 bytes {5} [built]
             [] -> factory:190ms building:1ms = 191ms
      [./src/main.browser.ts] ./src/main.browser.ts 966 bytes {5} [built]
              factory:2355ms building:8ms = 2363ms
      [./src/polyfills.browser.ts] ./src/polyfills.browser.ts 2.65 kB {6} [built]
              factory:2355ms building:5ms = 2360ms
      [./src/styles/styles.scss] ./src/styles/styles.scss 1.16 kB {5} [built]
             [] -> factory:358ms building:11ms = 369ms
          + 231 hidden modules

      ERROR in ./node_modules/ng-socket-io/socket-io.module.ts
      Module build failed: Error: /home/joel/workspace/angular-starter/node_modules/ng-socket-io/socket-io.module.ts is not part of the compilation output. Please check the other error messages for details.
          at AngularCompilerPlugin.getCompiledFile (/home/joel/workspace/angular-starter/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:629:23)
          at plugin.done.then (/home/joel/workspace/angular-starter/node_modules/@ngtools/webpack/src/loader.js:467:39)
          at <anonymous>
          at process._tickCallback (internal/process/next_tick.js:188:7)
       @ ./node_modules/ng-socket-io/index.js 3:25-54
       @ ./src/app/app.module.ts
       @ ./src/app/index.ts
       @ ./src/main.browser.ts

      ERROR in ./node_modules/ng-socket-io/socket-io.service.ts
      Module build failed: Error: /home/joel/workspace/angular-starter/node_modules/ng-socket-io/socket-io.service.ts is not part of the compilation output. Please check the other error messages for details.
          at AngularCompilerPlugin.getCompiledFile (/home/joel/workspace/angular-starter/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:629:23)
          at plugin.done.then (/home/joel/workspace/angular-starter/node_modules/@ngtools/webpack/src/loader.js:467:39)
          at <anonymous>
          at process._tickCallback (internal/process/next_tick.js:188:7)**
       @ ./node_modules/ng-socket-io/index.js 5:26-56
       @ ./src/app/app.module.ts
       @ ./src/app/index.ts
       @ ./src/main.browser.ts
      Child html-webpack-plugin for "index.html":
           1 asset
          [./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html 2.1 kB {0} [built]
                  factory:2341ms building:14ms = 2355ms
          [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 488 bytes {0} [built]
                 [] -> factory:12ms building:4ms = 16ms
          [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 495 bytes {0} [built]
                 [] -> factory:12ms building:4ms = 16ms
              + 1 hidden module

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).
See the angularStarter.zip file below -- as an easier way to reproduce.

What is the expected behavior?
For the project to still build, serve, etc...

What is the motivation / use case for changing the behavior?
Perhaps there is an issue with libraries of the type ng-socket-io and angular5, but I am stuck dead in the water in moving from v1.5.0 to the current build which supports Angular5.

Please tell us about your environment:
Ubuntu, Intellij, Angular5 - v5.0.5
(I simply did a ncu -u on the 'angular-starter' to bring all packages up to date).

Browser: n.a.

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

Here is the added file (socket.service.ts), the edited app.module.ts, and zipped up the resultant angular-starter (after npm run clean) (in a zip file):
angularStarter.zip
So to reproduce, simply do:
yarn
npm run build

I worked around this issue -- which I believe is ONLY a webpack issue and and not an issue with this project.  I moved pieces of the ng-socket-io internals into a component which was using ng-socket-io and then it builds fine.


Plugin support

It would be good to have plugin support (an API and a mechanism for importing it) for custom commands or to edit existing commands.

Code can be used from #36 (v3.0)


rtmp_to_hls: player stops after reaching target_window_duration

I am able to stream successfully from OBS to rtmp_to_hls server, however when I go to play the video live, it only plays for target_window_duration * muxer_segment_duration seconds. For example, with target_window_duration: 10 |> Membrane.Time.seconds() and muxer_segment_duration: 1 |> Membrane.Time.seconds() the video will only play for 10 seconds, then repeat the last segment or hang. Once I stop streaming, the video will play as expected. Is live playback not supported? Is there a setting I am missing?
Membrane.HTTPAdaptiveStream is currently at v0.8.1. I believe v0.9.0 fixes this by allowing you to set either live or vod modes.
Erlang/OTP 24
Elixir 1.13.4
MacOS 12.5.1

Setting the target_window_duration: :infinity solved this for me.


add gulp task to convert markdown to html

additionally replaces comments in the outputted html of the form <!-- example(label) --> with <div example="label">

Done

LGTM


Feat/pre-training for initial stability

Some notes: the huge match is learned from https://github.com/python/cpython/blob/3.11/Lib/dataclasses.py#L863


Unity Editor Crashes on textToSpeech.Dispose() and Stopping Game

I've just started trying out UnityTTS and it seems to work great, except that when I click the 'play' button to stop running my project, it crashes to Desktop. I thought maybe this was happening because I wrote my own version of TTSDemo that didn't contain textToSpeech.Dispose() on disable, but turns out adding that and then disabling the TTSDemo-equivalent just crashes the game right then.
The code I was testing is extremely simple. This script is added onto the TTS object from the demo scene, which I turned into a prefab. It replaces TTSDemo. Basically, it just gives me a field where I can type messages, and when I press the selected button on a Steam VR controller (since it's a VR project I'm working on), it says whatever was typed in the box. No problem there, it's just afterwards things get nasty.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Valve.VR;
using Voxell.Speech.TTS;

public class TTSTester : MonoBehaviour
{
    public SteamVR_Action_Boolean buttonPressed;
    public float cooldown = 3f;
    public TextToSpeech tts;
    public string speechTextString;
    private float timeSince = 0f;
    // Start is called before the first frame update
    void Start()
    {
        tts = transform.GetComponent<TextToSpeech>();
    }

    // Update is called once per frame
    void Update()
    {
        if (buttonPressed.lastActive && timeSince >= cooldown)
        {
            tts.Speak(speechTextString);
            timeSince = 0f;
        }
        timeSince += Time.deltaTime;
    }

    void OnDisable() => tts.Dispose();
}

In the Unity editor error logs, the stack trace at crash shows that something went wrong with TfLite.
========== OUTPUTTING STACK TRACE ==================

0x00007FF8CD298DA8 (libtensorflowlite_c) TfLiteVersion
0x00007FF8CD23128A (libtensorflowlite_c) TfLiteVersion
0x00007FF8CD231399 (libtensorflowlite_c) TfLiteVersion
0x00007FF8CD22DF3F (libtensorflowlite_c) TfLiteVersion
0x00007FF97DF61BB2 (ucrtbase) configthreadlocale
0x00007FF97F3A7034 (KERNEL32) BaseThreadInitThunk
0x00007FF980502651 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

Looking into the crashdump, the only piece of useful information I can see is this:
The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
I've never seen any kind of error like this in Unity before and have no idea how to change TfLite's memory access abilities. Any help or advice would be appreciated.

thank you for the bug report! super useful and detailed report you had there! I had also encountered reports similar to this error, will try to look into it!

Has there been any progress on this issue? I don't know how prevalent it is, but it makes the software entirely unusable.

hey, unfortunately I did not have the time to look into this issue yet, so sorry about that..
also, may I know if you are using the develop branch?

Alright. Yeah definitely use the develop branch first as it will have the latest works I did.

Ah I just checked, there's no difference between dev and master.

hey I think this was fixed on the latest push, sorry forgot to mention it here.


Fix bogus condition that forced external embrees to be compiled with SSE4

If Embree was compiled with EMBREE_MAX_ISA=NONE, but EMBREE_ISA_AVX=ON (or AVX2, or AVX512KNL), cmake rejected the setup. My understanding is that at least SSE4.1 is necessary, but AVX* should work just fine, even if the SSE4.1 ISA has been disabled. If my understanding is right, this PR fixes it.

Hi damianam,
thank you for your suggestions to improve OSPRay, I adapted your patch (some more tweaks were necessary, see f965b020).
Best regards,
Johannes


Update branding for 3.1.21

@vseanreesermsft do you have push rights in this repo❔ PR is ready for squash 'n merge but I can't do it.

@Pilchie / @jinujoseph suggest we need at least one ASP.NET Core person besides Will who can push to release/3.1. I don't think any of us need access to other branches nor admin rights. So, it may be enough to change the branch protection rules just for the one branch.

@vseanreesermsft do you have push rights in this repo❔ PR is ready for squash 'n merge but I can't do it.

I don't have permissions either


Support for null safety

Hi,
You have got a great little toolkit. Are you planning to upgrade it to null safety support?

Looks like this library has been abandoned, so I wrote another one, it has the same airplane mode checking and null safety support.
Pub: https://pub.dev/packages/airplane_mode_checker
Github: https://github.com/14h4i/airplane_mode_checker


GPT-4 Turbo (gpt-4-1106-preview) model not included in ChatGPT Reborn VSCode extension

Describe the feature
Any plan to add support for GPT-4 Turbo, aka gpt-4-1106-preview?
The latest GPT-4 model with improved instruction following, JSON mode, reproducible outputs, parallel function calling, and more. Returns a maximum of 4,096 output tokens. This preview model is not yet suited for production traffic. It has a context window of 128,000 tokens.
See: https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo

Thanks Jiao, I'll have the update shipped this weekend.
Previously this extension assumed input token limit ~= output token limit, but with gpt-4-turbo's 128,000 input limit, and 4,096 output limit this code needs to be changed. So, taking a little bit longer than the usual addition of a new model.

Hi Christopher, thanks for your efforts! It would be useful to change the "gpt3" variable name to "openai" or simply "gpt" in the setting options to avoid confusion.

Release v3.20.0 has been deployed with gpt-4-turbo support.
https://github.com/Christopher-Hayes/vscode-chatgpt-reborn/releases/tag/3.20.0
Thanks for the suggestion Jiao, yeah the config settings is something I've been meaning to update.
The complication is that we'll have to programmically change user's settings to use the new config name. Originally it was left "as is" to allow users to jump between this fork and the "Genie AI" extension and use the same settings, but it's been several months now, so config compatibility is no longer needed.

Hi Chris, Thanks for the update!  I tried it and found that it indeed supports GPT-4 Turbo. When I tried it with a medium-sized Python code, but I got the following error message:
This conversation uses 31331 tokens, but the "maxTokens" set in the extension settings is 4096. Please increase the "maxTokens" setting or reduce the amount of code you are sending. To increase the limit, hit "More Actions" > "Settings" > search for "maxTokens".

It seems the code still checks the maximum token of 4096 somewhere, even though it states that it is disabled in the settings.

Oops! Thanks for catching that. v3.20.2 has been pushed, which should fix that issue.
https://github.com/Christopher-Hayes/vscode-chatgpt-reborn/releases/tag/fix-gpt-4-turbo-4096