Android: java.lang.NullPointerException: Attempt to invoke virtual method 'org.tensorflow.Output org.tensorflow.Operation.output(int)' o

What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?
StackOverflow: Why am I getting error: Initializing Tensorflow?
Environment info
Operating System: Mac OS 10.11.6
Tensorflow version: v0.12.0
If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)
I have successfully built the Android demo from command line using bazel. After that, I replaced the inception model with my custom model. I have changed the parameters in ClassifierActivity with the following:
private static final int INPUT_SIZE = 299;
  private static final int IMAGE_MEAN = 128;
  private static final float IMAGE_STD = 128;
  private static final String INPUT_NAME = "Mul:0";
  private static final String OUTPUT_NAME = "final_result:0";

Then I build again with bazel, when I try to run the app, the app crashed. Logs are attached below.
What other attempted solutions have you tried?
Using the same model with memory mapping works fine on iOS.
Logs or other output that would be helpful
(If logs are large, please upload as attachment or provide link).

FATAL EXCEPTION: main
Process: org.tensorflow.demo, PID: 23532
java.lang.RuntimeException: Error initializing TensorFlow!
at org.tensorflow.demo.ClassifierActivity.onPreviewSizeChosen(ClassifierActivity.java:131)
at org.tensorflow.demo.CameraActivity$1.onPreviewSizeChosen(CameraActivity.java:158)
at org.tensorflow.demo.CameraConnectionFragment.setUpCameraOutputs(CameraConnectionFragment.java:394)
at org.tensorflow.demo.CameraConnectionFragment.openCamera(CameraConnectionFragment.java:411)
at org.tensorflow.demo.CameraConnectionFragment.access$000(CameraConnectionFragment.java:63)
at org.tensorflow.demo.CameraConnectionFragment$1.onSurfaceTextureAvailable(CameraConnectionFragment.java:94)
at android.view.TextureView.getHardwareLayer(TextureView.java:370)
at android.view.View.updateDisplayListIfDirty(View.java:14115)
at android.view.View.getDisplayList(View.java:14161)
at android.view.View.draw(View.java:14928)
at android.view.ViewGroup.drawChild(ViewGroup.java:3405)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3199)
at android.view.View.updateDisplayListIfDirty(View.java:14133)
at android.view.View.getDisplayList(View.java:14161)
at android.view.View.draw(View.java:14928)
at android.view.ViewGroup.drawChild(ViewGroup.java:3405)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3199)
at android.view.View.draw(View.java:15207)
at android.widget.FrameLayout.draw(FrameLayout.java:592)
at android.view.View.updateDisplayListIfDirty(View.java:14138)
at android.view.View.getDisplayList(View.java:14161)
at android.view.View.draw(View.java:14928)
at android.view.ViewGroup.drawChild(ViewGroup.java:3405)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3199)
at android.view.View.updateDisplayListIfDirty(View.java:14133)
at android.view.View.getDisplayList(View.java:14161)
at android.view.View.draw(View.java:14928)
at android.view.ViewGroup.drawChild(ViewGroup.java:3405)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3199)
at android.view.View.updateDisplayListIfDirty(View.java:14133)
at android.view.View.getDisplayList(View.java:14161)
at android.view.View.draw(View.java:14928)
at android.view.ViewGroup.drawChild(ViewGroup.java:3405)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3199)
at android.view.View.draw(View.java:15207)
at android.widget.FrameLayout.draw(FrameLayout.java:592)
at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2599)
at android.view.View.updateDisplayListIfDirty(View.java:14138)
at android.view.View.getDisplayList(View.java:14161)
at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:268)
at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:274)
at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:313)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2503)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2341)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1972)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1058)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5796)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
at android.view.Choreographer.doCallbacks(Choreographer.java:580)
at android.view.Choreographer.doFrame(Choreographer.java:550)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:211)
at android.app.ActivityThread.main(ActivityThread.java:5317)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1016)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'org.tensorflow.Output org.tensorflow.Operation.output(int)' o

@chengsam This is the error typically seen when the output node is not found when the classifier tries to check the number of output classes.
Does this work if you remove the ":0"s from the end of the node names?

@andrewharp It worked! But why the doc said the label names need the ":0"?

@chengsam It used to accept them before we switched to using the Java API internally. Looks like the comment just didn't get updated, so I'll make a fix.

To clarify, specifying ports on the node names passed to fillNode* and readNode* in TensorFlowInferenceInterface should still work.
The crash here was likely happening in TensorFlowImageClassifier where it tries to get the size of the output node prior to inference:
final Operation operation = c.inferenceInterface.graph().operation(outputName);

I use keras change to tensorflow but when i use it on Android It says can't find the input layer but in keras my input layer is bidirectional_3 but I use keras.input_names result is sequential_3_input ,when I try both ,None of them how can I do??


Improve on the footer of the website

The footer is too high as well as all the info is in row-wise instead of column wise
Can add another layer for the footer for the copywrite section of it

will want to fix this issue

Assign me this and will make sure it will look good

Someone changed this without assignment

cause it is not there anymore


QGIS 3.4 LTR Windows Python error

Issue: Opening QGIS results in the following exception and python support is disabled.
2019-05-09T09:29:36     WARNING    Traceback (most recent call last):
              File "C:\Temp\conda\envs\qgis3\lib\site-packages\numpy\core\__init__.py", line 40, in
              from . import multiarray
              File "c:/temp/conda/envs/qgis3/Library/./python\qgis\utils.py", line 672, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "C:\Temp\conda\envs\qgis3\lib\site-packages\numpy\core\multiarray.py", line 12, in
              from . import overrides
              File "c:/temp/conda/envs/qgis3/Library/./python\qgis\utils.py", line 672, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "C:\Temp\conda\envs\qgis3\lib\site-packages\numpy\core\overrides.py", line 6, in
              from numpy.core._multiarray_umath import (
              File "c:/temp/conda/envs/qgis3/Library/./python\qgis\utils.py", line 672, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
             ImportError: DLL load failed: The specified module could not be found.

             During handling of the above exception, another exception occurred:

             Traceback (most recent call last):
              File "c:/temp/conda/envs/qgis3/Library/./python\qgis\utils.py", line 309, in loadPlugin
              __import__(packageName)
              File "c:/temp/conda/envs/qgis3/Library/./python\qgis\utils.py", line 672, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "c:/temp/conda/envs/qgis3/Library/./python/plugins\processing\__init__.py", line 29, in
              from processing.tools.general import * # NOQA
              File "c:/temp/conda/envs/qgis3/Library/./python\qgis\utils.py", line 672, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "c:/temp/conda/envs/qgis3/Library/./python/plugins\processing\tools\general.py", line 39, in
              from processing.core.Processing import Processing
              File "c:/temp/conda/envs/qgis3/Library/./python\qgis\utils.py", line 672, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "c:/temp/conda/envs/qgis3/Library/./python/plugins\processing\core\Processing.py", line 58, in
              from processing.algs.qgis.QgisAlgorithmProvider import QgisAlgorithmProvider # NOQA
              File "c:/temp/conda/envs/qgis3/Library/./python\qgis\utils.py", line 672, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "c:/temp/conda/envs/qgis3/Library/./python/plugins\processing\algs\qgis\QgisAlgorithmProvider.py", line 81, in
              from .HypsometricCurves import HypsometricCurves
              File "c:/temp/conda/envs/qgis3/Library/./python\qgis\utils.py", line 672, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "c:/temp/conda/envs/qgis3/Library/./python/plugins\processing\algs\qgis\HypsometricCurves.py", line 29, in
              import numpy
              File "c:/temp/conda/envs/qgis3/Library/./python\qgis\utils.py", line 672, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "C:\Temp\conda\envs\qgis3\lib\site-packages\numpy\__init__.py", line 142, in
              from . import core
              File "c:/temp/conda/envs/qgis3/Library/./python\qgis\utils.py", line 672, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "C:\Temp\conda\envs\qgis3\lib\site-packages\numpy\core\__init__.py", line 71, in
              raise ImportError(msg)
             ImportError:

             IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

             Importing the multiarray numpy extension module failed. Most
             likely you are trying to import a failed build of numpy.
             Here is how to proceed:
             - If you're working with a numpy git repository, try `git clean -xdf`
              (removes all files not under version control) and rebuild numpy.
             - If you are simply trying to use the numpy version that you have installed:
              your installation is broken - please reinstall numpy.
             - If you have already reinstalled and that did not fix the problem, then:
              1. Check that you are using the Python you expect (you're using C:\Temp\conda\envs\qgis3\Library\bin\qgis.exe),
              and that you have no directories in your PATH or PYTHONPATH that can
              interfere with the Python and numpy versions you're trying to use.
              2. If (1) looks fine, you can open a new issue at
              https://github.com/numpy/numpy/issues. Please include details on:
              - how you installed Python
              - how you installed numpy
              - your operating system
              - whether or not you have multiple versions of Python installed
              - if you built from source, your compiler versions and ideally a build log

              Note: this error has many possible causes, so please don't comment on
              an existing issue about this - open a new one instead.

             Original error was: DLL load failed: The specified module could not be found.

However, importing numpy from python interpreter in the activated env works as expected.
Comparing the PATH environment variables between the activated env (echo %PATH%) and QGIS (Settings|Options|System|Environment):

env %PATH%: C:\Temp\conda\envs\qgis3;C:\Temp\conda\envs\qgis3\Library\mingw-w64\bin;C:\Temp\conda\envs\qgis3\Library\usr\bin;C:\Temp\conda\envs\qgis3\Library\bin;C:\Temp\conda\envs\qgis3\Scripts; <snip>

QGIS PATH: c:\temp\conda\envs\qgis3;c:\temp\conda\envs\qgis3\Library\mingw-w64\bin;c:\temp\conda\envs\qgis3\Library\usr\bin;c:\temp\conda\envs\qgis3\Library\Library\bin;c:\temp\conda\envs\qgis3\Scripts; <snip>

Note the extra "Library" in  c:\temp\conda\envs\qgis3\Library\Library\bin; in the QGIS Path.
When I changed my PATH in the (env) command prompt to match the QGIS Path, I could reproduce the numpy error.
I think the issue is in post-link.bat#L12: set "PATH=<snip>;%LIBRARY_PREFIX%\Library\bin;%PATH%" because %LIBRARY_PREFIX% already contains the "Library" directory.

@conda-forge-admin, please rerender

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I rerendered the recipe in conda-forge/qgis-feedstock#58.


bot instances not running correctly on Windows OS

The bot deployment runs just fine however the bot app(new-template.js) is not running correctly on windows.
Suspected how Windows treats slashes in paths vs Linux(forward vs back slashes)
0|Bot-Deployment-Manager  | 2023-02-19: [11:59] info: [#mraiishere] <mrazishere>: test
2|mraiishere              | 2023-02-19: TypeError: commands.translate is not a function
2|mraiishere              | 2023-02-19:     at client.<anonymous> (C:\Users\MrAZ\Twitch-Chatbot-Deployment\channels\mraiishere.js:188:26)
2|mraiishere              | 2023-02-19:     at EventEmitter.emit (C:\Users\MrAZ\Twitch-Chatbot-Deployment\node_modules\tmi.js\lib\events.js:88:13)
2|mraiishere              | 2023-02-19:     at client.emits (C:\Users\MrAZ\Twitch-Chatbot-Deployment\node_modules\tmi.js\lib\client.js:90:13)
2|mraiishere              | 2023-02-19:     at client.handleMessage (C:\Users\MrAZ\Twitch-Chatbot-Deployment\node_modules\tmi.js\lib\client.js:1117:13)
2|mraiishere              | 2023-02-19:     at C:\Users\MrAZ\Twitch-Chatbot-Deployment\node_modules\tmi.js\lib\client.js:1228:9
2|mraiishere              | 2023-02-19:     at Array.forEach (<anonymous>)
2|mraiishere              | 2023-02-19:     at client._onMessage (C:\Users\MrAZ\Twitch-Chatbot-Deployment\node_modules\tmi.js\lib\client.js:1225:8)
2|mraiishere              | 2023-02-19:     at callListener (C:\Users\MrAZ\Twitch-Chatbot-Deployment\node_modules\tmi.js\node_modules\ws\lib\event-target.js:290:14)
2|mraiishere              | 2023-02-19:     at WebSocket.onMessage (C:\Users\MrAZ\Twitch-Chatbot-Deployment\node_modules\tmi.js\node_modules\ws\lib\event-target.js:209:9)
2|mraiishere              | 2023-02-19:     at WebSocket.emit (node:events:512:28)

https://github.com/mrazishere/Twitch-Chatbot-Deployment/blob/b7c4da0d0964073aac53e9394bcfaf6c5c1c8b21/channels/new-template.js#L111

might relate to https://github.com/isaacs/node-glob#windows
No plans for fix for now as linux vm is easily available for Windows now


argocd: 2.3.3 -> 2.3.4

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/argocd/versions.
meta.description for argocd is: "Declarative continuous deployment for Kubernetes"
meta.homepage for argocd is: "https://argo-cd.readthedocs.io/en/stable/"
meta.changelog for argocd is: ""
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.3.4 with grep in /nix/store/lhkzlx30frj9bamxg1s9kdcw3yxw5vp2-argocd-2.3.4
found 2.3.4 in filename of file in /nix/store/lhkzlx30frj9bamxg1s9kdcw3yxw5vp2-argocd-2.3.4

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
argocd

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/lhkzlx30frj9bamxg1s9kdcw3yxw5vp2-argocd-2.3.4 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A argocd https://github.com/r-ryantm/nixpkgs/archive/1709dde8481d409e67d54beb6cf11145710fd213.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/lhkzlx30frj9bamxg1s9kdcw3yxw5vp2-argocd-2.3.4
ls -la /nix/store/lhkzlx30frj9bamxg1s9kdcw3yxw5vp2-argocd-2.3.4/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

argocd

Maintainer pings
cc @shahrukh330 @bryanasdev000 @kalbasit for testing.

Thanks bot, but tihs package will need a small up in build expression.


For future Issues or Pull Requests, PLEASE READ THIS.

It's sad that this package, is no longer maintained in very long time (latest commit when i wrote this was 4 years ago). So I decided to fork this package and continue the maintenance for future usage, supporting the newer version of Python also.
I also encountered some issues, such as #30 and #4. Thus, on my forked repository, lazuardy-tech/anfis, I decided to fix some of those issues, with some improvements for the package. You may install it with pip install lazuardy_anfis and use the package like it was before.
For testing and other documentation, please read it on the repository page. Thanks.
All credit goes to @twmeggs and @lazuardy-tech.

For future needs, please report issue or push PRs on lazuardy-tech/anfis so that we can maintain it.


Fix 'cf stack' to display accurate error message for incorrect usage

Fix 'cf stack' to display accurate error message for incorrect usage
Before fix:
➜  cli git:(master) cf stack
FAILED
Incorrect Usage. Requires app name as argument

NAME:
   auth - Authenticate user non-interactively

USAGE:
   cf auth USERNAME PASSWORD

WARNING:
   Providing your password as a command line option is highly discouraged
   Your password may be visible to others and may be recorded in your shell history

EXAMPLE:
   cf auth<EMAIL_ADDRESS>"my password" (use quotes for passwords with a space)
   cf auth<EMAIL_ADDRESS>"\"password\"" (escape quotes if used in password)

After fix:
➜  cli git:(master) cf stack
FAILED
Incorrect Usage. Requires stack name as argument

NAME:
   stack - Show information for a stack (a stack is a pre-built file system, including an operating system, that can run apps)

USAGE:
   cf stack STACK_NAME

OPTIONS:
   --guid      Retrieve and display the given stack's guid. All other output for the stack is suppressed.

not sure why this is failing Travis CI build


Flutter recipes for android emulators should not set --no-read-only or --wipe-data

read only is referring to system apis, chrome team let us know that we probably dont want to set those flags.
https://source.corp.google.com/h/flutter/codesearch/+/main:recipes/recipe_modules/android_virtual_device/api.py;drc=15ea9839ea65c7892629851e964b3f05efac9316;l=151-152
Both flags should be removed.
Recipe code review here: https://flutter-review.googlesource.com/q/project:recipes
Internal documentation here: https://g3doc.corp.google.com/company/teams/flutter/infrastructure/luci/recipes.md?cl=head

One of the things in the snapshot might be disabled network.
"""
If you like to network to be on, it is better to remove the mentioned two flags, and add "--enable-network" flag, i.e. https://source.corp.google.com/h/chromium/chromium/src/+/main:tools/android/avd/avd.py;drc=7ac34b7c0d9a26bce138f69064db362623d4d581;l=189
"""

Wipe data sill needs to be removed.


db delete with final db snapshot identifier on replicas is not valid

ClientError: An error occurred (InvalidParameterCombination) when calling the
DeleteDBInstance operation: FinalDBSnapshotIdentifier can not be specified when
deleting a replica instance

This is a duplicate of the now resolved #436.


clpeak can't run on ARM64 platform.

I run the clpeak on the follow platform, the detail information as follow:
--------------------------------------------------------------------------------
[root@localhost build]# uname -r
6.6.0-<IP_ADDRESS>.oe2403.aarch64
[root@localhost build]# uname -m
aarch64
But I get the follow error. could you help to explain the reason, and how to resolve this issue?
--------------------------------------------------------------------------------------------------
[root@localhost build]# ./clpeak
clGetPlatformIDs (-1001)
no platforms found
[root@localhost build]#
Thanks in advance!

Guess there are no opencl platforms installed in that system

Guess there are no opencl platforms installed in that system

Thanks for your reply, do you know how to install the opencl platforms ?  Thanks in advance!
The follow is the installed opencl so on my board.
[root@localhost usr]# find|grep -i opencl
./share/mime/text/x-opencl-src.xml
./share/cmake/Help/module/FindOpenCL.rst
./share/cmake/Modules/FindOpenCL.cmake
./lib64/libnvidia-opencl.so.1
./lib64/libnvidia-opencl.so.560.35.03
./lib64/libOpenCL.so
./lib64/libOpenCL.so.1.0
./lib64/libOpenCL.so.1.0.0
./lib64/libOpenCL.so.1
./local/cuda-12.6/nsight-systems-2024.5.1/target-linux-sbsa-armv8/nvtx/include/nvtx3/nvToolsExtOpenCL.h
./local/cuda-12.6/nsight-systems-2024.5.1/target-linux-sbsa-armv8/nvtx/include/nvtx3/nvtxDetail/nvtxImplOpenCL_v3.h
./local/cuda-12.6/targets/sbsa-linux/include/nvToolsExtOpenCL.h
./local/cuda-12.6/targets/sbsa-linux/include/nvtx3/nvToolsExtOpenCL.h
./local/cuda-12.6/targets/sbsa-linux/include/nvtx3/nvtxDetail/nvtxImplOpenCL_v3.h
[root@localhost usr]#

Try https://github.com/pocl/pocl

Thanks for your reply. I try to install it, but it still can't work.


Add SWC and sync files

@W-11976301@

Tests did pass https://github.com/salesforcecli/plugin-login/actions/runs/3448133264


[HOLD for payment 2024-08-14] [HOLD for payment 2024-08-09] Optimize frontend performance in most recent mode

Problem
For moderate to large accounts like @JmillsExpensify's, the app frequently hangs and lags when doing basic actions like approving reports, pinning reports, etc. We know this performance should be better, but is it possible to optimize it only on the frontend, or do we also need to implement pagination to return less total reports.
Solution
Profile the app when it's lagging to see where the most time is being spent and how we might improve it. Determine if optimizations will be sufficient or if pagination is required.
We have started investigating Jason's app performance in this thread.
cc @marcaaron @adhorodyski
Issue OwnerCurrent Issue Owner: @dylanexpensify

Hi, I'd like to work on this:)

Payment coming up!

Payment coming up!

On it now, apologies!

I think we can close this one since we've started creating separate issues for the performance related PRs recently?

@ishpaul777 were you reviewer here?
@mkhutornyi were you paid?

Roger! Paying today!

Payment summary:
Contributor+: @ishpaul777 $250
Contributor+: @mkhutornyi $1,000
Please apply/request!

Please apply here!

BTW sent offer @ishpaul777, invite to @mkhutornyi, @allgandalf mind applying?

@mkhutornyi @allgandalf sent offers!

Upwork being glitchy for me, attempting again today!

Done!


 Maybe we should add --edition 2021 or so to the flags (matching the edition used for our tests)? This does mean users cannot set an edition themselves any more, but that should rarely be required. (And we could also inhibit this flag if we see a user-passed --edition.)

Having to specify the latest edition is really annoying; we should probably default to the latest. That's what the playground and godbolt do.

We could do that at the miri level if we wanted to. We don't have to follow rustc's CLI exactly

I think I'd rather keep the miri binary matching rustc.

With the changes in https://github.com/rust-lang/rust/pull/118692, more files will stop working with the 2015 edition.
I think we can just start with a single heuristic: if we don't find --edition in the flags, we add --edition 2021.
I wish rustc would just use the last flag when there are multiple --edition; currently it errors which makes this rather non-compositional...


[v2 notifications] Query subscription with subscription/all API got 500 error

🐞 Bug Report
Affected Services

 The issue is located in: support-notifications
Is this a regression?

 Yes, the previous version in which this bug was not present was: ....
Description and Minimal Reproduction

Create a subscription with the following body.

POST /subscription API
[
   {
      "subscription":{
         "name":"Subscription-1616393640638-2",
         "description":"Test data for subscription",
         "categories":[
            "test"
         ],
         "labels":[
            "simple"
         ],
         "receiver":"test",
         "resendLimit":0,
         "resendInterval":"24h",
         "channels":[
            {
               "EmailAddresses":[
<EMAIL_ADDRESS>               ],
               "Type":"EMAIL"
            }
         ]
      },
      "apiVersion":"v2"
   }
]

Query the subscription using /subscription/all

🔥 Exception or Error

API response:
{
    "apiVersion": "v2",
    "requestId": "",
    "message": "subscription format parsing failed from the database",
    "statusCode": 500
}

docker logs:
level=ERROR ts=2021-03-22T08:20:49.109155611Z app=edgex-support-notifications source=subscription.go:115 X-Correlation-ID=6f6c172e-b5ac-45d3-9f51-377e304bdc38 msg=" ->  -> subscription format parsing failed from the database -> json: cannot unmarshal object into Go struct field Subscription.Channels of type models.Address"

🌍  Your Environment
Deployment Environment:
EdgeX Version: master
Anything else relevant?
All get methods returned 500 status code.

Delete subscription by /subscription/name/{name} failed with the same error.
level=ERROR ts=2021-03-22T09:30:48.149336011Z app=edgex-support-notifications source=subscription.go:287 X-Correlation-ID=0afe267b-48c8-4515-889d-48e6999cd450 msg=" -> fail to delete the subscription with name Subscription-3 ->  ->  -> object *models.Subscription format parsing failed from the database -> json: cannot unmarshal object into Go struct field Subscription.Channels of type models.Address"

This issue is fixed by go-mod-core-contracts PR #555.


Feat/margin limit order

Review Order dialog needs adjustments - there are too many decimal places everywhere (the most notable is Minimum Entry Price) + margin button and the content should have the same width (I would say that the content width needs to be adjusted because it's unnecessary wide).

Cancel Limit Order dialog needs adjustments as well - shrink content width to the button width.


I would like to ask if it is possible to obtain the model parameters of the robot in the simulation environment, such as M, C, G

I would like to ask if it is possible to obtain the model parameters of the robot in the simulation environment, such as M, C, G

Hi @JiangShangJiu ,
not directly while using e.g. gazebo (but maybe gazebo provides them...). Then again, you could look into https://github.com/stack-of-tasks/pinocchio. You have access to our URDF which Pinocchio uses for computing all kinds of dynamic parameters (like M, C, G) and we also use it nowadays in libfranka for computing those values: https://github.com/frankaemika/libfranka/blob/main/src/robot_model.cpp.
Cheers,
Andreas

Thank you so much for your quick answer, I used franka_ros simulation in the ROS1 notetic version, I remember that I could get the dynamics parameters of the robot, as well as the Jacobian matrix. However, when I use the ROS2 Humble version to use franka_ros2 to emulate in the ignition_gazebo, I don't find these interfaces, is it no longer available?

@AndreasKuhner Thank you so much for your quick answer, I used franka_ros simulation in the ROS1 notetic version, I remember that I could get the dynamics parameters of the robot, as well as the Jacobian matrix. However, when I use the ROS2 Humble version to use franka_ros2 to emulate in the ignition_gazebo, I don't find these interfaces, is it no longer available?

This is not yet available - and probably has a low enough priority to never come directly :sweat_smile:
Main reason is that we thought using Pinocchio is nowadays so easy, that we don't need to expose yet another interface which is exactly doing this. If you are using our franka_ros2/libfranka, you already have pinocchio on your system. So checking out how we do it in libfranka gives you already a blueprint on how to do it - copy/paste 4tw :smile:


python 3.5 .get_children() infinite loop

when attempting to add count children on python 3.5 LUI*Layout  class needed to break the loop gone crazy :
def __len__(self):
        cnt=0
        for x in self.get_children():
            cnt+=1
            if cnt > 100:
                print('kernel panic !')
                break

Not sure if this is still a problem, I believe this might be an issue in interrogate which might have been fixed. I will have a look


ipchange

I have an interesting problem.  Our IP changed during a reboot.  When vsftpd tried to start during boot it silently failed.  The Chef run also fails because the IP in the conf file has not been updated and the service gets defined before the conf file.  Our temporary solution was to add a service resource to our wrapper cookbook and define ignore_failure.  I don't like this approach at all.  An alternative might be to add no action to the original service resource declaration and then a second service resource post config to check for enable & start.  This should still allow for template changes to notify a delayed restart at the end of the run.

Yes that is indeed an issue. I would assume your solution will work just fine. It doesn't really matter when the service is enabled/started after all.
Will do this and try it out.

@TheSerapher I think #10 solves this problem.

Woupsie .. Merged it, can you try it out?

Worked perfectly on test-kitchen and on prod.  Thanks for the quick turn around!

My pleasure, cool to see people actually use this ;-) It's one of my earliest works!

Legacy apps ;)

They don't require a lot of maintenance, but if I do get a ticket why not fix it, right? :beetle:


testing sourceclear

Summary

The "what"; a concise description of each logical change
Another change

The "why", or other context.
Test plan
Issues

"THING-1234" or "Fixes #123"

Pull Request Test Coverage Report for Build 1549

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

Totals

Change from base Build 1545:
0.0%

Covered Lines:
4051

Relevant Lines:
4516

💛  - Coveralls


Inconsistent logging detection

There are three ways you can call the logging module:

import logging
logger = logging.getLoger(__name__)
logger.info("msg")

import logging
logging.info("msg")

from logging import info
info("msg")

The logging rules are enforced inconsistently between those three call kinds:
import logging
from logging import warn, info, error

logger = logging.getLogger(__name__)

logging.info(f"{1}")  # G004
logger.info(f"{1}")  # G004
info(f"{1}")

logging.info("", 2)  # PLE1205
logger.info("", 2)  # PLE1205
info("", 2)

logging.warn("a")  # PGH002, G010
logger.warn("a")  # G010
warn("a")  # PGH002

try:
    print(1 / 0)
except Exception:
    logging.error("a")  # TRY400
    logger.error("a")  # TRY400
    error("a")

Checking for a common logger name is generally consistent, but PGH002 mismatches expectations here.
It might also make sense to look for usages of logging.getLogger for a more semantic coverage, even though the vast majority of usages in the wild seem to match our pattern (see also https://grep.app/search?q=logging.getLogger&filter[lang][0]=Python, https://github.com/hummingbot/hummingbot/blob/b3ba248e7b9bab26c010fcb69a53040146084adb/hummingbot/client/config/conf_migration.py#L45, https://github.com/qutebrowser/qutebrowser/blob/4190a470c56ed90d97af89711a30c4603a347858/qutebrowser/utils/log.py#L104)
The main questions i'm trying to answer are, a) should we change the scope of the existing rule (or not) and b) which of the three cases should new logging rules capture?

We should be treating error as equivalent to logging.error -- that seems like a bug in is_logger_candidate.
And we should change PGH002 to match G010. Actually, we should probably just remove PGH002, and redirect to G010?

We should be treating error as equivalent to logging.error

I looked into this a bit and I think it requires some minor modifications to the various rules that call is_logger_candidate.


Jellyfin discovers metadata and strm files but playback never starts.

I can't seem to make streams (Twitch) play. Channels and metadata are discovered but playback never starts; depending on the client, it either loads forever or nothing happens at all when pressing play. This happens regardless of the chosen stream or playback client (tried web,android, and the Linux client).
Jellyfin log:
[2024-11-25 15:59:29.425 +01:00] [INF] [4] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-analyzeduration 200M -probesize 1G  -i \"http://<IP_ADDRESS>:5000/twitch/direct/faith@39489914884\" -map_metadata -1 -map_chapters -1 -threads 0 -sn   -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_base_url \"hls/924719121a7c0ccda420bc2d52f9c1f5/\" -hls_segment_filename \"/config/cache/transcodes/924719121a7c0ccda420bc2d52f9c1f5%d.ts\" -hls_playlist_type event -hls_list_size 0 -y \"/config/cache/transcodes/924719121a7c0ccda420bc2d52f9c1f5.m3u8\""
[2024-11-25 15:59:29.438 +01:00] [INF] [20] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: Deleting partial stream file(s) "/config/cache/transcodes/d49e9adcc2ebd680c144bb938f690973.m3u8"
[2024-11-25 15:59:29.440 +01:00] [INF] [20] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Stopping ffmpeg process with q command for "/config/cache/transcodes/924719121a7c0ccda420bc2d52f9c1f5.m3u8"
[2024-11-25 15:59:29.442 +01:00] [ERR] [4] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "A task was canceled". URL "GET" "/videos/f48500ad-bdf1-6ea4-79e5-6c0636944292/live.m3u8".
[2024-11-25 15:59:29.443 +01:00] [ERR] [20] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 1
[2024-11-25 15:59:29.444 +01:00] [INF] [20] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: Deleting partial stream file(s) "/config/cache/transcodes/924719121a7c0ccda420bc2d52f9c1f5.m3u8"
[2024-11-25 15:59:30.947 +01:00] [INF] [23] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Jellyfin Media Player" "1.11.1" playing "!000-live-F a i t h   ( l i v e )   2 0 2 4 - 1 1 - 2 5   0 0  2 1 [39489914884]". Stopped at "0" ms

ytdlp2strm config:
{
    "ytdlp2strm_host" : "<IP_ADDRESS>",
    "ytdlp2strm_port" : "5000",
    "ytdlp2strm_keep_old_strm" : "False",
    "ytdlp2strm_temp_file_duration" : "86400"
}

Ytdlp2strm container log show no errors and nothing stand out to me in the Jellyfin logs. Any ideas?

Please share your Twitch ID that you are trying to play with.
Is streaming working with VLC or something similar?
Do you have hardware acceleration enabled on the Jellyfin server?


run.histories return is empty

Regarding this method
https://github.com/wandb/wandb/blob/b944790d960dfc3b34ff939fb7992f0a0546dad1/wandb/apis/public/runs.py#L171
Doing this
runs.histories(x_axis = "epoch",keys=["test_prec1_crosponding_to_best_val"],format = 'pandas')
or this
key2df = runs.histories(x_axis = "epoch",keys=["test_top1"],format = 'pandas')
behaves as expected
but doing this
key12df = runs.histories(x_axis = "epoch",keys=["test_prec1_crosponding_to_best_val","test_top1"],format = 'pandas')
returns an empty dataframe.
I suspect this because the keys are logged with different steps.
It would be nice if
key12df = runs.histories(x_axis = "epoch",keys=["test_prec1_crosponding_to_best_val","test_top1"],format = 'pandas')
behave like
key1df = runs.histories(x_axis = "epoch",keys=["test_prec1_crosponding_to_best_val"],format = 'pandas')
key2df = runs.histories(x_axis = "epoch",keys=["test_top1"],format = 'pandas')
joined_df = pd.merge(key1df, key2df, on = "epoch", how = "inner")

On a different note
It would also be nice to have methods,

runs.summaries
runs.configs

Hi @MoH-assan! Thank you for writing in.
To confirm, you are interested in being able to call multiple keys as part of the keys argument when calling the runs.history api function, right?

@ArtsiomWB
Yes.
More specifically, it is when the two keys don't share the same step.
For example
 wandb.log({'key1':key1,'epoch':epoch})
 wandb.log({'key2':key2,'epoch':epoch}) #Note that W&B will give 'key2' different step from 'key1'

I want to be able to do the below and not get an empty data frame.
 runs.histories(x_axis = "epoch",keys=["key1","key2"],format = 'pandas')

When you say:

More specifically, it is when the two keys don't share the same step.

Just to confirm, in the example above, the epoch for key 1 and key 2 will remain the same, but the step will increment since you are calling wandb.log() for the second time. Therefore, you're interested in pulling both keys via the API based on epoch rather than step, so you can compare them at epoch 1 vs. epoch 1. If you were comparing them by step, it would be step 1 vs. step 2. Does that happen to sound right to you?

This is correct.
Currently, when I try to pull both keys via the API based on the epoch I get an empty data frame.
 runs.histories(x_axis = "epoch",keys=["key1","key2"],format = 'pandas')
The above code returns an empty data frame.

Thank you for the details! I have gone ahead and submitted the feature request to our engineering team.
I will let you know if we have any follow-up questions regarding this feature request!


Vagrant: Upgrade to Fedora 21, Docker 1.6, clean-up SDN

PR makes the following changes:

Move to Fedora 21 since Fedora 20 no longer packages latest docker updates
Make Salt configure an explicit Docker environment file (/etc/sysconfig/docker) on RedHat based env
Disable registration of kubelet on master just like GCE for Vagrant mode
Move SDN configuration out of Salt and as part of basic provision script to improve reliability, and enable us to manage the docker defaults option globally rather than the hack we had before.

Fixes #8907
Fixes #8834

phew, that is a big pr...

@derekwaynecarr Any suggestions re. who would be a good reviewer for this?

@bgrant0607 - is it ok if someone from our side tests and comments success?  typically i am the reviewer for this provider, but I cannot really self-review.
@csrwng - would you mind testing that you can bring up a vagrant cluster from this branch and commenting upon your hopeful success?
$ make clean
$ make release-skip-tests
$ cluster/kube-up.sh
$ cluster/kubectl.sh get pods

@derekwaynecarr - vagrant succeeded for me on this branch. Everything's looking good.

Thanks, @csrwng.

needs rebase

Rebased, should be good to go in on-call queue.

Rerunning Shippable.

Shippable has stopped flaking on this PR, I think this is good to leave the nest.

Hello,
I was trying to bringing up the cluster from the master brunch.
Its giving me the following errors. Is there any issues with fedora 21 repos?
==> master: It looks like the required network bridge has not yet been created
==> master: Installing, enabling prerequisites
==> master:
==> master:
==> master:  One of the configured repositories failed (Fedora 21 - x86_64),
==> master:  and yum doesn't have enough cached data to continue. At this point the only
==> master:  safe thing yum can do is fail. There are a few ways to work "fix" this:
==> master:
==> master:      1. Contact the upstream for the repository and get them to fix the problem.
==> master:
==> master:      2. Reconfigure the baseurl/etc. for the repository, to point to a working
==> master:         upstream. This is most often useful if you are using a newer
==> master:         distribution release than is supported by the repository (and the
==> master:         packages for the previous distribution release still work).
==> master:
==> master:      3. Disable the repository, so yum won't use it by default. Yum will then
==> master:         just ignore the repository until you permanently enable it again or use
==> master:         --enablerepo for temporary usage:
==> master:
==> master:             yum-config-manager --disable fedora
==> master:
==> master:      4. Configure the failing repository to be skipped, if it is unavailable.
==> master:         Note that yum will try to contact the repo. when it runs most commands,
==> master:         so will have to try and fail each time (and thus. yum will be be much
==> master:         slower). If it is a very temporary problem though, this is often a nice
==> master:         compromise:
==> master:
==> master:             yum-config-manager --save --setopt=fedora.skip_if_unavailable=true
==> master:
==> master: Cannot retrieve metalink for repository: fedora/21/x86_64. Please verify its path and try again
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

From this PR my system has not been working right. Other people have been experiencing issues as well. #9488

Fedora 21 switches from initd to systemd, but it looks like the salt scripts were not updated to work with systemd. The kube-apiserver specifically fails to start on vagrant because /etc/sysconfig/kube-apiserver is not being generated. See https://github.com/GoogleCloudPlatform/kubernetes/issues/9681 for my debugging comments.

Fedora 20 also used systemd.
Vagrant is fixed when this PR merges:
https://github.com/GoogleCloudPlatform/kubernetes/pull/9563
API server is run as pod by kubelet.  Same for scheduler, etcd, and controller manager.  Exact same setup as GCE.
Only the kubelet and docker is managed by systemd now.
Sent from my iPhone

On Jun 11, 2015, at 9:08 PM, Karl Isenberg<EMAIL_ADDRESS>wrote:
Fedora 21 switches from initd to systemd, but it looks like the salt scripts were not updated to work with systemd. The kube-apiserver specifically fails to start on vagrant because /etc/sysconfig/kube-apiserver is not being generated. See #9681 for my debugging comments.
—
Reply to this email directly or view it on GitHub.


make xgboost easy to use

now we find it hard to use xgboost, we cannot find jar dependency on mvnrepository.com
hope to build cross platform jar by using maven, just like snappy.jar
native/
    Linux/
        amd64/
        i386/
    Mac/
        i386/
        x86_64/
    Windows/
        amd64/
        x86/

so people can use it on any platform.

Hy @hy2014, there're already two issues on that: #1807 and #2553.

duplicate


[BUG] division by zero on numeric metrics

Describe the bug
When creating a numeric metric with one tracked event in each variation, and then checking the experiment results, data analytics server throws a division by zero error
To Reproduce

quick start - clone the featbit/featbit repo and docker compose up
go to http://localhost:8081/, log in and create a project
create a boolean feature flag that is on but defaults to false
add a targeting rule so that a specific user will get served true (e.g. "if keyId equals t serve true")

add a numeric metric
create an experiment using the feature flag and the metric
start the experiment

evaluate the flags using an SDK so that one user gets true, and one gets false, and both track the metric e.g.var client = new FbClient(FbOptions.Default(sdkKey));

var user1 = FbUser.Builder("f").Build();
client.BoolVariation("test", user1, false);
client.Track(user1, "event", 2.0);

var user2 = FbUser.Builder("t").Build();
client.BoolVariation("test", user2, false);
client.Track(user2, "event", 1.0);

await client.CloseAsync();

view the experiment in the UI, and note that it shows no data, and buttons like "stop experiment" do not work

check the docker compose logs for da-server-1

[2024-08-01 09:18:29,114] ERROR in views: unexpected error occurs: float division by zero
Traceback (most recent call last):
  File "/featbit_da/app/experimentation/views.py", line 25, in get_result
    data = analyze_experiment(Experiment.from_properties(json.loads(json_str)))
  File "/featbit_da/app/experimentation/models/experiment/trends_experiment_result.py", line 37, in analyze_experiment
    res = [OnlineTTest(control=control,  # type: ignore
  File "/featbit_da/app/experimentation/models/experiment/trends_experiment_result.py", line 37, in <listcomp>
    res = [OnlineTTest(control=control,  # type: ignore
  File "/featbit_da/app/experimentation/models/experiment/experiment_types.py", line 320, in get_result
    p_value = self.p_value
  File "/featbit_da/app/experimentation/models/experiment/experiment_types.py", line 271, in p_value
    return 2 * (1 - t_test.cdf(np.abs(self.t_statistic), self.df))  # type: ignore
  File "/featbit_da/app/experimentation/models/experiment/experiment_types.py", line 267, in df
    return (vnt + vnc)**2 / (vnt**2 / (nt - 1) + vnc**2 / (nc - 1))
ZeroDivisionError: float division by zero

Expected behavior
This should show the correct number of events in each variation, with the average values for each
Additional context
FeatBit version 3.3.5

Thanks for the detailed bug report. We will take a look and fix it.


fix(release): use unnecessary release attempts prevention from upstream

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-deps-main" workflow

"Empty" change to trigger a release.


Make module available without polyfill

It would be nice to be able to require fetch without it being appended to window in a similar way to the es6-promise polyfill. If fetch can be assigned to a variable, then this means that when a broken or otherwise incompatible version of the fetch API become available in a browser, code that uses fetch won't break.
In other words:
// This fetch can be used as is.
var fetch = require('fetch');

// Do this only if you want to polyfill fetch on the window object.
fetch.polyfill();

I realise however that this breaks the existing API.

https://github.com/github/fetch/issues/9#issuecomment-69297320


Inspeckage does not dected that the app is running

I still could not detect in what circumstances this occurs, but sometimes, the app is running but the webinterface still indicates the app running:false and the most of the information does not appear.

Look, each time that Inspeckage start, if the target app is running, the app must be restarted for apply hooks correctly. Please, check this case.

You are right. Doing that solves the issue.

it still not working for me it still showing me app is running: false

I have the same problem

" "the app running:false" and if I tried to reload page I got "ERR_CONNECTION_REFUSED""
Exactly the same issue. Any workarounds?

It's just happened to me... any solution?

您的邮件我已经收到！

Hi all,
Is there any update on this? I'm encountering the exact same error. Inspeckage cannot confirm if the app is running even though it's running. Even after restarting it to apply the hooks correctly, it doesn't work. Additionally, after about a minute, it displays a message that the service has stopped, and Inspeckage has ceased running. I'm using Genymotion on Android 11.

Hi @mahmutyazici
I'm also running Genymotion on Android 11 and the service does stop every now and then. And even though the app is running it doesn't detect anything.
One note about the service stopping issue is to just go to config and click the APPLY button again in Inspeckage. Wait for it to display whether service has started or stopped a bit longer, because it reports the service status with a delay, so it doesn't synchronise with your clicks. If e.g. you were to click it a lot of times, it would keep changing status with a delay so make sure it displays a service started message before you try to check it in the browser.
However, can you please let me know if you found a fix for the app running issue? Really need to use this tool for location stuff in an important project. Also, if you have any suggestions for spoofing locations (in a robust way) please suggest that too in case Inspeckage is out of luck with this error.


Fix Windows path - issue 23

Use path.join instead of concatenation in one rogue line

Thanks! I don't have a windows box, so I'll miss little things like this.


Speech To Text in VS code is awkward on MacOS

Type: Bug
Just try using the MacOS inbuilt Dictation tool in VSCode.
(This tool can be activated under SystemSettings -> Keyboard -> Dictation).
Many problems:

If WordWrap is on and the line spills over, there is a rendering error; a superposition of texts.
If I speak part of a sentence and then pause and continue, I'm likely to get a capitalisation error, which means I'm constantly wasting time tidying up text.
If I insert the cursor at a location and speak, again there is a likelihood of a capitalisation error.
If I mix between speaking and typing, sometimes I get unpredictable behaviour:

Sometimes an entire 'most recently composed' section of the document gets deleted, and there is no way to recover it (via Undo shortcut, or otherwise).
Sometimes a section of text gets duplicated.

I think that the fundamental problem here is with this MacOS tool. I think it's design is overly complex and intricate, and it often falls over.
Given that most VS Code users spend most of their day entering text into VSCode, it would be really nice to have a solution that takes care of SpeechToText. Maybe a fix to interop with this Dictation tool, maybe an extension, maybe a VSCode core functionality.
I'm not bothered about speech-to-code. I'm quite happy to type my code. but if I am editing text files (.txt, .md, .nt, etc.) or modifying text content within the code (e.g. AI prompts, docstrings, strings, comments, etc.) I would like something simple and reliable.
VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:14:32.757Z)
OS version: Darwin arm64 23.4.0
Modes:

System Info

Item
Value

CPUs
Apple M2 (8 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
2, 2, 2

Memory (System)
24.00GB (2.49GB free)

Process Argv
--crash-reporter-id f10d97cd-2115-4dba-a34a-07be9312995a

Screen Reader
no

VM
0%

Extensions (21)

Extension
Author (truncated)
Version

dvt-remote-ssh
ami
1.0.0

nestedtext
bma
2.0.0

githistory
don
0.6.20

copilot
Git
1.194.886

copilot-chat
Git
0.15.2024043005

vsc-python-indent
Kev
1.18.0

rainbow-csv
mec
3.11.0

vscode-docker
ms-
1.29.1

debugpy
ms-
2024.6.0

python
ms-
2024.6.0

vscode-pylance
ms-
2024.5.1

jupyter
ms-
2024.4.0

jupyter-keymap
ms-
1.1.2

jupyter-renderers
ms-
1.0.17

vscode-jupyter-cell-tags
ms-
0.1.9

vscode-jupyter-slideshow
ms-
0.1.6

remote-containers
ms-
0.362.0

remote-ssh
ms-
0.110.1

remote-ssh-edit
ms-
0.86.0

remote-explorer
ms-
0.4.3

vscode-speech
ms-
0.8.0

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
tftest:31042121
vstes627:30244334
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:31000449
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
chatpanelt:31048053
dsvsc021:30996838
jg8ic977:31013176
pythoncenvptcf:31049071
a69g1124:31046351
pythonprc:31047982
dwnewjupytercf:31046870
26j00206:31048877

If you could just hook the did_complete of the Dictation tool and use AI to post-process and re-render the affected text, maybe this would do the job. If that's possible...

Here's an example of the duplicate-text bug:
https://github.com/microsoft/vscode/assets/693495/4b517d5c-6938-4ae3-8830-4c1e4b64a1ca

Here's a demo of the wordwrap + superposition issue:
https://github.com/microsoft/vscode/assets/693495/cb098b5f-e6d6-492e-af7c-7917ce421d30

Here's an example of the Capitilization-of-start-of-new-phrase problem:
In the last example manually offing the dictation, adding a space, onning it again.
There are other situations where I get a Capitalization fail, e.g. inserting the cursor into a sentence and speaking.
https://github.com/microsoft/vscode/assets/693495/9fafdb22-f227-4c10-baac-dd838215d283
This one is probably a really tricky fix, as macOS dictation assistant is clearly scraping the text for the active window and operating over that.
I think a VS code native speech tool would be a much appreciated feature!

Here's a nice repeatable minimal testcase for duplication.
All I do here is double-tap Fn to invoke the macOS speech-to-text assistant and speak "Testing 123" followed by a couple of seconds of silence followed by "New paragraph".
And then I just wait.
Firstly it DOESN'T create a new paragraph, just a couple of spaces.
Secondly, once it times out it dumps a duplicate of the utterance.
https://github.com/microsoft/vscode/assets/693495/6b58590b-aa13-47f7-b766-4f9547a9c6f2


Added cloudformation templates and deployment README.md for ANT332 w…

…orkshop.
Issue #, if available:
N/A
Description of changes:
CloudFormation templates for setting up lab environment in your own AWS account for ANT332 workshop.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@alolita whenever you get a chance.

Looks like this is stale and no longer needed, so I'm going to close it.


erroneous sql when first part of a record filter is entered manually and the second part graphically

System information:

Operating system Windows
DBeaver version 21.1.4

Describe the problem you're observing:
Records in the datagrid can be filtered. The filter settings can be entered by using the graphical interface and through manual input. When a filter is based on 2 fields the total filter string is a concatenation with " AND " as a separator, e.g.
(project_id IN (29)) AND (year IN (2020))
When I want to select on 2 fields and enter the first manually, e.g.
project_id in (29)
and  use the graphical interface for further selection the result is e.g.
age_ringing_id IN (2)project_id in (29)
The result gives an error, because the " AND " between both parts of the filter is missing.

Thanks for the bug report

verified


Feature Request: Export chats in the Playground

Currently, In the OpenAI playground (https://platform.openai.com/playground), their official export seems to be broken and doesn't export everything. It would be nice to have your formatted exports here too. The playground only keeps 30 days of history, so I'm losing stuff already :( lol.

I don't have quota to test on it. And they don't give me a chance to buy it too. 😢

Closing as I don't have the resource for this. 😢
But I believe it shouldn't be too complex to port this plugin to adapt the playground.


Migrations fail with mariadb

Bug Description
When running an empty migration set against a fresh mariadb database, one gets the following error:
while executing migrations: error occurred while decoding column 0: unexpected null; try decoding as an `Option`

Minimal Reproduction
    let opts: AnyConnectOptions = "mariadb://root:secret@localhost".parse()?;
    let db = AnyPool::connect_with(opts).await?;
    let migrator = Migrator::new(some_empty_dir).await?;
    migrator.run(&db).await?;

Info

SQLx version: 0.6.1
SQLx features enabled: any, mysql
Database server and version: mariadb:latest
Operating system: linux

I'm not sure what query would be failing here. Ostensibly it would be in this file: https://github.com/launchbadge/sqlx/blob/main/sqlx-core/src/mysql/migrate.rs
However, at a glance I don't see how any queries in that file could produce this error. An unexpected null on an empty set sounds like a misuse of an aggregate function but I don't see any in there.

I was getting this error because I did not provide the database in the connection URL.


🐛 [Portainer] Can't Install

Which addon?

Addon name : Portainer
Addon version : 2.14.2

Describe the bug
Error processing tar file(exit status 1): write /opt/portainer/kubectl: no space left on device
To Reproduce
Try to install
Full addon log
NO
Full addon config
NO
System

Supervisor version:
Host system version:

Hello, this is inconvenient and I can't replicate. Have you actual space remaining on your device?

Thanks for your fast reply and sorry for my delay, i'm installing again everythig
ill keep you updated thanks a lot
Stefano

After i have reistalled everything seems work thanks a lot and sorry for the disturb :-(
Stefano

The important is that it works! Enjoy the addon

@alexbelgium
Can i ask if you can create an addon based on this image here?
https://hub.docker.com/r/honeygain/honeygain
So i can install this from homeassistant and keep installation supported.
Thanks a lot
Stefano

Hi, please create a separate request topic for that so I keep track of it. However I don't have much time for the moment so I won't be able to work on it

For tinyproxy can't the existing nginx based addons fit your need? I would avoid creating an addon if there is already a solution existing

@alexbelgium thanks again for your help and fast reply :)
unfortunately nginx seems more complex and I can’t find a way to add an header when request one link, with tiny proxy is more simple instead.
thanks a lot again
Stefano


fix: revert renamed function

This should fix an unexpected BC break.

Message:

setThreadId was originally setThreadID
getThreadId was originally getThreadID
getPayloadDictionary was originally _getPayLoad (protected function)

CustomMessage:

getPayloadDictionary was originally _getPayLoad (protected function, same as in Message)

SharedConfig:

httpInit was originally _httpInit (protected function)
binaryConnect was originally _binaryConnect (protected function)
logger was originally _logger (protected function)

Push:

httpSend was originally _httpSend (private function)
getMessageQueue was originally getQueue
getBinaryNotification was originally _getBinaryNotification (protected function)
parseErrorMessage was originally _parseErrorMessage (protected function)
readErrorMessage was originally _readErrorMessage (protected function)
updateQueue was originally _updateQueue (protected function)
removeMessageFromQueue was originally _removeMessageFromQueue (protected function)

Feedback:

parseBinaryTuple was originally _parseBinaryTuple (protected function)

Server:

getMessageQueue was originally getQueue (because it changed in its parent Push)
mainLoop was originally _mainLoop (protected function)
getSHMQueue was originally _getQueue (protected function)
setSHMQueue was originally _setQueue (protected function)


Error: Cannot find module 'ajv/dist/compile/codegen

ng build  -c production fails on  angularv12 on node version 16.1.0
  throw err;
  ^

Error: Cannot find module 'ajv/dist/compile/codegen'
Require stack:```
```code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/node_modules/ajv-formats/dist/limit.js',
    '/node_modules/ajv-formats/dist/index.js',
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>    'node_modules/@angular/cli/bin/ng'
  ] ```

@richie50,
Can you please provide the output of ng v and npm ls ajv?
Thanks.

@alan-agius4

Looks like you are using an incompatible version of @angular-devkit/build-angular.
Have you used ng update to update to Angular 12?

Yes @alan-agius4
Using package manager: 'npm'
Collecting installed dependencies...
Found 64 dependencies.
    We analyzed your package.json and everything seems to be in order. Good work```

Can you kindly share your package.json?

@alan-agius4 . Managed to fix it by reinstall node_modules with  npm install --save --legacy-peer-deps
Thanks for the help. :)

@alan-agius4 FYI


[WIP] Bundle the swagger generator as an sbt plugin

This is a port of the hackathon effort. There are still some hardcoded values
and scripted test are incomplete (the tests, not the subject under test).

Fixes #19
Fixes #17


Question: How much memory does ghc-mod consume when editing Futhark source?

I am still doing Haskell exercises, but as a preliminary I am currently trying to get editor services to work with Futhark. I figured out how to get the missing dependencies going with Stack by upgrading it to the latest version, but now I am running into memory consumption issues with ghc-mod.
Inside the Atom editor, it draws in 5Gb out of 8Gb on my machine and then runs out of memory. I do not suppose you could check how much memory online type-checking takes up inside the task manager or equivalent on Linux?
I'd like to figure this one out otherwise I am going to have to do my coding on Futhark without help from the editor, which is something I would very much like to avoid. Currently, I am pestering lierdakil on his page.

I don't use ghc-mod myself (although I used to), but I have an idea of
what may be wrong.  When using 'stack repl' to load the entire Futhark
compiler into ghci, the memory usage also goes through the roof.  If
ghc-mod does something like that, which is reasonable if it wants to do
introspection, it might run into the same problem.
I'm not completely certain why this happens.  Sure, the Futhark codebase
is not trivial, but there are plenty of bigger Haskell programs.  I
suspect that it has something to do with the parser, which is generated
from src/Language/Futhark/Parser/Parser.y by the parser generator
'happy'.  I have previously noticed ghci going haywire when loading it,
presumably because whatever code structure is produced hits a worst-case
in ghci.
--
\  Troels
/\ Henriksen

I've had no luck with disabling autocomplete. When I try to load pyopencl using stack repl it takes up 2.35Gb.

Does 2.35Gb seem like more than usual to you or is it standard?

The ghci I currently have open (which has not loaded the parser) is
using 2.7GiB of resident memory.
Using 'stack repl' to load futhark-pyopencl results in a process that
uses 3.7GiB.
This is with GHC 8.0.  I vaguely recall GHC 7.10 using significantly
more.
--
\  Troels
/\ Henriksen

Hmmmm...I have no idea. It is more than on my computer at any rate.
No matter what, even if I decide not to use ghc-mod, I am going to have to find a way to get some real time feedback. Maybe I'll set up a shortcut so the program compiles every time I save. Right now, GHC is doing type checking every time I do that.
Last time I asked you, you said you were using Emacs and now you said you aren't using ghc-mod which is necessary to give Haskell modern IDE features. I am not sure whether I should be impressed or horrified. Personally, I really like the modern IDE stuff - I've noticed that it significantly impacts my productivity in a positive fashion. And now that I've used Haskell for a bit, I actually think that F# has better type inference than it, contrary to some of the things that I've read. Not necessarily while the program is working, but while it is being worked on.
For example, I would declare a new variable inside a let statement, save and the information on past types would get lost in Haskell. It is one of the things I had to get used to while moving to Haskell.
I used Emacs a year ago for a little bit, while I was doing the Compilers course, but found it strange at the time and did not really make a significant effort into learning it. I switched to the Code::Blocks IDE for the later assignments. I do not suppose it has some features that would make up for the lack of ghc-mod? I have no idea how I would live if I was forced to program without feedback from the IDE.

Yeah, the Haskell tooling isn't as good as it could be.  That said, I
believe F# has the best tooling of any functional language, so it's
hard to beat.  Have you looked at Leksah?  It's a Haskell IDE that seems
to work like ordinary IDEs, but I have never tried it myself.
My haskell-mode setup isn't completely dark-ages. :-) I use ghci to test
incrementally, and Emacs automatically runs ctags, which allows me to
use C-dot to jump to definitions (most of the time).  You can also setup
flymake, which transparently recompiles in the background and underlines
errors with red squigglies.
It is still a little crude and requires manual assembly,
unfortunately. I do miss my old Lisp programming setup.
--
\  Troels
/\ Henriksen

I tried Leksah when I heard about Haskell for the first time after I finished the Scala Coursera course which was a month or two after I'd finished the Compilers course. I was doing a lot of online courses at a time to get into shape after not doing any programming for nearly a decade.
At any rate, I could not get it to run. I think there were some problems with the GHC installation or something like that, but at that time I could not get even the Atom plugins that I have now to run. Running stuff from the command line was brand new to me as well. Leksah would silently fail and then crash, so I abandoned it. At any rate, I actually quite like Atom, but it does not really matter as even if I used Leksah, it would be using ghc-mod under the hood and I would have the same problems as with Atom.
This thing really derailed me today. I think I'll give it a day or two and then open an issue on the ghc-mod page and see where that leads. Maybe I'll look into finding something like flymake for Atom.
I did what I can for now. I'll get back to working on the problem that was doing.
It was nice talking to you.


Feature request: allow config per notification type

Our use case is that we would like to have notifications with a delay for success and sticky notifications for errors. More people could be interested.
What do you think about adding a "per notification type" config?

+1 !


Scroll performance significantly degraded on iPhone X, Xs devices.

Myself and some others discussing in https://github.com/flutter/flutter/issues/22314 have noticed significant scroll performance issues on iPhone X,Xs devices with scrolling views.
Anecdotally it seems drag gestures are the main issue, while flings seem slightly better.
@coreysprague suggested it may be because these devices have a 120hz gesture sample rate (https://www.macworld.com/article/3235709/iphone-x-samples-touch-input-at-120hz-for-faster-smoother-response.html).
Just want to clarify that this does happen even when running in release mode.
Steps to Reproduce
Here's a tiny sample app where you can reproduce the scroll jitters and frame skips, just grab an iPhone X,Xs and run in release mode.
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    const padding = EdgeInsets.symmetric(vertical: 10, horizontal: 10);

    return MaterialApp(
      home: Scaffold(
        body: ListView(
          children: <Widget>[
            Container(
              margin: padding,
              height: 200,
              color: Colors.grey,
            ),
            Container(
              margin: padding,
              height: 200,
              color: Colors.orange,
            ),
            Container(
              margin: padding,
              height: 200,
              color: Colors.grey,
            ),
            Container(
              margin: padding,
              height: 200,
              color: Colors.orange,
            ),
            Container(
              margin: padding,
              height: 200,
              color: Colors.grey,
            ),
            Container(
              margin: padding,
              height: 200,
              color: Colors.orange,
            ),
            Container(
              margin: padding,
              height: 200,
              color: Colors.grey,
            ),
            Container(
              margin: padding,
              height: 200,
              color: Colors.orange,
            ),
          ],
        ),
      ),
    );
  }
}

Logs
No errors in logs w/ flutter run --verbose
No issued found w/ flutter analyze

[✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.4 18E226, locale en-US)
• Flutter version 1.2.1 at /Users/dwempe/flutter
• Framework revision 8661d8a (8 weeks ago), 2019-02-14 19:19:53 -0800
• Engine revision 3757390
• Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/dwempe/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android Studio 2.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.2, Build version 10E125
• ios-deploy 1.9.4
• CocoaPods version 1.5.3

[✓] Android Studio (version 3.3)
• Android Studio at /Applications/Android Studio 2.app/Contents
• Flutter plugin version 34.0.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] VS Code (version 1.33.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.24.0

[✓] Connected device (2 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26)
(emulator)
• _________ iPhone • 00008020-000B25CE0298002E • ios • iOS 12.2

I tried the tiny sample app on my iPhone X and iPhone 5. I can verify that only on the iPhone X there are frequent stutters (lost frames) while drag-scrolling. As soon as I let go of the screen with finger and it only scrolls on inertia, it is fine. There is also an increase of these stutters if I swipe up to app switch on iPhone X and then just taps the app again to resume it, and right when it has been resumed again I start drag scrolling.

Wild guess but we seem to have seen a similar issue in https://github.com/flutter/flutter/issues/6135 only during touch events. We may need to gate the incoming event flow.

Thanks to @yunyu 's example app, I reproduced some stutters on iPhone X but not on iPhone 6S.
Attached is the trace with --trace-skia enabled (GPU thread frame time exceeds budget around 26.8s).
dart-timeline-2019-3-29.json.zip
Considering that it only happened on iPhoneX but not iPhone6S, I think it's related with the GPU hardware and the OpenGL driver of iPhone X. My hope is that Skia's Metal backend will eventually solve this kind of problem. So far, I'm not sure how Flutter can fix this without Skia's help.
@bsalomon (Skia's GPU lead): can you see something suspicious from the trace? Does Skia currently run tests on iPhone X? I seem to only find iPhone 6/7 on perf.skia.org . I guess as iPhone X gets more market share, such performance issues will become more and more critical. Also note that this performance issue only happened during first launches or app switches. So any performance tests that did a lot of warm up repetitions may not catch it.

@liyuqian Just to note, this performance issue is also noticeable if you hold your finger down while scrolling (it doesn't occur during flings). Not sure if that is a separate issue.

@yunyu if you're seeing this on the simulator, that's a different issue that happens when keeping the finger down on non-Flutter simulator apps too, like the Settings app.

@tvolkert I am seeing this on a physical device with the example app linked previously.

The effect is severe on iPhone X and minimal, but still observable, on iPad Pro (2. Gen.). Haven’t tested with other devices yet.

Sorry for slow response, just got back from vacation. I took a look at the trace. There is a crazy amount of time being spent in GrRenderTargetOpList::onExecute (31ms in one frame) but there isn't enough tracing detail to know what is actually happening in there. We'd need more detailed tracing events to get a better idea of where the time is going.
Side note: it's probably not too early to start trying to integrate the Metal backend. We're at the point where it draws almost everything correctly and performance is approx equal to GL with low hanging fruit still left to pick.

@bsalomon what would be the best way to get more detailed tracing?

@bsalomon Any update on this matter perhaps from your side?

I'd try removing this check for android framework so that we can see which ops are taking a long time:
https://cs.chromium.org/chromium/src/third_party/skia/src/gpu/GrRenderTargetOpList.cpp?q=GrRenderTargetOpList.cpp&sq=package:chromium&g=0&l=499

I see the same on my iPhone X.
However, interestingly when I turn on screen recording, the jitter completely disappears and everything is super smooth.
I verified that multiple times.

I'd be interested to know if the same problems happen with the new Metal backend enabled.
@derolf @rahulgs12 @msw333 @yunyu @frasza @bobmoff @wemped are any of you willing to build a custom Flutter engine and try it out?  Instructions are available at https://github.com/flutter/flutter/issues/18208#issuecomment-491548659

@tvolkert I am using platform views. Will the metal backend work with them?

Btw another interesting observation: I don’t see jitter when in landscape mode.

@derolf I still experience jitter in landscape mode

I am using platform views. Will the metal backend work with them?

@derolf it should.  If you're willing to give it an early try, we'd love the feedback on what works for you and what doesn't!

@tvolkert I’ll prolly give it a shot tomorrow.
Does anyone else see the jitter going away when doing screen recording?

@derolf I tested the screen recording theory and still see jitter in my app.

Out of curiosity, has anyone tested on an XR? If it jitters than it would rule out the 120hz input signal that was originally theorized (the XR is 60hz input).

@coreysprague I have tested the XR and there is no jitter.  You can even test in the emulator and see massive difference in performance between {X|Xs|XsMax} vs Xr.

Tried to compile the fluttere engine but got stuck when trying to install gclient. For some reason could not manage to make it execute ”gclient sync”.
Will give it another try some other time.

@tvolkert we are having a hard time compiling flutter for metal. Any chance to get prebuilt bins for Mac?
Btw. I recognized two more things:

jitter depends on screen lightness. If less than ~30% it jitters, if more it’s smooth
I see the jitter also while panning a native view that uses OpenGL (map rendering)

/cc @chinmaygarde

@derolf I am not seeing screen brightness make any difference in any of our builds.  Same amount of jitter/jank when scrolling no matter how bright the device is.

I wasn't able to compile the Metal engine. I get these (unrelated?) warnings when trying to compile ios_release_metal:

@tvolkert
I also am having trouble figuring out how we would be able to compile the Metal engine.. Are there more detailed instructions anywhere?

@wemped : ./flutter/tools/gn --ios --enable-metal <other flags as necessary>. Additionally, you may see some deprecation errors and @chinmaygarde is working on a patch to fix them.

@liyuqian Sorry, I think I'm just out of the loop on how flutter/engine fits in on all of this.
Might need to take a couple steps back first
Do I need to clone the https://github.com/flutter/engine repo?
How would I force flutter commands to use the new local engine?
Best case scenario would be steps to do this from square one, or maybe there already are docs on it somewhere that I don't know about?

@wemped yep you'll have to clone the flutter/engine repo.  Here are the relevant docs:
https://github.com/flutter/flutter/wiki/Setting-up-the-Engine-development-environment
https://github.com/flutter/flutter/wiki/Compiling-the-engine

@tvolkert @liyuqian
Running through the setup steps today and running into a problem on Step 6 (gclient sync) of this guide https://github.com/flutter/flutter/wiki/Setting-up-the-Engine-development-environment
It runs fine up until it prints Syncing projects: 100% (97/97), done.
Then it hangs, I let it run on for about 10 minutes or so, but each time I eventually kill the process it looks like it locks up on this instruction
Failed while running "cipd ensure -log-level error -root /Users/dwempe/***/***/engine -ensure-file /var/folders/n0/3qxxwjk57wn31l8qrgq2j73mm0fzqq/T/tmphTqiwW.ensure"
Any ideas on how to get passed this?

@wemped : That step may be trying to download gigabytes of tool chains (Android SDK + NDK + Fuchsia SDK + NDK + ...). Can you try monitor your network usage to see if there's download in progress? If your network is less than 10MB/s, it will take a long time to finish.

@wemped I worked around that by checking out the most recent depot_tools commit. However, the compile still won't work due to the deprecation warning issue mentioned above.

@liyuqian @tvolkert
Thanks so much for your continuous help, those docs are great. Feels like I'm very close to getting this working, but having trouble figuring out how to prepare the host flutter engine build.
https://github.com/flutter/flutter/wiki/Compiling-the-engine
On step 3 in Compiling for iOS (from macOS), I did what @liyuqian suggested before and ran ./flutter/tools/gn --ios --enable-metal to create out/ios_debug_metal. But I can't seem to figure out how to make a matching out/host_...
At least, I assume that's what the problem is because when I get to Running a Flutter app with a local engine and do flutter run --local-engine=ios_debug_metal I get this error
No Flutter engine build found at /Users/dwempe/***/engine/src/out/host_debug_metal.

and sure enough, that doesn't exist at that path - what does exist are host_debug_unopt and ios_debug_metal

@wemped : you need to symlink ln -s host_profile host_profile_metal or ln -s host_debug host_debug_metal. Find symlink in https://github.com/flutter/flutter/wiki/Compiling-the-engine for more details.
@yunyu : we just fixed the deprecation warning issue in https://github.com/flutter/engine/pull/9383. Can you please pull the newest engine and see if it succeeds?

@liyuqian
pulled the most recent changes, ran through all the steps in compiling the engine just to be sure
flutter run --profile --local-engine=ios_profile_metal -d XXX-XXX
gives me this error
Xcode build done.                                            6.7s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Profile ===
    Building AOT snapshot in profile mode (ios_profile_metal)...

    Compiler message:

    file:///Users/dwempe/***/flutter/packages/flutter/lib/src/painting/binding.dart:117:43: Error: No named parameter with the name 'decodedCacheRatioCap'.

        return ui.instantiateImageCodec(list, decodedCacheRatioCap: decodedCacheRatioCap); // ignore: deprecated_member_use_from_same_package

                                              ^^^^^^^^^^^^^^^^^^^^

    org-dartlang-sdk:///flutter/lib/ui/painting.dart:1657:15: Context: Found this candidate, but the arguments don't match.

    Future<Codec> instantiateImageCodec(Uint8List list, {

                  ^^^^^^^^^^^^^^^^^^^^^

    Compiler terminated unexpectedly.
    Failed to build /Users/dwempe/***/blank.

Could not build the precompiled application for the device.

Error running application on iPhone.

@wemped : this error seems to be a mismatch of the Flutter framework version and the Flutter engine version. What version of framework (https://github.com/flutter/flutter) are you using? One particular fix you can try is to sync your flutter version to the master branch of https://github.com/flutter/flutter, and then sync your engine (https://github.com/flutter/engine) version according to the bin/internal/engine.version file in your framework.

@liyuqian
Ok, switched to the framework master channel and upgraded
$flutter --version
Flutter 1.7.10-pre.23 • channel master • https://github.com/flutter/flutter.git
Framework • revision c8cefce300 (49 minutes ago) • 2019-06-26 10:09:14 -0700
Engine • revision 3f4f606105
Tools • Dart 2.4.0

Looks like the engine version in bin/internal/engine.version is 3f4f606105a8f6217cfbe08e193aa9a54b19dbef
How would sync my local engine to that version?

Run git checkout 3f4f606105a8f6217cfbe08e193aa9a54b19dbef in your engine repo checkout (e.g., in ~/flutter/engine/src/flutter), and then repeat the steps of gclient sync, ninja ..., ...

@liyuqian @tvolkert
Good news and bad news.
I got it running w/ metal enabled 🎉  (@liyuqian thanks again for your help and patience!)
It doesn't fully solve the scroll performance issues on iPhone X/s 😞
Charging up my old iPhone 7 now to get a side by side and will report back, but so far I'm seeing the same sort of stuttering/missed frames while dragging. I'm also seeing that flings still look good. Just the slow dragging has issues.

@wemped : I'm sorry to hear the bad news... I'll trade you with one good news: I just received two Mac Minis and iPhone Xrs that I'm going to add to our device lab so we can catch these kind of iPhone X performance issues.
While I'm busy setting it up, it will be super helpful if you can write a Flutter drive test for your specific case and add it to our device lab: https://github.com/liyuqian/flutter/wiki/How-to-add-a-simple-Flutter-device-lab-drive-perf-test
Landing the drive test in our device lab ensures that we'll never regress its performance again. Hopefully it will also help you reproduce the performance issue with less effort.

@liyuqian Unfortunately, this particular performance issue does not occur on iPhone XR

I tried the tiny sample app on my iPhone X and iPhone 5. I can verify that only on the iPhone X there are frequent stutters (lost frames) while drag-scrolling. As soon as I let go of the screen with finger and it only scrolls on inertia, it is fine.
There is also an increase of these stutters if I swipe up to app switch on iPhone X and then just taps the app again to resume it, and right when it has been resumed again I start drag scrolling. This might be related to this issue: #28113

With my colleagues we has exactly the same problems you describe with iPhone X/Xs. iPhone 7 Plus hasn't these problems.
Our app has a page that show a DataTable with a lot of records/rows. On Android devices or iPhones < X series there are no problems. With iPhone Xs during the page scroll it become completely stucked. The only thing that you can do is change page.

@liyuqian
I think it's important to note (like @yunyu said) that the iPhone XR does not have this issue.
I'd like to help out with writing a test, but I'm not sure how mine would be any different than a simple scrolling test like the one linked in your wiki (https://github.com/flutter/flutter/blob/master/dev/benchmarks/complex_layout/test_driver/scroll_perf_test.dart). Unless there's a way to force it to be run on a specific device (iPhone X or Xs).

Oh, I didn't know that https://github.com/flutter/flutter/blob/master/dev/benchmarks/complex_layout/test_driver/scroll_perf_test.dart is sufficient. We have ways to force it to run on iPhone X in our device lab. Buying iPhone X now.

@liyuqian
How did it go with the new devices? Have you been able to reproduce the scrolling issues?

@wemped : I can reproduce the issues locally on the device. I've set the iPhone XS up in our lab but some of our scripts timed out consistently for the new Mac Mini and iPhone XS pair. Will figure that out soon.

Regarding the stutter on app-switching: It seems to be mostly happening on low brightness setting. I noticed this a while ago on iPhone X (and now Xs). With full brightness, the stutter is pretty much nonexistent, but with brightness all the way down it takes seconds for app to start performing normally after switching.

@knopp thanks for the information! Can you please also:

Switch flutter to master channel and run this app on iPhone X/XS
using profile mode with Skia tracing enabled, as follows:
flutter channel master && flutter doctor -v && flutter run --profile --trace-skia
Then press ‘P’ to enable the performance overlay. Copy/paste
flutter doctor -v result here so we know the exact master version
that you're using.
The bleeding edge master channel is encouraged here because Flutter is
constantly fixing bugs and improving its performance. Your problem in an
older Flutter version may have already been solved in the master channel.

Record a video of the performance issue using another phone so we
can have an intuitive understanding of what happened. Don’t use
"adb screenrecord", as that affects the performance of the profile run.

Open Observatory and save a timeline trace of the performance issue
so we know which functions might be causing it. See "How to Collect
and Read Timeline Traces" on this blog post:
https://medium.com/flutter-io/profiling-flutter-applications-using-the-timeline-a1a434964af03#a499

@liyuqian, I'm traveling right now, I might do that when I get back. I've been using flutter master for a year now, this behavior has been present since I started with the framework.
It should be pretty straightforward to reproduce though even with Flutter Gallery, just keep the device brightness down. The fact that the behavior is depending on device brightness might perhaps suggest some kind of throttling.

I’m not seeing brightness affect the performance positively or negatively. I do observe that when I switch back to my app, performance is sometimes degraded for a period of time, but I think that is tangential to this particular issue.
@liyuqian - do you need anything at this point to help reproduce the original issue described (jank while dragging using an iPhone X/XS)?
I’ve wondered about making a demonstration app that allowed for gesture based scrolling OR programmatic scrolling to try to confirm that the jank is gesture related. I haven’t had time to do so though.

@coreysprague I have been able to consistently reproduce the jank with the example app I posted a while back: https://github.com/yunyu/flutter_scroll_stutter_test

Let me know if there is anything I can also do. I don't think there is anything special with different projects its just something to do with XS, XS Max.
Personal project runs absolutely flawless on any device until its tested on XS, on which scroll is quite worse.

I've confirmed that the issue is caused by the change of input event handling by iPhone X/XS. On iPhone X/XS, the input sampling rate is 120Hz and the input event callback/delivery rate is 60Hz. However, the 60Hz callback on iPhone X/XS becomes much more irregular than iPhone 6.
iPhone 6 callback interval:

iPhone XS callback interval:

During scroll, Flutter's frame is driven by those callbacks. If the callback time is not in sync with the 60 Hz VSYNC signal, there will be missing frames.
We'll figure out a solution soon.

Awesome work! Thanks for the update!

A potential fix is posted in https://github.com/flutter/flutter/pull/36616
I've also added some unit tests to verify that before the fix, in the worst case we can miss half of the frames. After the fix, in the worst case we miss only one frame.
The followings are comparisons of flutter_gallery scroll:

Before fix
After fix

Please let me know if that patch also fixes the problem on your apps and devices.

How can I test it if not yet merged in master?

@frasza you can use git in your flutter checkout:
git remote add liyuqian git@github.com:liyuqian/flutter.git
git fetch liyuqian
git checkout liyuqian/input_events
You may need to rebuild the flutter tool too:
rm bin/cache/flutter_tools.*

I gave the branch a whirl and it's a night and day difference on my iPhone XS Max! Awesome work @liyuqian.
Ship it! 😄

@liyuqian
Just gave it try and the fix works great 🎉

@liyuqian I am seeing jank on my iPhone XS while drag-scrolling, but also after I lifted the finger and inertia scrolling. Will it fix that as well

Where do we land on the fix? Has it been shipped yet?

which version of flutter solved this bug? @liyuqian @

The fix isn't landed or shipped yet as we're trying to come up with another lower level fix. Many other more critical issues have emerged recently so unfortunately that effort isn't done yet.
If you urgently need to fix this issue on your app, I'd recommend cherry-pick https://github.com/flutter/flutter/pull/36616 into your local Flutter.

It's nice that you want to fix it lower level, but can you still merge this fix for the time being? We are waiting for this since almost 6 months now...

In my opinion ,this bug is the most critical issue flutter should fix, i can accept any bug of flutter except this one. This bug results to such a bad user experience , i cannot publish an app developed by flutter to app store until this bug solved.

hello @liyuqian , i tried, but that pr doesn't solved the bug. After i tap up , scrolling janky goes on for some distance.
In my opinion ,this bug is the most critical issue flutter should fix now, i can accept any bug of flutter except this one. This bug results to such a bad user experience , i cannot publish an app developed by flutter to app store until this bug solved.

you can use this hack as temporary solution, try to make the brightness stays above 25% ~ 30% 😎
https://pub.dev/packages/screen

@wuyugege : can you please post more details of the janky scroll after that patch?
For example, following our performance issue report template:

Please tell us exactly how to reproduce the problem you are running into.

Please attach a small application (ideally just one main.dart file) that
reproduces the problem. You could use https://gist.github.com/ for this.

Switch flutter to master channel and run this app on a physical device
using profile mode with Skia tracing enabled, as follows:
flutter channel master
flutter run --profile --trace-skia
Then press ‘P’ to enable the performance overlay.
The bleeding edge master channel is encouraged here because Flutter is
constantly fixing bugs and improving its performance. Your problem in an
older Flutter version may have already been solved in the master channel.

Record a video of the performance issue using another phone so we
can have an intuitive understanding of what happened. Don’t use
"adb screenrecord", as that affects the performance of the profile run.

Open Observatory and save a timeline trace of the performance issue
so we know which functions might be causing it. See "How to Collect
and Read Timeline Traces" on this blog post:
https://medium.com/flutter-io/profiling-flutter-applications-using-the-timeline-a1a434964af03#a499

i found this bug in two scenario. @liyuqian
1、after the app launched
2、switch the APP from background  to foreground
in both scenario，when i scroll on the screen , the janky hanppens for some distance ,and then disappear. this bug maybe not happen every time, but at least 98% probability.
i tried apps developed by flutter on app store, this bug happens on EVERY APP. i'm surprised how can they accept this bug on production.
now i build my app with flutter 1.7.8 of stable version, 1.8.3 of beta version, 1.9.5 of dev version. this bug still there.
you can try the code provided by the bro who opend this issue to reproduce this bug.
also you try this app:https://apps.apple.com/cn/app/cryptograph-designer-charts/id1375281233 ,
on the iphone x/xs. scroll on the home page of this app you will find this bug apparently.

@wuyugege : yes, that's a different issue (https://github.com/flutter/flutter/issues/32170, previously known as https://github.com/flutter/flutter/issues/813) not covered by the PR.

@wuyungegd

also you try this app:https://apps.apple.com/cn/app/cryptograph-designer-charts/id1375281233 ,
on the iphone x/xs. scroll on the home page of this app you will find this bug apparently.

I can confirm this app having the jank-disease on my iPhone XR and that’s also the exact behavior I have on the app I am developing.

@derolf : this issue is specific to iPhone X/Xs. If you have some issues on iPhone XR, maybe it's better to leave comments on https://github.com/flutter/flutter/issues/32170 or create a new issue :)

@liyuqian sorry, it was an Xs. I edited my comment above.

I still have some questions:

when should the PR appear in master channel?

does the PR also fix janky kinetic scrolling?

does the PR also fix janky scrolling that disappears at landscape or screen recording?

@derolf :

when should the PR appear in master channel?

Unfortunately, the previous patch has been reverted. But I'm relanding it with some additional fixes: https://github.com/flutter/engine/pull/12280

does the PR also fix janky kinetic scrolling?

The kinetic scrolling shouldn't be affected by input events so there shouldn't be any jank even without the fix. Can you please attach more details of the jank, especially on how to reproduce it?

does the PR also fix janky scrolling that disappears at landscape or screen recording?

I'm not sure how it could disappear. It seems to me that the jank will disappear in all cases after the patch.

@liyuqian please see #40042 (reported by me) and #38292 (might be related).

Seems to be fixed on master now

@liyuqian should this bug be re-closed?

Yes, the relaneded fix in the framework since https://github.com/flutter/flutter/commit/b9a34dec7eab35abae3d2e0be37a7d73f9d8aceb . Closing this issue.

Reopen for another revert...

I'm observing the same irregular input delivery and dropped events on Android OnePlus 7 Pro. Alleviated greatly with cherry picking https://github.com/flutter/flutter/pull/36616 , tho "Miss at most one frame for irregular scroll drag events" is still an issue and is apparent even more so on its 90hz screen, as opposed to iPhone's 60hz.
@derolf reports above that the jitters are gone, when screen recording. I observe the same, while screen recorder locked at 60fps.

@volskaya : thank you for the report! I'm creating a new issue https://github.com/flutter/flutter/issues/41118 to track it separately.

The fix has been relanded in https://github.com/flutter/flutter/commit/4891e4a349f8e8973311bd064b143fbf122334fc . Hopefully it won't be reverted this time.


Added seperation

Hi, I think you've accidentally created a pull request unintentionally. Would you mind changing the visibility of your fork to private?


feat: Adding Exclude columns flag for aggregations in column validations

Closes issue #880

Added parameter --exclude-columns or -ec to column validation to get a flag that identifies the column list as an exclusion, and not an inclusion.
Updated Read Me to document the new parameter.
Modified logic in Config Manager to process the column list accordingly to exclusion or inclusion commands.
Added unit test to test exclusion configuration.

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

Maria,
Thank you for working through this code change and getting it to submission. Generally, you have limited the code changes to only the files that are necessary, so that is awesome. As someone who has made code changes, it is not easy to understand someone else's code and make the changes. Here are my comments

The feature specification is unclear - I have raised that comment in the issue and looking for feedback from the team.
Has lint been run on your code? Please take a look at go/pso-data-validation-onboarding - slide 11 and follow the instructions there.
I made comments on a couple of your files, they should be straightforward to fix.

Thank you.
Sundar Mudupalli

/gcbrun

@sundar-mudupalli-work I already worked and fixed on comments 2 and 3. As for the comments in the issue, I also answered, that, so we would be missing the confirmation for the "select * " scenario.

/gcbrun

/gcbrun

/gcbrun