Decreased performance in ros2-foxy versus ros2-dashing

Hardware:

OS - ubuntu 20.04 / ubuntu 18.04
CPU - cpu intel core i7
GPU - Nvidia geforce gtx 250 (+proprietary driver)

Tests were carried out with the display of a large point cloud in version ros2-dashing (ubuntu 18) and version ros2-foxy (ubuntu 20). Statistics were collected on the duration of the renderOneFrame () function (file rviz2 / rviz_common / src / rviz_common / visualization_manager.cpp, line 437).
ros2-dashing

ros2-foxy

Why is that?

I'm trying to debug this. Do you have a share-able bag file?

Since this is a bit of a long debug, I thought I should document my steps in case someone else wants to take a look (and for reference in future debugs).
I've used uftrace to follow all calls to rviz_rendering::PointCloud* using the following commands:
# Build with instrumentation flags
$ colcon build --merge-install --cmake-args -DBUILD_TESTING:=OFF -DCMAKE_CXX_FLAGS:=-pg -DCMAKE_EXE_LINKER_FLAGS=-pg -DCMAKE_SHARED_LINKER_FLAGS=-pg
# Source install
$ source install/setup.sh
# Run uftrace (make sure you're going to be using the correct version of rviz with `which rviz2`)
$ uftrace record -F rviz_rendering::PointCloud* rviz2 -d ../../map.rviz

While the recorder is running, I run some replay from the bag. I found that rviz doesn't seem to register the single frame playback so I loop and exit as soon as rviz locks up (2-4 loops should do the trick).
ros2 bag play testmap/ -l

This locks up rviz for a minute... This isn't as bad when not instrumented. Eventually the pointcloud should appear:

At this point, close rviz and a uftrace.data folder should be in the current directory. Running uftrace report will generate the amount of time spent in each function call. This data will take a lot of time to accumulate as this is an absurd number of function calls that were recorded.
This in fact takes so long that it may not be worth checking (my trace broke 100GB when expanded to a json). In the hopes that this is not an issue caused at scale but instead individual paths, I reran with the point cloud generator made for #752 which generated a much more reasonably sized report.
uftrace replay -F rviz_rendering::PointCloud::addPoints -t 1ms
# DURATION     TID     FUNCTION
            [126327] | rviz_rendering::PointCloud::addPoints() {
            [126327] |   std::vector::insert() {
            [126327] |     std::vector::_M_insert_dispatch() {
            [126327] |       std::vector::_M_range_insert() {
            [126327] |         std::__uninitialized_copy_a() {
            [126327] |           std::uninitialized_copy() {
   1.047 ms [126327] |             std::__uninitialized_copy::__uninit_copy();
   1.048 ms [126327] |           } /* std::uninitialized_copy */
   1.049 ms [126327] |         } /* std::__uninitialized_copy_a */
   1.065 ms [126327] |       } /* std::vector::_M_range_insert */
   1.067 ms [126327] |     } /* std::vector::_M_insert_dispatch */
   1.074 ms [126327] |   } /* std::vector::insert */
  25.191 ms [126327] | } /* rviz_rendering::PointCloud::addPoints */

The original test cloud is 1000 points so I doubled it to 2000 points and noticed these results:
# DURATION     TID     FUNCTION
            [126481] | rviz_rendering::PointCloud::addPoints() {
            [126481] |   std::vector::insert() {
            [126481] |     std::vector::_M_insert_dispatch() {
            [126481] |       std::vector::_M_range_insert() {
            [126481] |         std::__uninitialized_copy_a() {
            [126481] |           std::uninitialized_copy() {
   1.557 ms [126481] |             std::__uninitialized_copy::__uninit_copy();
   1.558 ms [126481] |           } /* std::uninitialized_copy */
   1.559 ms [126481] |         } /* std::__uninitialized_copy_a */
   1.575 ms [126481] |       } /* std::vector::_M_range_insert */
   1.577 ms [126481] |     } /* std::vector::_M_insert_dispatch */
   1.583 ms [126481] |   } /* std::vector::insert */
  47.869 ms [126481] | } /* rviz_rendering::PointCloud::addPoints */

Digging a little deeper with uftrace replay -F rviz_rendering::PointCloud::addPoints -D 3 -t 1us I found this looping for what seems like forever. I assume this is an O(N) operation where N=number of points. Multiplying this out (~20us) by the 2k points gives us 40ms.
          [126481] |   rviz_rendering::PointCloud::RenderableInternals::operator=() {
 1.563 us [126481] |     std::shared_ptr::operator=();
 1.643 us [126481] |   } /* rviz_rendering::PointCloud::RenderableInternals::operator= */
 1.853 us [126481] |   Ogre::AxisAlignedBox::merge();
16.231 us [126481] |   rviz_rendering::PointCloud::addPointToHardwareBuffer();

Further diving in uftrace replay -F rviz_rendering::PointCloud::addPointToHardwareBuffer -D 5 shows:
            [126481] | rviz_rendering::PointCloud::addPointToHardwareBuffer() {
            [126481] |   rviz_rendering::PointCloudRenderable::getBuffer() {
            [126481] |     Ogre::SharedPtr::SharedPtr() {
   0.541 us [126481] |       std::shared_ptr::shared_ptr();
   0.611 us [126481] |     } /* Ogre::SharedPtr::SharedPtr */
   0.691 us [126481] |   } /* rviz_rendering::PointCloudRenderable::getBuffer */
            [126481] |   Ogre::SharedPtr::~SharedPtr() {
   0.531 us [126481] |     std::shared_ptr::~shared_ptr();
   0.611 us [126481] |   } /* Ogre::SharedPtr::~SharedPtr */
            [126481] |   rviz_rendering::PointCloudRenderable::getBuffer() {
            [126481] |     Ogre::SharedPtr::SharedPtr() {
   0.541 us [126481] |       std::shared_ptr::shared_ptr();
   0.611 us [126481] |     } /* Ogre::SharedPtr::SharedPtr */
   0.691 us [126481] |   } /* rviz_rendering::PointCloudRenderable::getBuffer */
            [126481] |   Ogre::SharedPtr::~SharedPtr() {
   0.531 us [126481] |     std::shared_ptr::~shared_ptr();
   0.612 us [126481] |   } /* Ogre::SharedPtr::~SharedPtr */
            [126481] |   rviz_rendering::PointCloudRenderable::getBuffer() {
            [126481] |     Ogre::SharedPtr::SharedPtr() {
   0.531 us [126481] |       std::shared_ptr::shared_ptr();
   0.601 us [126481] |     } /* Ogre::SharedPtr::SharedPtr */
   0.682 us [126481] |   } /* rviz_rendering::PointCloudRenderable::getBuffer */
            [126481] |   Ogre::SharedPtr::~SharedPtr() {
   0.521 us [126481] |     std::shared_ptr::~shared_ptr();
   0.591 us [126481] |   } /* Ogre::SharedPtr::~SharedPtr */
            [126481] |   rviz_rendering::PointCloudRenderable::getBuffer() {
            [126481] |     Ogre::SharedPtr::SharedPtr() {
   0.531 us [126481] |       std::shared_ptr::shared_ptr();
   0.611 us [126481] |     } /* Ogre::SharedPtr::SharedPtr */
   0.691 us [126481] |   } /* rviz_rendering::PointCloudRenderable::getBuffer */
            [126481] |   Ogre::SharedPtr::~SharedPtr() {
   0.511 us [126481] |     std::shared_ptr::~shared_ptr();
   0.581 us [126481] |   } /* Ogre::SharedPtr::~SharedPtr */
            [126481] |   rviz_rendering::PointCloudRenderable::getBuffer() {
            [126481] |     Ogre::SharedPtr::SharedPtr() {
   0.541 us [126481] |       std::shared_ptr::shared_ptr();
   0.611 us [126481] |     } /* Ogre::SharedPtr::SharedPtr */
   0.691 us [126481] |   } /* rviz_rendering::PointCloudRenderable::getBuffer */
            [126481] |   Ogre::SharedPtr::~SharedPtr() {
   0.510 us [126481] |     std::shared_ptr::~shared_ptr();
   0.582 us [126481] |   } /* Ogre::SharedPtr::~SharedPtr */
            [126481] |   rviz_rendering::PointCloudRenderable::getBuffer() {
            [126481] |     Ogre::SharedPtr::SharedPtr() {
   0.531 us [126481] |       std::shared_ptr::shared_ptr();
   0.612 us [126481] |     } /* Ogre::SharedPtr::SharedPtr */
   0.692 us [126481] |   } /* rviz_rendering::PointCloudRenderable::getBuffer */
            [126481] |   Ogre::SharedPtr::~SharedPtr() {
   0.511 us [126481] |     std::shared_ptr::~shared_ptr();
   0.581 us [126481] |   } /* Ogre::SharedPtr::~SharedPtr */
   0.511 us [126481] |   rviz_rendering::PointCloud::RenderableInternals::RenderableInternals();
  16.421 us [126481] | } /* rviz_rendering::PointCloud::addPointToHardwareBuffer */

There appear to be numerous creations/deletions of Ogre SharedPtr instances. These seem to be adding up to a whole lot of compute time. I'll dive in to the code tomorrow and also run the same analysis on Dashing.

I managed to reduce this time in half by moving the getBuffer() out of the assert and previous to the for loop. This, however, does not particularly improve the scenario as this is a different path from what we expect when running in release mode (assert is not run in release). If I change my build to:
colcon build --merge-install --cmake-args -DBUILD_TESTING:=OFF -DCMAKE_CXX_FLAGS:=-pg -DCMAKE_EXE_LINKER_FLAGS=-pg -DCMAKE_SHARED_LINKER_FLAGS=-pg -DCMAKE_BUILD_TYPE=Release

The execution of AddPoints drops down to 5ms for a 2000 point point cloud (not accounting for overhead). For 100k points, adding the points takes about 100ms.
@simulacrus at this point, it would be good to know if you're running on a release of rviz or if you're running a local build without the release flag? I'll be digging into Dashing while waiting for a response.

@gbalke I believe the rviz2 foxy releases are not compiled with optimizations...
I cloned and compiled the foxy branch with optimizations, and it runs 2~3x faster in my use case and machine.

I cloned and compiled the foxy branch with optimizations, and it runs 2~3x faster in my use case and machine.

Which optimizations? -O flags or the release flag?

So...I try to turn off Selectable option on pointcloud2 plugin and ... it work. Stable 60+ fps. Why is that?

I disabled selectable and am still getting 0-1 fps:  I have no idea what's going on here... Are you somehow selecting points without realizing it?

Nope. Try to select Style Point and turn off autocompute option.

Nope. Try to select Style Point and turn off autocompute option.

Same results with the following configuration:

@simulacrus I'm going to close this issue as a duplicate of #670. If you have additional information to add, please feel free to respond and the issue can be re-opened.


css loaded twice

Hi,
when I switch off plugins  " Problems "
I see theme.min.css loaded twice....
run grav 1.6.8

Can not replicate, deed more info.


optimize: refactor loadBalance config from registry.conf to file.conf.

Ⅰ. Describe what this PR did
loadbalance的配置在 registry.conf 文件， 这个文件属于配置中心的基础配置， 除了指定方式和基础信息以外，其他信息不应该在这个文件。 把loadBalance改到核心配置文件中(file.conf).
例如随机负载均衡
loadBalance = {
type = "RandomLoadBalance"
}
还有一致性hash负载均衡
loadBalance = {
type = "ConsistentHashLoadBalance"
visualNodes=10
}
Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

[ERROR] /home/travis/build/seata/seata/seata-spring-boot-starter/src/test/java/io/seata/spring/boot/autoconfigure/PropertiesTest.java:[223,59] cannot find symbol
symbol:   class LoadBalanceProperties
location: class io.seata.spring.boot.autoconfigure.PropertiesTest
[ERROR] /home/travis/build/seata/seata/seata-spring-boot-starter/src/test/java/io/seata/spring/boot/autoconfigure/PropertiesTest.java:[224,42] cannot find symbol
symbol:   class LoadBalanceProperties
location: class io.seata.spring.boot.autoconfigure.PropertiesTest

处理一下ci的报错

@ph3636 PTAL

Codecov Report

Merging #3248 into develop will decrease coverage by 0.10%.
The diff coverage is 66.66%.

@@              Coverage Diff              @@
##             develop    #3248      +/-   ##
=============================================
- Coverage      51.02%   50.92%   -0.11%
- Complexity      3279     3280       +1
=============================================
  Files            612      613       +1
  Lines          20112    20088      -24
  Branches        2517     2470      -47
=============================================
- Hits           10263    10229      -34
+ Misses          8820     8810      -10
- Partials        1029     1049      +20

Impacted Files
Coverage Δ
Complexity Δ

...ta/spring/boot/autoconfigure/StarterConstants.java
100.00% <ø> (ø)
1.00 <0.00> (ø)

...figure/properties/registry/RegistryProperties.java
60.00% <ø> (+6.15%)
2.00 <0.00> (-2.00)
:arrow_up:

...ure/properties/registry/LoadBalanceProperties.java
55.55% <55.55%> (ø)
3.00 <3.00> (?)

...scovery/loadbalance/ConsistentHashLoadBalance.java
89.28% <100.00%> (ø)
3.00 <1.00> (ø)

...eata/discovery/loadbalance/LoadBalanceFactory.java
66.66% <100.00%> (+16.66%)
1.00 <1.00> (ø)

...obuf/convertor/BranchRegisterRequestConvertor.java
90.47% <0.00%> (-9.53%)
3.00% <0.00%> (ø%)

...otobuf/convertor/BranchReportRequestConvertor.java
90.90% <0.00%> (-9.10%)
3.00% <0.00%> (ø%)

...obuf/convertor/BranchRollbackRequestConvertor.java
92.00% <0.00%> (-8.00%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalBeginResponseConvertor.java
92.59% <0.00%> (-7.41%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalCommitRequestConvertor.java
93.75% <0.00%> (-6.25%)
3.00% <0.00%> (ø%)

... and 32 more

Search it according to the keyword (loadBalanceVirtualNodes), or check it through git records, there are still many places that have not been changed.
根据关键词（loadBalanceVirtualNodes）搜一下，或者通过git记录看下，还有好多地方没改。

@ph3636  好的，  修改了。
@caohdgege 已经提交了遗漏提交的文件

I think this configuration is more appropriate to put in the client, the server will not use this configuration
我觉得这个配置放到client中比较合适，server不会用到这个配置

I think this configuration is more appropriate to put in the client, the server will not use this configuration
我觉得这个配置放到client中比较合适，server不会用到这个配置

有道理阿， 只有TM，RM才需要负载均衡。  TC都知道发给谁了，就不用均衡了。   那我在改改

Change these files
改一下这些文件
script/client/spring/application.properties
script/client/spring/application.yml
META-INF/additional-spring-configuration-metadata.json
No configuration in these files
下面这些文件中可以不加配置
script/server/config

请解决代码冲突


WebXR - the previous shadow remains in view while the new 3d model is loading

I'm playing around with the webxr example and I noticed few issues when changing the 3d model at runtime,
I initialize model viewer with this model:

Then I change it with the below 3d model by changing the src property.

While the new 3d model is loading, the first model is removed but the shadow is still there. Please see the below image.

you should change the variant of model not the 3d model, if they are same model but different color... so this leads to very fast change and more usefull for users.
But this is not answer of your question.

@Esteban26 Can you please fill out the issue template? At the very least I need a link and steps to repro.

Hi @elalish this is the demo page:  https://demo.cylindo.com/viewer/examples/webxr/test/V11-webxr-outside-viewer.html
Chrome 90
Huawei mate 20 lite
Model viewer source<EMAIL_ADDRESS>To launch AR you need to press the View in AR button first, it opens model viewer, webxr is set as default when you change the source for example modelViewerInstance.src = 'new_glb_path_file.glb' the previous shadow remains until the new model is loaded.

Thank you, I can repro. I just did some significant changes to the WebXR UX that haven't been released yet. Can you check if it repros with the master version<EMAIL_ADDRESS>I would think I'd have noticed this on https://modelviewer.dev/examples/augmentedreality/#webXR; are you doing anything special?

Hi @elalish, no, I'm just changing the source at runtime.

This no longer repros, so I think it was fixed as part of v1.7

Hi @elalish, yes, you're right this is not failing with the new fixes you releasde, sorry for the delay on my response.


R41-2 (Debian Static)

How does one fix this issue?
[OnGameModeInit] Initialising 'Main'...
[07:11:55] [debug] Server crashed while executing <unknown>
[07:11:55] [debug] AMX backtrace:
[07:11:55] [debug] #0 native mysql_connect () from mysql.so
[07:11:55] [debug] #1 000b80fc in ?? () from <unknown>
[07:11:55] [debug] #2 0003cf1c in public ScriptInit_OnGameModeInit () from <unknown>
[07:11:55] [debug] #3 0000c0f4 in public FIXES_OnGameModeInit () from <unknown>
[07:11:55] [debug] #4 00004350 in public ScriptInit_OnGameModeInit () from <unknown>
[07:11:55] [debug] Native backtrace:
[07:11:55] [debug] #0 e609fca0 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[07:11:55] [debug] #1 e6098d22 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[07:11:55] [debug] #2 e6099314 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[07:11:55] [debug] #3 e609b964 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[07:11:55] [debug] #4 e609f5cd in ?? () from plugins/crashdetect.so
[07:11:55] [debug] #5 e640e410 in ?? ()
[07:11:55] [debug] #6 e640e430 in ?? ()
[07:11:55] [debug] #7 e60f6687 in gsignal () from /lib/i386-linux-gnu/libc.so.6
[07:11:55] [debug] #8 e60f9ab3 in abort () from /lib/i386-linux-gnu/libc.so.6
[07:11:55] [debug] #9 e632fd6f in _ZN9__gnu_cxx27__verbose_terminate_handlerEv () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[07:11:55] [debug] #10 e632d924 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[07:11:55] [debug] #11 e632d99d in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[07:11:55] [debug] #12 e632dc51 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[07:11:55] [debug] #13 e6354203 in _ZSt20__throw_system_errori () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[07:11:55] [debug] #14 e63569db in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[07:11:55] [debug] #15 e6356a30 in _ZNSt6thread15_M_start_threadESt10shared_ptrINS_10_Impl_baseEE () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[07:11:55] [debug] #16 e5d21462 in ?? () from plugins/mysql.so
[07:11:55] [debug] #17 e5d25737 in ?? () from plugins/mysql.so
[07:11:55] [debug] #18 e5d437cd in ?? () from plugins/mysql.so
[07:11:55] [debug] #19 080950e4 in ?? () from ./samp03svr
[07:11:55] [debug] #20 e609a7b3 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[07:11:55] [debug] #21 09e76838 in ?? () from ¬ð=æàî=æŒ4©äŒ4©ä8©äŒ4©ä6:©äŒ<©ä´'>æ

My server won't start now after updating the plugin too it.

Can you share your server.cfg? Did you also replace all files correctly when updating? Try re-downloading the package and make sure you (re)place your files correctly as shown by the layout in the package.

Sure:
echo Executing Server Config...
lanmode 0
maxplayers 30
hostname Test Server
gamemode0 Main 1
filterscripts
announce 0
query 1
weburl www.sa-mp.com
maxnpc
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300
stream_rate 1000
plugins crashdetect.so mysql.so sscanf.so streamer.so Whirlpool.so

I redownloaded the Debian one like three times, and replaced it. Still an issue.

Try enabling debug logging, start your server, wait until it crashes and post the generated mysql.log here.

And how do I do that?

Here is the same error, re-placed the plugins etc.
[OnGameModeInit] Initialising 'Main'...
[11:27:38] [debug] Server crashed while executing <unknown>
[11:27:38] [debug] AMX backtrace:
[11:27:38] [debug] #0 native mysql_connect () from mysql.so
[11:27:38] [debug] #1 000b80fc in ?? () from <unknown>
[11:27:38] [debug] #2 0003cf1c in public ScriptInit_OnGameModeInit () from <unknown>
[11:27:38] [debug] #3 0000c0f4 in public FIXES_OnGameModeInit () from <unknown>
[11:27:38] [debug] #4 00004350 in public ScriptInit_OnGameModeInit () from <unknown>
[11:27:38] [debug] Native backtrace:
[11:27:38] [debug] #0 e3ee9ca0 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[11:27:38] [debug] #1 e3ee2d22 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[11:27:38] [debug] #2 e3ee3314 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[11:27:38] [debug] #3 e3ee5964 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[11:27:38] [debug] #4 e3ee95cd in ?? () from plugins/crashdetect.so
[11:27:38] [debug] #5 e4258410 in ?? ()
[11:27:38] [debug] #6 e4258430 in ?? ()
[11:27:38] [debug] #7 e3f40687 in gsignal () from /lib/i386-linux-gnu/libc.so.6
[11:27:38] [debug] #8 e3f43ab3 in abort () from /lib/i386-linux-gnu/libc.so.6
[11:27:38] [debug] #9 e4179d6f in _ZN9__gnu_cxx27__verbose_terminate_handlerEv () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[11:27:38] [debug] #10 e4177924 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[11:27:38] [debug] #11 e417799d in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[11:27:38] [debug] #12 e4177c51 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[11:27:38] [debug] #13 e419e203 in _ZSt20__throw_system_errori () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[11:27:38] [debug] #14 e41a09db in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[11:27:38] [debug] #15 e41a0a30 in _ZNSt6thread15_M_start_threadESt10shared_ptrINS_10_Impl_baseEE () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[11:27:38] [debug] #16 e3b6b462 in ?? () from plugins/mysql.so
[11:27:38] [debug] #17 e3b6f737 in ?? () from plugins/mysql.so
[11:27:38] [debug] #18 e3b8d7cd in ?? () from plugins/mysql.so
[11:27:38] [debug] #19 080950e4 in ?? () from ./samp03svr
[11:27:38] [debug] #20 e3ee47b3 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[11:27:38] [debug] #21 0be3c648 in ?? () from ¬"äàŽ"äŒ4™âŒ4™â8™âŒ4™â6:™âŒ<™â´Ç"ä

errors.log
[12/09/16 11:27:38] [log-core] signal 6 (SIGABRT) catched; shutting log-core down (errno: 0, signal code: -6, exit status: 0)

log-core.log
[12/09/16 11:27:38] [ERROR] signal 6 (SIGABRT) catched; shutting log-core down (errno: 0, signal code: -6, exit status: 0)

Update: https://github.com/Misiur/YSI-Includes/issues/134#issuecomment-266074451

Do you get that crash when you revert back to R41 and/or R40?

R41:
[12/10/16 17:28:55] [DEBUG] mysql_connect("localhost", "f14021_gamez", "*****", "f14021_gamez", 1) (Game.pwn:366)
[12/10/16 17:28:55] [DEBUG] CHandleManager::Create(this=0xdde736f8, host='localhost', user='f14021_gamez', pass='****', db='f14021_gamez', options=0xdde73330)
[12/10/16 17:28:55] [DEBUG] CConnection::CConnection(this=0xdde73770, host='localhost', user='f14021_gamez', passw='****', db='f14021_gamez', options=0xdde73330)
[12/10/16 17:28:55] [DEBUG] CConnection::CConnection - new connection = 0xdde739f8
[12/10/16 17:28:55] [DEBUG] CConnection::CConnection(this=0xdc111008, host='localhost', user='f14021_gamez', passw='****', db='f14021_gamez', options=0xdde73330)
[12/10/16 17:28:55] [DEBUG] CConnection::CConnection - new connection = 0xdde8bf68

R40:
[OnGameModeInit] Initialising 'Main'...
[17:34:06] [debug] Server crashed while executing <unknown>
[17:34:06] [debug] AMX backtrace:
[17:34:06] [debug] #0 native mysql_connect () from mysql.so
[17:34:06] [debug] #1 000b812c in ?? () from <unknown>
[17:34:06] [debug] #2 0003cf24 in public ScriptInit_OnGameModeInit () from <unknown>
[17:34:06] [debug] #3 0000c0fc in public FIXES_OnGameModeInit () from <unknown>
[17:34:06] [debug] #4 00004358 in public ScriptInit_OnGameModeInit () from <unknown>
[17:34:06] [debug] Native backtrace:
[17:34:06] [debug] #0 e4400ca0 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[17:34:06] [debug] #1 e43f9d22 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[17:34:06] [debug] #2 e43fa314 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[17:34:06] [debug] #3 e43fc964 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[17:34:06] [debug] #4 e44005cd in ?? () from plugins/crashdetect.so
[17:34:06] [debug] #5 e476f410 in ?? ()
[17:34:06] [debug] #6 e476f430 in ?? ()
[17:34:06] [debug] #7 e4457687 in gsignal () from /lib/i386-linux-gnu/libc.so.6
[17:34:06] [debug] #8 e445aab3 in abort () from /lib/i386-linux-gnu/libc.so.6
[17:34:06] [debug] #9 e4690d6f in _ZN9__gnu_cxx27__verbose_terminate_handlerEv () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[17:34:06] [debug] #10 e468e924 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[17:34:06] [debug] #11 e468e99d in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[17:34:06] [debug] #12 e468ec51 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[17:34:06] [debug] #13 e46b5203 in _ZSt20__throw_system_errori () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[17:34:06] [debug] #14 e46b79db in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[17:34:06] [debug] #15 e46b7a30 in _ZNSt6thread15_M_start_threadESt10shared_ptrINS_10_Impl_baseEE () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[17:34:06] [debug] #16 e43a47ee in ?? () from plugins/mysql.so
[17:34:06] [debug] #17 e43a9451 in ?? () from plugins/mysql.so
[17:34:06] [debug] #18 e43c1f3d in ?? () from plugins/mysql.so
[17:34:06] [debug] #19 080950e4 in ?? () from ./samp03svr
[17:34:06] [debug] #20 e43fb7b3 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[17:34:06] [debug] #21 0b6fa6f8 in ?? () from ¬

Nothing about mysql.log in the logs folder. However in log-core.log
[12/09/16 12:15:44] [ERROR] signal 6 (SIGABRT) catched; shutting log-core down (errno: 0, signal code: -6, exit status: 0)
[12/09/16 12:21:55] [ERROR] signal 6 (SIGABRT) catched; shutting log-core down (errno: 0, signal code: -6, exit status: 0)
[12/10/16 17:28:55] [ERROR] signal 6 (SIGABRT) catched; shutting log-core down (errno: 0, signal code: -6, exit status: 0)
[12/10/16 17:32:24] [ERROR] signal 6 (SIGABRT) catched; shutting log-core down (errno: 0, signal code: -6, exit status: 0)

Which Linux distribution + version are you using? Does the server hardware your SA-MP server runs on only has one core available?

I'm using a server from frag.gs, and they said they're using Debian when I asked.

@xFirez Any specific version?

@Jeroen52 Sorry, I updated my message, no they didn't say what version just Ubuntu and to use the Debian version.

Could you look for a second time at the comment? I think you might have edited it incorrectly.
And about versions, are you using Ubuntu 16.10, Debian 8.5, or something else?

@Jeroen52 Like I said I don't know what "version" of Ubuntu it is. The support person told me to use the Debian one. I tried CentOS, other Debian version and I get the same error. Maybe it's 16.04 or 16.10, not sure what version of Ubuntu they're running. I will try and ask...

MySQL R40 and + is incompatible with with most samp server hostings i know.
They dont want to update server OS because it can F** UP other samp server plugins.

I've talked with @xFirez through PM's on the official SA-MP forum, and the issue seems to be the host (quoting a PM I wrote):

Okay, so the problem is very likely somewhere within the host.
The plugin crashes upon creating a thread. Thread creation gives a "Resource temporarily unavailable" exception, which is a system error. So simply said you hit the hardware limits of your host (which is kind of ridiculous for a measly SA-MP server).


viking: Automatically mark existing-but-mismatching functions as M or m

This would be helpful for games with existing debug info, to determinine which functions/classes have not been touched at all and which ones are being generated, but do not match yet.

sure, why not. I think we can extend the existing update_matching_functions logic to handle mismatching functions as well

The only downside that I could see is a bunch of mismatching functions suddenly appearing in the BOTW/odyssey decomps from sead/agl (which would be correct behavior) but it would cause a pretty sudden jump in mismatches. At the same time, since the mismatching functions from sead/agl haven't been manually checked in either decomp, this would also produce a slight progress increase which could be appreciated.

I don't see that as a downside at all, it just reflects the actual progress more accurately - if one has implemented something which does not match the behaviour on the other games, it should be obvious/displayed as such, and not be marked as "not implemented" until someone decides to manually check that function later, only to see it's been majorly done.


lazyload when to be active?

lazy load when to be active? We started a great project and we are experiencing performance problems cannot be for lazy load. sql query + n query

@cinaradem Lazy load doesn't solve 1+n queries but (potentially) cause them.
I believe the 1+ N queries you see were already fixed in the 1.1.0 branch, but there are still a few around like #5783

Lazy loading is tracked by #3797 and will be implemented post-1.1


Openscenegraph: Update to 3.6.3

https://github.com/openscenegraph/OpenSceneGraph/releases/tag/OpenSceneGraph-3.6.3
ref: https://github.com/Microsoft/vcpkg/issues/705

Related:
#4396
#4183
#4687
#5082
#1544
#5574

@luzpaz, thanks for posting this issue! Openscenegraph has upgrade to 3.6.3.


Error: Uncaught ReferenceError: webpack_require is not defined at

My OS is Linux-mint and I have a React typescript app. working with yarn (not npm) and docker containers for APISIX and front-end. Also, I have Webpack but without out Webpack configuration file.
I researched solutions on the web and did not find something that worked for me. I also restarted the computer, removed and restarted for docker, and removed and cloned the repository again.
Can you give me solutions with instructions and examples of what to do? :)
After executing 'yarn dev', the server is up, and I get the localhost port. when I open the localhost URL on Chrom the UI is white, and I do not see the app.
In the console getting the error ''Uncaught ReferenceError: webpack_require is not defined at u/newrelic"

It seems like you're encountering an issue with your React TypeScript app when running it locally using Yarn and Docker containers. The error you mentioned, "Uncaught ReferenceError: webpack_require is not defined at u/newrelic", suggests that there might be an issue with the bundling or configuration of your webpack setup.

It seems like you're encountering an issue with your React TypeScript app when running it locally using Yarn and Docker containers. The error you mentioned, "Uncaught ReferenceError: webpack_require is not defined at u/newrelic", suggests that there might be an issue with the bundling or configuration of your webpack setup.

Thanks! do you have suggestions on how to debug the bundling or configuration?


Review legacy Security OVERVIEW (Read me first)

Based on the list of components as documented in this Box note.
Related issues:

Review legacy Security OVERVIEW (Read me first) You are here
Review legacy Security COMPONENTS for migration
Review legacy Security PATTERNS for migration
Review legacy Security LAYOUTS for migration

Questions that need answers
What level of DESIGN migration?

Preferred No design review. Just ensure “before and after” look the same. This would be fastest means of migration. Consider design updates at a later date.
Review required. Each component must be reviewed, it’s design updated where necessary, and signed off before coding can begin.

What level of CODE migration?

Preferred Very opinionated: bring legacy code up to spec.
(“Carbon for IBM Products is responsible for the Security codebase and we need to sweep for cobwebs and rearrange the furniture; the 70’s just isn’t cool any more.”)

Not opinionated: minimal code updates.
(“Security is responsible for their own codebase, we’re just the movers.”)
Just “copy/paste/jam it in there” as much as possible.

The level of work required for all components
General effort involved for each component that is migrated to meet Carbon for IBM Products coding practices.
Even if a component is labeled as "✓ Follows Products component architecture", it will still require some modification to bring it inline with Products coding practices. There is no "copy/paste" shortcut here.
Other examples:

Writing, or at least "noting", any differences in a migration document (TBD).
Rewriting propTypes comments.
Rewriting defaultProps declaration and usage.
Better or updated multi-language support.
Enable declarative theming.

Components in Products use declarative theming, e.g. <Component theme="light" > where component.scss defines what it looks like when "light" or "dark" is specified. These are the only two predefined options.
This is easier to maintain than the previous method where the theme is defined globally, e.g. <body class="g10"> <Component> and component.scss must describe the look and feel based on an inherited class name of g0, g10, g90, g100. (If declared at all.)

All SCSS files will need reformatting.
All Storybook Docs must be rewritten (completely different format).
Fix and update Tests.
Any component labeled with Problematic imports. This merely adds complexity to the migration:

Do we have the equivalent component available to import in v2? Usually: yes.
Does the v2 version behave the same way? Usually: yes.
Does that imported component import even more components? If yes, then "rabbit hole".

Any component labeled as This component must be refactored from a Class to a Function will require some level of rewriting. See section below for details.

"This component must be refactored from a Class to a Function"
This requires a "structural refactor" of the React code to Carbon for IBM Products' latest spec.
Examples of common issues to be resolved
This is not a comprehensive list of issues.
Example from Nav.js

Prop declarations to be moved from render() to component's list of arguments.

From class...
export default class Nav extends Component {
  // component code
  render() {
    const { all, the, props } = this.props;
    return (
      // rendered code
    )
  }
}

To function.
Nav = ({ all, the, props }) => {
  // component code
  return (
    // rendered code
  )
}

Clean up and apply default props.

From inferred default props...
Nav = ({ activeHref, children, className, heading }) => { ... }
Nav.defaultProps = {
  activeHref: undefined,
  children: null,
  className: '',
  heading: null,
};

To applied default props.
defaults = {
  className: '',
};
Nav = ({
  activeHref,
  children,
  className = defaults.className,
  heading
  }) => { ... }

Example from DataDecorator.js

Refactor bespoke "state" to proper useState and useEffect.
Better naming conventions, especially for callback functions.

From
state = { isOpen: false };
toggleOpen = () => (this.state.isOpen ? this.close() : this.open());
open = () => {
  this.setState({ isOpen: true });
  this.props.onOpen();
};
close = () => {
  this.setState({ isOpen: false });
  this.props.onClose();
};

To
const [isOpen, setIsOpen] = useState(false);
const handleOpen = () => setIsOpen(true);
const handleClose = () => setIsOpen(false);
const handleToggleOpen = () => setIsOpen(prev => !prev);
useEffect(() => {
  if (isOpen) {
    onOpen();
  } else {
    onClose();
  }
}, [isOpen])

Example from Nav.js

Refactor constructor()
Deal with "throw away" code (!?, see below)

From
this.state = { activeHref };
this.handleItemClick = this.handleItemClick.bind(this);
this.handleListClick = this.handleListClick.bind(this);

To (...more or less, the source code is more complex)
const [href, setHref] = useState(activeHref);
// no need to reference "this" or use "bind" during refactor

...what?
render() {
  const {
    activeHref: _, // Throw away.

Closing for now since it’s documented as part of the Security migration epic.


Replace fill-available to stretch, because spec had been changed

This issue has not been solved.
Link https://github.com/DominicTobias/react-image-crop/issues/176
./node_modules/react-image-crop/lib/ReactCrop.scss (Emitted value instead of an instance of Error) autoprefixer: /home/josuearreola/Documents/node_modules/react-image-crop/lib/ReactCrop.scss:1:253: Replace fill-available to stretch, because spec had been changed
I'll create a PR to solve this.

What version are you using? The property was removed in 8.3.0 due to causing too many issues. See the comment here: https://github.com/DominicTobias/react-image-crop/releases/tag/8.3.0
So the solution is to add stretch if you need it and it doesn't cause issues.

Thanks, but also I think I can't upgrade too much the lib, because when I run yarn build there are files that can't be minified

I'll mark this as resolved!
After updating to the latest version there was a problem minifying a file.
If you have the same problem and is breaking your pipeline due to this errors, or you don't want  any warnings on your code follow the steps:

Upgrade to v 8.3.0 with yarn upgrade<EMAIL_ADDRESS>or npm if it's the case.
Run your project and check if the crop is now weird and taking a super zoom or one pixel (That happened to me, crop func was broken).
If it's the case, you need a ref of the react-crop-image img element generated onImageUpload. Then,. Open this link where you will find that you need scaleX and scaleY if you want to preview the crop to  user.
Link -> https://codesandbox.io/s/react-image-crop-demo-with-classes-forked-hozg9?file=/src/index.js
And check this
Your crop state should have another property of unit set to 'px'.

crop : {
  unit : 'px',
  // others
}

Your ReactCrop component should have onImageLoaded prop with a method. The method will receive an image an create an imageRef
onImageLoaded = (image) => {
    this.imageRef = image;
  };

At this point, I'd say that you have a func that creates the preview image, so, here is the fix to the weird crop generated when updating the lib
handleCropComplete = (crop, pixelCrop) => {
    // Initialize canvas
    const canvas = document.createElement('canvas')
    const scaleX = this.imageRef ? this.imageRef.naturalWidth / this.imageRef.width : 1
    const scaleY = this.imageRef ? this.imageRef.naturalHeight / this.imageRef.height : 1
    canvas.width = crop.width
    canvas.height = crop.height
    const ctx = canvas.getContext('2d')
    // Initialize image
    let myImage = new Image()
    myImage.onload = () => {
      ctx.drawImage(
        myImage,
        crop.x * scaleX,
        crop.y * scaleY,
        crop.width  * scaleX,
        crop.height * scaleY,
        0,
        0,
        crop.width ,
        crop.height,
      )
}

Now your yarn build or npm build will run without warnings


Fix staircase

Fixing the staircase puzzle so that you can escape.

Working lift description
Working riddle
Removed all Franklin references to people to make it publicly playable
Removed Franklin slang for departmental names to make it publicly playable

Love the new riddle, its perfect :)


checkboxes not there on app start

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Start App
Loaed Tasks don't contain check boxes

Expected behavior
Check boxes shoul be there
Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
After changing task status, they apperar again!

it's a platform specific issue!

could depend on individual WebView engine


Value cannot be null. stringToEscape

Hello,
I'm getting this error:
System.ArgumentNullException: Value cannot be null.
Parameter name: stringToEscape
   at System.Uri.EscapeDataString(String stringToEscape)
   at Microsoft.AspNetCore.Http.Internal.ResponseCookies.Append(String key, String value, CookieOptions options)
   at ReturnTrue.AspNetCore.Identity.Anonymous.AnonymousIdMiddleware.HandleRequest(HttpContext httpContext)
   at ReturnTrue.AspNetCore.Identity.Anonymous.AnonymousIdMiddleware.<Invoke>d__3.MoveNext()

This error occurs after the number of second I set up in AnonymousIdCookieOptionsBuilder -> SetCustomCookieTimeout
It looks like the code in AnonymousIdMiddleware on lines 86-98 doesn't work properly (maybe something wrong with bool SlidingExpiration value ) and can't attach a new cookie.

Hi,
I'm getting exactly the same error. Do you find any solution for it?

Currently trying to reproduce it... what version of Asp.NET Core are you on?

Hi,
.net Core version is 2.1.4.
Try set SetCustomCookieTimeout to 120 and You should get error after 2 minutes.

I found what is a problem and I have solution.
Problem:
Expire time is set once at start application and later never be updated.
Solution:
In the section where you recreate new id for anonymousId I was add
cookieOptions.Expires = DateTime.UtcNow.AddSeconds(cookieOptions.Timeout);
and after that problem was disappear.

In my tests this happens if you set a custom timeout that's too low... it doesn't happen with default settings... doing further investigations.

You were right... startup should contain only configuration options and not calculated ones. Moved the other into the middleware and should now be working!
Thanks for your feedback!

I think you should add this code between 84 and 85 line. Now, every request calculate new expire date.

Sliding expiration is enabled by default, but you can disable it by using CookieOptions!


chore: update eslint config

Enabling some useful rules, see: https://github.com/benmosher/eslint-plugin-import. This adds checks for common import mistakes/anti-patterns (like no cyclical dependencies, no unused modules, etc.). Other than that it enables some style rules that allow us to have to think less about how we're writing our imports, since eslint --fix will keep it consistent for us.

The import/no-internal-modules rule enforces the existing repo structure. It ensures that the index.js of every folder in components, hooks, pages and services is always the external boundary. Which will hopefully make the interaction between the different parts of the app easier to reason about, we'll see how it works out in practice though.
I've kept the plugin's bundled warnings and errors. We're setting most of them manually, but I figured it couldn't hurt to have their settings as a base/default.

Those rules look helpful. Approved.

Thanks!


[ROCm 5.5] Minimize DB updates to gfx90a6e by reverting other DB changes.

Reverting MI100 and MI210 to 654b3be68

@cderb we need this same updates in develop branch to unblock mainline.


Programmatic usage of Prisma (reset, deploy, ...)

There is multiple issue about programmatic usage of Prisma.
#1948
#2214
Why people want programmatic usage of Prisma ?

Build tools for Prisma ecosystem without "prisma-cli".
Test GraphQL Yoga Server (deploy & wipe before each tests to ensure database is always fresh/consistent).
Custom deployment strategy.

In a ideal world, Prisma generated client should be able to do Prisma CLI Cluster tasks like "reset", "deploy".
import { prisma } from './generated';

beforeAll(async () => {
  return prisma.cluster.deploy();
});

afterAll(async () => {
  return prisma.cluster.wipe();
});

The current workaround is calling Prisma CLI as child process but It's cumbersome and verbose + not "beginner" friendly.

Sorry to revive such an old issue, but this would be super helpful I believe. Where do you stand on this topic ?


[libs/movex] Remove unused file - LocalStorageMovexStore

Where
libs/movex/src/lib/movex-store/LocalStorageMovexStore.ts
What
Remove this file and any possible references to it
Why
Readability
Definition of deon

[ ] the file is removeed
[ ] all the tests are passing yarn test

Hi @GabrielCTroia , could I work on this issue? thanks

Hi @GabrielCTroia, can you assign me this issue?

Hey, @AbhigyaKrishna I would, but I just realized @WangGithub0 asked as well, and I missed his comment.
I would wait to see if he still wants to work on it, and if not I'll gladly assign it to you!
In the meantime, @AbhigyaKrishna we have bunch of https://github.com/movesthatmatter/movex/labels/good first issue, and I'll add more tomorrow!

@WangGithub0 I'm sorry, I missed your comment - do you still want to work on it?

Hey, @AbhigyaKrishna, it seems @WangGithub0 is not responding. I will assign this to you for now!
Thank you!

I came first and today is thanks giving day, I stay with my family whole day!

Oh, sorry @WangGithub0! I didn't know, so do you still want to work on this?

yea, thanks a lot

You're welcome @WangGithub0.
@AbhigyaKrishna sorry for the confusion, I will re-assign this to @WangGithub0 as he was the first!
Let me know if you want me to suggest another issue for you.


usage metrics

It would be nice if we can notified when howfairis is used. Probably it makes sense to think about it when we have a GH action or GH bot. There should also be an opt-out option for the user.

when we have a GitHub action

Be aware we already have https://github.com/fair-software/badge
Also note that making a GitHub bot is not foreseen at the moment. Remember our discussion here https://github.com/NLeSC/generalization/issues/98#issuecomment-732872939:
[Potential tasks are to ] "Automate visiting repositories that are mentioned in the RSD, and make PRs for adding the fair-software badge, which will help with compliance for #98 (Improve reporting of best practices compliance in our projects), which will likely be a statistic that will be included in our reporting starting soonish. @fdiblen suggested a bot, I'm not sure if that works for our purposes because users need to add the bot on their repos first, right? Refs: https://github.com/NLeSC/generalization/issues/98#issuecomment-732872939"

when we have a GitHub action

Be aware we already have https://github.com/fair-software/badge
Also note that making a GitHub bot is not foreseen at the moment. Remember our discussion here https://github.com/NLeSC/generalization/issues/98#issuecomment-732872939:
[Potential tasks are to ] "Automate visiting repositories that are mentioned in the RSD, and make PRs for adding the fair-software badge, which will help with compliance for #98 (Improve reporting of best practices compliance in our projects), which will likely be a statistic that will be included in our reporting starting soonish. @fdiblen suggested a bot, I'm not sure if that works for our purposes because users need to add the bot on their repos first, right? Refs: https://github.com/NLeSC/generalization/issues/98#issuecomment-732872939"

Could be achieved by hosting badge images ourselves (see #60) and mining the access log of the server.

Could be achieved by hosting badge images ourselves (see #60) and mining the access log of the server.


New features wish list

[x] Include panic error msg string
[x] Allow specifying extra opcodes via cli
[x] Implement opcode parsing for common opcodes initially (like add, mul and few more)
[x] Check if rpc supports debug_tt before doing a mainnet fork
[ ] Handle invalid opcode for old solidity contracts (ethereum/solidity#9824))
[ ] Allow decoding events as well in the decode task
[ ] Automatically detect network when input hash in trace task
[x] Add ability to export the generated trace as json
[ ] Display storage diff
[x] Display trace for failed estimate gas.
[ ] Precompiles
[x] Handle Incorrect return data length

Hi @zemse, awesome extension!
Would be nice to have an -o (--output) flag to export the trace in JSON as well.
Also, perhaps a way to diff the SSTORE with the previous value (to track what changed, or have this as part of the output).

Thanks for the great extension! One interesting idea would be to output a mermaid.js sequence diagram of some sort. (maybe reduce the function variables a bit so it's more readable).
It would give you a more visual overview of the components and stacktrace.
One other feature would be merging proxies and their implementation. Currently they basically print out duplicate traces.

Thanks! I'll check it out.

It would be really useful to know the source line numbers where SLOAD and SSTORE calls are being triggered from.

I agree, source lines would be useful. Though I wonder how to fit that in the console display since it already prints a lot of stuff which makes it overwhelming sometimes. Maybe behind a flag/config option. I've created an issue for this.
Closing this issue since these pending ones in this issue are in my backlog for a long time and I don't think I can do these anytime soon. But feel free to open a new issue about any feature that can be useful.


Crowdin CI complains about no blog directory being present

Have you read the Contributing Guidelines on issues?

[X] I have read the Contributing Guidelines on issues.

Prerequisites

[X] I'm using the latest version of Docusaurus.
[X] I have tried the npm run clear or yarn clear command.
[X] I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
[ ] I have tried creating a repro with https://new.docusaurus.io.
[ ] I have read the console error message carefully (if applicable).

Description
In the current CI Crowdin deployment found here: https://github.com/celestiaorg/docs/blob/main/.github/workflows/deploy.yml#L23
The workflow fails with a complaint that:
❌ No sources found for '/blog/**/*' pattern. Check the source paths in your configuration file
❌ Current execution finished with errors

We do not have a blog directory in our Docusaurus instance. We removed it and prefer using other directory names for our use case.
Not sure how to tell it to ignore the /blog/**/** pattern
Reproducible demo
No response
Steps to reproduce

Use crowdin CI with https://github.com/celestiaorg/docs
You will get errors on workflow for lack of blog directory

Expected behavior
It should continue workflow and ignore lack of blog directory
Actual behavior
It stops workflow and complains about the lack of blog directory
Your environment

Public source code: https://github.com/celestiaorg/docs
Public site URL: https://docs.celestia.org/
Docusaurus version used:
Environment name and version (e.g. Chrome 89, Node.js 16.4):
Operating system and version (e.g. Ubuntu 20.04.2 LTS):

Self-service

[ ] I'd be willing to fix this bug myself.

Closing as I realized the fix was to remove a the line that references the blog from crowdin.yml


MPI name/surname character validation

Env: prod
I currently, was checking MPI records, and found some name/surnames which has a mix of cyrillic and latin letters, which is obviosly a mistake
We should have charset validation for names/surnames

Should we also add this kind of validation for employees/owners?

@danakonovalenko yes, please


chore: Merge devnet to master

This PR simply merge devnet changes back to master.

Benchmark results
Metrics with a significant change:

avm_simulation_time_ms (Token:mint_public): 72.2 (+64%)
avm_simulation_time_ms (Token:assert_minter_and_mint): 40.2 (-41%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Proof generation
Each column represents the number of threads used in proof generation.

Metric
1 threads
4 threads
16 threads
32 threads
64 threads

proof_construction_time_sha256_ms
5,791
1,570
707 (-1%)
762
769

proof_construction_time_sha256_30_ms
11,867
3,189
1,418
1,442 (-1%)
1,465

proof_construction_time_sha256_100_ms
45,407
11,932 (-1%)
5,434 (-1%)
5,415
5,387 (+1%)

proof_construction_time_poseidon_hash_ms
78.0 (-1%)
35.0 (+3%)
34.0
57.0 (-2%)
87.0 (-2%)

proof_construction_time_poseidon_hash_30_ms
1,532
423
203
228 (+1%)
273 (-1%)

proof_construction_time_poseidon_hash_100_ms
5,654
1,524
683 (+1%)
721 (-2%)
749 (+1%)

L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
4 txs
8 txs
16 txs

l1_rollup_calldata_size_in_bytes
4,324
7,844
14,852

l1_rollup_calldata_gas
49,708
92,474
177,752

l1_rollup_execution_gas
1,383,202
2,130,936
3,958,253

l2_block_processing_time_in_ms
259 (+5%)
445 (+1%)
814 (+1%)

l2_block_building_time_in_ms
9,333
18,120
36,259

l2_block_rollup_simulation_time_in_ms
9,333
18,120
36,258

l2_block_public_tx_process_time_in_ms
7,855
16,561
34,669

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 8 txs.

Metric
3 blocks
5 blocks

node_history_sync_time_in_ms
2,891 (-4%)
3,859 (+3%)

node_database_size_in_bytes
12,689,488
16,691,280

pxe_database_size_in_bytes
16,254
26,813

Circuits stats
Stats on running time and I/O sizes collected for every kernel circuit run across all benchmarks.

Function
time_ms
bytecode_size_in_bytes

FeeJuice:_increase_public_balance
54.0 (+1%)
8,139

FeeJuice:set_portal
12.4 (+5%)
2,362

Token:constructor
84.7 (+6%)
31,107

FPC:constructor
59.8 (+14%)
22,380

FeeJuice:mint_public
37.9 (-1%)
6,150

Token:mint_public
:warning: 72.2 (+64%)
11,720

Token:assert_minter_and_mint
:warning: 40.2 (-41%)
8,028

AuthRegistry:set_authorized
45.3 (+25%)
4,537

FPC:prepare_fee
242 (+2%)
8,812

Token:transfer_public
23.1 (-14%)
47,374

FPC:pay_refund
56.7 (-2%)
12,114

Benchmarking:increment_balance
970
7,450

Token:_increase_public_balance
44.4 (+5%)
8,960

FPC:pay_refund_with_shielded_rebate
71.1 (+3%)
12,663

Public DB Access
Time to access various public DBs.

Function
time_ms

get-nullifier-index
0.159 (-1%)

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
256 leaves
512 leaves
1024 leaves

batch_insert_into_append_only_tree_16_depth_ms
2.20 (+1%)
3.90
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.8
31.7
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.114 (+1%)
0.111
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
11.6 (-1%)
17.9 (-1%)
31.2
59.9 (+2%)
112 (-2%)

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
95.9
159
287
543
1,055

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.111 (-1%)
0.104 (-1%)
0.102
0.103 (+2%)
0.101 (-2%)

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
14.5 (-1%)
26.0
44.5 (+1%)
83.5 (+1%)
165 (+1%)

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
109
207
355
691
1,363

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.110
0.105
0.107 (+1%)
0.103 (+2%)
0.104 (+1%)

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
16.5
N/A
N/A
N/A
N/A

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
132
N/A
N/A
N/A
N/A

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
0.106
N/A
N/A
N/A
N/A

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
64,779
668,997

Transaction size based on fee payment method
| Metric |  |
| - |  |


Questions about training the generalized model on my own datasets

Respect authors!I want to train the generalized model on my own datasets,but I do not know what format or files do I need for my dataset.Otherwise,the DTU datasets confuses me because it has many various files.I am looking forward to your timely reply!Thank you very much in advance!
I know the command is python train_net.py --cfg_file configs/mvsgs/colmap_eval.yaml train_dataset.data_root examples/scene1 test_dataset.data_root examples/scene1

For example, if I have some scenes everyone that have around 20 images、sparse/0 and poses_bounds.npy and how to set up a dataset so that I could successfully train the generalized model.

Hi, if you want to train the model on many scenes, you can modify the dataset file, for details on how to modify, you can refer to the llff dataset file, where you set the scene name here, and you can download the LLFF dataset and refer to its organizational format, like:
data
    ├── scene1
        ├── images
        ├── sparse
                 ├── 0
        ├── poses_bounds.npy
   ├── scene2
    ...

Hi, if you want to train the model on many scenes, you can modify the dataset file, for details on how to modify, you can refer to the llff dataset file, where you set the scene name here, and you can download the LLFF dataset and refer to its organizational format, like:
data
    ├── scene1
        ├── images
        ├── sparse
                 ├── 0
        ├── poses_bounds.npy
   ├── scene2
    ...

Thanks for your reply.I see what you mean but what are the specific commands?Because your command like python train_net.py --cfg_file configs/mvsgs/colmap_eval.yaml train_dataset.data_root examples/scene1 test_dataset.data_root examples/scene1  looks like it's only for a single scene and I tried to delete /scene1 above and run the command above.It makes a mistake like FileNotFoundError: [Errno 2] No such file or directory: './my multi-scenes datasets/images'

Hi, I updated the code and the corresponding readme.
If you want to train our model on your own dataset, first organize the dataset as follows：
data
  ├── scene1
      ├── images
      ├── sparse
               ├── 0
      ├── poses_bounds.npy
 ├── scene2
  ...

Modify the scenes list here and then execute the following commands:
python train_net.py --cfg_file configs/mvsgs/colmap_eval.yaml train_dataset.data_root examples test_dataset.data_root examples

Hi, I updated the code and the corresponding readme.
If you want to train our model on your own dataset, first organize the dataset as follows：
data
  ├── scene1
      ├── images
      ├── sparse
               ├── 0
      ├── poses_bounds.npy
 ├── scene2
  ...

Modify the scenes list here and then execute the following commands:
python train_net.py --cfg_file configs/mvsgs/colmap_eval.yaml train_dataset.data_root examples test_dataset.data_root examples

It works for me! Thank you very much for your reply and assistance.


IndexError when defining custom_vjp and using int

Hello,
I am facing an error when I define a custom_vjp that I can't resolve. Here is an example below that reproduces the error:
from functools import partial
import jax

@jax.custom_vjp
def do_something(z,x):
    sq = int(x)
    return z**sq

def do_smth_fwd(z,x):
    sq = int(x)
    return do_something(z,x), (z,sq)

def do_smth_bwd(residual, g):
    z,sq = residual
    return g*sq*z**(sq-1), None

do_something.defvjp(do_smth_fwd, do_smth_bwd)

@partial(jax.jit, static_argnums = (1))
def f(z,x):
    res = do_something(z,x)
    return res

gf = jax.grad(f)

gf(3.,2.)

This throws the error:
IndexError: list assignment index out of range

I guess that the error comes from sq=int(x), since removing this line resolves it.
In the example above using int is silly, but in the code I am working on I really need it
Does someone have an idea why it is happening ?
Thank you very much for any help !
Note:

The error does not appear if I don't jit the function.

If I don't define a custom_vjp rule, I don't get the error:

def do_something(z,x):
    sq = int(x)
    return z**sq

@partial(jax.jit, static_argnums = (1))
def f(z,x):
    res = do_something(z,x)
    return res

gf = jax.grad(f)
gf(3.,2.)

which returns
DeviceArray(6., dtype=float32, weak_type=True)

A fix can be to replace int with jax.numpy.floor, but it does not explain the error. Additionally, I want to use this integer in jax.numpy.linspace() which requires an integer

I have tried a fix that makes sense only in my code base, where basically I only use "jax" code, but I still get the error. I can share an other example to showcase this attempt it needed.

I have looked at it some more and below is a better example of the error I am facing:
@jax.custom_vjp
def _f_test(x, N):
    l = jnp.arange(N)
    # l = jnp.linspace(0,1,N)
    s = jnp.sum(l)
    return x**s

def _f_test_fwd(x, N):
    l = jnp.arange(0,1,N)
    # l = jnp.linspace(0,1,N)
    s = jnp.sum(l)
    return _f_test(x,N), (x, s)

def _f_test_bwd(residual, g):
    x, s = residual
    return g*s*x**(s-1), None

_f_test.defvjp(_f_test_fwd, _f_test_bwd)

@partial(jax.jit, static_argnums = (1,))
def _f(x,N):
    return _f_test(x,N)

_f(2., 5)

linspace or arange in combination with jit and custom_vjp throws the IndexError: list assignment index out of range.
Am I doing an obvious mistake that I am missing or is this an expected behaviour ? @mattjj @jakevdp  Sorry to bother you but I don't know who to ask and this is really a road blocker.
Thank you very much for any input.

Hi @pablo2909
I executed the mentioned code in Google Colab with JAX version 0.4.23 (CPU and GPU) and version 0.3.25 (TPU). Now the error message for jit enabled function indicates as follows:
ConcretizationTypeError: Abstract tracer value encountered where concrete value is expected: Traced<ShapedArray(int32[], weak_type=True)>with<DynamicJaxprTrace(level=0/2)>
It arose in jax.numpy.arange argument `stop`.

This is due to the fact that with jit enabled, N is passed as Abstract tracer value to _f_test(x, N) function. But the jnp.arange expects a concrete value as input.
I tried an alternative approach, and it executes without any error.
import jax
import jax.numpy as jnp
from functools import partial

@jax.custom_vjp
def _f_test(x, l):
    # l = jnp.arange(N)
    # l = jnp.linspace(0,1,N)
    s = jnp.sum(l)
    return x**s

def _f_test_fwd(x, l):
    # l = jnp.arange(N)
    # l = jnp.linspace(0,1,N)
    s = jnp.sum(l)
    return _f_test(x,l), (x, s)

def _f_test_bwd(residual, g):
    x, s = residual
    return g*s*x**(s-1), None

_f_test.defvjp(_f_test_fwd, _f_test_bwd)

@partial(jax.jit, static_argnums = (1,))
def _f(x,N):
    l = jnp.arange(N)
    return _f_test(x,l)

_f(2., 5)

Output:
DeviceArray(1024., dtype=float32, weak_type=True)

Please find the gist for reference.
Thank you.


Update Cloud SQL example text.

Update the example test with new links and fixed instructions for the latest yaml config updates.

@piaxc PTAL See  the "rich diff" as I re-wrapped the lines in the raw .md

LGTM. Thanks!
On Fri, Sep 2, 2016 at 9:34 AM, Jeff Mendoza<EMAIL_ADDRESS>wrote:

@piaxc https://github.com/piaxc PTAL See the "rich diff" as I
re-wrapped the lines in the raw .md
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/container-engine-samples/pull/6#issuecomment-244424816,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQySxg8P46I1R_xNbnXXb2gOCJD64s_2ks5qmE_4gaJpZM4Jz4KM
.

--
Pia Chamberlain |  Technical Writer |<EMAIL_ADDRESS>|  Cloud SQL


How can implement login Authentication in Meteor based OHIF Viewer?

Hello,
I want to log in authentication in meteor based ohif viewer so what I should. Is it already available in ohif?

👋 Hello @Vishal568, the core team no longer actively provides support for the previous Meteor version of this application. Given our limited resources, we've made this decision to better focus on improving the React version of the OHIF Viewer as we move forward.
We do have some guidance on setting up User Account Control w/ the OHIF Viewer and Keycloak:
https://docs.ohif.org/deployment/recipes/user-account-control.html
If you encounter any issues with that documentation, please let me know. It's been a while since I've given it a run through, but I'm more than happy to answer related questions and fix anything that may no longer be correct.


Test repository layer error handling

We have a TestRepository for faking the MonitorRepository, however it never returns an error, meaning our unit tests that use it can never have coverage for their handling of errors. Add a mechanism for forcing errors in our test repo. Something like this would probably do it
struct TestRepository {
  ...
  error: Option<diesel::Error>
}

impl TestRepository {
  pub fn new(...) Self {
    Self {
      ...
      error: None
    }
  }

  pub fn set_error(&mut self, err: diesel::Error) {
    self.error = Some(err)
  }
}

impl Get<Monitor> for TestRepository {
  pub fn get(&mut self, monitor_id: Uuid) -> Result<Option<Monitor>, diesel::Error> {
    if let Some(error) = self.error {
      self.error = None;
      Err(error)
    } else {
	  // Real impl
    }
  }
}

No longer required as of #66, as we can easily set return values to errors through mockall.


Parsed css stylesheet does not contain media

Not sure if I'm doing something wrong.
Tried to parse http://cdn.sstatic.net/stackoverflow/all.css?v=5a386bc7d85d using AngleSharp.
There seem to be many issues, for instance StyleSheet.Media is empty even though the css has many @media declarations. So the rules within @media declarations are missing.

Hm I don't know which version of AngleSharp you are using. The current version has some problems - reported and closed. I will have a look at that particular stylesheet to see if there is anything that has not been issued and should be fixed.

I checked the sheet and yes, the handling of @media rules has been fixed already (will be made available via v0.8.6). I didn't see any other critical issues, just a few cosmetic ones:

CSS Media settings with and conjunctions (or others) that contain invalid (in this case due to vendor prefixes) constraints should be considered invalid -- at the moment the invalid part is only dropped. An invalid Medium then is either dropped or left alone depending on the parser's setting
The serialization should be done via a formatter as in HTML with the IMarkupFormatter. It would allow both, standard and special formatting without any problem and it would be very consistent
Apparently the background-image declaration does not accept multiple values - at least the ones that were specified similar to url(...), none were dropped. I'll investigate


add tldr.nettime.org to instances list

Adding https://tldr.nettime.org/ to the server list. This is the Mastodon instance of the nettime.org mailing list / community.

@leitmedium thanks, but currently I'm not accepting changes to the instances list. Reasons:

It's just a auto-suggest list, not a complete list of all available instances. It's also impossible to list all of them.
The login will still work even without this list. I know it's inconvenient, but it works.
The list used to be longer, fetched from https://instances.social/ but due to complaints regarding specific bad/blocked hosts, I decided to play safe and use the list from https://joinmastodon.org/servers


Provide some simple discretizations of the unit box

The user shouldn't have to write this code: https://github.com/gaioguys/GAIO.jl/blob/88b26aca4e953460e8fff7afcc4b55691e59020d/examples/henon.jl#L4-L9
Interestingly, those points do not all lie in the unit box... But that doesn't really matter, right?

I agree. I guess we have two options:

Provide some SamplePoints struct which takes two input parameters specifying the type of sample points and their overall number.
Provide a constructor for PointDiscretizedMap which takes these two arguments and internally constructs the points.

Any opinions on this?
... and, yes, that does not matter (currently).

Why not simply have some functions along the lines of
dimension = 3
n = 10
points = corners(dimension,n)
points = randomPoints(dimension,n)
points = regularGrid(dimension,n)

These would just return an array of points and then we can give that to a BoxMap as before. Possibly we can also have methods of these that take a Box and use its dimension, might be more convenient.

Right: keep it simple.  I like that, but would use facePoints instead of corners.


Use Werkzeug

Add django-extensions and Werkzeug to local requirements, and use runserver_plus in docker-entrypoint.sh.
It is a lot faster than regular runserver in Docker.

@rinti Have you verified this on our apps?

@marteinn Yep, It's like night and day.

@rinti Awesome!


B: Enhance the UI of Jump and Dodge game

I would like to work on this
Please assign me to this task


umlaut chars and special characters are being replaced

Do you read the FAQ?

[1 ] Yes.
[ ] I am going to read now.

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

add umlaut chars to a script file
2.upload the file to remote. Characters will be replaced

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Win
VSCode Version [e.g. 1.27.0]
Extension Version [e.g. 1.7.0]

Extension Logs from Startup - required

Open User Settings.

On Windows/Linux - File > Preferences > Settings
On macOS - Code > Preferences > Settings

Set sftp.debug to true and reload vscode.

Reproduce the problem, get the logs from View > Output > sftp.

ex: "^[A-zÀ-ÿ .,\\-&_]+$" is been replaced with "^[A-z�-� .,\-&_]+$"

Any update ?


fix: static files served at relative path

Depending on if the page was accessed through /spex/ or /spex, static files would get loaded properly or not. Using an absolute URI should fix the issue.
Assuming ${iri} always contains what we need. Can you confirm that @bergos ?
Should fix https://github.com/zazuko/issues-private/issues/73

@martinmaillard iri will be the requested URL. If you can access it with both URLs, the iri can be also one or the other. I think you need to enable strict in the Router. I guess then you don't even need the iri variable.

strict didn't seem to work with / (may or may not be related to https://github.com/expressjs/express/issues/2281). I manually enforced the trailing slash instead. Is that ok for you @bergos ?


Cant seem to install pywarping

This is the error when I try to install it with pip(Pip version 21.1.2, python version 3.9.1)
`Collecting pywarping
Using cached pywarping-0.2-py3-none-any.whl
Requirement already satisfied: scikit-image in c:\users\saketh\appdata\local\programs\python\python39\lib\site-packages (from pywarping) (0.18.2)
Requirement already satisfied: opencv-python in c:\users\saketh\appdata\local\programs\python\python39\lib\site-packages (from pywarping) (<IP_ADDRESS>)
Requirement already satisfied: matplotlib>=2.0.0 in c:\users\saketh\appdata\local\programs\python\python39\lib\site-packages (from pywarping) (3.4.2)
Collecting dlib
Using cached dlib-19.22.0.tar.gz (7.4 MB)
Requirement already satisfied: click>=7.0 in c:\users\saketh\appdata\local\programs\python\python39\lib\site-packages (from pywarping) (7.1.2)
Requirement already satisfied: numpy>=1.16.4 in c:\users\saketh\appdata\local\programs\python\python39\lib\site-packages (from pywarping) (1.20.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\saketh\appdata\local\programs\python\python39\lib\site-packages (from matplotlib>=2.0.0->pywarping) (1.3.1)
Requirement already satisfied: pyparsing>=2.2.1 in c:\users\saketh\appdata\local\programs\python\python39\lib\site-packages (from matplotlib>=2.0.0->pywarping) (2.4.7)
Requirement already satisfied: cycler>=0.10 in c:\users\saketh\appdata\local\programs\python\python39\lib\site-packages (from matplotlib>=2.0.0->pywarping) (0.10.0)
Requirement already satisfied: pillow>=6.2.0 in c:\users\saketh\appdata\local\programs\python\python39\lib\site-packages (from matplotlib>=2.0.0->pywarping) (8.1.2)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\saketh\appdata\local\programs\python\python39\lib\site-packages (from matplotlib>=2.0.0->pywarping) (2.8.1)
Requirement already satisfied: six in c:\users\saketh\appdata\local\programs\python\python39\lib\site-packages (from cycler>=0.10->matplotlib>=2.0.0->pywarping) (1.15.0)
Requirement already satisfied: networkx>=2.0 in c:\users\saketh\appdata\local\programs\python\python39\lib\site-packages (from scikit-image->pywarping) (2.5.1)
Requirement already satisfied: scipy>=1.0.1 in c:\users\saketh\appdata\local\programs\python\python39\lib\site-packages (from scikit-image->pywarping) (1.6.3)
Requirement already satisfied: imageio>=2.3.0 in c:\users\saketh\appdata\local\programs\python\python39\lib\site-packages (from scikit-image->pywarping) (2.9.0)
Requirement already satisfied: tifffile>=2019.7.26 in c:\users\saketh\appdata\local\programs\python\python39\lib\site-packages (from scikit-image->pywarping) (2021.6.14)
Requirement already satisfied: PyWavelets>=1.1.1 in c:\users\saketh\appdata\local\programs\python\python39\lib\site-packages (from scikit-image->pywarping) (1.1.1)
Requirement already satisfied: decorator<5,>=4.3 in c:\users\saketh\appdata\local\programs\python\python39\lib\site-packages (from networkx>=2.0->scikit-image->pywarping) (4.4.2)
Building wheels for collected packages: dlib
Building wheel for dlib (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\saketh\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\saketh\AppData\Local\Temp\pip-install-n2rkpdbi\dlib_d0a2d4f321944269b438c57829027f12\setup.py'"'"'; file='"'"'C:\Users\saketh\AppData\Local\Temp\pip-install-n2rkpdbi\dlib_d0a2d4f321944269b438c57829027f12\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\saketh\AppData\Local\Temp\pip-wheel-3lg422aj'
cwd: C:\Users\saketh\AppData\Local\Temp\pip-install-n2rkpdbi\dlib_d0a2d4f321944269b438c57829027f12
Complete output (58 lines):
running bdist_wheel
running build
running build_py
package init file 'tools\python\dlib_init_.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\saketh\AppData\Local\Temp\pip-install-n2rkpdbi\dlib_d0a2d4f321944269b438c57829027f12\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\saketh\AppData\Local\Temp\pip-install-n2rkpdbi\dlib_d0a2d4f321944269b438c57829027f12\build\lib.win-amd64-3.9 -DPYTHON_EXECUTABLE=c:\users\saketh\appdata\local\programs\python\python39\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\saketh\AppData\Local\Temp\pip-install-n2rkpdbi\dlib_d0a2d4f321944269b438c57829027f12\build\lib.win-amd64-3.9 -A x64'
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:5 (message):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

You must use Visual Studio to build a python extension on windows.  If you
are getting this error it means you have not installed Visual C++.  Note
that there are many flavors of Visual Studio, like Visual Studio for C#
development.  You need to install Visual Studio for C++.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

-- Configuring incomplete, errors occurred!

ERROR: Failed building wheel for dlib
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib, pywarping
Running setup.py install for dlib ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\saketh\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\saketh\AppData\Local\Temp\pip-install-n2rkpdbi\dlib_d0a2d4f321944269b438c57829027f12\setup.py'"'"'; file='"'"'C:\Users\saketh\AppData\Local\Temp\pip-install-n2rkpdbi\dlib_d0a2d4f321944269b438c57829027f12\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\saketh\AppData\Local\Temp\pip-record-j6g7aj6l\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\saketh\appdata\local\programs\python\python39\Include\dlib'
cwd: C:\Users\saketh\AppData\Local\Temp\pip-install-n2rkpdbi\dlib_d0a2d4f321944269b438c57829027f12
Complete output (60 lines):
running install
running build
running build_py
package init file 'tools\python\dlib_init_.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\saketh\AppData\Local\Temp\pip-install-n2rkpdbi\dlib_d0a2d4f321944269b438c57829027f12\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\saketh\AppData\Local\Temp\pip-install-n2rkpdbi\dlib_d0a2d4f321944269b438c57829027f12\build\lib.win-amd64-3.9 -DPYTHON_EXECUTABLE=c:\users\saketh\appdata\local\programs\python\python39\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\saketh\AppData\Local\Temp\pip-install-n2rkpdbi\dlib_d0a2d4f321944269b438c57829027f12\build\lib.win-amd64-3.9 -A x64'
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:5 (message):
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  You must use Visual Studio to build a python extension on windows.  If you
  are getting this error it means you have not installed Visual C++.  Note
  that there are many flavors of Visual Studio, like Visual Studio for C#
  development.  You need to install Visual Studio for C++.

  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

-- Configuring incomplete, errors occurred!

----------------------------------------

ERROR: Command errored out with exit status 1: 'c:\users\saketh\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\saketh\AppData\Local\Temp\pip-install-n2rkpdbi\dlib_d0a2d4f321944269b438c57829027f12\setup.py'"'"'; file='"'"'C:\Users\saketh\AppData\Local\Temp\pip-install-n2rkpdbi\dlib_d0a2d4f321944269b438c57829027f12\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\saketh\AppData\Local\Temp\pip-record-j6g7aj6l\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\saketh\appdata\local\programs\python\python39\Include\dlib' Check the logs for full command output.`

Hey.  Do you have the Visual C++ installed as dlib seems to need that on windows. If not download it from here.
Thanks for checking out PyWarping!

Woah thank you so much :D

No Problem 😊


Nuestro Último Verano

Subida primera versión de la hoja de personaje del juego Nuestro Último Verano.
First version of the Nuestro Último Verano character sheet uploaded.
Changes / Comments
First version.
Roll20 Requests
Comments are very helpful for reviewing the code changes. Please answer the relevant questions below in your comment.

[ ] Does the pull request title have the sheet name(s)? Include each sheet name.
[ ] Is this a bug fix? No
[ ] Does this add functional enhancements (new features or extending existing features) ? No
[ ] Does this add or change functional aesthetics (such as layout or color scheme) ? No
[ ] If changing or removing attributes, what steps have you taken, if any, to preserve player data ?
[x] If this is a new sheet, did you follow Building Character Sheets standards ? Yes

If you do not know English. Please leave a comment in your native language.

Please remove the .vscode directory

Please remove the .vscode directory

Removed!


Only one claim of type 'role' is returned to the hub

Describe the bug
I am using Azure SignalR via server-side blazor, and am running into an issue where all but one of my 'role' claims are being dropped.
I understand that, as per this issue, claims will be duplicated under an alias if they are present in the default JWT claim type mapping. The issue only seems to occur when there are multiple claims of a type which will be aliased. For example:
HttpContext Claims
sub = userid
email =<EMAIL_ADDRESS>role = Role1
role = Role2
role = Role3
role = Role4

Hub Claims
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier = userid
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress =<EMAIL_ADDRESS>http://schemas.microsoft.com/ws/2008/06/identity/claims/role = Role1
http://schemas.microsoft.com/ws/2008/06/identity/claims/role = Role2
http://schemas.microsoft.com/ws/2008/06/identity/claims/role = Role3
http://schemas.microsoft.com/ws/2008/06/identity/claims/role = Role4
sub = userid
email =<EMAIL_ADDRESS>role = Role1

Here, all roles are present in there aliased form, but only the first has been un-aliased
To Reproduce
Have a HttpContext user as follows:
var user = new ClaimsPrincipal(new ClaimsIdentity(new[] {
    new Claim("sub", "userId"),
    new Claim("email", "user@example.com"),
    new Claim("role", "Role1"),
    new Claim("role", "Role2"),
    new Claim("role", "Role3"),
    new Claim("role", "Role4"),
}, authenticationType: "Any", nameType: "name" roleType: "role");

Further technical details

Your Azure SignalR SDK version: 1.5.1
Your Server ASPNETCORE version or Assembly version of Microsoft.AspNetCore.SignalR: 3.1
Your SignalR Client SDK version: 3.1 (unsure, using this via blazor server on AspNetCore 3.1)

Thanks for pointing out the issue. We indeed only handle the first one, this involves service side change and we will fix it in the next deployment cycle which is scheduled to be one month later.

As the holiday season is coming, the next deployment would be around the mid of Jan.

Hi, we have the same error occurring right now. Using upstream Azure Functions on Serverless SignalR Service. Any update?

@alanbucknum This is a known limit of serverless protocol.

The current problem is the claim is now putting in a header and header has different rules from claims. In header, multiple value with the same header key should use comma to separate. However, claim itself can have comma. On the other hand, claim is using Claim.ToString() to serialize, which become a "type: value" schema. It's also not correct. Based on that, we hard to handle it in function binding side correctly. We're investigating how to deal with it more correctly.

Thanks, that makes sense. For now we are just modifying the list of role claims to a single role claim, which contains a pipe-delimited list of roles (e.g. "admin|superadmin|reportsconsumer"). Then our authenticating filter for SignalR parses the string back into a list of individual roles to check against allowed permissions.

Should be fixed


[solve:issue-892]fix: split in two policy statements

Hi, this Pull Request is a propose to solve issue #892 .
close #892

I think there's still a permission issue. Is this the error you are running into:
nodepool, action: CREATED. Message: Invalid COMPUTE_INSTANCE: Authorization failed or requested resource not found while provisioning node(s)
│ Resource OCID: ocid1.nodepool.oc1......
│ Suggestion: Please retry or contact support for help with service: Containerengine Node Pool
│
│
│   with module.workers[0].oci_containerengine_node_pool.workers["np1"],
│   on modules/workers/nodepools.tf line 5, in resource "oci_containerengine_node_pool" "workers":
│    5: resource "oci_containerengine_node_pool" "workers" {

I think there's still a permission issue. Is this the error you are running into:
nodepool, action: CREATED. Message: Invalid COMPUTE_INSTANCE: Authorization failed or requested resource not found while provisioning node(s)
│ Resource OCID: ocid1.nodepool.oc1......
│ Suggestion: Please retry or contact support for help with service: Containerengine Node Pool
│
│
│   with module.workers[0].oci_containerengine_node_pool.workers["np1"],
│   on modules/workers/nodepools.tf line 5, in resource "oci_containerengine_node_pool" "workers":
│    5: resource "oci_containerengine_node_pool" "workers" {

Hi @hyder , my problem is other than this.
Below is the error I'm running into:
module.iam.oci_identity_policy.cluster[0]: Still creating... [2m0s elapsed]                                                                                ╷                                                                                │ Error: 409-PolicyAlreadyExists, Policy 'oke-cluster-glqyop' already exists                                                                                │ Suggestion: The resource is in a conflicted state. Please retry again or contact support for help with service: Identity Policy                                                                              │ Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_policy                                                                                │ API Reference: https://docs.oracle.com/iaas/api/#/en/identity/20160918/Policy/CreatePolicy                                                                                │ Request Target: POST https://identity.sa-saopaulo-1.oci.oraclecloud.com/20160918/policies                                                                                │ Provider version: 5.28.0, released on 2024-02-07.                                                                                │ Service: Identity Policy                                                                                │ Operation Name: CreatePolicy                                                                                │ OPC request ID: 0681765e82b93cac5b6257f28f98ceec/C7D62792359AB72A8387775A651630FD/E431421C6F470A6AFE56E3A56421E5B3                                                                                │                                                                                │                                                                                │   with module.iam.oci_identity_policy.cluster[0],                                                                                │   on modules/iam/policy.tf line 20, in resource "oci_identity_policy" "cluster":                                                                                │   20: resource "oci_identity_policy" "cluster" {                                                                                │                                                                                ╵


Fix useBalance select & keepPreviousData options

Description
fix useBalance select type and forward keepPreviousData option
Additional Information

[x] I read the contributing docs (if this is your first contribution)

Your ENS/address: notgregs.eth

isDataEqual and structuralSharing are other options that are on the type but not used, should we omit or forward?

Thanks for looking into this! Right now, we don't expose most React Query options via the hooks so going to close in favor of https://github.com/wagmi-dev/wagmi/pull/2042. For wagmi@1, we'll loosen things up so you can pass any RQ option through.


Hello Rails React As One App

Hello Rails React As One App
The proposed changes for this pull request are:
:pushpin: We implement a rails app using react as front end library. and postgreSQL as a database
:pushpin: We implement a table for storing messages and and seed with different greetings.
:pushpin: We implement an API endpoint that selects a random greeting from the table through a controller with an action and Rails route.
:pushpin: We implement a static view that it's the app's root.
:pushpin: We implement the App component with react-router and render it in our static view.
:pushpin: We implement the Greeting component that display a greeting. We set it up as a route in our App component.
:pushpin: We implement a store, an action, and a reducer that connect to our API endpoint to get the random greeting.
:pushpin: We display the random greeting in our Greeting component.

@afanimartin Thank you for your review, I tried to contact you on slack. I think you confused about projects, I submitted "Hello Rails React as One App" but you required me about features of another project. Don't worry, I will submit it again.


Habitus is not working on Alpine Linux

Hello,
thank you for your work on this tool!
I am trying to install habitus inside an Alpine Linux container, and it looks like it is not working:

Dockerfile used:

FROM alpine:3.7

ARG DEFAULT_USER=habitus

# Those variables are expected to be set by the habitus install script
ENV TERM=xterm \
  SUDO_USER=${DEFAULT_USER}

# Ncurses is required to have the tput command
RUN addgroup ${DEFAULT_USER} \
  && adduser -D -G ${DEFAULT_USER} ${DEFAULT_USER} \
  && apk add --no-cache bash curl ncurses

RUN curl -sSL https://raw.githubusercontent.com/cloud66/habitus/master/habitus_install.sh | bash

USER ${DEFAULT_USER}

ENTRYPOINT ["habitus"]
CMD ["--version"]

It builds without issue, but cannot execute the binary. It looks like a linked library issue (musl ?):

MacBook-Pro-de-Dadou:docker dadou$ docker run --rm -t habitus
standard_init_linux.go:195: exec user process caused "no such file or directory"
MacBook-Pro-de-Dadou:docker dadou$ docker run --rm -t --entrypoint which habitus habitus
/usr/local/bin/habitus
MacBook-Pro-de-Dadou:docker dadou$ docker run --rm -t --entrypoint ldd habitus /home/habitus/.habitus/habitus
	/lib64/ld-linux-x86-64.so.2 (0x7f3fe4c33000)
	libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f3fe4c33000)
	libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f3fe4c33000)

Hi @khash,
I totally understand the use case here: It is a first evaluation for me.
I have CI cases using Docker in Docker (nested containers), or with Docker on Docker (the /var/run/docker.sock socket bind mounted from the host).
The idea is to provide an image with habitus already installed, to have minimalistic CI build agents.
I'm doing the same kind of things as habitus with custom Makefiles today, and would like to use habitus because it would streamlined my process a lot :)

Have you tried the same setup with Ubuntu image to see if the issue related to DIND or Alpine being such minimal distro?

Hi @khash , the following Dockerfile seems to work (Debian based: same as Ubuntu):
FROM debian:jessie

ARG DEFAULT_USER=habitus

# Those variables are expected to be set by the habitus install script
ENV TERM=xterm \
  SUDO_USER=${DEFAULT_USER}

# Ncurses is required to have the tput command
RUN addgroup ${DEFAULT_USER} \
  && adduser --disabled-password --gecos "" --ingroup ${DEFAULT_USER} ${DEFAULT_USER} \
  && apt-get update \
  && apt-get install -y --no-install-recommends bash curl ca-certificates \
  && apt-get clean

RUN curl -sSL https://raw.githubusercontent.com/cloud66/habitus/master/habitus_install.sh | bash

USER ${DEFAULT_USER}

ENTRYPOINT ["habitus"]
CMD ["--version"]

=> It is related to Alpine Linux (no Docker nor DIND involved here).
Given the ldd command output, I'm going to search similar go applications cases under Alpine Linux: the goal is to understand if it is the generated binary linking which is an issue, if it related specifically to musl, or if something a package is missing on my Alpine Linux Dockerfile.
=> I wanted to install habitus on my CI agents, but they are all based on Alpine Linux Base OS, even the bare metals. Debian based container would be a solution, but I'm sure there is not so much top be done to have working on Alpine :)

Quick update:

On Alpine, if I install the package libc6-compat which is just a "wrapper" creating symlink from the expected glibC binary, to the musl-c ones:

bash-4.4# ls -l /lib64/ld-linux-x86-64.so.2
lrwxrwxrwx    1 root     root            26 Feb 21 11:44 /lib64/ld-linux-x86-64.so.2 -> /lib/libc.musl-x86_64.so.1

=> It does not guarantee to be fully working, but it looks like ok for the CLI calls:
bash-4.4# habitus
2018/02/21 11:44:52 ▶ Using '/build.yml' as build file
2018/02/21 11:44:52 ▶ Failed: open /build.yml: no such file or directory
bash-4.4# habitus  --version
Habitus - v1.0.1 (c) 2017 Cloud 66 Inc.

This come from the following comment from Nathanel Copa, the creator of Alpine: https://github.com/gliderlabs/docker-alpine/issues/219#issuecomment-254741346 + the official Alpine documentation: http://wiki.alpinelinux.org/wiki/Running_glibc_programs

I wonder if adding the -static flag to the lddflags would make the binary work? I'm not really aware of the impacts of this in Go?

A default docker image for habitus?
Something else?

Feel free to close the issue here (and open other to assign me if YES to the previous question).

Thank you @dduportal for the comment and the example. I'd love to have you contribute some documentation around this as well as a default Habitus dockerfile. We can build the image based on that and maintain it.
It would also be great to mention in the documentation your use case for using Habitus in Docker. I believe many will love your idea of a lightweight CI.


Add ability to use no convention

Currently only the conventions provided by pydocstyle can be used. It is not possible to start with an empty list of checks and only add the ones selected.

v2.0.0 can fix this.


setup.py - This should be updated to an absolute path for automations

          This should be updated to an absolute path for automations, see https://github.com/OpenVoiceOS/ovos-bus-client/pull/95

Originally posted by @NeonDaniel in https://github.com/OpenVoiceOS/ovos-utils/pull/237#discussion_r1593226864

Looks like this was addressed already?


Feat: Add biweekly and bimonthly

Bonus: fix translations
fixes: #35

Coverage increased (+0.03%) to 90.085% when pulling 2abe7f7b488b04439ed5636ac703638753cb8cb3 on add-bimonthly into 17205549eb667d8b993eb485e468a36100d96026 on master.


How can I update the editoerState by a custom text

Do you want to request a feature or report a bug?
What is the current behavior?
feature
What is the expected behavior?
I would like to add the feature of uploading files to my draft editor and, I did implement uploaded the file and read it is content and save it in redux reducer as a text but I am wondering what is the easy way to update the editor state by that text?
I did try to pass the text in editorState property as shown below
`
<Editor
editorState={
this.props.fileContent !== "" ? this.props.fileContent :
this.state.editorState }
onChange={this.handleChange}
          readOnly={false}

/> `
but it ends up with the following error

TypeError: nextEditorState.getDirectionMap is not a function

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?

Hi @ramisalem, assuming your file contains plain text, the API you're looking for is ContentState.createFromText() (see the docs).
Here's a quick example I set up for you: https://codesandbox.io/s/z686zk99jm
If your file contains HTML, a handy third party utility that comes to help is html-to-draftjs. Here's another example: https://codesandbox.io/s/q347qpr9p9
For other utilities and resources, I recommend checking out the awesome-draft-js list.
Hope this helps! Please reopen if this wasn't what you were looking for.


Pasted

This is pasted, whats the point? You even forgot to remove the original name in the CLI "lua-pack" https://github.com/Bork0038/lua-pack

Every line of code here has been written by me and can be seen through every commit I've made. In fact, I don't even use the same parsing method as lua-pack. While lua-pack by Bork is great, it has a few flaws, which is why this was made.
For example, lua-pack uses Luaparse. Why is this bad? This means it doesn't support Luau features. I wanted to make a much simpler method of combining Lua files
As for your argument of "forgetting to remove the original name," I believe you're referring to the "lpk" cmd, which is just a shortened version of the cmd for people who don't want to type "luapacker" every time.

My bad, I somehow got the directories mixed, the actual lua-pack src was in my luapacker folder. I am looking forward to new updates to luapacker. You should consider a more unique name that sets it apart. 👍


pip 21.3+ in-tree builds with setuptools, do not clean local build directories

Description
Given a requirements.txt including a local package path, installing them will litter the local path with in-tree build folders.
This is slightly bloating docker builds and causing some issues due to build artifacts permissions that force us to clean every local build folder with
WORKDIR /path/to/package-1
RUN python setup.py clean --all
WORKDIR /path/to/package-2
RUN python setup.py clean --all
# etc

but note this won't slim image sizes either.
Expected behavior
Previous pip versions built local packages in folders like /tmp/pip-req-build-XXXXXXX/ . Regardless of being in-tree or out-of-tree, the point is those folders vanished at the end of a pip install instruction unless the --no-clean flag was used.
pip version
21.3
Python version
3.9.7
OS
GNU/Linux + Docker 20.10.8
How to Reproduce

git clone https://github.com/pypa/sampleproject.git /tmp/sampleproject
pip install --use-feature=in-tree-build /tmp/sampleproject
find /tmp/sampleproject/build

Output
/tmp/sampleproject/build
/tmp/sampleproject/build/bdist.linux-x86_64
/tmp/sampleproject/build/lib
/tmp/sampleproject/build/lib/sample
/tmp/sampleproject/build/lib/sample/__init__.py
/tmp/sampleproject/build/lib/sample/simple.py
/tmp/sampleproject/build/lib/sample/package_data.dat

Code of Conduct

[x] I agree to follow the PSF Code of Conduct.

This issue caused a lot of confusion for me, as repeated in-tree installs with pip and pyproject.toml would install the prior version in the build directory instead of the local files with my changes. I wasn't aware that such a directory was being left behind.

Related: #1871.


Minor fragment environment speed improvements + replay fix

Changes:

Caches Data instance of graphs
Compute the remove_node_mask more efficiently
Remove the deepcopy in sampling iterator and fix a data overwriting bug
Data cache of modified graphs is cleared in step with Graph.clear_cache

LGTM, I'll just run a training with goal-conditioning to validate that we don't have issues with the replay buffer anymore.

@bengioe so it seems like the conditional information is still being modified once in the buffer as I can't reproduce past results with cfg.replay.use=True (only with replay buffer off). The focus-accuracy is unstable which was what happened when the conditioning info (focus direction) and associated rewards were dis-aligned.


Change access token.

I Am using Windows. I Connected Gdrive using token and now I removed that connection and I don't have that token. Now I get an error:
Failed to get file: googleapi: Error 401: Invalid Credentials, authError
How can I reset this to obtain new token?

delete %appdata%\.gdrive\token_v2.json

Thx