[BUG] Windows VMs crashing

Describe the bug
Windows VM crashing. When i use image with preinstalled windows server 2019 or trying to install VM from iso image the VM restarted by itself after some period (seconds, 2-3 minutes). I`m using Windows VM template as described in documentation.
When i use resources like 2CPU and 4GB RAM the VM is stable, when i use 4CPU and 8GB RAM the VM is crashing.
Tested on 3 different environments with 3 nodes and also with single node cluster.
To Reproduce
Steps to reproduce the behavior:
each time trying to run or install windows
Environment

Harvester ISO version: 1.0.2
Underlying Infrastructure: tried with different platforms and environments. 3x Supermicro, Intel XEON D2183IT, 256GB RAM

** support bundle **
i have uploaded the supportbundle by ftp

@tgazik Could you please amend the steps to reproduce, e.g.:

How was Windows 2019 installed
Which additional Windows drivers were installed (e.g. virtio drivers)
What settings did you configure when creating the VM in Harvester

Potential duplicate of https://github.com/harvester/harvester/issues/276

@tgazik Can you confirm whether the VM crashes with "KMODE exception not handled" as described in the other issue?

I can reproduce the issue by following the steps here to provision a Windows 2019 VM using 4 CPU and 8 GB Ram: https://github.com/harvester/harvester/issues/1767#issue-1093194711
After creating the VM, wait for 1-2 hours, then connect via Web VNC. If the user is logged out, send CTRL-Alt-Del to login.
Result: The VM crashes

Possibly related (need to check if timestamps correspond to VM crash events)
Jul 19 06:36:06 donna kernel: rpc-worker invoked oom-killer: gfp_mask=0x40cd0(GFP_KERNEL|__GFP_COMP|__GFP_RECLAIMABLE), order=0, oom_score_adj=978
Jul 19 06:36:06 donna kernel:  oom_kill_process+0xe8/0x130
Jul 19 06:36:06 donna kernel: [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
Jul 19 06:36:06 donna kernel: oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=6f6ea7744b5188b65e918882444cd0e3ac3e796f218ce998ca901fd7d35af54e,mems_allowed=0,oom_memcg=/kubepods/burstable/pod3821d51a-f352-4a36-8aca-490f1483b8b7/6f6ea7744b5188b65e918882444cd0e3ac3e796f218ce998ca901fd7d35af54e,task_memcg=/kubepods/burstable/pod3821d51a-f352-4a36-8aca-490f1483b8b7/6f6ea7744b5188b65e918882444cd0e3ac3e796f218ce998ca901fd7d35af54e,task=qemu-system-x86,pid=49691,uid=107
Jul 19 06:36:06 donna kernel: oom_reaper: reaped process 49691 (qemu-system-x86), now anon-rss:0kB, file-rss:36kB, shmem-rss:4kB
Jul 19 06:37:06 donna kernel: qemu-system-i38 invoked oom-killer: gfp_mask=0xcc0(GFP_KERNEL), order=0, oom_score_adj=978
Jul 19 06:37:07 donna kernel:  oom_kill_process+0xe8/0x130
Jul 19 06:37:07 donna kernel: [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
Jul 19 06:37:07 donna kernel: oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=a364a750d2cd5dd858b30095532a0813d613f4beac9b493fc3546c1331728d70,mems_allowed=0,oom_memcg=/kubepods/burstable/podc40fd299-14b7-4e88-af84-7b70fab76d12/a364a750d2cd5dd858b30095532a0813d613f4beac9b493fc3546c1331728d70,task_memcg=/kubepods/burstable/podc40fd299-14b7-4e88-af84-7b70fab76d12/a364a750d2cd5dd858b30095532a0813d613f4beac9b493fc3546c1331728d70,task=qemu-system-x86,pid=15073,uid=107
Jul 19 06:37:07 donna kernel: oom_reaper: reaped process 15073 (qemu-system-x86), now anon-rss:0kB, file-rss:56kB, shmem-rss:4kB

Free memory on the server is 260GB

Possibly a regression of https://github.com/harvester/harvester/issues/1234 @guangbochen @futuretea

@futuretea @guangbochen
It seems unexpected that Harvester is automatically applying memory limits to the VM launcher pod: Normally, the memory limit is a user controlled parameter in Kubevirt.
If Harvester wants to be in control of the memory limit, then it must properly calculate the overhead required to avoid OOM killer.
Expecting user to "workaround" this incorrect setting of memory limits by configuring "advanced options", does not appear to be a good solution.

Actually, the resource limits are configured by the users, and the requests are automatically set by the Harvester webhook in combination with the overcommit configs.
The guest memory is reserved with 100MiB by default and can be configured manually in the advance tab as u have described above, for most Linux VMs the default value is sufficient, but apparently not good for Windows VM with large memory sizes.
As discussed in the issue https://github.com/harvester/harvester/issues/1730 it would be a little bit hard for us to predict the desired reserved memory for each OS in the current design, as a future enhancement I would suggest: cc @FrankYang0529

Ask the user to provide more details when uploading the OS images, e.g. OS type+version, so we can add more best-reserved memory calculations based on the image info.
Use the existing reserved memory configuration and create a VM template to reuse it (more like are workaround solution).

For memory overcommit I highly recommend 100% or less as default. Keep in mind that an "OOM" kill for a VM is basically data-loss.
What means "most Linux VMs"? Can you give details which Linux VMs are on risk?
Why don´t we see this proplem when we use KVM natively?
How can the user know / calculate how much additional memory he needs to deduct from the OS / reserve for qemu etc.?
Could we change the 100MiB to a 100% save value for all guests that a user can change if he wants to squeeze out the max possible?

Configuring 256MiB in the VM Advanced Options->Reserved Memory option seems to be sufficient to mitigate the crash issue.

After configuring 512MiB reserved memory my Windows 2019 Server VM has been running for 10 days without any crash.
CPU: 4
Memory: 8GiB

Windows Server 2022 guest with 16GB of memory configured with 1 virtio NIC and 2 virtio disks of 512GB and 2TB respectively requires > 256MiB of reserved memory in our environment not to be OOM killed. We have set Reserved Memory to 512MiB and the VM is stable. I speculate the amount of additional host memory needed by QEMU is related to virtqueues and buffers but haven't found any documentation to demystify it completely.

Hey, had the same issue and setting the reserved memory to 512MiB fixed the issue for me.  256 still caused issues on our side.

Same problem, but for linux guests.
We cannot manually set reserved memory for all VMs because they are created automatically from rancher (k8s clusters).
There is no option for reserved memory.

I might be asking a stupid question here, because I don't have any raw-Kubervirt environment to test with right now, but:
What would be the consequence of simply not setting resources.limits.memory on the VM (and hence the virt-laucher)? After all, domain.memory.guest should limit how much the qemu process gets to play with and in case of runtime overhead, the OOM-killer will eventually find a target with bad score, regardless of cgroup limit or no limit. But it would only do so in a system starvation scenario.
I guess what I'm saying is: I kinda don't want OOM-kill of my VM under any circumstances - except if my host is reeeally in trouble. Maybe the limit could be an "opt-out" thing? If it's possible with Kubevirt.

We'll investigate and fine-tune a value in https://github.com/harvester/harvester/issues/5768


Crm457-1360: MONITORING - Exporting metrics for Redis Queues and Sidekiq

Description of change
MONITORING - Exporting metrics for Redis Queues and Sidekiq

[x] Add Prometheus Client and Metrics Endpoint
[x] Configure Service to be able to link to ServiceMonitor

closing in favour of https://github.com/ministryofjustice/laa-assess-crime-forms/pull/568


Ichimoku overlay

This is not really a bug, but wanted to open a queue to discuss about the progress of Ichimoku indicator with TVJS.
Code will be shared when a good beta is available and once I checked all the values of all the lines.
This is created with 1 overlay, which calculates and draws all the 5 lines, with options to display each of the line, change the color...
Thanks @C4151 for your 2 latest changes, opening the grid to the future !
Work in Progress

Looks cool! (and scary, Ichimoku always scares the shit out of every minimalist :D ) I have a couple of questions regarding the lib:

does the chart look blurry on your screen? (I think I solved this, just want to double-check)
what's up with the cursor, did it disappear for real?

Also one important note: it would be better to separate calculations from the actual overlay, because it is more like a shader. Yes, you can do some light calculations, but for the most part it's just for rendering. In the near future I'll add a special data helper interface for dealing with data.
You can share a gist with the code if you like (or even create a repo). Would be nice to play!

Screen is not blurry. Cursor is there now, it was a little problem with ctx.stroke function.
Ok if calculations can be done outside of the overlay, so let's just say, this is a beta IKH, prototype. It will be improved in the future.
I think the only problem will be to fill the cloud with a color... I really don't know how to do it right now.
I will share code and data after some additional changes in the next days.

Good to hear.

I think the only problem will be to fill the cloud with a color...

A little bit tricky, but it works: https://github.com/C451/trading-vue-js/blob/master/src/components/overlays/Channel.vue#L25
I almost came up with a structure for data helper. Basically, each overlay will be able to register additional data calculations (transformations), e.g. ohlc -> ichimoku.
So, instead of using plain data we could wrap it in a special class DataHelper :
<trading-vue-js :data="DataHelper(data)"></trading-vue-js>

which performs all calculations outside of the overlay.

cool, ok I should be able to fill with color then, but I just thought I needed to restart because in the overlay, currently I only have a range (subset) of data displayed in the screen. That's why I couldn't calculate the lines on the left of the screen.
I guess your datahelper is something like in your tools/og_data.js example
I think I will wait for your DataHelper then, or I will calculate overlays data outside of the overlay.

currently I only have a range (subset) of data displayed in the screen.

Exactly! Overlay maps a subset of data to screen coordinates.

think I will wait for your DataHelper then, or I will calculate overlays data outside of the overlay.

You can simply create the function calc(ohlc) {  ... return ichimoku } in your app and feed the result to your overlay. When DH is ready, we can just distribute this function with the Ichimoku pack.

Man, your project opens a lot of possibilities for technical analysis, replay, indicators etc ! I love it !

Thanks! It started kinda random, I was just trying to learn a reactive framework :)

Yeah, the ichimoku format could be (may be wrong about names):
[1555668000000, Kumo, Senkou, Chikou, Kijun, Tenken]
....
[1556287200000, Kumo, undefined, undefined, undefined, undefined]

So your overlay will render only Kumo after the chart


Store node attributes directly on the node

Separated from https://github.com/runtimeverification/pyk/issues/919
Currently in the KCFG, we store the list of attributes as separate from the nodes themselves. Instead, we can make a NodeAtt class and store the list of attributes directly as a field on the node. This makes it easy to have a uniform attribute system that works even as we add more attributes, and to allow users to register hooks for checking different node attributes on loading new nodes.
For example, this issue (https://github.com/runtimeverification/pyk/issues/964), we have that on loading a proof we are checking each node for being terminal. But we could also just rely on the fact that every node, when entered into the graph, is checked for all the attributes the user may care about, and so we know that nodes which are terminal are already marked as such. No need to have explicit place in algorithm to mark them as such, and no need to check them on load time.

Another issue that came up, @PetarMax is working on minimizing KCFGs for summarization, and found that node attributes are sticking around post-summarization when they probably shouldn't (in this one) https://github.com/runtimeverification/pyk/pull/995
Attaching attributes directly to nodes would solve this issue too.
Any updates @nwatson22 ?

I've been thinking about this some, and I wasn't sure how we can eliminate the need to check on load time, since KCFG.from_dict loads components of the graph one at a time, but the attributes themselves may depend on other parts of the graph. Would it be a good idea to only check when the node is first added to the graph except from_dict, and then have all the attributes be saved/loaded from disk, the way vacuous and stuck already are?


[stable/metallb]: Add support for nodeSelector/affinity/tolerations

Adds support for nodeSelector/affinity/tolerations for both the speaker
and controller pods.
Additionally, a second commit includes some minor README fixes.

/assign @linki
bump :)

Pinging a few others from the OWNERS file - @unguiculus / @mattfarina - thanks :)

/ok-to-test


Dart roll failing on VM timeline assert

In https://github.com/flutter/engine/pull/42451
https://ci.chromium.org/ui/p/flutter/builders/try/Linux Engine Drone/925682/overview
../../third_party/dart/runtime/vm/timeline.h: 425: error: expected: event_type() == kBegin || event_type() == kEnd || event_type() == kAsyncBegin || event_type() == kAsyncEnd || event_type() == kAsyncInstant

From
/b/s/w/ir/cache/builder/src/out/host_debug_unopt/exe.unstripped/flutter_tester --use-test-fonts --icu-data-file-path=/b/s/w/ir/cache/builder/src/out/host_debug_unopt/icudtl.dat --flutter-assets-dir=/b/s/w/ir/cache/builder/src/out/host_debug_unopt/gen/flutter/lib/ui/assets --disable-asset-fonts /b/s/w/ir/cache/builder/src/out/host_debug_unopt/gen/tracing_test.dart.dill

Maybe from https://dart.googlesource.com/sdk.git/+/46e70a7c0727bada86af480a3d4f18b8b0ebaa16 ?

Revert is currently landing: https://dart-review.googlesource.com/c/sdk/+/306661

Yes. Closing as presumed addressed.


Fix log4j2 indy plugin context issues

By calling classLoader.getParent() log4j tries to determine the logging context of a class loader
The IndyPluginClassLoader, having a MultipleParentClassLoader as it's parent, always returned null,
making it impossible to reuse context from the agent classloader

:green_heart: Build Succeeded

Expand to view the summary

Build stats

Build Cause: [Pull request #1320 opened]

Start Time: 2020-07-30T11:47:24.006+0000

Duration: 46 min 14 sec

Test stats :test_tube:

Test
Results

Failed
0

Passed
1425

Skipped
11

Total
1436

Making sure- not related to #1316 , but fixes the Indy plugin problem you encountered, right?

This is a fix for the issue I encountered specifically. I'm not sure if it helps that issue, too. Maybe.


query string parameters disappears when pasting url to the browser

Version
2.6.0
Reproduction link
https://jsfiddle.net/6motza4y/1/
Steps to reproduce

prepare components and routing with nested route
run app
paste absolute url into the browser with query parameters added to the path to the nested route
query params disappears and are not accessible thru $route object

What is expected?
query params should endure
What is actually happening?
query params are lost

jsfiddle doesn't enable navigating to it by pasting query params to the url, so it should be reproduced locally
This does not occur when route path is not nested

Copied into an html file and works fine.
When a bug cannot be reproduced on jsfiddle you can provide the content of an HTML file instead
I tested with this html:
<!DOCTYPE html>

    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>

      <router-link to="/">/home</router-link>
      <router-link to="/foo">/foo</router-link>
      <router-link to="/foo/child">/foo/child</router-link>
      <router-link
        :to="{
        path: '/foo/child',
        query: {
          name: 'hello',
        },
      }"
        >/foo/child?name=hello</router-link
      >
      regular link /foo/child?name=hello
      <router-view></router-view>

yeah, my bad, thanks

What was the mistake and the fix because I'll seeing this happen too.


Version please

[Enter feedback here]
What versions of Windows support these features?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: fa7357ae-898c-6d3e-c5b8-245bbc405ec3
Version Independent ID: 41c7119e-28c4-ebc4-4a53-879bfde6ee09
Content: Fast Roaming with 802.11k, 802.11v, and 802.11r - Windows drivers
Content Source: windows-driver-docs-pr/network/fast-roaming-with-802-11k--802-11v--and-802-11r.md
Product: windows-hardware
Technology: network
GitHub Login: @aviviano
Microsoft Alias: amvivian

Hi @rogerbuckthal,
Thanks for opening this issue. Unfortunately I haven't heard back from the development team on what Windows versions support fast roaming.
You can try posting your question on Microsoft Q&A or the OSR NTDEV forum. If you do find out version information, please let me know and I'll update this document.
Thank you.


Gitignore .ghc.environment

Used by cabal v2-* commands.

Not super important but it's annoying to have it appear in git status.

Just noticed that stack.yaml.lock is also in .gitignore. Any idea why? From what I understand this should be checked into source control as well.

Yeah, I'm not sure but haven't ever actually used stack's lock file - have only ever checked in stack.yaml and assumed that e.g. stack build would do comparable things on different machines.
The lock file docks say that you can check the lockfile in for full determinism of builds, but maybe that's not proved to be necessary for us.

Just noticed that stack.yaml.lock is also in .gitignore. Any idea why? From what I understand this should be checked into source control as well.

Oh, I didn't know about this. From its name I just inferred it was a regular lock file.

Ok, it seems we need to un-ignore the lock file
https://docs.haskellstack.org/en/stable/lock_files/

Have we observed issues with the present way of building just from stack.yaml, though? I wonder if checking in the lock file introduces the possibility of the files being out of sync, which we might want to check in CI. Which would be some extra work that might not be necessary.


Set earliest/latest timestamp to current time for empty results

Fixes #26.
This falls back to a timestamp generated from the current time if there are no Solr documents or timestamps present.
According to the OAI-PMH spec, the earliestDatestamp element this will be used in has the following criteria:

earliestDatestamp : a UTCdatetime that is the guaranteed lower limit of all datestamps recording changes, modifications, or deletions in the repository. A repository must not use datestamps lower than the one specified by the content of the earliestDatestamp element. earliestDatestamp must be expressed at the finest granularity supported by the repository.

Since in this case there are no records with datestamps, using the current timestamp should be fine, and result in no differences from the case where a repository has a set of records with an earliest datestamp and then later has a new record added later on with an earlier datestamp (since the earliestDatestamp will update accordingly).
I've also made a backport onto the v6.1.1 tag here: https://github.com/ryanfb/blacklight_oai_provider/tree/default-earliest-datestamp-6.1.1-backport

A couple of things:

My read of the spec is that this scenario should result in <error code="noRecordsMatch"/>, and no Identify at all, right?
These changes will trip CI on a linter basis, because the syntax is not compatible with Ruby 2.1 (which is the Blacklight 7.0-7.14 spec). So we would need an intermediate release on the 7.x line here?
We need some tests - obviously the nil pointer is not what we want, but (per above) I'm not sure that providing Time.now is the right information to send back to clients.

To be clear, I think we should fix this and get the 7.x gems released! This is impacting some of our apps as well, and I'll pitch in to get this done.

Interesting…my read of the spec is that Identify cannot return noRecordsMatch (the only available error code for it is badArgument), however, it must include an earliestDatestamp with the specified constraints. NB that with this patch applied, both ListRecords and ListIdentifiers will correctly return a noRecordsMatch error response for an empty repository, instead of an HTTP 500. Should Identify for an empty repository just explicitly return HTTP 500 with an empty body without triggering an exception?
In any case, I'm happy to backport syntax to Ruby 2.1 compatibility, and try to add some tests as well.

Oh, I see what you mean re: Identify. Hmm. It makes me a little uncomfortable - it seems like it invites some weird client behavior when/if records are added - but maybe it's fine? Or at least fine enough that it could change with a patch release if we get the tests and linter issues sorted?

Coming back to this since it had been some time: I fixed up the Ruby 2.1 syntax (and some other style issues in the spec), split off the legacy specs that actually use Solr into an integration suite, and added unit specs for the specific change in this PR.

@barmintor I approved the PR, but I do not have write access to this repo, so I cannot merge it.

@barmintor Thanks for revisiting this and fixing it up!

This, it turns out, was a regression: https://github.com/projectblacklight/blacklight_oai_provider/commit/5713d30e32ee66c015b5b4b2524259a40bade033
But we clearly needed the tests!


sync to latest mesos-go

pick up latest mesos-go changes (eliminates go httptest flag leakage courtesy of testify)
scheduler authentication tweaks for mesos-go compat

secret is no longer required for authentication when principal is supplied

broken into two commits:

first is godeps changes
second is etcd-mesos core changes

/cc @spacejam

:+1: LGTM merge at will


how can I know bot websocker?

anyone can help me?

In NecroBOT's config folder, there is a config.json file which indicate open the socket or not and the port number for the socket.

thank you so much guy

so the bot websocker in Pokemon Bot Visualizer is wws://localhost:14251 ?

That's right if you leave the port in config.json default.

thank you again
I had delete its socket first, after that I can't remember it. That's why I asked.
However Thank you again


Source code about the model and performance

For the model and fine tuning parts, I can't find the source code. I only could use a .a library to reproduce the result. Could you please provide the code?
Besides, I reproduced most of the part in int4. However, I could only achieve performance about 6910.68 image/second, which is much lower than in the dev blog. I tested with only one T4 GPU. Does that cause the low performance?

CUDA Version: 10.1
Linux version 4.15.0-1056-aws
Ubuntu 18.04.3 LTS

@GaryYuyjl I assume you are talking about NVIDIA's open submission with low-precision ResNet50? What's your TensorRT version?
/cc @DilipSequeira @nvpohanh

Our open submission does not use TRT.
@GaryYuyjl Could you try reproducing our closed division ResNet50 number (for INT8)? This will help us to identify the issue.

I've encountered another a problem:

ubuntu@ip-172-31-41-37:~/inference_results_v0.5/closed/NVIDIA$ docker exec mlperf-inference-ubuntu bash -c 'make generate_engines RUN_ARGS="--benchmaks=resnet --scenarios=Offline"'
[2019-12-25 13:09:21,358 init.py:119 WARNING] Cannot find valid configs for 1x Tesla T4. Using 8x Tesla T4 configs instead.
[2019-12-25 13:09:21,358 main.py:291 INFO] Using config files: measurements/T4x8/mobilenet/Offline/config.json,measurements/T4x8/resnet/Offline/config.json,measurements/T4x8/ssd-small/Offline/config.json,measurements/T4x8/ssd-large/Offline/config.json,measurements/T4x8/gnmt/Offline/config.json
[2019-12-25 13:09:21,358 init.py:142 INFO] Parsing config file measurements/T4x8/mobilenet/Offline/config.json ...
[2019-12-25 13:09:21,359 init.py:142 INFO] Parsing config file measurements/T4x8/resnet/Offline/config.json ...
[2019-12-25 13:09:21,359 init.py:142 INFO] Parsing config file measurements/T4x8/ssd-small/Offline/config.json ...
[2019-12-25 13:09:21,359 init.py:142 INFO] Parsing config file measurements/T4x8/ssd-large/Offline/config.json ...
[2019-12-25 13:09:21,359 init.py:142 INFO] Parsing config file measurements/T4x8/gnmt/Offline/config.json ...
[2019-12-25 13:09:21,359 main.py:295 INFO] Processing config "T4x8_mobilenet_Offline"
[2019-12-25 13:09:21,422 main.py:83 INFO] Building engines for mobilenet benchmark in Offline scenario...
[2019-12-25 13:09:21,423 main.py:100 INFO] Building GPU engine for T4x8_mobilenet_Offline
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[2019-12-25 13:09:22,671 builder.py:119 INFO] Building ./build/engines/T4x8/mobilenet/Offline/mobilenet-Offline-gpu-b128-int8.plan
[TensorRT] INFO: [EXPLICIT_PRECISION] Setting tensor scales of all tensors of explicit precision network to 1.0f
[TensorRT] ERROR: ../rtSafe/safeContext.cpp (110) - cuBLAS Error in initializeCommonContext: 1 (Could not initialize cublas, please check cuda installation.)
[TensorRT] ERROR: ../rtSafe/safeContext.cpp (110) - cuBLAS Error in initializeCommonContext: 1 (Could not initialize cublas, please check cuda installation.)
Process Process-1:
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python3.6/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/work/code/main.py", line 102, in handle_generate_engine
b.build_engines()
File "/work/code/common/builder.py", line 124, in build_engines
buf = engine.serialize()
AttributeError: 'NoneType' object has no attribute 'serialize'
[2019-12-25 13:09:24,635 main.py:83 INFO] Building engines for mobilenet benchmark in Offline scenario...
[2019-12-25 13:09:24,636 main.py:100 INFO] Building GPU engine for T4x8_mobilenet_Offline
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[2019-12-25 13:09:25,882 builder.py:119 INFO] Building ./build/engines/T4x8/mobilenet/Offline/mobilenet-Offline-gpu-b128-int8.plan
[TensorRT] INFO: [EXPLICIT_PRECISION] Setting tensor scales of all tensors of explicit precision network to 1.0f
[TensorRT] ERROR: ../rtSafe/safeContext.cpp (110) - cuBLAS Error in initializeCommonContext: 1 (Could not initialize cublas, please check cuda installation.)
[TensorRT] ERROR: ../rtSafe/safeContext.cpp (110) - cuBLAS Error in initializeCommonContext: 1 (Could not initialize cublas, please check cuda installation.)
Process Process-2:
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python3.6/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/work/code/main.py", line 102, in handle_generate_engine
b.build_engines()
File "/work/code/common/builder.py", line 124, in build_engines
buf = engine.serialize()
AttributeError: 'NoneType' object has no attribute 'serialize'
[2019-12-25 13:09:27,840 main.py:83 INFO] Building engines for mobilenet benchmark in Offline scenario...
[2019-12-25 13:09:27,840 main.py:100 INFO] Building GPU engine for T4x8_mobilenet_Offline
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[TensorRT] WARNING: Calling isShapeTensor before the entire network is constructed may result in an inaccurate result.
[2019-12-25 13:09:29,119 builder.py:119 INFO] Building ./build/engines/T4x8/mobilenet/Offline/mobilenet-Offline-gpu-b128-int8.plan
[TensorRT] INFO: [EXPLICIT_PRECISION] Setting tensor scales of all tensors of explicit precision network to 1.0f
[TensorRT] ERROR: ../rtSafe/safeContext.cpp (110) - cuBLAS Error in initializeCommonContext: 1 (Could not initialize cublas, please check cuda installation.)
[TensorRT] ERROR: ../rtSafe/safeContext.cpp (110) - cuBLAS Error in initializeCommonContext: 1 (Could not initialize cublas, please check cuda installation.)
Process Process-3:
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python3.6/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/work/code/main.py", line 102, in handle_generate_engine
b.build_engines()
File "/work/code/common/builder.py", line 124, in build_engines
buf = engine.serialize()
AttributeError: 'NoneType' object has no attribute 'serialize'
Traceback (most recent call last):
File "code/main.py", line 327, in
main()
File "code/main.py", line 317, in main
launch_handle_generate_engine(benchmark_name, benchmark_conf, need_gpu, need_dla)
File "code/main.py", line 80, in launch_handle_generate_engine
raise RuntimeError("Building engines failed!")
RuntimeError: Building engines failed!
make: *** [generate_engines] Error 1
Makefile:298: recipe for target 'generate_engines' failed

I guess it may be caused by the config file... How to change the T4x8 config file to T4x1? I tried to change the "gpu_offline_expected_qps" in config.json but it didn't work.

Please find the solution here: https://github.com/mlperf/inference_results_v0.5/issues/7#issuecomment-561804070
This is caused by the CUDA-10.2 release, which TRT6 does not support.

Still the same problem. CUDA version is 10.1.
I also tried https://github.com/mlperf/inference_results_v0.5/issues/7#issuecomment-559206390 ,but it didn't work.

@GaryYuyjl Could you make sure you re-build the docker image after making that change?
To verify if the change takes effect, please run ls /usr/lib/x86_64-linux-gnu/libcublas* in container to check cuBLAS version. The correct one should be libcublas.so.<IP_ADDRESS>, whereas the original codes will install libcublas.so.<IP_ADDRESS>, which is too new for TRT6.

Thank you. I forgot to run make build_docker.
But I found another problem after I reran it:
$ docker exec mlperf-inference-ubuntu bash -c 'make generate_engines RUN_ARGS="--benchmarks=resnet --test_mode=PerformanceOnly --scenarios=Offline --config=/work/measurements/T4x8/resnet/Offline/config.json"'
Traceback (most recent call last):
  File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib/python3.6/multiprocessing/process.py", line 93, in run
    self._target(*self._args, **self._kwargs)
  File "/work/code/main.py", line 101, in handle_generate_engine
    b = get_benchmark(benchmark_name, config)
  File "/work/code/main.py", line 33, in get_benchmark
    ResNet50 = import_module("code.resnet.tensorrt.ResNet50").ResNet50
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/work/code/resnet/tensorrt/ResNet50.py", line 23, in <module>
    RN50Calibrator = import_module("code.resnet.tensorrt.calibrator").RN50Calibrator
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/work/code/resnet/tensorrt/calibrator.py", line 19, in <module>
    import pycuda.driver as cuda
  File "/usr/local/lib/python3.6/dist-packages/pycuda/driver.py", line 5, in <module>
    from pycuda._driver import *  # noqa
ImportError: libcuda.so.1: cannot open shared object file: No such file or directory

@GaryYuyjl Please make sure that you have https://github.com/NVIDIA/nvidia-docker properly installed. Please run with docker run --gpus=all ... (or nvidia-docker run ... if you installed nvidia-docker2 package) so that the docker container can "see" the GPUs.

Thank you. Here is the results:
Resnet Offline:
"Accuracy = 76.034, Threshold = 75.695. Accuracy test PASSED."
"Samples per second: 4247.88 and Result is : VALID"
Server:
"Accuracy = 76.034, Threshold = 75.695. Accuracy test PASSED."
"Scheduled samples per second : 41546.64 and Result is : INVALID"

@GaryYuyjl It does seem that your T4 runs more slowly. ResNet Offline should give ~5.5k infer/s.
Could you run nvidia-smi dmon -s pc in parallel to track the temperature and the clock frequencies? If you see the temperature goes up above, say, 70C, then there might be some issue with the cooling. T4 has passive cooling, so it is sensitive to cooling efficiency.

I think that's the problem. The highest temperature rises to about 80C and the pclk drops down to about 720MHZ.

@nvpohanh  Just curious what kind of cooling method do you use for T4.

I think we were just doing the same air-cooling as normal server rooms.


NullPointerException during analysys

See logs: https://gist.github.com/PalmerEldritch123/f2ee0d3e6df7dd3054966a65f94c2106
Maven plugin version 4.0.0 (happened on 3.3.4 too).
Jenkins plugin version 4.0.0 (happened on 3.3.4 too).

Looks like some additional error handling is needed to better support package.json files that do not put a version number.  Any chance you can share the project or at least the file(s) that are causing the sanitize to fail?

I do experience as well.


add tool to generate export files

This doesn't yet take an input of keys. Plan to handle that in subsequent PR.

/assign @mikehelmick

fixes #273

/lgtm
/approve

/retest

/retest

/lgtm
/approve


ci: fix a few typos and add check

This PR adds _typos.toml, which lets typos ignore generated data. Some filler texts are "fixed", too. It does not matter what the actual text is.
Resolves #70.

A bug in https://github.com/crate-ci/typos lets the program run forever. Investigating.

A bug in https://github.com/crate-ci/typos lets the program run forever. Investigating.

I blacklisted the fuzzed files. Reported upstream: https://github.com/crate-ci/typos/issues/1088.

Looks good! I'm quite happy that moving the lorem ipsum out of the code allowed to remove a duplicate. Unexpected benefits. :D


Cannot read property '1' of null

Recently clone the project when running bin / run.sh and enter http: // localhost: 9002 / console returns me the error Can not read property '1' of null
which makes reference to me
// Initialise Socket.io
base_path var = /(\/.+\/)d\/.*/.exec(window.location.pathname)[1];
in draw.js
I only window appears with all the options but I can not do anything.

I have a feeling this is user error, please try to reinstall

I went back to install it and gave me the same error, I solved taking draw.js they have in the demo.

Please close if solved
On 10 Jun 2016 22:33, politoxela<EMAIL_ADDRESS>wrote:
I went back to install it and gave me the same error, I solved taking draw.js they have in the demo.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/JohnMcLear/draw/issues/244#issuecomment-225198719, or mute the threadhttps://github.com/notifications/unsubscribe/AANewBeJ0cHMB_MQs3Kzjscp4zm5DBOzks5qKXXLgaJpZM4IyU97.


Automatically convert input to accelerator in forward(x)

Description & Motivation
As outlined in this issue, it might be beneficial to automatically transfer input data of the modes forward function to the defined accelerator.
Pitch

Automatically transfer input data to accelerator before calling the models forward function

Alternatives
You could also mention this in the docs
Additional context

https://github.com/pytorch/pytorch/issues/101935

cc @borda

@3top1a This is already implemented in Lightning. Tensors and collection of tensors (list, tuple, dict etc.) get converged automatically before the input reaches the training_step. You can test this yourself by print(batch.device) or similar in the training step hook.


Add connect_two_peers test

This change is

r? @vinipsmaker
(maidsafe_highfive has picked a reviewer for you, use r? to override)


Make extrication filter parameters accessible for the user

@VictorLamoine the parameters provided to the extrication filter should be accessible for the user in order to adjust them proprely depending on the mesh he is using.

@VictorLamoine Waiting for #126 to be merge before making it.

@VictorLamoine You can close this issue, the new filter work in autonomous way, there is no parameter the user can tweak to change the behavior of the filter. Take a look at the function prototype :
bool BezierGrindingSurfacing::filterExtricationTrajectory(const vtkSmartPointer<vtkPolyData> &polydata,
                                   const Eigen::Vector3d &first_point,
                                   const Eigen::Vector3d &first_point_normal,
                                   const Eigen::Vector3d &last_point,
                                   const Eigen::Vector3d &last_point_normal,
                                   const Eigen::Vector4d &plane_equation,
                                   EigenSTL::vector_Affine3d &trajectory)

All parameters are precomputed into the generateTrajectory function :)


v3 Work Thread

I think Lumberjack needs a v3.  This package was written a long time ago, and while it's functional, there were decisions I made that were poor in hindsight.  This thread will be a list of what I think needs to be done.

Switch from a struct to a new function to create a new logger.  This has several advantages - we can sanity check the log file name, and return an error if you've given us an invalid name. It lets us do some logic before the first write, like setting up the mill goroutine. And it means there's no way to change things after creation that really shouldn't be changed, like changing the maxsize etc.
Switch from a size in megabytes to a size in bytes (many people have asked for this)
Stop using yaml and toml struct tags.... if people want to write a config they can do that in their own code and we don't need to import those packages for no reason if people don't want to use them
We can change the size calculation so that we just sum all the sizes of the current file and backup files, and then it won't matter if they're not all the same size, and then if people want to rotate on a time-based schedule, they can do that without worrying they'll accidentally blow up their disk.
I think we can clean up the code some, so it's a bit easier to reason about.

Before V3, i believe it's better fix these critical issues and tagged a new v2 release:
#81: leak file handles
#63: memory leak
#56: goroutine leak
Thanks for your great work.

I also implemented a rolling writer, for the work item 4, I think add a optional callback to do it is a pretty way.
// FileWriter is an Writer that writes to the specified filename.
type FileWriter struct {
	Filename string
	MaxSize int64
	MaxBackups int
	// CleanBackups specifies an optional cleanup function of log backups after rotation,
	// if not set, the default behavior is to delete more than MaxBackups log files.
	CleanBackups func(filename string, maxBackups int, matches []os.FileInfo)

       // ... other fileds
}

users could summary the matches files total size then do they want to do.
An example here, https://github.com/phuslu/log#rotating-file-writer

Yeah, I think an OnRollover callback is an interesting idea. There's been a push for something like that for a while. I think if we call do it in a goroutine, that's fine.

Yes, the callback also can link to https://github.com/natefinch/lumberjack/issues/96

One more thing :smile:
In production environment, I think symlink is more friendly to system(may not friendly to human)

As above picture, log files wont change its name during rotation, sometimes it's nicer for scripts/collectors (e.g. rsync )
This is major reason why I wrote my rolling writer. If lumberjack v3 could supports this feature by default or as a option, I think it would make users happy.

Yeah, at this point, probably.

I made a v3 branch.. moved to a NewFoo style, maxsize is in bytes, maxage is a time.Duration. . I'll look at the bugs linked here and see what else needs to be done.

Dropping this issue, instead gonna take this to Discussions in #160


[FEATURE REQUEST] Filter based on regex or a blacklist

Is your feature request related to a problem? Please describe.
When running a content discovery tool on a a host, you may eventually get blocked and the page may change to start saying "You've been blocked." or "Please contact an administrator." or "Intrusion detected" for example.
Describe the solution you'd like
The ability to supply a regex that can be used to filter out "false positives"
OR
The ability to supply file that contains your "blacklist" of sentences that if the response contains them, then ignore it.
Describe alternatives you've considered
ffuf supports it? but your recursion seems to work when you enable follow redirects, where ffuf currently doesn't :+1:
Additional context
Add an json output format so i can easily integrate into my tool and insert to my database :+1:
In the json output, drop the target url, and just include the path. If you could, try to match dirsearch's json output :+1:
Maybe that should be another feature request^ :thinking:

Haha, I'm working the json output now in #124, can you drop the logging comment about paths in that issue so I remember when Im reviewing it?
The regex filter is something that's crossed my mind. It's actually a simple add with some of the other filtering code I added recently.


CSV Writer delimiter should be comma

In #79 you agreed the default delimited for CsvReader should be a comma. I totally agree and see that the change was made.
But I also notice that in the CsvWriter class the default delimited is still semicolon - surely it would make sense to also update this to a comma to match the CsvReader default.
Thanks

There's a PR #247 for this exact change. @ddeboer you've been away for about a month. Hopefully all is well.

This has been changed in PortPHP.


Add NeRD Paper

NeRD: Neural Reflectance Decomposition from Image Collections
by  Mark Boss, Raphael Braun, Varun Jampani, Jonathan T. Barron, Ce Liu, Hendrik P. A. Lensch.
NeRD is a novel method that can decompose image collections from multiple views taken under varying or fixed illumination conditions.

thank you.


[BUG] Events in arbitrary order

Currently the events are not sorted on the event timeline as seen from the screenshot below.
Events should be sorted in increasing order with respect to startDate.

Method to be fixed -
https://github.com/codeiiest-dev/codeiiest-web/blob/7a7c8e60d2bbacfd667c2853692fe2a69a59bdbe/src/logic/events.ts#L6

In line 9 >> items.sort((a, b) => (dayjs(a).isAfter(dayjs(b)) ? 1 : -1)))


Revert "Revert "Bjorncs/container thread pool""

@bjorncs PR
This is the leftover from #13986
Needs some more tender care.

@bjorncs Handing over to you.

@baldersheim PTAL


x/mobile: build failing when using go modules

What version of Go are you using (go version)?

x/mobile: build failing when using go modules #37048

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
x/mobile: build failing when using go modules #37048
What did you do?
gomobile failed with 'nrecognized command line option '-marm'' and second run on same code gives different output ' cannot determine module path for source directory' this issue related to previous one #37048
gcc: error: unrecognized command line option '-marm'; did you mean '-mabm'?

second run (same command: gomobile bind)
gomobile: go build -buildmode=c-shared -o=/tmp/gomobile-work-515390264/android/src/main/jniLibs/armeabi/libgojni.so ./gobind failed: exit status 1
go: cannot determine module path for source directory /tmp/gomobile-work-515390264/src (outside GOPATH, module path must be specified)

Example usage:
	'go mod init example.com/m' to initialize a v0 or v1 module
	'go mod init example.com/m/v2' to initialize a v2 module

Run 'go help mod init' for more information.

commands:
# git clone -b dev https://gitlab.com/axet/libtorrent
# gomobile bind

@axet I am guessing some cgo related setup is not correct. it's strange that gomobile didn't complain or report the error and it's definitely a bug. Can you please try to run it with -x -v -work flags to see what's going on? If -work flag is supplied, the gomobile bind will not delete the temporary work directories for inspection. Check what's in the  directory reported in the error message. There should be go.mod file and the error message indicates that it's not.

I did clean everyging and now only first issue is present. It failed to build on first run, second run succeed. And I have no issues to build a library old GOPATH style (no cgo issues). Steps:
  git clone -b dev https://gitlab.com/axet/libtorrent
  cd libtorrent
  export GOPATH=$PWD/build
  export GOBIN=$GOPATH/bin/
  export PATH=$GOBIN:$PATH
  export ANDROID_HOME=$HOME/Android/Sdk
  export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/19.2.5345600/
  go get golang.org/x/mobile/cmd/gomobile
  gomobile init
  gomobile bind

Would be nice if u can provide the output in module mode i asked in my previous comment.

@hajimehoshi

Sure. Second issue was related to NDK r16. I know it is not supported, but I able to build using NDK r16 using GOPATH, but failed with go mod's with error above. NDK r19 works fine booth ways.  Answering your question, here is output of gomobile bind -tags disable_libutp -x -v -work > output.log 2>&1.
output.log

@axet thanks!
@matloob @bcmills @jayconrod  It is hard to debug due to caching by go command. I observed inconsistency of gomobile bind runs possibly due to different build/package/module cache states.
Attached are the logs I captured by running gomobile bind twice back to back.
$ GOPACKAGESDRIVER=off GOPACKAGESDEBUG=true gomobile bind -tags disable_libutp -x -v -work > output1.log 2>&1
$ GOPACKAGESDRIVER=off GOPACKAGESDEBUG=true gomobile bind -tags disable_libutp -x -v -work > output2.log 2>&1

The first run failed with some cgo errors (clang: error: argument unused during compilation: '-mno-thumb' [-Werror,-Wunused-command-line-argument] ) during go list triggered by x/tools/go/packages.  (output1.log)
Observed that some modules were downloaded and $GOPATH/pkg directory and GOCACHE became non-empty as a result of go command run.
The second run shows the same cgo error, but go list went further this time despite the error and succeeded with some results. And finally, the gomobile bind completed its job (output2
output1.log
output2.log
.log)
Is this unstable behavior a known bug of go list (and x/tools/go/packages)?
Is there any way to make the very first run of go list tolerate the error and go further?
my environment:
$ go version
go version devel +a50c3ffbd4 linux/amd64

# (This is 1.14rcX)

$ for x in GOPATH GOBIN ANDROID_HOME ANDROID_NDK_HOME; do printenv "${x}"; done
/tmp/build
/tmp/build/bin
/usr/local/google/home/hakim/Android/Sdk
/usr/local/google/home/hakim/Android/Sdk/ndk/19.2.5345600

It's weird that the cgo errors happen on one run but disappear later. They ought to either always be reported or never reported.
I don't know enough about how gomobile uses golang.org/x/tools/go/packages to comment much further than that. Does this reproduce using go list directly? How about the golang.org/x/tools/go/packages/gopackages tool?
Also, where does the -mno-thumb flag come from? I don't think anything in cmd/go or golang.org/x/tools/go/packages adds that. The output of go env would be useful (in the environment that go list is invoked with).

@jayconrod
Actually the second run reported the cgo error but that didn't fail the go list.
113.046944ms for GOROOT= GOPATH=/tmp/build GO111MODULE= PWD=/usr/local/google/home/hakim/project/scratch/libtorrent go "list" "-tags=disable_libutp" "-e" "-json" "-compiled=true" "-test=false" "-export=false" "-deps=false" "-find=true" "-tags=disable_libutp" "--" ".", stderr: <<# runtime/cgo
clang: error: argument unused during compilation: '-mno-thumb' [-Werror,-Wunused-command-line-argument]

FWIW, I used to get the same error as @hyangah but after upgrading Android Studio and reinstalling the NDK with sdkmanager ndk-bundle, I got NDK r21b and now it builds without the error.

Using go1.18.2, and android-ndk-r23c in Ubuntu 20.04, with gcc-10 and openjdk-8, I get the same error. I need to run this command twice to build my project:
gomobile init && \
gomobile bind -v -target=android -ldflags="-s -w" $(BUILD_FLAGS) -o ./build/lib/gowaku.aar ./mobile

with the first run failing due to gcc-10: error: unrecognized command line option '-marm'; did you mean '-mabm'?


Chucky Turtle not chunk load and so stop to work.

Describe
I found that in MC 1.18.1 with forge version 39.0.9 that the chunk loader does not work. (The chunks unload when player is away from more than about 400 blocks)
Note: this bug is as well on server.
Steps to reproduce

First create a map (for me i try in a super flat)
Create a advanced or basic turtle with in his left a chat box and in his right a chunk loader
Write a program that post in tchat every 1s a message that say the turtle is still loaded.

-- https://pastebin.com/7b81ztFG
local box = peripheral.find("chatBox")

i = 0
while true do
  i = i + 1
  box.sendMessage("Hoi " .. i)
  sleep(1)
end

Run the program and go away
5. (Cry cause you found a bug and so you need to stay near the turtle until this bug is fix)

Multiplayer?
Bug is present in single player and on server.
Version
<IP_ADDRESS>r (Latest)
Minecraft, Forge and maybe other related mods versions
Forge 39.0.9 / Minecraft 1.18.1 (Mods JourneyMap, CC Tweaked and this mod)
Screenshots or Videos
Bug demo video:
https://drive.google.com/file/d/1SP6CQVQbnE_39ZIP6IqQe6uSH9apJ6tt/view?usp=sharing
Crashlog/log
No response

Duplicate of #238

Duplicate of #238

Sorry if this is a duplicate of issue #238.
Basically I had already read this issue but since it talks about both server and other mods I told myself that this must be a separate problem.
In any case, I still hope that duplicated issue will have contributed to the solution of this problem by having eliminated the introduction of another mod to the problem and defined a simple way to reproduce the problem.
Had a nice days.
PS: Do you had any idea why this bug occured ?

Sorry if this is a duplicate of issue #238.
Basically I had already read this issue but since it talks about both server and other mods I told myself that this must be a separate problem.
In any case, I still hope that duplicated issue will have contributed to the solution of this problem by having eliminated the introduction of another mod to the problem and defined a simple way to reproduce the problem.
Had a nice days.
PS: Do you had any idea why this bug occured ?

In any case, I still hope that duplicated issue will have contributed to the solution of this problem by having eliminated the introduction of another mod to the problem and defined a simple way to reproduce the problem.

Sure it does

PS: Do you had any idea why this bug occured ?

Currently not, probably forge changed something and we need to change our chunk system a bit
But sorry for the late answer, didn't saw your questions


SafeForAnonymous Description

Replace {{Fill SafeForAnonymous Description}} with"Enables this managed property to be returned for queries executed by anonymous users. Enable this setting for managed properties that do not contain sensitive information and are appropriate for anonymous users to view."

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

ID: efec0d67-d9c9-a290-1b60-54f66faee077
Version Independent ID: 8b54b9cb-9231-9170-6130-794c175b2d7b
Content: New-SPEnterpriseSearchMetadataManagedProperty (sharepoint-server)
Content Source: sharepoint/sharepoint-ps/sharepoint-server/New-SPEnterpriseSearchMetadataManagedProperty.md
Product: sharepoint-2016-powershell
GitHub Login: @techwriter40
Microsoft Alias: kirks

@AndreaBarr assign to me, please.


PrototypeMultiProcessingReadingService does not properly terminate on MacOS

🐛 Describe the bug
Running the code snippet below in MacOS will print the correct values but will not automatically terminate afterwards without manual interruption. I don't think it is related to the recent prefetch update.
from torchdata.datapipes.iter import IterableWrapper
from torchdata.dataloader2 import DataLoader2
from torchdata.dataloader2.reading_service import PrototypeMultiProcessingReadingService

if __name__ == '__main__':
    dp = IterableWrapper([0, 1, 2, 3, 4])
    rs = PrototypeMultiProcessingReadingService(num_workers=2)
    dl = DataLoader2(datapipe=dp, reading_service=rs)
    for x in dl:
        print(x)
    print("End")

Trace:
0
0
1
1
2
2
3
3
4
4
End
^CError in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/multiprocessing/popen_fork.py", line 27, in poll
Process SpawnProcess-2:
Process SpawnProcess-1:
    pid, sts = os.waitpid(self.pid, flag)
KeyboardInterrupt
Traceback (most recent call last):
Traceback (most recent call last):
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/ktse/data/torchdata/dataloader2/communication/eventloop.py", line 49, in DataPipeToQueuesLoop
    for _ in pipe_type.DataPipeBehindQueues(
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/Users/ktse/data/torchdata/dataloader2/communication/iter.py", line 121, in DataPipeBehindQueues
    request = protocol.get_new_request(block=blocking_request_get)
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/ktse/data/torchdata/dataloader2/communication/protocol.py", line 66, in get_new_request
    response = self.request_queue.get(block=block)
  File "/Users/ktse/data/torchdata/dataloader2/communication/eventloop.py", line 49, in DataPipeToQueuesLoop
    for _ in pipe_type.DataPipeBehindQueues(
  File "/Users/ktse/data/torchdata/dataloader2/communication/iter.py", line 121, in DataPipeBehindQueues
    request = protocol.get_new_request(block=blocking_request_get)
  File "/Users/ktse/data/torchdata/dataloader2/communication/protocol.py", line 66, in get_new_request
    response = self.request_queue.get(block=block)
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/multiprocessing/queues.py", line 103, in get
    res = self._recv_bytes()
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/multiprocessing/connection.py", line 221, in recv_bytes
    buf = self._recv_bytes(maxlength)
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/multiprocessing/queues.py", line 103, in get
    res = self._recv_bytes()
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/multiprocessing/connection.py", line 419, in _recv_bytes
    buf = self._recv(4)
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/multiprocessing/connection.py", line 221, in recv_bytes
    buf = self._recv_bytes(maxlength)
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/multiprocessing/connection.py", line 384, in _recv
    chunk = read(handle, remaining)
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/multiprocessing/connection.py", line 419, in _recv_bytes
    buf = self._recv(4)
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/multiprocessing/connection.py", line 384, in _recv
    chunk = read(handle, remaining)
KeyboardInterrupt
KeyboardInterrupt
Exception ignored in: <function DataLoader2.__del__ at 0x7fc500214af0>
Traceback (most recent call last):
  File "/Users/ktse/data/torchdata/dataloader2/dataloader2.py", line 134, in __del__
  File "/Users/ktse/data/torchdata/dataloader2/dataloader2.py", line 142, in shutdown
  File "/Users/ktse/data/torchdata/dataloader2/reading_service.py", line 208, in finalize
  File "/Users/ktse/data/torchdata/dataloader2/reading_service.py", line 203, in clean_me
AttributeError: 'NoneType' object has no attribute 'TerminateRequest'
Exception ignored in: <function PrototypeMultiProcessingReadingService.__del__ at 0x7fc50020ef70>
Traceback (most recent call last):
  File "/Users/ktse/data/torchdata/dataloader2/reading_service.py", line 196, in __del__
  File "/Users/ktse/data/torchdata/dataloader2/reading_service.py", line 208, in finalize
  File "/Users/ktse/data/torchdata/dataloader2/reading_service.py", line 203, in clean_me
AttributeError: 'NoneType' object has no attribute 'TerminateRequest'
Exception ignored in: <Finalize object, dead>
Traceback (most recent call last):
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/multiprocessing/util.py", line 224, in __call__
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/multiprocessing/queues.py", line 198, in _finalize_join
TypeError: 'NoneType' object is not callable
Exception ignored in: <Finalize object, dead>
Traceback (most recent call last):
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/multiprocessing/util.py", line 224, in __call__
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/multiprocessing/queues.py", line 198, in _finalize_join
TypeError: 'NoneType' object is not callable

Versions
main
cc: @VitalyFedyunin

If you call dl.shutdown() at the end, is the problem still persistent?

If you call dl.shutdown() at the end, is the problem still persistent?

I can confirm that it does fix it. I think the issue is that reading_service.finalize() never get called for PrototypeRS, such that process.join() isn't called and it hangs.
I have considered calling process.join() in finalize_iteration() but that is not a good option.

What we might be able to do is to register all cleanup functions to 'atexit'. This technically should guarantee cleanup functions called before Python exits.


Set jovyan user password

Add a password to unlock the screen

see https://github.com/EOEPCA/iga-remote-desktop/commit/a4c6aec80fa4ccbb8bbeb0edbf14b08ce15685f1


Github Repo with Read.md content

Create a Github Repo with Readme.md content for the project

Done


Allow setting which signal numbering convention to use

At the moment, S3 allows using the BMT/IND and Toronto conventions for signal numbering. Make S3 support the IRT convention as well, and allow the numbering convention to be selected for each track.
BMT/IND
In the BMT/IND convention, each line has a one- or two-letter chaining line associated with it, e.g. B, and each track on that line has is numbered. The first part of the signal number is then a concatenation of the chaining line and the track number, and the second part is the position of the signal on the track, e.g. B1-240. Signals are numbered only odd or only even in a certain direction.
Interlocking signals are numbered by the lever that controls them. For example, an interlocking signal controlled by a lever numbered 6 would be known as X-6.
IRT
The IRT convention also uses chaining lines and track numbers, but the numbering is different. The first part of the signal number is a concatenation of the position of the signal and the track number, and the second part is the chaining line, so same signal above is 2401-B. Signal positions are rounded to the nearest integer, and signals facing the opposite direction are numbered 4 more than their actual position.
Interlocking signals are are also numbered based on the lever. The signal above would be known as 6L-X. If multiple signals are controlled by the same lever, they can be numbered 6La-X, 6Lb-X, etc.
Toronto
In the Toronto convention, each direction on a line has a one- or two-letter prefix, much like a chaining line in the NYC conventions. A main track proceeding in the usual direction of travel is assigned the chaining line as the prefix; other tracks on the line are assigned the chaining line followed by A, B, and so on. On a line with the chaining line B, the main track is B, and the other tracks are BA, BB, etc. Signals are numbered only odd or only even in a certain direction. The signal above can then be called B-240, B-241, BA-240, BA-241 and so on depending on the location of the signal on the line.
Interlocking signals are numbered as in the BMT/IND convention.

6fab212 adds a Track.style field, but does not do any validation checks for the other fields.

0d08929 added validation and automatically generated fields. This broke a lot of tests initially.


Implement tray icon options in right click menu for taskbar icon

The following options could be present in the right click menu for the taskbar icon. Multi-level options like Audio Device and Help might need rethinking though since I don't think you can achieve that in a taskbar icon's right click menu.
Play/pause and next/prev are probably not needed though as I can already control those through the hover preview. I'd mostly like this for thumbs up controls and shortcuts to things like the settings page.

For example, this is what Steam's taskbar icon right click menu looks like:

Off-topic, but it would also be nice if we could disable the tray icon entirely (and doing so should disable/gray-out the minimize to tray option to prevent conflicts).

Would be nice, but it seems like the way the tray is implemeted doesnt allow for icons next to the menu options (but dont quote me on that). About disabling the tray icon : take a look at the PR #636 . think it has been discussed there enough

Talking about two different menus.. Screenshot number one is the tray icon (where the clock is) and the other is the task bar icon, where your open applications are.
The icon list you are referring to is referred to as the Jump List in windows / electron as seen here:
https://github.com/electron/electron/blob/master/docs/api/app.md#appsetusertaskstasks-windows

Unfortunately this is quite tricky.  Those Jump Lists can only be "links" which means the application has to be the default handler for a registered URL scheme.  Something like gpmdp://, it is very tricky and a complex process flow.
I'll do some more research, but initial impression (when I came up with this idea myself a few months ago) not very easy :+1:

I think it would be simpler than that. All that would have to happen is to make sure the app is in single instance mode (not sure if it is currently) through app.makeSingleInstance(callback). Then after that set up flags to capture like --play, --pause, etc as the tasks will execute a program with the flags given. Once you hit a task a new instance is opened, a signal is sent to the currently running instance and then the opened instance closes back down. I can take a stab at writing it but I don't have a dev env on windows currently.

@jostrander That's an interesting exploitation of the argv callback parameter.  And from an initial look it wouldn't be the most responsive thing in the world (decent lag between open and console logging a single instance attempt)

it's actually a standard practice on many systems. Of the top of my head both nginx and apache use  the signaling system to pass arguments to the running instance. I've seen the pattern used numerous times in other applications besides those but none on windows are coming to mind currently.

@jostrander Hmmm, it's not a thing I've seen before on windows but now that you mention it I have seen it done on Linux with certain services :thought_balloon:
I'll look into it


How to implement attributes input from HTML component in my custom component?

How to implement attributes input from HTML component in my custom component?
I want to make so when people enter attributes into edit form they would apply on input
And how to apply CSS classes on input via edit form?

We're currently addressing a backlog of GitHub issues, and as part of this effort, some inactive issues may be marked as closed. This isn't a dismissal, but a step toward more efficient tracking.
If you feel the issue is still relevant, please re-open and we'll ensure it gets the attention it deserves. Your understanding is appreciated as we work to enhance our open-source responsiveness.


typo add logs console

Proposed changes
doris 2.0.2+ need use start_xx.sh --console

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Identify perf bottlenecks and improve the SCIM Role API

Description:

Identify any perf bottlenecks and improve the SCIM Role API performance.
PATCH operation performance needs to be improved.

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


when edit a comment add/edit an url the bot is not triggered.

for eg create a comment
than edit adding a url
the bot is not triggered.
the same should apply:
create a comment with url, work as expected,
then edit the comment change to another url, the bot is not triggerd.

I guess it's designed for simplicity, because as far as I tried,
To create a comment in an issue will trigger
 "event": "issue_comment.created",

and then the bot would update this issue, which will trigger
 "event": "issue_comment.edited",

But in the entrypoint, only created event are taken cared of
https://github.com/probot/unfurl/blob/81e04d68d7eafce7475ec6081a7b55ac5de2544b/lib/index.js#L4-L21


Enabling and unlocking user at the same time fails

Q
A

Bug?
yes

New Feature?
no

Sulu Version
1.2.3

Actual Behavior
When i enable a user and unlock it at the same time the user is locked again after saving.
Expected Behavior
The user should be enabled after saviing.
Steps to Reproduce
Explained in Actual Behavior

How exactly do you enabled and unlock a user at the same time? Sulu only has one button for locking, the enabled button does not work. Have you implemented that in some application logic? Can you copy and paste the code doing this?

This is default Sulu! No special implementation!
I edited the Issue description: The user is not disabled, it is locked after doing the descriped actions.

Ok, the button only appears if the user is disabled, and I can confirm the behavior.


Retrieving properties

It seems like the ability to read properties is conspicuously missing? Am I just missing how/where is this offered? How about using spec files?

@dsoprea,
Can you please explain what you mean by "reading properties"? Are you referring to searching/downloading/moving...  files by their attached properties? In case you do, then this is supported by using the props File Specs property.

I mean being able to read the properties of an arbitrary file, likely using the REST API:

Maybe even just as easily from the CLI as you might do from the UI:

Is this not yet available?

@dsoprea,
Sorry for the late response.
The jfrog rt search allows searching for files in Artifactory, and returns the attached properties of the files. In terms of functionality, it is the same as the above REST API.

I don't see properties returned, all I see is below response
[Info] Found 1 artifact.
[
{
"path": "****"
}
]
Following is what I am passing to the command:
jfrog rt s --url ** --user ** --password ** --props ** --limit 1 --sort-by created --sort-order desc path here

@jkodali
Which version of JFrog CLI are you using?
Does the artifact found has properties attached to it?

Thanks for quick reply, seems like I was using older version of cf cli (probably very old 1.14) and right now seems like latest version is 1.28 and it is retrieving all the properties. Sorry for the confusion

THis is the updated results with new version:
[Info] Searching artifacts...
[Info] Found 1 artifact.
[
{
"path": "*",
"type": "file",
"props": {
"build.name": [
"**"
],
"build.number": [
"292"
],
"build.timestamp": [
"1563416719195"


Several Special Markdown Expressions | Mashiro's Notes

https://mashiro.top/2018/04/29/markdown/

Maybe no need to learn all LaTeX ha, only knowing how to show a formula is OK. 😆


Cleanup HTTP/2 tests for Http2FrameCodec and Http2MultiplexCodec

Motiviation:
Http2FrameCodecTest and Http2MultiplexCodecTest were quite fragile and often not went through the whole pipeline which made testing sometimes hard and error-prone.
Modification:

Refactor tests to have data flow through the whole pipeline and so made the test more robust (by testing the while implementation).

Result:
Easier to write tests for the codecs in the future and more robust testing in general.
Beside this it also fixes https://github.com/netty/netty/issues/6036.

Looks like you're still iterating on this. Please feel free to ping me when you want it reviewed.

@bryce-anderson now... forgot to commit a change.

@bryce-anderson thanks fore the review.. I also addressed your comment (good catch).


Hi, Please help me take a look

I got this error when I run twilio flex:plugins:deploy --major --changelog "Change plugin to use the latest Flex plugin for the Twilio CLI" --description "Queued Callback and Voicemail Plugin"
(node:30265) UnhandledPromiseRejectionWarning: Error: Cannot find module 'craco-config-flex-plugin'
Require stack:

/Users/pangge/twilio/voicemail/plugin-queued-callbacks-and-voicemail/craco.config.js
<EMAIL_ADDRESS><EMAIL_ADDRESS>at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/Users/pangge/twilio/voicemail/plugin-queued-callbacks-and-voicemail/craco.config.js:1:16)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
(Use node --trace-warnings ... to show where the warning was created)
(node:30265) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:30265) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Could not find build file. Did you run npm run build first?

@cspangge it looks like you have an older version of the twilio CLI. Please run the following:
# Install the latest version
twilio plugins:install @twilio-labs/plugin-flex@beta

# Now update your plugin
twilio flex:plugins:ugprade-plugin --beta --install

# Now re-run deploy command

Hello @cspangge . As this has likely been addressed by our recent plugin upgrade, I am closing this issue. Please let us know if you are still having issues with this plugin.


Inserting struct via schema.WriteAsQuads where a field is empty string causes weird behavior with schema.LoadTo

Description
I insert an admin using schema.WriteAsQuads while one of the fields is empty string.
And schema.LoadTo(nil, store, &admins) shows nothing. Is that expected?
Steps to reproduce the issue:

Run go run main.go on this file.

Received results:
schema.LoadTo(nil, store, &admins) shows nothing despite the fact that 3 out of 4 quads of an admin exist:
<cf86> -- <rdf:type> -> <Admin>
<cf86> -- <email> -><EMAIL_ADDRESS><cf86> -- <hashed_password> -> "phyhyhyh"

Expected results:
I would think that LoadTo will return an admin.
Output of cayley version or commit hash:
Cayley version: 0.7.0-alpha

Environment details:
Backend database: (database and version)

This is not a bug, but this should probably return an error.
Here is what happens:

Admin structure is inserted, but Name quad is omited, since it's empty.
When loading, Name is interpreted as required field and since there is no such quad, no Admins will be returned.

Clearly, the Name should be an optional field in this case. However, I can prevent such mistakes by returning an error if one of required fields is empty on write. The problem is, it will not rollback already written values automatically, since it does not control the writer.

Thanks! is there a way to have optional field?

Sure, try quad:"name,optional"

thanks. is this go feature or something specific to schema lib?

Specific to the lib. The closest analog from stdlib is ,omitempty in json.

gotcha. thanks


Fix problem with ONNX models

This PR fixes few issue with the onnx exporter:

it fixes the error raised when  inputs of shape == 0 are passed
it adds proper data types for scalers
it removes ONNX_INPUTS since is not used

Codecov Report

Merging #378 (14aa28c) into main (6cab8ee) will decrease coverage by 4.48%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##             main     #378      +/-   ##
==========================================
- Coverage   91.05%   86.56%   -4.49%
==========================================
  Files          58       58
  Lines        3365     3365
  Branches      668      669       +1
==========================================
- Hits         3064     2913     -151
- Misses        159      309     +150
- Partials      142      143       +1

Flag
Coverage Δ

unittests
86.56% <88.88%> (-4.40%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

hummingbird/ml/operator_converters/constants.py
100.00% <ø> (ø)

hummingbird/ml/convert.py
66.49% <71.42%> (-17.72%)
:arrow_down:

.../ml/operator_converters/_scaler_implementations.py
100.00% <100.00%> (ø)

...gbird/ml/operator_converters/onnx/tree_ensemble.py
86.39% <100.00%> (+2.28%)
:arrow_up:

...mmingbird/ml/operator_converters/sklearn/scaler.py
96.29% <100.00%> (ø)

...mmingbird/ml/operator_converters/sparkml/linear.py
42.85% <0.00%> (-57.15%)
:arrow_down:

...bird/ml/operator_converters/sparkml/discretizer.py
47.36% <0.00%> (-42.11%)
:arrow_down:

hummingbird/ml/_topology.py
69.92% <0.00%> (-14.85%)
:arrow_down:

hummingbird/ml/_parse.py
76.11% <0.00%> (-10.20%)
:arrow_down:

... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6cab8ee...14aa28c. Read the comment docs.


Local Storage for EVC List Search Columns

Closes #451
Summary
Text within the search column of the EVC list/table would not save. This was cumbersome as some EVCs had long names, and whenever one refreshed the page, exited the current menu, or tried to view an EVC, all of the searches and filters written would be deleted. This meant that the user would then have to rewrite those names all over again to view a single EVC and repeat the process.
To fix this issue, Vue JS localStorage was utilized to store the search column data. This means that whenever the component is mounted, the search column data will be extracted from localStorage, which means that the EVC list can be closed or refreshed without affecting the search column data.
Local Tests
The web page was refreshed and the EVC list was closed. After doing this, when the EVC list was reopened, the search column data was still available.

@viniarck I seem to have fixed the issue that Italo had told me about, regarding EVC list search columns, with localStorage.


Feature request: Show user's location in google_maps_flutter

I have successfully used unpublished package google_maps_flutter and have implemented almost everything I wanted (custom map size, custom clickable markers...), but there is one important feature I miss: showing user's location.
This is already implemented map_view package, which is not maintained by flutter team, but they do not support inline maps (which I really need).
I would be very happy is you could add showUserLocation parameter to options, or something similar.
Currently, the best idea I have, is to add 'blue dot' marker to map, but this is far from ideal, because I want to show also direction of user and location precision.

@matejm in master there is a myLocationEnabled for GoogleMap widget. Let me know if this solves your use case.

Yes, this is exactly what I wanted. Thanks!

I am getting
E/GoogleMapController(20024): Cannot enable MyLocation layer as location permissions are not granted
I have added  in manifest...


Flutter 3.22 release mode issue, example project is unresponsive (Critical)

Configuration:
Flutter Version: 3.2.2
flutter-reorderable-grid-view: 4.0.0
Running in release mode (--release)
Behavior:

Scrolling not working
Dragging not working
Item added on top of the first item  (stack)
Item remove only changing first item

Logs:

Appears when I start touching the screen.

I/flutter (10354): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (10354): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (10354): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (10354): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (10354): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (10354): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'

Hi @shubham-gupta-16
Can you try version ‘5.0.0-dev.10’ because this version will be outdated soon, there are some breaking changes so be sure to check the example app

I checked the feature/5.0.0-release and it is working. When you are planning to release a stable version for 5.0?

I have to update the read me, then I could release it, I should find some time in two weeks, so probably in 3 weeks @shubham-gupta-16

I published version 5.0.0, so I will close this issue @shubham-gupta-16

Not fixed. Issue still exists with GridView, GridViewCount, GridViewExtent. Only GridViewBuilder working in example project.
Also, GridViewBuilder's code is not working in my project.

What exactly is happening and can you show me your code how you use ReorderableBuilder? @shubham-gupta-16

@karvulf It's happening in example project as well.
Here is my project: https://github.com/shubham-gupta-16/multi_image_picker_view

I tried to reproduce it but everything seems to work. I will checkout your branch, maybe I can see more there. @shubham-gupta-16

Is it only happening in the release mode or also in debug mode? @shubham-gupta-16

I tried to start the example app on iOS in your project but I am getting the following exception when trying to install it:
[!] Unable to find a target named `RunnerTests` in project `Runner.xcodeproj`, did find `Runner`.

@shubham-gupta-16

@karvulf It's happening only in release mode on an Android device.

So iOS works totally fine? @shubham-gupta-16
Can you send me the output of flutter doctor -v? @shubham-gupta-16

I tried on an emulator in release mode with your suggested branch and couldn't reproduce the issue, my flutter doctor -v output is the following:
[✓] Flutter (Channel stable, 3.19.6, on macOS 14.4.1 23E224 darwin-arm64, locale de-DE)
    • Flutter version 3.19.6 on channel stable at /Users/andreborger/fvm/versions/3.19.6
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 54e66469a9 (vor 3 Monaten), 2024-04-17 13:08:03 -0700
    • Engine revision c4cd48e186
    • Dart version 3.3.4
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Users/andreborger/Library/Android/sdk
    • Platform android-34, build-tools 32.0.0
    • Java binary at: /Applications/Android Studio 2.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio 2.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.3.6)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 78.4.2
    • Dart plugin version 233.15026.12

[✓] VS Code (version 1.91.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (4 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554
    • android-arm64  • Android 13 (API 33) (emulator)

[✓] Network resources
    • All expected network resources are available.

• No issues found!
➜  example git:(flutter_reorderable_grid_view_5_0_0) ✗

I reproduced the issue, I will try to fix it this week, thank you for finding that one! @shubham-gupta-16

The issue should be fixed, can you check if it still exists?
You can use version 5.0.1
@shubham-gupta-16


Enhancement: Rebind controls

I use tab to shift. Being unable to change the shift+right click to place backpack has lost me my netherite smithing templates, and I would like to prevent this in the future by changing the button I press to place the backpack in the world.

In the vanilla Key Bind options you can change the controls for the placing/pick up and to quickly move items in the inventory. Also in the client config you could enable instant_place to immediately place the backpack without using right click fyi, that might make your situation worse tho.

I don't see the option in the keybind menu, what's it called?

Scroll down until you see Bean's Backpacks and then it's called "Place/Pickup". Quick Click changes the hot key in the menus


Custom icon pack broken

After recent update the custom icon packs that I have added are not working as expected.
All icons are displayed in grey color
To Reproduce
Steps to reproduce the behavior:

Set icons folder to .obsidian/icons or .obsidian/plugins/obsidian-icon-folder/icons
Add custom icon pack
Set icon of a folder using one of the custom icons

Expected behavior
The icons should be displayed as is
Screenshots

Additional context
This has started happening since last updated of the plugin
Using the built-in packs works as expected

I'm having the same problem, custom icons are not showing properly, and I can't find the folder pack in the option and when I try to search for the custom icons, non was found. This seems to happen after the latest update (1.4.3)
The custom icons that have already been set up before now look like this (some are displayed properly, but others are not, e.g., the "History" folder is now just a silhouette)

Hey there!
Thank you for reporting this issue. Due to the new SVG renderer this can happen. Could you please send me an example for which specific SVG this is not working so that I can reproduce it for me locally?

@FlorianWoelki Thanks for responding! I've reinstalled the plugin and can search for the custom icons now but many of them still can't be displayed properly. Below is one of the sample svg that is not working

I seem to have encountered this problem. my custom svg icon color be missing. But it exists when previewing

it's svg file

font-awesome-solid Not working, after restarting obsidian, it does not display properly
The probability of occurrence is low and there is no successful recurrence

I am also seeing this issue. What is strange is that I have the plugin installed on my work computer, but when I sync all of my settings to my personal PC, all but one of my icons (probably have ~50) are grey.
If it helps, the one that still has color icons is running 1.4.1. The computer that is has all of the grey icons is running the latest 1.4.3.

This is fixed in the newest release. Thanks for reporting!


Your lib is amazing

I use the Microsoft.Wpf.Interop.DirectX-x64 in my project, when I run this project, it give me an error: FileNotFoundException: 未能加载文件或程序集“Microsoft.Wpf.Interop.DirectX.dll”或它的某一个依赖项。找不到指定的模块, but use this lib, I can run success. Can you tell me what you do? Thank you very much!

Thank.

Maybe you missing build target, AnyCpu will not work.
And i don't  think, my lib work with AnyCpu.

I have modify the AnyCpu to x64, But your lib can be run success, but the Microsoft.Wpf.Interop.DirectX-x64 run failure

I dont know why MS lib donot copy to output dir. However, you just manual copy that dll to output dir.


Simultaneous sending and receiving DMX?

Will this library support 'simultaneous' sending and receiving?
I want to receive DMX, remap/reprocess some values, then send DMX - in realtime. Assuming the processing is very lightweight, will this library support this?
Thanks for your amazing work.

I am nos sure what you want so let's clarify the use-cases:

If you want to implement DMX (not RDM) there is no device defined that implements both roles (Controller and Slave).
The DMX Serial library is made for devices that have one of these roles.

Devices that have input and output only have a wired connection between these adapters and pass the signal through to enable daisy chaining the slave devices,

Devices that support RDM (extension of DMX) should use the DMXSerial2 library. Here sending in slave devices is required to answer specific requests.

Repeaters, splitters, . . .  not supported by the library. Here a "amplifier" is an option that doesn't read and writes the protocol but uses multiple connected 485 couplers to enable longer/multiple DMX lines. Very robust, no processor required.

Thanks @mathertel
In addition to the serial port used for the DMX by this library, would there be a spare serial port that I could use? So I could have 2x Arduinos, one set up as a DMX controller and one as a DMX slave. And use UART for communication between these two devices.

That seems complex and may work but I never did it.

Thanks @mathertel
In addition to the serial port used for the DMX by this library, would there be a spare serial port that I could use? So I could have 2x Arduinos, one set up as a DMX controller and one as a DMX slave. And say use UART for communication between these two devices if using a Mega. Or use say SPI to connect two ATmega328s?

Have you had any luck with this? I'm trying to forward DMX from a grandma2 with some extra interbyte delay to fix jitter issues on some Chinese fixtures.

Thanks @mathertel
In addition to the serial port used for the DMX by this library, would there be a spare serial port that I could use? So I could have 2x Arduinos, one set up as a DMX controller and one as a DMX slave. And say use UART for communication between these two devices if using a Mega. Or use say SPI to connect two ATmega328s?

Have you had any luck with this? I'm trying to forward DMX from a grandma2 with some extra interbyte delay to fix jitter issues on some Chinese fixtures.

Hello @willwatson27
I didn't try this approach but instead used this with success
https://github.com/ssilverman/TeensyDMX

Hello @willwatson27
I didn't try this approach but instead used this with success
https://github.com/ssilverman/TeensyDMX

Thanks for the lead @chendy. That definitely looks like what I'm after.

Thanks for the lead @chendy. That definitely looks like what I'm after.

I cannot recommend using an Arduino UNO or ATMega as there are restrictions on the available Serial ports and also the processor may not handle all the load running multiple lines because of the slow speed. The Teensy or ESP32 is a better and faster processor that may fit.

I am currently using the DMXSerial library, version 1.5.3, with an Arduino Uno R3 to use DMXSerial.init(DMXReceiver) and DMXSerial.read  in the setup() function where I try to write an incoming DMX packet , the first 45 channels, to a byte array IChannel[k].  I then execute DMXSerial.init(DMXController) and DMXSerial.write as the last step in setup().  In the loop() function I try to augment 4 of the 45 channels in IChannel[k] through A0 and A1 with a potentiometric joystick.  The joystick adjustment passes through to TX (D1), but not the originalDMXSerial.write input from the setup() function.  I am reading both inputs and outputs with  PicoScope 2206B MSO oscilloscope. If I load IChannel[k], as shown in the attached file, the loaded array elements show up in the output, along with any joystick adjustments.  Why can I not load an array with DMXSerial.write and subsequently get it out from TX with DMXSerial.read.  I can make a schematic of the circuitry used if anyone is interested
Manual_Spotlight_Control_2.txt


Merge pull request #1 from faridv/master

resync
Pull Request for Issue # .
Summary of Changes
Testing Instructions
Expected result
Actual result
Documentation Changes Required

resync


DRF still using sessions after installing and configuring Knox

Hi,
I'm trying to use this package to replace my default Django session setup. Specifically to only use this for authentication. I followed the documentation exactly but my login view still sets the csrftoken and sessionid cookie. I tried breaking out sessions completely from my project. But apparently knox depends on it. If you look at the overwritten login view from this page:
    def post(self, request, format=None):
        serializer = AuthTokenSerializer(data=request.data)
        serializer.is_valid(raise_exception=True)
        user = serializer.validated_data['user']
        login(request, user)
        return super(LoginView, self).post(request, format=None)

it uses the "login" function from the "django.contrib.auth" library which is specifically made for sessions. Source code:
def login(request, user, backend=None):
    """
    Persist a user id and a backend in the request. This way a user doesn't
    have to reauthenticate on every request. Note that data set during
    the anonymous session is retained when the user logs in.
    """
    session_auth_hash = ""
    if user is None:
        user = request.user
    if hasattr(user, "get_session_auth_hash"):
        session_auth_hash = user.get_session_auth_hash()

    if SESSION_KEY in request.session:
        if _get_user_session_key(request) != user.pk or (
            session_auth_hash
            and not constant_time_compare(
                request.session.get(HASH_SESSION_KEY, ""), session_auth_hash
            )
        ):
            # To avoid reusing another user's session, create a new, empty
            # session if the existing session corresponds to a different
            # authenticated user.
            request.session.flush()
    else:
        request.session.cycle_key()

    try:
        backend = backend or user.backend
    except AttributeError:
        backends = _get_backends(return_tuples=True)
        if len(backends) == 1:
            _, backend = backends[0]
        else:
            raise ValueError(
                "You have multiple authentication backends configured and "
                "therefore must provide the `backend` argument or set the "
                "`backend` attribute on the user."
            )
    else:
        if not isinstance(backend, str):
            raise TypeError(
                "backend must be a dotted import path string (got %r)." % backend
            )

    request.session[SESSION_KEY] = user._meta.pk.value_to_string(user)
    request.session[BACKEND_SESSION_KEY] = backend
    request.session[HASH_SESSION_KEY] = session_auth_hash
    if hasattr(request, "user"):
        request.user = user
    rotate_token(request)
    user_logged_in.send(sender=user.__class__, request=request, user=user)

So when I now authenticate against the login endpoint. I get my token:

But the same request also responds with cookies:

This session can't actually be used but I still think that it shouldn't be there. It would also save overhead, both in bandwidth and according to the Django documentation for Django itself. "If you don’t want to use sessions, you might as well remove the SessionMiddleware line from MIDDLEWARE and 'django.contrib.sessions' from your INSTALLED_APPS.

What about just removing the login(request, user) from the post overwrite? The AuthTokenSerializer does the authentication, so login is just responsible for creating the session, which as you stated is not required.

What about just removing the login(request, user) from the post overwrite? The AuthTokenSerializer does the authentication, so login is just responsible for creating the session, which as you stated is not required.

It has been a year ago since I made this issue. I'm not using this library nor Django anymore. So I can't help any further with this. There also seems to be no (current) intrest in this issue from the developers. So I am closing it.


Add SW note to firebase-auth

Related to https://github.com/Polymer/polymer-build/issues/35

k updated the language
@cdata is the issue the firebase domain or firebase hosting itself? Like what if I setup a custom domain for firebase hosting, would this no longer be an issue?

@rob I think if you have a custom domain, it's also fine. The issue with hosting is that the OAuth pop-up is loading from the same origin as the one your Service Worker is scoped to. But, it's possible that if you use a custom domain, the OAuth popup will use the Firebase domain (which means the Service Worker won't see that network request). I haven't personally used a custom domain with Firebase Hosting, so I can't say for sure. @mbleigh might know more.

Custom domain will also have this issue.

Good that a text has been added to firebase-auth.html, but I personally don't think its enough.  I didn't see it and lost a ton of time on the issue, and think it will be the same for others too.
Maybe I'm alone on this, but I'm thinking it maybe would be good to add something into some log message somewhere or a build tool that makes it more obvious so that people can resolve it faster.  Or maybe add something into the timeout error message that appears in the console.

yeah it should at least be in the readme for the element as well

@mbleigh is the readme generated from the comments?


UIKitCore

in -[UIPopoverPresentationController presentationTransitionWillBegin]

Number of crashes: 1
Impacted devices: 1

There's a lot more information about this crash on crashlytics.com:
https://fabric.io/smirk-studio/ios/apps/software.studioh.indigenous/issues/5b57475b6007d59fcd9b88c2?utm_medium=service_hooks-github&utm_source=issue_impact

UI will change with new apps