gRPC client request fails when including authorization header.

Description
envoy version: master branch.
Simply trying to send a grpc request to envoy, setup with jwt authentication.
The gRPC client sets the authentication header with the token, unfortunately, it seems this field is seen as invalid by envoy:
invalid http2: Invalid HTTP header field was received: frame type: 1, stream: 1, name: [authorization], value: [Bearer {{token}}

This works if I simply send a curl request with the header, and grpc request without the header also succeeds.

Seems this is not related to grpc specifically and is/or is related to https://github.com/envoyproxy/envoy/issues/12197

@arberx sorry, could you give a snippet on how you send the JWT header? I tested it with Go implementation, i.e. using WithPerRPCCredentials, it works fine.

The C++ client code I'm using is quite involved, but it sets up a secure channel and sets grpc::AccessTokenCredentials.
A simple curl request works though:
curl --http2-prior-knowledge -X POST -H "Authorization: Bearer {{token}}" https://localhost:8080/random/route

Do you think it's an issue with the client?

Yes. I modified the helloworld example to employ CompositeChannelCredentials, as follows:
  grpc::SslCredentialsOptions opts;
  opts.pem_root_certs = cert;
  auto channel_creds = grpc::SslCredentials(opts);
  GreeterClient greeter(grpc::CreateChannel(
      target_str, grpc::CompositeChannelCredentials(
                      channel_creds, grpc::AccessTokenCredentials("b2s="))));

In Envoy decoding side, the debug log:
[2020-08-07 06:32:49.942][2109][debug][http] [source/common/http/conn_manager_impl.cc:250] [C0] new stream
[2020-08-07 06:32:49.942][2109][debug][http] [source/common/http/conn_manager_impl.cc:857] [C0][S14918891680706976602] request headers complete (end_stream=false):
':scheme', 'https'
':method', 'POST'
':authority', 'localhost:10000'
':path', '/helloworld.Greeter/SayHello'
'authorization', 'Bearer b2s='
'te', 'trailers'
'content-type', 'application/grpc'
'user-agent', 'grpc-c++/1.30.0 grpc-c/10.0.0 (linux; chttp2)'
'grpc-accept-encoding', 'identity,deflate,gzip'
'accept-encoding', 'identity,gzip'

[2020-08-07 06:32:49.942][2109][debug][router] [source/common/router/router.cc:428] [C0][S14918891680706976602] cluster 'service_google' match for URL '/helloworld.Greeter/SayHello'
[2020-08-07 06:32:49.942][2109][debug][router] [source/common/router/router.cc:585] [C0][S14918891680706976602] router decoding headers:
':scheme', 'https'
':method', 'POST'
':authority', 'www.google.com'
':path', '/helloworld.Greeter/SayHello'
'authorization', 'Bearer b2s='
'te', 'trailers'
'content-type', 'application/grpc'
'user-agent', 'grpc-c++/1.30.0 grpc-c/10.0.0 (linux; chttp2)'
'grpc-accept-encoding', 'identity,deflate,gzip'
'accept-encoding', 'identity,gzip'
'x-forwarded-proto', 'https'
'x-request-id', 'cdb6e742-4df0-4e33-b8d1-308877650462'
'x-envoy-expected-rq-timeout-ms', '15000'

Thanks for the detailed response! What version of envoy are you using?

The client seems fine on my end, but the code path my request is taking, seems a little different than yours:
envoy         | [2020-08-07 15:10:38.308][14][debug][http] [source/common/http/conn_manager_impl.cc:250] [C1] new stream
envoy         | [2020-08-07 15:10:38.309][14][debug][http2] [source/common/http/http2/codec_impl_legacy.cc:781] [C1] invalid http2: Invalid HTTP header field was received: frame type: 1, stream: 1, name: [authorization], value: [Bearer eyJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOi8vYXV0aC5keC5ibG9vbWJlcmcuY29tOjQ0MzAvLndlbGwta25vd24vandrcy5qc29uIiwia2lkIjoia3JiLWp3dC0yMDIwLTA2LTMwVDIzOjIzOjQxWi1EMGgzck5WQzI5UW05RE9ZTEJWTVVuYTBoRFdDVUh2d2R5VnFpQ3lNUkFvPSIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsibXlhdWRpZW5jZSJdLCJleHAiOjE1OTY4NDM5NTEsImlhdCI6MTU5Njc1NzU1MSwiaXNzIjoiaHR0cHM6Ly9hdXRoLmR4LmJsb29tYmVyZy5jb206NDQzMC8iLCJuYmYiOjE1OTY3NTc0OTEsInN1YiI6ImF4aGluZG9saSJ9.FzH5C5l3UPQul2WHnFChThlURlbJ5tVOsHpse-Fat4HLcrTb6tUv_QN2d5NUrmcGIceQrN6SdMj4kg41OK5HvZVz0NRSKhh2nTD_Df8lrD8GSFeGLYV_Xl18S3MFr-c4BX0Fu3YuvlbPvhZ4ZxMlPg_wMsT43Ki28Y1UpGS9vUp3DRfAgerzSVXax5n7eydPPICBSDRt0UirwZv7Dnczc684EuCxODIRusr2xulIi0qFHuAz5Peq4FlWiXJoL217w96mAG-6NlXYr9WLxFjbvZBuArsklrSJeuhD5qFqBMKB2tUEMmpHlJyZBdwjNcAokuCo3TNsqGeIeDZ3xrfr3A
envoy         | ]
envoy         | [2020-08-07 15:10:38.309][14][debug][http2] [source/common/http/http2/codec_impl_legacy.cc:787] [C1] invalid frame: Invalid HTTP header field was received on stream 1
envoy         | [2020-08-07 15:10:38.309][14][debug][http] [source/common/http/conn_manager_impl.cc:265] [C1] dispatch error: The user callback function failed

Notably, this path:
envoy         | [2020-08-07 15:10:38.309][14][debug][http2] [source/common/http/http2/codec_impl_legacy.cc:781]

Does this have anything to do with it? I can post my config if necessary.

Wow, turns out the issue was with a newline in the jwt file.
Thank you!


Log files growing indefinitely

What are you experiencing an issue with?

[x] Aurora
[ ] Aurora supported game, (Fill in the game)
[ ] Aurora Wrapper
[ ] Aurora Profile
[ ] Aurora supported device, (Fill in problematic devices)
[ ] Aurora Scripts
[ ] Aurora Updater
[ ] Aurora Lighting issue
[ ] Other, (Fill in another issue here)

What kind of an issue is it?

[ ] Crash
[x] Performance problems
[ ] Visual bug
[ ] Localization issue
[ ] Enhancement suggestion
[ ] Device issue
[ ] Other, (Fill in another type of issue here)

Expected behavior:
Explain here what should happen.
Logs should remain rather small
Actual behavior:
Explain here what happened instead.
Overnight logs grow to 14GB filling my entire SSD free space
How often does this problem occur?

This problem occurs... (Fill in here)
Logs just grow gradually into monstrous sizes over time
Please describe the steps to reproduce this issue:
The issue can be reproduced by doing following steps:

Start aurora
Play some game
Go afk for 20 hours
Enjoy 10GB+ of log files

What is the version of Aurora you are experiencing this issue with?

My version is... (Fill in here)
Latest dev release
Does the previous version of Aurora have this issue?
The previous version, (Fill in the version here), did/did not have this issue.
No idea
Please include any logs, screenshots, or files that are related to this issue:

For logs, you can use: http://pastebin.com/
For screenshots, you can use: http://imgur.com/
For files, you can use: http://www.tinyupload.com/ , https://www.dropbox.com/ , or attach them to the issue.

Could you give a sample of what is present in the logs?

https://i.gyazo.com/89eebe89be358517cc77caf2e6da723f.png
Can't really open this huge files. I'll try to get a smaller log and post it in a few days.

Hey, I just noticed i have 2 ~1.5GB log files on 0.6.1-dev4 with repeating lines of the following:
[ERROR] 22:46:43: Error encountered in the Equalizer layer. Exception: System.Runtime.InteropServices.COMException (0x80070490): Element not found. (Exception from HRESULT: 0x80070490)    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)    at NAudio.CoreAudioApi.MMDeviceEnumerator.GetDefaultAudioEndpoint(DataFlow dataFlow, Role role) in C:\projects\aurora\NAudio\NAudio\CoreAudioApi\MMDeviceEnumerator.cs:line 74    at Aurora.Settings.Layers.EqualizerLayerHandler.Render(IGameState gamestate) in C:\projects\aurora\Project-Aurora\Project-Aurora\Settings\Layers\EqualizerLayerHandler.cs:line 190 [ERROR] 22:46:43: Error encountered in the Equalizer layer. Exception: System.Runtime.InteropServices.COMException (0x80070490): Element not found. (Exception from HRESULT: 0x80070490)    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)    at NAudio.CoreAudioApi.MMDeviceEnumerator.GetDefaultAudioEndpoint(DataFlow dataFlow, Role role) in C:\projects\aurora\NAudio\NAudio\CoreAudioApi\MMDeviceEnumerator.cs:line 74    at Aurora.Settings.Layers.EqualizerLayerHandler.Render(IGameState gamestate) in C:\projects\aurora\Project-Aurora\Project-Aurora\Settings\Layers\EqualizerLayerHandler.cs:line 190
I'm not 100% sure but I think this happens at my home PC whenever i remote desktop into it.

@diogotr7 Are you sure those are from dev4? Because the lines it mentions do not line up with the lines from dev4.

I can confirm that with Aurora v0.6.1-dev4 the issue no longer exists and I can finally use aurora daily, well done guys!

issue still present: https://github.com/antonpup/Aurora/issues/1065


FutureWarnings in Sycamore

To reproduce:
pytest forest/sycamore/tests

Observed output:
forest/sycamore/tests/test_functions.py: 55 warnings
  /Users/ils475/code/onnelalab/forest/forest/sycamore/read_audio.py:136: FutureWarning: get_duration() keyword argument 'filename' has been renamed to 'path' in version 0.10.0.
  	This alias will be removed in version 1.0.
    all_durations.append(librosa.get_duration(

forest/sycamore/tests/test_functions.py: 55 warnings
  /Users/ils475/code/onnelalab/forest/forest/sycamore/read_audio.py:136: FutureWarning: PySoundFile failed. Trying audioread instead.
  	Audioread support is deprecated in librosa 0.10.0 and will be removed in version 1.0.
    all_durations.append(librosa.get_duration(

Expected output: no warnings

@hackdna thanks for bringing this up.
The first warning is resolved in this pr (https://github.com/onnela-lab/forest/pull/222)
The second warning is not able to be resolved at this time. The warning will appear from librosa (https://github.com/librosa/librosa/issues/1015) until their dependent library libsndfile gains the ability to read mp4 files. Progress on libsndfile's ability to read mp4 files can be seen here (https://github.com/libsndfile/libsndfile/issues/389)

Thanks for addressing the first warning.
Does the second warning mean that librosa version 1.0 would potentially lose the ability to read mp3 files (at least until libsndfile gains that ability)? Does Forest need to be able to process mp3 files?

Yes, librosa plans to deprecate using audioread. If they do so, forest's reading of mp4 files will be deprecated and there will be no information for duration spent on audio surveys. But, it seems like the deprecation doesn't have any super active plans--more information about that is here: https://github.com/librosa/librosa/issues/1456

OK, thank you for looking in to this. I'll close this issue for now.


Waymo-open-dataset-tf-2-6-0 does not work

I tried installing the waymo-open-dataset-tf-2-6-0, but it resulted in an error, "No matching distribution found". Is there a workaround so I can still use Tensorflow 2.6 because Tensorflow 2.11 causes my code to result in an error?

Sorry, but Tensorflow 2.6 is no longer supported.


Can you explain the link cable?

Can you explain which pins of the link cable to use:
Old "8bit" Plug:

|  6     4      2   |
5__3__1/   (at cable)
Pin | Name    | Colour
1  |  VDD35 |  N/A
2   |  SO      |  Red
3   |  SI        | Orange
4   |  SD      |  Brown
5   |  SC       |  Green
6   |  GND    |  Blue
and which pins of the arduino go with which pins of the link cable?

taken from https://github.com/EstebanFuentealba/Arduino-Spoofing-Gameboy-Pokemon-Trades

                                                                                It's basically SPI. So you need to connect SC, SI, and SO to the clock, mosi and miso lines of the Arduino.                                                                                Sent from my BlackBerry 10 smartphone.                                                                                From: GeezbrektSent: vrijdag 11 december 2015 11:32 AMTo: pepijndevos/arduino-boyReply To: pepijndevos/arduino-boySubject: [arduino-boy] Can you explain the link cable? (#5)Can you explain which pins of the link cable to use:

Old "8bit" Plug:
|  6     4      2   |
5__3__1/   (at cable)
Pin | Name    | Colour
1  |  VDD35 |  N/A
2   |  SO      |  Red
3   |  SI        | Orange
4   |  SD      |  Brown
5   |  SC       |  Green
6   |  GND    |  Blue
and which pins of the arduino go with which pins of the link cable?
—Reply to this email directly or view it on GitHub.

To which channels of the arduino though? Like port 4,3,2, and gnd were the arduino ports I used with the link cables for trade spoofing, can u go into more detail please

Actually, any port at all. A quick glance at the code made me remember that I bit-banged the SPI for this project. So 4, 3, 2, gnd will do. Just change the defines at the top to match that https://github.com/pepijndevos/arduino-boy/blob/master/gameboy.ino#L5-L7

Hi,
I managed to connect port 4,3,2 on the teensy 2.0 on port 1,2,3.
Serial debug give me this :
hello world
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0 80 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
idle
idle

But when I try to access link trade via Pokemon center It fails, saying it needed to be 2 linked players.
Can you help me ?

You need to change the ports.
The defaults are for an arduino mega IIRC.
#define MOSI_ 22
#define MISO_ 23
#define SCLK_ 24

Well I did connect as you told me but it still don’t work.
Same results.
Maybe my câble or the chip is malfunctionning ?

I don't have a crystal ball. All I can tell you is to make sure everything is connected and the the pin you connected the game boy wires to matches the defines. You do not have to use ports 1, 2, 3, but IF YOU DO, then you have to change the defines to 1, 2, 3. The default defines use pins 22, 23, 24. There are a few branches with different configurations, you can give these a go as well.

On my teensy 2.0 I have soldered :
Black wire on GND
(SC) Green wire on PB1 (SLCK)
(SO) Orange wire on PB2 (MOSI)
(SI) Red wire on PB3 (MISO)
I got 'Idle' on serial output, when I speak to the character (let name it Mr.X) that allow me to trade or battle, nothing happen.
Then I did :
Black wire on GND
(SD) Brown wire on PB1 (SLCK)
(SO) Orange wire on PB2 (MOSI)
(SI) Red wire on PB3 (MISO)
With that I got idle, then when I talk to Mr.X some data are received but only 0 values.
hello world
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0 80 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
idle
idle


repackaged plugin commands don't work

Before submitting your bug report

[X] I believe this is a bug. I'll try to join the Continue Discord for questions
[X] I'm not able to find an open issue that reports the same bug
[x] I've seen the troubleshooting guide on the Continue Docs

Relevant environment info
- OS: windows 11
- Continue: 0.9.151
- IDE: vscode 1.90.0

Description
when trying to repackage the plugin, after downloading the repackaged version, all of the functionalities don't work. i get command 'continue.focusContinueInput' not found when trying to use ctrl L, the chat doesn't load, and when trying to select files as context, i get this

To reproduce
install all of the dependenceis using yarn
run the vsce package command: vsce package --allow-star-activation --no-dependencies --yarn --no-git-tag-version --githubBranch v0.9.151-vscode --allow-missing-repository
install the package from vsix and try to run it.
Log output
it says version 0.9.141 though i used the 0.9.151 branch

workbench.desktop.main.js:sourcemap:1847 Activating extension 'Continue.continue' failed: Could not locate the bindings file. Tried:
 → c:\Users\elada\.vscode\extensions\continue.continue-0.9.141\build\node_sqlite3.node
 → c:\Users\elada\.vscode\extensions\continue.continue-0.9.141\build\Debug\node_sqlite3.node
 → c:\Users\elada\.vscode\extensions\continue.continue-0.9.141\build\Release\node_sqlite3.node
 → c:\Users\elada\.vscode\extensions\continue.continue-0.9.141\out\Debug\node_sqlite3.node
 → c:\Users\elada\.vscode\extensions\continue.continue-0.9.141\Debug\node_sqlite3.node
 → c:\Users\elada\.vscode\extensions\continue.continue-0.9.141\out\Release\node_sqlite3.node
 → c:\Users\elada\.vscode\extensions\continue.continue-0.9.141\Release\node_sqlite3.node
 → c:\Users\elada\.vscode\extensions\continue.continue-0.9.141\build\default\node_sqlite3.node
 → c:\Users\elada\.vscode\extensions\continue.continue-0.9.141\compiled\20.9.0\win32\x64\node_sqlite3.node
 → c:\Users\elada\.vscode\extensions\continue.continue-0.9.141\addon-build\release\install-root\node_sqlite3.node
 → c:\Users\elada\.vscode\extensions\continue.continue-0.9.141\addon-build\debug\install-root\node_sqlite3.node
 → c:\Users\elada\.vscode\extensions\continue.continue-0.9.141\addon-build\default\install-root\node_sqlite3.node
 → c:\Users\elada\.vscode\extensions\continue.continue-0.9.141\lib\binding\node-v121-win32-x64\node_sqlite3.node.

@eladamittai This means that the native dependencies were not packaged.
See here for full environment setup steps, but the important ones for building on your own are npm run prepackage and npm run package in the extensions/vscode folder

@sestinj hey, thanks for the quick reply. I followed both the steps you gave me and the steps in the guide, yet i kept recieving this error:
><EMAIL_ADDRESS>package
> node scripts/package.js

C:\Users\elada\elad-projects\continue\extensions\vscode\scripts\package.js:24
  if (error) throw error;
             ^

Error: Command failed: npx vsce package --out ./build patch --no-dependencies
(node:4428) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
✘ [ERROR] Could not resolve "./lib/source-map-generator"

    ../../core/node_modules/source-map/source-map.js:6:37:
      6 │ ...nerator = require('./lib/source-map-generator').SourceMapGenerator;
        ╵                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

✘ [ERROR] Could not resolve "./lib/source-map-consumer"

    ../../core/node_modules/source-map/source-map.js:7:36:
      7 │ ...pConsumer = require('./lib/source-map-consumer').SourceMapConsumer;
        ╵                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~

✘ [ERROR] Could not resolve "./lib/source-node"

    ../../core/node_modules/source-map/source-map.js:8:29:
      8 │ exports.SourceNode = require('./lib/source-node').SourceNode;
        ╵                              ~~~~~~~~~~~~~~~~~~~

C:\Users\elada\elad-projects\continue\extensions\vscode\node_modules\esbuild\lib\main.js:1636
  let error = new Error(`${text}${summary}`);
              ^

Error: Build failed with 3 errors:
../../core/node_modules/source-map/source-map.js:6:37: ERROR: Could not resolve "./lib/source-map-generator"
../../core/node_modules/source-map/source-map.js:7:36: ERROR: Could not resolve "./lib/source-map-consumer"
../../core/node_modules/source-map/source-map.js:8:29: ERROR: Could not resolve "./lib/source-node"
    at failureErrorWithLog (C:\Users\elada\elad-projects\continue\extensions\vscode\node_modules\esbuild\lib\main.js:1636:15)
    at C:\Users\elada\elad-projects\continue\extensions\vscode\node_modules\esbuild\lib\main.js:1048:25
    at C:\Users\elada\elad-projects\continue\extensions\vscode\node_modules\esbuild\lib\main.js:993:52
    at buildResponseToResult (C:\Users\elada\elad-projects\continue\extensions\vscode\node_modules\esbuild\lib\main.js:1046:7)
    at C:\Users\elada\elad-projects\continue\extensions\vscode\node_modules\esbuild\lib\main.js:1075:16
    at responseCallbacks.<computed> (C:\Users\elada\elad-projects\continue\extensions\vscode\node_modules\esbuild\lib\main.js:697:9)
    at handleIncomingPacket (C:\Users\elada\elad-projects\continue\extensions\vscode\node_modules\esbuild\lib\main.js:752:9)
    at Socket.readFromStdout (C:\Users\elada\elad-projects\continue\extensions\vscode\node_modules\esbuild\lib\main.js:673:7)
    at Socket.emit (node:events:520:28)
    at addChunk (node:internal/streams/readable:559:12) {
  errors: [
    {
      detail: undefined,
      id: '',
      location: {
        column: 37,
        file: '../../core/node_modules/source-map/source-map.js',
        length: 28,
        line: 6,
        lineText: "exports.SourceMapGenerator = require('./lib/source-map-generator').SourceMapGenerator;",
        namespace: '',
        suggestion: ''
      },
      notes: [],
      pluginName: '',
      text: 'Could not resolve "./lib/source-map-generator"'
    },
    {
      detail: undefined,
      id: '',
      location: {
        column: 36,
        file: '../../core/node_modules/source-map/source-map.js',
        length: 27,
        line: 7,
        lineText: "exports.SourceMapConsumer = require('./lib/source-map-consumer').SourceMapConsumer;",
        namespace: '',
        suggestion: ''
      },
      notes: [],
      pluginName: '',
      text: 'Could not resolve "./lib/source-map-consumer"'
    },
    {
      detail: undefined,
      id: '',
      location: {
        column: 29,
        file: '../../core/node_modules/source-map/source-map.js',
        length: 19,
        line: 8,
        lineText: "exports.SourceNode = require('./lib/source-node').SourceNode;",
        namespace: '',
        suggestion: ''
      },
      notes: [],
      pluginName: '',
      text: 'Could not resolve "./lib/source-node"'
    }
  ],
  warnings: []
}

Node.js v22.2.0
 ERROR  npm failed with exit code 1

    at genericNodeError (node:internal/errors:983:15)
    at wrappedFn (node:internal/errors:537:14)
    at ChildProcess.exithandler (node:child_process:421:12)
    at ChildProcess.emit (node:events:520:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
  code: 1,
  killed: false,
  signal: null,
  cmd: 'npx vsce package --out ./build patch --no-dependencies'
}

i tried it with the new 0.9.163-vscode version, plus the 0.9.151 and 0.9.140 versions. i tried to download the lib package with npm in the core folder and to add it to the package.json, yet it didn't work.

Is there an update? I tried to add it in the core folder because this is where it was said to be missing, but it still didn't work.

@sestinj I'm facing the same issue, but it's not a dev build. I'm using the release package from the VSCode store.
It gives me errors on each command and also the handler errors.
No handler for message type "config/getSerializedProfileInfo"
I tried installing the previous VSCode version (1.91.1) and the previous extension version (0.9.195), but that didn't work.
Tried removing all extensions as well.
What could cause the problem? It occurs only on my Windows machine.

@MaxRev-Dev Can you share what version of Continue you are using?

@sestinj
Continue: v0.9.207 (latest). Tried 0.9.195 and 0.8.50. Disabled all installed extensions and only "Continue" is enabled.
VSCode:
Version: 1.93.0 (user setup)
Commit: 4849ca9bdf9666755eb463db297b69e5385090e3
Date: 2024-09-04T13:02:38.431Z
Electron: 30.4.0
ElectronBuildId: 10073054
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.22631

Ok, very interesting. I probably should have asked this at first, but would you also be able to share the logs? You can find them with ctrl+shift+p, "Toggle Developer Tools". My guess is there's a problem with native dependencies on this particular version of Windows

@sestinj, here are the logs. The Webview didn't show anything interesting. This one is from the extension host.
I narrowed it down to  getGlobalContextFilePath(). What is the context path in this case?
I don't remember changing any configs that would break it.

2024-09-10 18:16:52.545 [error] Activating extension Continue.continue failed due to an error:
2024-09-10 18:16:52.545 [error] SyntaxError: Unexpected token 'nul',  "nulnul....." is not valid JSON.
 	at JSON.parse (<anonymous>)
	at GlobalContext.get (c:\Users\User\.vscode\extensions\continue.continue-0.9.207\out\extension.js:103063:29)
	at new Core (c:\Users\User\.vscode\extensions\continue.continue-0.9.207\out\extension.js:516162:30)

I found the path ~/.continue/index/globalContext.json in this issue https://github.com/continuedev/continue/issues/2026.
The file was empty. I suppose my PC was improperly shut down due to a blackout. But I think, in this case, the extension should recreate the file. When I deleted it and restarted the extension host, the file was recreated, and everything works now.


[5.7] Improve Unicode/UTS18 and semantic level support (#268)

5.7 cherry-pick of https://github.com/apple/swift-experimental-string-processing/pull/268

Add tests for UTS18 level support (incomplete)
Implement canonical equivalence tests
Fix canonical equivalence at different levels
Test named chars x semantic level
Enable loose matching on \N{...} scalar names
Make Unicode property classes work with semantics

@swift-ci please test

Do you have a swift-ci run for this?

Ack no, let's take this in https://github.com/apple/swift-experimental-string-processing/pull/409 if we can


Reading crashes, if no useful line found

Can you provide an example of a file that this fails for? For fully incorrect files, then having this throw an exception is expected.

yeah, but the code hangs on the line and not moving forward. ill search for the file, that gives the error...


Image build error running gold_patch

Describe the bug
Running
python3 -m swebench.harness.run_evaluation \
    --dataset_name princeton-nlp/SWE-bench \
    --predictions_path gold \
    --max_workers 1 \
    --instance_ids pylint-dev__pylint-8898  \
    --run_id validate-gold \
;

Gives
Error building image pylint-dev__pylint-8898: 400 Client Error for http+docker://localhost/v1.46/containers/create?name=sweb.eval.pylint-dev__pylint-8898.validate-gold&platform=linux%2Fx86_64: Bad Request ("NanoCPUs can not be set, as your kernel does not support CPU CFS scheduler or the cgroup is not mounted")

This also happens to the following task instances
pylint-dev__pylint-6196 pylint-dev__pylint-6386 pylint-dev__pylint-6517 pylint-dev__pylint-6556 pylint-dev__pylint-6937 pylint-dev__pylint-7114 pylint-dev__pylint-7993 pylint-dev__pylint-8281 pylint-dev__pylint-8757 pylint-dev__pylint-8898

Steps/Code to Reproduce
git clone git@github.com:princeton-nlp/SWE-bench.git
cd SWE-bench
pip install -e .

python3 -m swebench.harness.run_evaluation \
    --dataset_name princeton-nlp/SWE-bench \
    --predictions_path gold \
    --max_workers 1 \
    --instance_ids pylint-dev__pylint-6196 pylint-dev__pylint-6386 pylint-dev__pylint-6517 pylint-dev__pylint-6556 pylint-dev__pylint-6937 pylint-dev__pylint-7114 pylint-dev__pylint-7993 pylint-dev__pylint-8281 pylint-dev__pylint-8757 pylint-dev__pylint-8898  \
    --run_id validate-gold \
;

Expected Results
Gold patches pass without error.
Actual Results
Error building image pylint-dev__pylint-8898: 400 Client Error for http+docker://localhost/v1.46/containers/create?name=sweb.eval.pylint-dev__pylint-8898.validate-gold&platform=linux%2Fx86_64: Bad Request ("NanoCPUs can not be set, as your kernel does not support CPU CFS scheduler or the cgroup is not mounted")

System Information
Ubuntu 22.04.4, Python 3.10, swebench 2.1.2.

Just ran it, everything looks fine on my side. I think it's possible that some prior commit fixed it.
This line, which sets nano_cpus for certain versions of pylint, should fix this issue.
$ ./test.sh
/opt/miniconda3/envs/sweb/lib/python3.10/runpy.py:126: RuntimeWarning: 'swebench.harness.run_evaluation' found in sys.modules after import of package 'swebench.harness', but prior to execution of 'swebench.harness.run_evaluation'; this may result in unpredictable behaviour
  warn(RuntimeWarning(msg))
Using gold predictions - ignoring predictions_path
Running 1 unevaluated instances...
Base image sweb.base.x86_64:latest already exists, skipping build.
Base images built successfully.
Total environment images to build: 1
1 ran successfully, 0 failed: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [01:16<00:00, 76.18s/it]
All environment images built successfully.
Running 1 instances...
1 ran successfully, 0 failed: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:29<00:00, 29.03s/it]
All instances run.
Cleaning cached images...
Removed 0 images.
Total instances: 1
Instances submitted: 1
Instances completed: 1
Instances incomplete: 0
Instances resolved: 1
Instances unresolved: 0
Instances with empty patches: 0
Instances with errors: 0
Unstopped containers: 0
Unremoved images: 0
Report written to gold.gold.json

$ cat test.sh
python3 -m swebench.harness.run_evaluation \
    --dataset_name princeton-nlp/SWE-bench \
    --predictions_path gold \
    --max_workers 1 \
    --instance_ids pylint-dev__pylint-8898  \
    --run_id gold \

Hi,
I ran the same command again on my side with the latest version. Still the same error message as originally reported.
I suspect this may be something with Docker or the underlying hardware. Would you share the Docker version and CPU you were using?


Edit Database Driver when editing connection

Is your feature request related to a problem? Please describe.

If you see, I have used mysql5 driver and now I want to update the existing connection as mysql8 . But I don't think I've getting those options. I had to re-create a new connection with mysql8 driver.
Describe the solution you'd like
There must be an option to edit the driver as well.
Describe alternatives you've considered
Still not. Unfortunately, I've to drop the connection & create a new connection having mysql8 driver.
Additional context
Dbeaver Version: Version <IP_ADDRESS>011152110

It can be changed from the driver settings.

got to the driver settings dialog

there you can download/update the used driver

in the driver settings click on the version column and select the desired driver version

with a click on download the driver will be downloaded if not downloaded before

The steps are good though. However, there is still an error.

But, If I create a new connection with this Mysql driver, it works well.

You can use the advice above, but something can go wrong, so I do not recommend it.
To change the driver for the existed connection:

Click the connection in DB Navigator
Select Database>Change connection driver and select another one

2. Select Database>Change connection driver and select another one

It didn't work either.

@rajeshisnepali Maybe some of th hints given her could help in your case.
https://community.atlassian.com/t5/Confluence-questions/MySQL-Public-Key-Retrieval-is-not-allowed/qaq-p/778956
This should not be an advice to disable encryption in general. It's rather to be seen as a way to check if the updated connection will work as such. After that please refer to the documentation how to setup the server/client to use an encrypted connection.

@rajeshisnepali Did the last advice help you?

@kseniiaguzeeva Yes, Of course. 👌


Force cancellation of Azure subscription even if it has existing resources

Package Name: azure-mgmt-subscription
Package Version: 0.5.0
Operating System: Ubuntu 18.04 LTS
Python Version: python 3.6.9

Describe the bug
When cancelling Azure subscription the request fails if the subscription has resources. There should be a flag or something to force cancellation of subscription even if it has resources ( as it's the case in the portal)
To Reproduce
Steps to reproduce the behavior:

create an azure subscription from library or EA portal
try to cancel the subscription using the azure-mgmt-subscription library

Expected behavior
When cancelling the subscription; there should be a flag or header to ignore existing resources within this subscription.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
from azure.mgmt import subscription
from azure.common import credentials
sub_client = subscription.SubscriptionClient(creds)
sub_client.subscriptions.cancel(subscription_id=subscription_id,
                                                        custom_headers={"Cache-Control": "no-cache"})
there should be something like
sub_client.subscriptions.cancel(subscription_id=subscription_id, ignore_existing_resources=True,
                                                        custom_headers={"Cache-Control": "no-cache"})

@szaher thanks for the feedback, @nickzhums could you take a look at this?

assign to Zim to check why the flag is not available in sdk while it's supported in portal. thanks.

Investigating

This behavior is currently by design. We explicitly did not enable this to prevent accidental cancellations of subscriptions with active resources that could impact prod services. If you would like to cancel subscriptions, you should be able to delete all resources and then cancel the subscriptions via the APIs. The reason we support this in UX and not in API is that the UX has enough warnings and functionality to review what is being deleted which will not be the case via API.
I will be closing this for now. Please re-open if you disagree and share the functionality that doesnt get addressed by existing APIs.

@anuragdalmia I totally disagree! It is very important to me, to disable a Subscription with REST. I cannot understand the reasoning that this step is automatically too dangerous. The subscription is "read-only", nothing is deleted. I can also delete a resource group. Please include the possibility to deactivate the subscription programmatically, even if there are resources in it!

@Gill-Bates apologies for the delay. Can you help me understand your specific scenario where you need to do this.

Hello,
@anuragdalmia We would also like to have a force setting. We have an internal type of Subscription called dev-sandbox. There are pre-defined budgets for such subscriptions. It is very-very important to us to stay within those budget boundaries what we set. We would like to use the REST API to cancel a subscription once the budget is reached in an automated way. This would enable us to have an automation which could provide the end users the following features & functionalities:

Form based automation to request a budget increase (with auto enable for the sub)
Automation to cancel a sub when a budget is reached
Automation to enable a sub at the beginning of the month (when the budget period resets)

I don't really see a reason why you could not implement a simple additional property in the POST with the necessary documentation (including warnings).

Hello,
@anuragdalmia We would also like to have a force setting. We have an internal type of Subscription called dev-sandbox. There are pre-defined budgets for such subscriptions. It is very-very important to us to stay within those budget boundaries what we set. We would like to use the REST API to cancel a subscription once the budget is reached in an automated way. This would enable us to have an automation which could provide the end users the following features & functionalities:

Form based automation to request a budget increase (with auto enable for the sub)
Automation to cancel a sub when a budget is reached
Automation to enable a sub at the beginning of the month (when the budget period resets)

I don't really see a reason why you could not implement a simple additional property in the POST with the necessary documentation (including warnings).

@anuragdalmia Disabled Subscription will stop generating costs. I want to disable a Subscription, when the Budget is reached, to make sure, no additional costs are generated. Deleting the resources would be very bad.

@anuragdalmia Disabled Subscription will stop generating costs. I want to disable a Subscription, when the Budget is reached, to make sure, no additional costs are generated. Deleting the resources would be very bad.

Thanks @Gill-Bates , @Dilergore  for the detailed explanations. Let me review this and get back with options.

Thanks @Gill-Bates , @Dilergore  for the detailed explanations. Let me review this and get back with options.

@anuragdalmia Thank You!
Moreover let me add this a bit more:
I think originally you have the 90 days cancellation period with keeping the resource to give the end users time to figure out whether they really do not need the subscription and its contents. In the same time you do not offer any other way to get rid of a subscription. So there is as well an illogical thinking here because either I should be able to cancel the sub as it is and keep it intact or delete it forever if I cannot do that. You said that we could delete all the resources first, but if I delete everything then the subscription won't be different from a new one I could create so basically the sub could go away instantly. (I get that other than resources there can be other settings like some preview flags or manually turned on settings from the MS side but at this point I do not think it matters that much).
On the top of this if a customer creates an automation for this today they need to delete everything to do it. So then my question becomes: what is better? If they delete everything and cancel and realize they screwed up or if they just cancel and then they realize the mistake and able to enable and everything goes as it was before... See?

@anuragdalmia Thank You!
Moreover let me add this a bit more:
I think originally you have the 90 days cancellation period with keeping the resource to give the end users time to figure out whether they really do not need the subscription and its contents. In the same time you do not offer any other way to get rid of a subscription. So there is as well an illogical thinking here because either I should be able to cancel the sub as it is and keep it intact or delete it forever if I cannot do that. You said that we could delete all the resources first, but if I delete everything then the subscription won't be different from a new one I could create so basically the sub could go away instantly. (I get that other than resources there can be other settings like some preview flags or manually turned on settings from the MS side but at this point I do not think it matters that much).
On the top of this if a customer creates an automation for this today they need to delete everything to do it. So then my question becomes: what is better? If they delete everything and cancel and realize they screwed up or if they just cancel and then they realize the mistake and able to enable and everything goes as it was before... See?

Hi @anuragdalmia,
Have you had a chance to look into this?

@Dilergore yes, we are still looking into this. This ask is officially in our backlog and we are figuring out a way to prioritize this. Will keep you posted.

I am facing the same issue using the Azure Rest API, the Cancel API call fails with the error "There are existing resources associated with subscription. Delete them before cancelling the subscription".
We have a similar use case using Sandbox Subscriptions. We find it safer to Cancel the Subscription instead of deleting resources from it.

This behaviour can be achived by adding parameter IgnoreResourceCheck=true to URI
https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/cancel?IgnoreResourceCheck=true&api-version=2019-03-01-preview
This is basically as it's done via portal.
I just hope Microsoft won't disable this behaviour.
In my opinion, it's much more secure than just deleting all resources.

What permissions are required to cancel subscriptions?
I created this role:
{
    "properties": {
        "roleName": "cancel-role",
        "description": "",
        "assignableScopes": [
            "/subscriptions/{sub_id}"
        ],
        "permissions": [
            {
                "actions": [
                    "Microsoft.Subscription/cancel/action",
                    "Microsoft.Subscription/enable/action"
                ],
                "notActions": [],
                "dataActions": [],
                "notDataActions": []
            }
        ]
    }
}

This API endpoint works:
/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/enable

This one doesn't:
/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/cancel

I get the following error message:

Only subscription owners can perform this operation. Contact your subscription owner to perform this operation

I need to assign a role to a managed identity which can cancel subscriptions but not do anything else.
Strangely giving the role Action permission * and notAction Microsoft.Subscription/cancel/action does not stop you from being able to cancel subscriptions.

/unresolve

Strangely giving the role Action permission * and notAction Microsoft.Subscription/cancel/action does not stop you from being able to cancel subscriptions.

This is still the case, I've set a Custom Role and assigned it to a group (at subscription level) of which i'm member of, this is part of the custom role:
"assignableScopes": [
            "/subscriptions/sdfsdf...",
            "/subscriptions/28ssdf..."
        ],
        "permissions": [
            {
                "actions": [
                    "*"
                ],
                "notActions": [
                    "Microsoft.Subscription/cancel/action",
                    "Microsoft.Subscription/rename/action",

And i can still cancel and rename a subscription (I've waited at least 12 hours before checking again). I don't have any significant other roles on that subscription, except some reader role.


Update RFC #19

Updates to RFC #19

Changed dates to YYYY-MM-DD format for consistency with other RFCs
Added a "landed" date
Removed the text about validation of unspecified entities, per discussion on #35

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

In this PR, the RFC gets the same date for FCP and for Accepted. Is that correct?

Good point -- accepted date was wrong. Will fix in next commit.


Need a way to add circuit drawing styles without loosing the default ones

What should we add?
Currently to add circuit drawing styles one needs a setup file that sets the default path to the styles, eg something that looks like this:
[default]
circuit_mpl_style_path = ~/.qiskit

However when doing so one looses access to the builtin options, save for default.  It would be nice if the settings.conf file appended styles in a dir to a set that includes the default rather than changing the path.  That way an user has access to both builtin and custom.

 If it's excluding the defaults (assuming there isn't a name collision) then that's a bug in the config file handling.

I'd like to work on this

Hmm, let me try again, could be my mistake

If I do qc.draw('mpl', style='iqx') then I get
/Users/paul/mambaforge/envs/qiskit/lib/python3.10/site-packages/qiskit/visualization/circuit/matplotlib.py:163: UserWarning: Style JSON file 'iqx.json' not found in any of these locations: /Users/paul/mambaforge/envs/qiskit/lib/python3.10/site-packages/qiskit/visualization/circuit/styles/iqx.json, ~/.qiskit/iqx.json, iqx.json. Will use default style.
self._style, def_font_ratio = load_style(style)
which I guess I assumed was due to messing around with the paths, but it looks like the JSON files for the default styles are not found on any of my machines.

This might have something to do with #8306. The styles dir was moved to visualization/circuit. You might still have a styles dir under visualization, but not sure why they would not have been moved.

If you moved the directory the json files lived in you'll need to update the manifest file: https://github.com/Qiskit/qiskit-terra/blob/main/MANIFEST.in#L9 That file controls non-python data files we include in the package.

@mtreinish Yep, that's it. Second time that file has caught me. Do you want me to do a PR to update the manifest file?


fix: uncomment no-longer-slow field_simp test

Now that https://github.com/leanprover/lean4/issues/2055 is resolved, this test no longer times out.

bors merge


Add animations to images in composer

Based on #5164
Animates images in composer using LayoutTransition
Kinda over-animates other elements - not 100% sure on this. I couldn't figure out how to animate the size of the images changing when using Reanimated's layout transitions
https://github.com/user-attachments/assets/fadb0e2e-ddf6-41a8-90f1-61dfb7b03eae

Does this change have any impact on performance on Android devices? I have a second old phone here and the app seems to really struggle with animations of any type.


Remove version: RomanHiestand.Regard3D version 1.0.0

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://sourceforge.net/projects/regard3d/files/Regard3D/1.0.0/Regard3D_1.0.0_Setup.exe/download
Status Code: 200
(Automated message - build 896)

Close with reason: Package still available.;


Crash: JNI ERROR (app bug): local reference table overflow (max=512)

The app is getting crashed when the obj file is too large. Below is the stacktrace of the crash-
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116] JNI ERROR (app bug): local reference table overflow (max=512)
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116] local reference table dump:
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]   Last 10 entries (of 512):
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]       511: 0x12c9d6a0 java.lang.Class<com.viro.core.Texture$FilterMode>
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]       510: 0x12c605b0 com.viro.core.Texture$WrapMode
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]       509: 0x12c9d880 java.lang.Class<com.viro.core.Texture$WrapMode>
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]       508: 0x12c605b0 com.viro.core.Texture$WrapMode
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]       507: 0x12c9d880 java.lang.Class<com.viro.core.Texture$WrapMode>
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]       506: 0x12c542b0 com.viro.core.Texture
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]       505: 0x12ddb840 java.lang.Class<com.viro.core.Texture>
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]       504: 0x12c60688 com.viro.core.Texture$FilterMode
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]       503: 0x12c9d6a0 java.lang.Class<com.viro.core.Texture$FilterMode>
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]       502: 0x12c60688 com.viro.core.Texture$FilterMode
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]   Summary:
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]         6 of com.viro.core.Material$ShadowMode (1 unique instances)
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]         6 of com.viro.core.Material$CullMode (1 unique instances)
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]         6 of com.viro.core.Material$TransparencyMode (1 unique instances)
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]         6 of com.viro.core.Material$BlendMode (1 unique instances)
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]       105 of com.viro.core.Texture$FilterMode (1 unique instances)
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]        72 of com.viro.core.Texture$WrapMode (1 unique instances)
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]         1 of com.viro.core.Object3D
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]         6 of com.viro.core.Material (6 unique instances)
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]        36 of com.viro.core.Texture (36 unique instances)
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]         6 of com.viro.core.Material$LightingModel (2 unique instances)
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]       252 of java.lang.Class (11 unique instances)
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]         9 of java.lang.String (9 unique instances)
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]         1 of java.lang.String[] (3 elements)
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art: art/runtime/indirect_reference_table.cc:116]
02-16 21:53:34.963 17211-17233/com.example.virosample.scene W/Viro: [******************************** ABORT ********************************]
02-16 21:53:34.963 17211-17233/com.example.virosample.scene W/Viro:         File: /Users/vadvani/ViroReact/ViroRenderer/ViroRenderer/VROMaterialSubstrateOpenGL.cpp
02-16 21:53:34.963 17211-17233/com.example.virosample.scene W/Viro:         Line: 81
02-16 21:53:34.963 17211-17233/com.example.virosample.scene W/Viro:     Function: virtual void VROMaterialSubstrateOpenGL::bindView(VROMatrix4f, VROMatrix4f, VROMatrix4f, VROMatrix4f, VROVector3f, VROEyeType)
02-16 21:53:34.963 17211-17233/com.example.virosample.scene W/Viro:       Reason: ASSERTION FAILED
Expression: _activeBinding != nullptr
02-16 21:53:34.964 17211-17233/com.example.virosample.scene A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x308d5118 in tid 17233 (GLThread 5688)
02-16 21:53:38.212 17211-17235/? W/AudioTrack: releaseBuffer() track 0xa6c3d000 disabled due to previous underrun, restarting

Thanks for the stack trace. Would you mind sending us the OBJ file you're
using so we can reproduce the crash? Also, can you verify that you're using
the latest ViroCore (version 1.3). Thanks!
Raj
On Fri, Feb 16, 2018 at 12:03 PM, ssaxena0891<EMAIL_ADDRESS>wrote:

The app is getting crashed when the obj file is too large. Below is the
stacktrace of the crash-
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] JNI ERROR (app bug): local
reference table overflow (max=512)
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] local reference table dump:
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] Last 10 entries (of 512):
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 511: 0x12c9d6a0
java.lang.Class<com.viro.core.Texture$FilterMode>
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 510: 0x12c605b0
com.viro.core.Texture$WrapMode
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 509: 0x12c9d880
java.lang.Class<com.viro.core.Texture$WrapMode>
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 508: 0x12c605b0
com.viro.core.Texture$WrapMode
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 507: 0x12c9d880
java.lang.Class<com.viro.core.Texture$WrapMode>
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 506: 0x12c542b0
com.viro.core.Texture
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 505: 0x12ddb840
java.lang.Class<com.viro.core.Texture>
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 504: 0x12c60688
com.viro.core.Texture$FilterMode
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 503: 0x12c9d6a0
java.lang.Class<com.viro.core.Texture$FilterMode>
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 502: 0x12c60688
com.viro.core.Texture$FilterMode
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] Summary:
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 6 of com.viro.core.Material$ShadowMode
(1 unique instances)
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 6 of com.viro.core.Material$CullMode
(1 unique instances)
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 6 of com.viro.core.Material$TransparencyMode
(1 unique instances)
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 6 of com.viro.core.Material$BlendMode
(1 unique instances)
02-16 21:53:34.799 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 105 of com.viro.core.Texture$FilterMode
(1 unique instances)
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 72 of
com.viro.core.Texture$WrapMode (1 unique instances)
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 1 of com.viro.core.Object3D
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 6 of com.viro.core.Material
(6 unique instances)
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 36 of com.viro.core.Texture
(36 unique instances)
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 6 of com.viro.core.Material$LightingModel
(2 unique instances)
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 252 of java.lang.Class (11
unique instances)
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 9 of java.lang.String (9
unique instances)
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116] 1 of java.lang.String[] (3
elements)
02-16 21:53:34.800 17211-17211/com.example.virosample.scene A/art:
art/runtime/indirect_reference_table.cc:116]
02-16 21:53:34.963 17211-17233/com.example.virosample.scene W/Viro:
�[1;33m[******************************** ABORT
********************************]�[0m
02-16 21:53:34.963 17211-17233/com.example.virosample.scene W/Viro:
�[1;33m File: /Users/vadvani/ViroReact/ViroRenderer/ViroRenderer/
VROMaterialSubstrateOpenGL.cpp�[0m
02-16 21:53:34.963 17211-17233/com.example.virosample.scene W/Viro:
�[1;33m Line: 81�[0m
02-16 21:53:34.963 17211-17233/com.example.virosample.scene W/Viro:
�[1;33m Function: virtual void VROMaterialSubstrateOpenGL::bindView(VROMatrix4f,
VROMatrix4f, VROMatrix4f, VROMatrix4f, VROVector3f, VROEyeType)�[0m
02-16 21:53:34.963 17211-17233/com.example.virosample.scene W/Viro:
�[0;33m Reason: ASSERTION FAILED
Expression: _activeBinding != nullptr�[0m
02-16 21:53:34.964 17211-17233/com.example.virosample.scene A/libc: Fatal
signal 11 (SIGSEGV), code 1, fault addr 0x308d5118 in tid 17233 (GLThread
5688)
02-16 21:53:38.212 17211-17235/? W/AudioTrack: releaseBuffer() track
0xa6c3d000 disabled due to previous underrun, restarting
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/viromedia/virocore/issues/22, or mute the thread
https://github.com/notifications/unsubscribe-auth/AOOV691hkrXUwqRJlCb3DOZwKmlIDXFDks5tVbTggaJpZM4SIowJ
.

Thanks for the quick response. Please find the obj and other files at https://drive.google.com/file/d/1G3KMqzWWqixgQoSOK7RQad3yFcR92SVj/view?usp=sharing

Thanks! We're able to reproduce this. Will keep you updated.

@radvani is there any update on this?

Hi @ssaxena0891, yes we've identified and fixed the problem. It had to do with loading OBJs with a large number of materials. The release is scheduled for this coming Monday, 2/26. Thanks!

Oh great, thanks!

thanks @dam00n, I have updated ViroCore to v1.4 and now its working fine.


Content changes disappear in visual editor after saving

Expected Behavior
After setting up the site following the Gatsby 5 minute tutorial on the Storyblok website, I should be able to see changes I made in the Storyblok v2 visual editor even after saving.
Current Behavior
While I'm able to see my changes as I'm typing into Storyblok, as soon as I click the "Save" button, my changes disappears in the visual editor and revert to the initial state when I started npm run develop.
Steps to Reproduce

Follow the Gatsby 5 minute tutorial on the Storyblok website
Make changes on a page on Storyblok, eg, the homepage, then click "Save" and see that your changes go away in the visual editor.

Hi @yvonnetangsu
Could you tell me if the content changes would be loaded when you set the "Refresh Data" button on the GraohiQL playground?
Follow this part of the tutorial: https://www.storyblok.com/tp/add-a-headless-cms-to-gatsby-5-minutes#using-the-graphiql-explorer
When you set this npm script and hit the "Refresh data" button on the GraphiQL playground, it should load when you serve pages with SSG.
  "scripts": {
     ...
    "develop": "ENABLE_GATSBY_REFRESH_ENDPOINT=true gatsby develop",
     ...
}

Also, please keep in mind that if you serve content with SSG, the most updated content will be loaded at build time. If you'd like to load the most updated content changes whenever you hit the Save button on the Storyblok visual editor, serving content with SSR will allow you to do so.
Gatsby docs, SSR: https://www.gatsbyjs.com/docs/how-to/rendering-options/using-server-side-rendering/

Hi @schabibi1 !
I tried clicking the "refresh data" button in the GraphiQL playground, and it does help a bit but I don't think it is working as intended still. I'll describe what I did step by step below
Case 1 - not clicking "Refresh data" in the GraphiQL playground.

I have added the "ENABLE_GATSBY_REFRESH_ENDPOINT=true" flag to my "develop" script.
I do npm run develop and started the https proxy.
As I click into the, eg, home page on Storyblok, I see that I'm connecting to the visual editor with the content that was previously saved (when I started npm run develop). Let's say, the headline at this time is "Hello"
I start typing in Storyblok headline field and add "oooo" to the end of "Hello". I'm seeing the visual editor updating in real time and it's showing "Hellooooo" both in the headline field, and in the editor. This is great.
I click the "Save" button on Storyblok, and immediately, in the visual editor, my headline went back to being just "Hello" while the headline field still keeps my change and is displayed correctly as "Hellooooo"
I click the "reload" icon button in Storyblok (the curved arrow button), and I'm still seeing "Hello" in the visual editor.
The only way for me to see my saved changes (Hellooooo in headline) is to manually restart npm run develop

Case 2 - clicking "Refresh data" in the GraphiQL playground.
Step 1-5 is the same as in Case 1.
6. I click the "Refresh data" button in the GraphiQL playground.
7. I go back to Storyblok and click the "reload" icon button (the curved arrow button).
8. This time, I do see the changes that I saved, ie "Hellooooo" in the visual editor.
So clicking the "Refresh data" in the GraphiQL playground definitely helps, but this doesn't seem intuitive for content editors for example. I recall when using the old boilerplate (back when using Storyblok editor v1), after I click "Save", my changes don't disappear in the visual editor. Let's say I'm using Microsoft Word, when I start typing and save, I would expect the document to stay the same in the state that I save it in, and not reverting back to the state when I open the document 🤔
I've been going through the Discord Gatsby channel, and I see a few others having the same issue, eg
https://discord.com/channels/700316478792138842/700326489731891201/1007650315325145153
https://discord.com/channels/700316478792138842/700326489731891201/1027638855630856222
Some mentioned that the issue is with the gatsby-source-storyblok plugin and they have to write their own code and not use the plugin because of this issue.
Would appreciate any insight on this - thanks in advance!

I have the same issue and from looking around it seems to be a 2 part problem:

When pressing "Save" or "Publish" a window reload is triggered as defined in the original event handler in storyblok-js

removing the case for "change" & "published" leaves the preview untouched upon saving or publishing in Storyblok UI
this doesn't however solve what i believe to be the underlying issue, see no. 2

If using Gatsby with default SSG, you can only trigger a content refresh calling the conditionally exposed refresh endpoint

this means that changing the event handler of StoryblokBridge will not help when you refresh the window for any reason or navigate away and back in Storyblok UI etc.; you get the original content until a refresh is registered by Gatsby dev server

I hope this adds at least a little bit more context to the issue 😅. Not sure what a good resolution would look like, but as @yvonnetangsu said, you would expect the integration to work live preview and save events.

Hi @yvonnetangsu and @petr166 thanks for the feedback.
I assume you two got the point I mentioned in the previous comment:

Please keep in mind that if you serve content with SSG, the most updated content will be loaded at build time. If you'd like to load the most updated content changes whenever you hit the Save button on the Storyblok visual editor, serving content with SSR will allow you to do so.

And based on my point, would still like to have the resilient real-time live editing feature with SSG, right?
I agree and believe this FR would improve user experience a lot.
Yet, I'd like to mention the example from Next.js Preview Mode.
Next.js provides a built-in preview feature called Preview Mode. Users can see the most updated content with SSG if they configure this feature without triggering re-build.
Unfortunately, Gatsby doesn't have a similar feature except enabling ENABLE_GATSBY_REFRESH_ENDPOINT environment variable in the providers.

See Gatsby docs here: https://www.gatsbyjs.com/docs/how-to/local-development/running-a-gatsby-preview-server/

From what I see how Next.js offers, the FR for this case more likely belongs to the framework side, in my opinion.
I'll still do my best to find any possibility as I'm aware there have been a few requests about that.

@schabibi1 Thank you for the follow up! Yes, if possible, we still would like to put in a FR for this to work with SSG. Our team do have an enterprise contract with Storyblok which does come with 2 hours of dev time a month, and we've never used it since we signed up 😄 If we could utilize the dev time to prioritize this FR (or even to provide a workaround), that'd be awesome. Please let me know if we need to provide you with more info. Thanks!

Hi @yvonnetangsu Thanks for the response. Really appreciate your interest in this topic.
I had discussions several times with my colleagues who also work in Storyblok JavaScript SDKs with me.
As I wrote the response here at Discord, we came to the conclusion that the solution belongs to the framework side as that's how other frameworks are offering. (Next.js: Preview Mode, Nuxt: SSR/SPA mode)
Have you considered taking the official Gatsby solution by running a Gatsby dev server on a server with Gatsby Preview Server?
The other reason why we came up with this answer is that even if we force to make the bridge work from SDK in an SSG site, still the first page load will only have the updated version of the content when users generate the site again.
The good side of the related news is that we have planned tutorials for Gatsby to cover that with Gatsby Preview Server. What I can do is prioritize this task for this issue.
I hope it made sense.

@schabibi1 Thank you so much for looking into this. I'll look into the Gatsby preview server and talk to my team about this. It would be awesome if you could please prioritize this tutorial 😄 💯
I also saw a user (tim-refactored) posted on Discord and wonder if this is possible as a workaround:
I had a problem with my page loading the old content until I started typing as well. My current workaround was to skip the gatsby-source-storyblok plugin and implement a new bridge implementation similiar to how the v1 bridge works with the @storyblok/js library. I could then tap into the "enterEditMode" event of the bridge to load the initial page data.
I don't know that this is the best solution but it works for me. I have not used the ENABLE_GATSBY_REFRESH_ENDPOINT yet so I don't have any other ideas yet.

Tim also provided a link to the refactored hook:
https://github.com/tim-c-refactored/refactored-storyblok-hook
I haven't looked deep into how the bridge v1 works different compared to v2 with Gatsby. Is there a reason why v2 doesn't work the same as v1 (previously using v1, when we hit Save in dev mode, the visual editor preserved the latest content) - is it due to changes on Gatsby's side?

@petr166 Thank you for posting your temporary solution 😄 ! We'll give that a try.

This is a huge red flag for using Gatsby IMO. I'm facing the same issue here and currently, even the hack doesn't work unless I manually do a browser refresh.

Any news on this, I'm currently making a site for a client and this issue honestly makes the StoryBlok / Gatsby combination unusable...  Every time you click "save" the visual editor reverts the changes back to the "last published" changes, giving everyone that do not have this technical knowledge (eg. clients) the impression that their changes have been deleted...

@schabibi1 any updates on this issue? Is it possible for us to get a timeframe? :) This completely takes away the option for non developers (content editors for example) to update their Storyblok site in the visual editor 🤔

@MaltheBlichfeldt For you to see changes, Gatsby requires you to restart your development server. To avoid repeating this step, you can use "[ENABLE_GATSBY_REFRESH_ENDPOINT environment variable]" https://www.gatsbyjs.com/docs/how-to/local-development/environment-variables/#reserved-environment-variables.

We released this FR in gatsby-source-storyblok 6.1.1
Closing this issue as we implemented and released it as a new feature.


CTCP-1423: Add arrival route for injecting arrival messages to arrival movements

This PR:

Adds a route to inject messages for the arrival movements
Adds the IE025 as an option for arrival movements (and validates that the generation is okay)
Uses as unified backend for v2, causing a lot of renames
Adds a lot of tests, many of which should really have been there in the first place

There's more I'd like to do to make this better, but this is the minimum I could get away with to ensure that tests covered the important parts and that we could unify the backends.

Sorry @derekspalmer -- I noticed that licences hadn't been auto applied to the integration tests so I updated a couple of things to try to get it to do it (and did Play because it was so old and had various security issues we should probably have been updating this for). Can you give it another scan please?


perf: Eliminate recursive calls - Improved by approximately 17%

Recursive calls vs. No recursion Benchmark Comparison Report
Benchmark Comparison Table:

Test Category
Test Case
Recursive calls (μs)
No recursion (μs)
Change (μs)
Change (%)
Performance Change

Propagation
avoidablePropagation
104272
80050
-24222
-23.2%
Significant Improvement (Large Decrease)

broadPropagation
183044
184638
1594
0.9%
Little Change (Essentially Flat)

deepPropagation
77191
54170
-23021
-29.8%
Significant Improvement (Large Decrease)

diamond
126867
107900
-18967
-15.0%
Improvement (Noticeable Decrease)

mux
197853
194765
-3088
-1.6%
Little Change (Slight Decrease)

triangle
53633
52221
-1412
-2.6%
Slight Improvement (Slight Decrease)

Observers
repeatedObservers
14215
12850
-1365
-9.6%
Slight Improvement (Slight Decrease)

Large-Scale
molBench
325145
330550
5405
1.7%
Slight Regression (Slight Increase)

Components
comp_0to1
979
873
-106
-10.8%
Improvement (Noticeable Decrease)

comp_1to1
2883
1654
-1229
-42.6%
Significant Improvement (Large Decrease)

comp_2to1
1794
1412
-382
-21.3%
Improvement (Noticeable Decrease)

comp_4to1
1916
1587
-329
-17.2%
Improvement (Noticeable Decrease)

comp_1000to1
13
6
-7
-53.8%
Significant Improvement (Large Decrease)

comp_1to2
1505
1253
-252
-16.7%
Improvement (Noticeable Decrease)

comp_1to4
1503
3079
1576
104.9%
Significant Regression (Large Increase)

comp_1to8
1558
2507
949
60.9%
Significant Regression (Large Increase)

comp_1to1000
429
460
31
7.2%
Slight Regression (Slight Increase)

Updates
update_1to1
3547
2671
-876
-24.7%
Improvement (Noticeable Decrease)

update_2to1
1425
1511
86
6.0%
Slight Regression (Slight Increase)

update_4to1
671
686
15
2.2%
Slight Regression (Slight Increase)

update_1000to1
11
10
-1
-9.1%
Slight Improvement (Slight Decrease)

update_1to2
1535
1528
-7
-0.5%
Little Change (Essentially Flat)

update_1to4
695
690
-5
-0.7%
Little Change (Essentially Flat)

update_1to1000
23
23
0
0.0%
No Change

Cellular
cellx1000
4163
4383
220
5.3%
Slight Regression (Slight Increase)

cellx2500
10207
11839
1632
16.0%
Noticeable Regression (Noticeable Increase)

cellx5000
27705
26234
-1471
-5.3%
Slight Improvement (Slight Decrease)

Grid
10x5 - 2 sources - read 20.0% (simple)
204985
203574
-1411
-0.7%
Little Change (Essentially Flat)

10x10 - 6 sources - dynamic - read 20.0% (dynamic)
120424
116255
-4169
-3.5%
Slight Improvement (Slight Decrease)

1000x12 - 4 sources - dynamic (large)
229409
222962
-6447
-2.8%
Slight Improvement (Slight Decrease)

1000x5 - 25 sources (wide dense)
303129
303695
566
0.2%
Little Change (Essentially Flat)

5x500 - 3 sources (deep)
124582
119665
-4917
-4.0%
Slight Improvement (Slight Decrease)

100x15 - 6 sources - dynamic (very dynamic)
168315
166657
-1658
-1.0%
Little Change (Essentially Flat)

Simple averages show that the average improvement for the improved test cases is about 17.2%.
A conservative estimate is that the overall average performance improvement for "No recursion" is between 10% and 17%.

It may also be worth trying keep checkDirty simple and only eliminate recursive calls for propagate. Unlike checkDirty, propagate obtains an additional fast path by eliminating recursive calls, see https://github.com/stackblitz/alien-signals/pull/7#issuecomment-2503480389.

It may also be worth to try keep checkDirty simple and only eliminate recursive calls for propagate. Because only propagate can obtains an additional fast path by eliminating recursive calls, see stackblitz/alien-signals#7 (comment).

OK，I will re-experiment.


openapi: Fix function names in python examples.

A lot of the function names in python_examples
didn't match with the operationIds which they worked
for.
This commit highlights all such mismatches in the python
examples. Along with this, changes would need to be made
to python-zulip-api to make the code with new names work.

Testing plan:
GIFs or screenshots:

Oh, I'd actually meant changing the function names in python-zulip-api with backwards-compatibility, like we have for list_subscriptions in that library.
Though standardizing these is also a good idea.

Oh! Sorry for the misunderstanding. I'll get to fixing the python-zulip-api ones as well.


Remapping alt+x to other character - new keyMap

Thanks for your work on this wrapper, it saved me a lot of time, you most certainly need to provide donate button.
I'm trying to create new keymap for when a user click Alt+X(any character) to send something else.
This is my attempt with using extraKeys, which gets it triggerd but character I want doesn't get typed.
      extraKeys: {
        "Alt-A": cm => {
          console.log(cm, "a");
          return "F";
        },
        "Alt-S": cm => {
          console.log(cm, "s");
          return "K";
        }

I prepared minimal example on sandbox
I also read the documentation keymaps, but I was unable to find how to do this.

Let me answer this one:
      extraKeys: {
        "Alt-A": cm => {
          console.log(cm, "a");
            cm.replaceSelection('G')
        },
        "Alt-S": cm => {
          console.log(cm, "s");
          cm.replaceSelection('Whatever')
        }


Clicking "Save Update" in Chat Settings always reloads world

Describe the bug
If you open Chat Settings in and click Save Update, the world always reloads regardless of whether any settings have been changed, and without warning.
To Reproduce
Steps to reproduce the behavior:

Open "Chat Settings" under Polyglot module settings
Click Save Update

Expected behavior
If no chat settings changes have been made: nothing.
If chat settings changes have been made: Wait until "Save Changes" has been clicked in the core "Configure Game Settings" window, then apply Polyglot changes and reload world if necessary.

Game System and version: D&D 5e 1.2.4
Polyglot Version: 1.5.17
Are you using Babele? No

Fixed on 1.5.18.


KinematicCollision much less accurate in GodotPhysics compared to Bullet

Godot version
3.4.beta4
System information
Windows10
Issue description
Using KinematicCollision to get a Vector between the Player and the KinematicCollision.position seems to be much more accurate in Bullet compared to GodotPhysics.
Going straight left until colliding with a straight wall and using
	if collision: 		print(collision.position.direction_to(self.global_transform.origin))
returns (0.987696, 0, 0.156385) in Bullet and (0.894458, 0, -0.447152) in GodotPhysics with default values.
You have to increase the Collision.SafeMargin to a very large number to get similar Results in GodotPhysics.
Steps to reproduce
Download the Project, go left until the wall is hit, switch between Bullet and GodotPhysics.
Minimal reproduction project
PhysicsTest.zip

Confirmed in 3.3.3.stable as well.

Is this related to https://github.com/godotengine/godot/issues/28032? A BoxShape is used for the static collider.

Is this related to #28032? A BoxShape is used for the static collider.

Artifacts due to collision margin could explain the imprecision in Bullet (extra margin on the shape itself, different from the kinematic safe margin), but it shouldn't be the case with Godot Physics.

While I don't know anything about Godot internals, I think this may not be a bug about accuracy. From my (simple) understanding, trying to get the global position of a collision may not give correct results if you're trying to collide parallel shapes, or in other words, shapes that have more than one point of contact.
In the MRP, the height of the Capsule (which can be understood as a line) will collide with the wall. At the moment of collision, all points of the line will be colliding, so what is the collision position? It's not going to be a "precise" answer since all points are colliding. The result is probably the first good position the engine calculated.
I also think this may not be a bug because if you A) rotate the capsule so that the spherical part hits the wall first or B) check collision normal instead of position, the results of both engines will be the same, ignoring some differences on the fifth decimal house and the signal of zero.


Fourier_systhesis fails in 1D odd number of grid points

I cannot reproduce this.
@AntoineSIMTEK - do you know what was going on here?

I think you fixed it at the beginning of september....
I had a quick look at the tests and I think all are using even numbers of grid points.
Can you add tests (e.g. via parametrize) for odd nb. grid points.
Also happy to do it.

Have already added those tests...


Make ADS Python 3.5x/3.6x compatible

Current branch: py2to3
Issue raised by @jcohenadad in issue #91 .
The first thing I think needs to be decided is if we want to make ADS compatible with both Python 2.7 and 3.5x/3.6x. The resources I found (below) seem to be contradicting themselves over which is preferred in the community. Dual compatibility is a bit messier to maintain in the long term; while it's (relatively) simple to convert the code for dual compatibility, the problematic issue will then be that each dev on the future project will have to know all the little tricks needed for dual compatibility (see cheat sheet below), rather than using just Python 3's strengths.
Most resources agree that the next step is to have comprehensive test coverage of the repo. I've already started working on this in branch unit_tests, which handles issue #76. I've also added a coveralls.io badge to the branch that gets evaluated in the Travis test, which currently asses the test coverage in that branch to be 15 % (only using the unit tests, not the integration test integrity_test.m). Once we have a test coverage closer to 100% (most people agree online that exactly 100% might be nitpicky, so >80-90% is good to aim for), then it will be easier to determine if the code functions well after being converted for 3.5/3.6x or dual 2.7/3.x.
Resources:

Porting Python 2 Code to Python 3
Supporting Python 2 and 3 without 2to3 conversion

This is somewhat of a badly titled article, because the first step they suggest is actually to do 2to3 conversion, and then debug the code until it runs in a Python 2.7 environment.

Cheat sheet for writing Python 2-3 compatible code

Completely agree, Python 3 is the way to go, a lot of libraries are deprecating Python 2 in the following 1 or 2 years so it's a good move.

Sounds good – that should make things simpler/cleaner.

So moving to Python 3 now will just save us a lot of issues in the long term, before the project and code become larger.

Resolved in release v2.0.


Example

Do you have an example on how to use this?

@larsrinn no readme for now, but you may check tests:
https://github.com/tipsi/pytest-tipsi-django/blob/master/test_django_plugin/app/tests/test_transactions.py
There are several pitfalls:

if you've changed module scoped model instance, you must wrap it in transaction and refresh_from_db upon test exit
if you want to perform model instance .delete - it's better not to do it on non-function scoped fixtures

In general, we're performing migration of our internal codebase and all major things seem working and we're happy with it.
But because of pytest design: no clean way to finish fixture, no guarantees about whether fixture will exist for your function or not for particular test and some other things - debugging seems harder.


refactor: library import

Remove default Bee class export
Rename library name from @ethersphere/bee-js to BeeJs.
Update README with correct library usage examples.
Simplify browser tests, remove its specific build

Fixes: #109 #99

Hey guys - this still seems unresolved for me on "version": "0.5.1" - i'm still having to instantiate the class using
let BeeJs = require("@ethersphere/bee-js");
new BeeJs.Bee(gateway);

Sorry if i'm missing something obvious.
Thanks!

Hi @1up-digital ,
Did you try the latest version 0.6.0? If so and the issue still persist, can you provide more details or even better sample code?
We are particularly interested in:

what environment are you using? (browser, nodejs) If browser, is this just directly included as script in plain HTML or are you using some framework (e.g. React)
are you using some packaging tool like Webpack?

Hey @vojtechsimetka,
I've upgraded and the problem persists.
TypeError: BeeJs is not a constructor
      at new Feed (lib/feed.js:8:16)
      at new SwarmBackup (lib/index.js:9:17)
      at Context.<anonymous> (test/swarm-backup.js:50:17)
      at Context.sync (node_modules/mocha-steps/lib/step.js:29:24)
      at processImmediate (internal/timers.js:439:21)

Here's sample code....
const sll = require('swarm-lowlevel');
var BeeJs = require("@ethersphere/bee-js");
const Web3Utils = require('web3-utils');

class Feed {
  constructor(privateKey, gateway, timeout) {
    this.privateKey = privateKey;
    this.bee = new BeeJs(gateway);
    const pk = Buffer.from(privateKey.slice(-64), 'hex');
    this.wallet = new sll.unsafeWallet(pk);
  }
}
module.exports = Feed;

...and the project is open source so feel free to check it out in detail here
https://github.com/1up-digital/swarm-backup
BeeJs is initalised in https://github.com/1up-digital/swarm-backup/blob/master/lib/feed.js on line 8
Let me know if there's any more details you need from me.
Thanks!

Ah I think there is a misunderstanding how is the library used in browser. The BeeJS is an object which contains inside the Bee class, BeeDebug class and Utils namespace (we no longer do default import).
So with your example you can use it as:
const BeeJs = require("@ethersphere/bee-js");

const bee = new BeeJs.Bee(...) // instancing Bee

const beeDebug new BeeJs.BeeDebug(...)  // instancing BeeDebug

BeeJs.Utils.Eth.ethToSwarmAddress(...) // Using any utils function

// OR preferably

import { Bee, BeeDebug, Utils} from "@ethersphere/bee-js"

const bee = new Bee(...) // instancing Bee

const beeDebug new BeeDebug(...)  // instancing BeeDebug

Utils.Eth.ethToSwarmAddress(...) // Using any utils function

It seems it would be a good idea to add this to our documentation as well.

Thanks guys - very useful indeed.  Much appreciated.


Minor changes to the API

Added legacy_id
Changed syntax of /feeds/gtfs/{id}/datasets to /feeds/{id}/datasets/gtfs (moved gtfs at the end)
[/feeds/gtfs/{id}/datasets](https://mobilitydata.github.io/mobility-feed-
Added a /datasets endpoint to get a list of basic dataset data regardless of type.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


proposal: go/doc: ITU-T URL support

Proposal Details
When authoring documentation meant for display via x/pkgsite,  support should be added to recognize and support ITU-T recommendation URLs in the same manner RFC XXXX is currently supported.
For instance:
Where the raw text RFC 1234 would automatically link to https://www.rfc-editor.org/rfc/rfc1234.html upon page generation, x/pkgsite should link E.123, X.411, X.501 and other "alpha series" (A-Z) documents to the appropriate https://www.itu.int/... resource.
It is true that placing a link (verbatim) in doc text is possible, but is undesirable for obvious reasons.
I do recall Go maintainers claiming godocs/pkgsite is not meant to be a "rich markdown system".  While I agree, I would argue that ITU-T Recommendations are just as relevant/critical as RFCs, therefore they should qualify for the same consideration.
Thank you

@fzipp Oh that is fine in practice for most URLs, but my impression was that ITU-T (and, I suppose out of necessity, ITU-R) documents are so central to technology in general, that it made them seem like valid candidates for the same kind of built-in link support that RFCs currently enjoy in godoc/pkgsit mark down.

@fzipp Fair enough. I tend to cite X.NNN documents heavily which is why I asked.

I think only pkgsite has the RFC special case. go/doc does not. If anything I think we should move toward removing the x/pkgsite special case and other deviations from go/doc.

There is also an issue with inconsistent link support.  I wouldn't necessarily say this "strengthens" my case, but I'm going to cite it here for the purposes of tracking:
The "links" solution mentioned by @fzipp has always worked nicely for paragraphs and instance comments, e.g.:
Package blarg implements [Linked Resource] ...

... or ...
/*
ImplementationType implements Section X.Y of [Linked Resource].
*/
type ImplementationType struct {
   ...
   ...
}

But where it does not work is on line-ending or terminating comments, such as those found on itoa constants, struct fields, etc:
/*
ImplementationType implements Section X.Y of [Linked Resource].
*/
type ImplementationType struct {
   Field1   type    // Section X.Y.A of [Linked Resource]   -- Link fails, raw text only
   Field2   type    // Section X.Y.B of [Linked Resource]   -- Link fails, raw text only
   Field3   type    // Section X.Y.C of [Linked Resource]   -- Link fails, raw text only
}

The reason I am bringing this up is because the so-called "built-in" RFC link support DOES work for the aforementioned line-ending comments.
In other words:
/*
ImplementationType implements Section X.Y of [Linked Resource].
*/
type ImplementationType struct {
   Field1   type    // Section X.Y.A of [Linked Resource]   -- Link fails, raw text only
   Field2   type    // Section X.Y.B of [Linked Resource]   -- Link fails, raw text only
   Field3   type    // Section X.Y.C of [Linked Resource]   -- Link fails, raw text only
   Field4   type    // Section A.B.C of RFC NNNN            -- Link is valid hypertext
}


Add outage detection to standby service

Configure the frequency we should check for commands, and the duration of time to wait before going into response mode
Read commands originating from the cloud and set a timestamp whenever one is received, in a separate storage service
Start a detection service on startup which checks the timestamp and detects an outage if the configured duration is exceeded
Add a Mode property to the standby service, so we are in StandbyMode when receiving commands from the cloud, and CommandMode when an outage has been detected and the service needs to issue commands itself
Add integration tests to check that timestamp gets updated, outage is detected, and an error is published if the received plan is empty

Github does not allow me to formally Approve it, but I have no objections against any decisions the team decided to make.


ER_HOST_IS_BLOCKED

I am using sailjs that connected to mysql. its getting blocked frequently. Can please suggest some thing to resolve this issue
Error (E_UNKNOWN) :: Encountered an unexpected error
: Could not connect to MySQL:
Error: ER_HOST_IS_BLOCKED: Host '192.168.xxxx.xx' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
at afterwards (/home/xxxx/node_modules/sails-mysql/lib/connections/spawn.js:72:13)
at /home/xxxx/node_modules/sails-mysql/lib/connections/spawn.js:40:7
at Handshake.onConnect (/home/xxxx/node_modules/sails-mysql/node_modules/mysql/lib/Pool.js:54:9)
at Handshake.Sequence.end (/home/xxxx/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)
at Handshake.ErrorPacket (/home/xxxx/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Handshake.js:103:8)
at Protocol._parsePacket (/home/xxxx/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:271:23)
at Parser.write (/home/xxxx/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Parser.js:77:12)
at Protocol.write (/home/xxxx/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:39:16)
at Socket. (/home/xxxx/node_modules/sails-mysql/node_modules/mysql/lib/Connection.js:82:28)
at Socket.emit (events.js:107:17)
at readableAddChunk (_stream_readable.js:163:16)
at Socket.Readable.push (_stream_readable.js:126:10)
at TCP.onread (net.js:538:20)
Details:  Error: Could not connect to MySQL:
Error: ER_HOST_IS_BLOCKED: Host '192.168.xxxx' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

This has nothing to do with sails.js. Flush the blocked hosts on your database (as suggested in the error message) and try again. If it still happens, check wether your password is correct, the user has enough privileges and if you're even allowed to authenticate to that user with your current IP address.

Thanks @einfallstoll!
@vivekduddempudi, thanks for using Sails!  This forum is reserved for reporting bugs on the Sails core; for support issues like these, please try our Google Group, live chat or StackOverflow.


how to upload to the cloud for free?

is there a way to upload this to the cloud so i dont have to leave my pc on? this is for my personal use for me and my family. also its fine if its paid, just tell me the steps

Following 👀


fix: reformat all docs links to avoid redirects; fix some 404s

PR Checklist
Please review the guidelines for contributing to this repository.

[x] I am requesting to pull a topic/feature/bugfix branch (right side). In other words, not master.
[x] I have run npm test against my changes and tests pass.
[x] I have added or edited necessary documentation, or no docs changes are needed.

Description

Docs links used to ignore spaces and uppercase letters in the folder names and created some strange URLs. That was fixed a while ago, but the existing links still worked for back-compat. This PR finally moves existing links to their appropriate places.

This PR probably conflicts with #159. I'll update after that is merged.

Should we go ahead and rename the folders themselves to remove confusion? i.e., Concepts -> concepts

@space-pope I don't think so. That would look weird in the nav.

Sorry, I should be more clear. The folder name is also the display name in the nav. The URL is constructed from it correctly now tho.

Gotcha; makes sense. I assume we could add logic to titlecase the folder names for display in the nav, but I get just leaving it alone too.


bug: Hooks Folder Not Found (Windows)

From @cgosiak on May 21, 2015 14:55
Type: bug
Platform: desktop browser
command:
ionic build android
results:
Error { [Error: ENOENT, no such file or directory 'C:\Users\cgosiak\Documents\hoonuit_app\hooks']
errno: -4058,
code: 'ENOENT',
path: 'C:\Users\cgosiak\Documents\hoonuit_app\hooks',syscall: 'scandir' }
Updated the hooks directory to have execute permissions
further info:
pulling code using 'git', same 'git' used on mac and no issues are found. I have tried pulling the repository multiple times to different local locations on machine. All resulting in the same outcome.
Works on mac fine with identical code, does not work on windows

Copied from original issue: driftyco/ionic#3798

I have the same issue on mac.

A few questions for @cgosiak and @jasperkuperus
Does the hooks folder exist and the command fails for it not existing? Or does the folder not exist?

Ok, yesterday I had this problem. Somehow it got fixed, not sure how. But when I had this problem yesterday, the hooks folder did not exist. If I made the hooks folder myself, it somehow got deleted, rendering this same error. I played around with these commands yesterday:
ionic platform add ios, ionic platform add android and ionic emulate -l --livereload-port=35728 ios --all --tall
Unfortunately I can not reproduce it at this time, maybe @cgosiak can diagnose some more?

I believe I have found a fix, after uninstalling everything and restarting from a new OS I have fixed my issues. In MY CASE anyways...
Cordova was at too new of a version; I downgraded to Cordova V4.3.0 and retried everything. In the case the Hooks directory is not found/created simply run: ionic hooks add
You can use NPM to install a certain version of Cordova that will automatically rewrite the old "newer" version.
After this everything should be working again...

I was typing the command in the wrong folder :(

Hello all! Is this still an issue with the latest version of the ionic cli and the latest version of cordova?

Haven't encountered this error in a long while!

Awesome! Gonna go ahead and close this issue for now. If anyone is still having this issue feel free to comment and ill reopen. Thanks for using Ionic!

now am facing the same issue, for me Hooks folder was created. can you pls tell me the fix?

Make sure you are running command from project directory.

To solve this problem on macOS Sierra 10.12.3 I had to place myproject in the root directory. This is not ideal but it is currently working for me.

Same issue here
> ionic start
Starting Ionic Project wizard...
Using directory as root: D:\xampp7\htdocs\ionic
√ Running start wizard:  http://localhost:8900/
Creating an Ionic 2.x app in D:\xampp7\htdocs\ionic\inspectionSuite based on the sidemenu template.

Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
Creating an Ionic 2.x app in D:\xampp7\htdocs\ionic\inspectionSuite based on the sidemenu template.

Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
Downloading: https://github.com/driftyco/ionic2-starter-sidemenu/archive/master.zip
Installing npm packages (may take a minute or two)...
Downloading: https://github.com/driftyco/ionic2-starter-sidemenu/archive/master.zip
Installing npm packages (may take a minute or two)...
Error: %s Error: ENOENT: no such file or directory, scandir 'D:\xampp7\htdocs\ionic\inspectionSuite\hooks'
    at Error (native)
    at Object.fs.readdirSync (fs.js:952:18)
    at Object.setHooksPermission (C:\Users\Animesh\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\hooks.js:120:24)
    at Object.Start.initCordova (C:\Users\Animesh\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\start.js:767:9)
    at C:\Users\Animesh\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\start.js:112:20
    at _fulfilled (C:\Users\Animesh\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:787:54)
    at self.promiseDispatch.done (C:\Users\Animesh\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:816:30)
    at Promise.promise.promiseDispatch (C:\Users\Animesh\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:749:13)
    at C:\Users\Animesh\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:557:44
    at flush (C:\Users\Animesh\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:108:17)
npm WARN deprecated<EMAIL_ADDRESS>This plugin has been deprecated since it is now included in the latest versions of cordova-ios
Error: %s Error: ENOENT: no such file or directory, scandir 'D:\xampp7\htdocs\ionic\inspectionSuite\hooks'
    at Error (native)
    at Object.fs.readdirSync (fs.js:952:18)
    at Object.setHooksPermission (C:\Users\Animesh\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\hooks.js:120:24)
    at Object.Start.initCordova (C:\Users\Animesh\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\start.js:767:9)
    at C:\Users\Animesh\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\start.js:112:20
    at _fulfilled (C:\Users\Animesh\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:787:54)
    at self.promiseDispatch.done (C:\Users\Animesh\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:816:30)
    at Promise.promise.promiseDispatch (C:\Users\Animesh\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:749:13)
    at C:\Users\Animesh\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:557:44
    at flush (C:\Users\Animesh\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:108:17)
^CTerminate batch job (Y/N)?y

This is a very old issue. Please ensure you have the latest Ionic CLI (3.20.0 at time of writing). If the issue persists, please create a new issue and fill out the issue template. Thanks!


Titles containing '[' or ']'

Some tititles contain a bracket, and this breaks the markdwon generator. We need to check the titles to remove any brackets in them.
for example: [Torsion and torsional development of the lower extremities]]

Looks like this is actually in the link part of the markdown processor, not the titles.


Feature Request: Snapshot root directory configuration

It would be great to be able to set a directory to be the snapshot root directory, such as /tests/snapshots
This would make it possible to use snapshots in unit tests, without creating a bunch of files and directories in the src dir.
The snapshots root could replicate the necessary directory structure relative to the root dir within the snapshots root dir to ensure it maps properly to the crate root.

You can already do this with settings:
let mut settings = Settings::clone_current();
settings.set_snapshot_path("../tests/snapshots");
let _guard = settings.bind_to_scope();

Is this sufficient for your needs?

The settings approach works, but it's a bit annoying because the relative snapshot path will change for nested directories, and it's cumbersome to have to add those three lines to every test or to write a macro to take care of it.
That being said, you have to use the same kind of path when using include_str! macros and the like, so it's fair enough that the requirement is the same.
It would be very convenient if there was a global setting for this in insta.yaml, but I get that that only really applies to the cli tools atm, so I understand it's not that easy.
I'll probably just put up with having a bunch of snap files in my source folder for now.


Error when splitting columns in function yii\db\Query::addSelect()

$q = new Query();
...
$q->addSelect('TRUNCATE(avg(t5.rating), 1) as rating'); -> TRUNCATE(avg(t5.rating), `1)` AS `rating`
Syntax error!
This is because inside the function addSelect is erroneous separation columns:
$columns = preg_split('/\s*,\s*/', trim($columns), -1, PREG_SPLIT_NO_EMPTY);

You should use yii\db\Expression in this case.

Use array to list every column.


wip: update to latest did-method and use genesis file

Signed-off-by: Filip Burlacu<EMAIL_ADDRESS>

note: wip, working on adding genesis-file support to sidetree-fabric as well


Important rule missing

There should be an item regarding secrets in code:
Good practice :

put your API keys and SSH keys in code. You will never forget them that way 😄

Bad practice:

encrypt sensitive values or keep them in a secret vault

if usename == "david" and password == "1234567":
return LogInSuccessful
else:
return ValueError("User name or password error!")