[bug] crashes : RuntimeError: Out of bounds memory access

Describe the bug
Hello,
Context : I am currently developing an app with Tauri as backend and Leptos as front-end, and during development I had multiple crashes during application execution. Theses crashes happens sometimes directly at application start (by starting the app either with cargo tauri dev or using AppImage) or sometimes when doing a Reload.
The thing is, the crashes seems to happens with any Tauri with Rust template created with cargo create-tauri-app.
Here some example with a template app created using cargo create-tauri-app :

(This time I had to Reload three times to trigger the crash, but sometimes it happens at first start)
Here is another example when using the AppImage generated by Tauri :

(You can see the second time the application crashes directly)
Reproduction

Create a Tauri app using cargo create-tauri-app
Select Rust as front-end language
Select Leptos as UI template.
Now you can cd into the project directory
Run the app using cargo tauri dev
Open developer console to check for crashes
Right-Click Reload until you get the crashes

You can also use this AppImage : https://file.io/qV7is0fTatqw
Note :

I get the bug with all other UI Template (Vanilla, Yew, Leptos or Sycamore)
The bug happens on Ubuntu too

Expected behavior
The application should not crash semi-randomly
Platform and versions
[✔] Environment
    - OS: Fedora 37.0.0 X64
    ✔ webkit2gtk-4.0: 2.40.2
    ✔ rsvg2: 2.54.5
    ✔ rustc: 1.67.0 (fc594f156 2023-01-24)
    ✔ Cargo: 1.67.0 (8ecd4f20a 2023-01-10)
    ✔ rustup: 1.25.2 (17db695f1 2023-02-01)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
    - node: 18.16.0
    - yarn: 1.22.19
    - npm: 9.5.1

[-] Packages
    - tauri [RUST]: 1.3.0
    - tauri-build [RUST]: 1.3.0
    - wry [RUST]: 0.24.3
    - tao [RUST]: 0.16.2
    - @tauri-apps/api [NPM]: not installed!
    - @tauri-apps/cli [NPM]: 1.3.1

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/

Stack trace
[Error] Unhandled Promise Rejection: RuntimeError: Out of bounds memory access (evaluating 'wasm.__wbindgen_start()')
	<?>.wasm-function[<core::cell::BorrowRefMut as core::ops::drop::Drop>::drop::hf42c085d7285d3bf] (test-ui-d856fd919585e10.js:612)
	<?>.wasm-function[core::ptr::drop_in_place<core::cell::BorrowRefMut>::h8315dbe9c700eb71]
	<?>.wasm-function[core::ptr::drop_in_place<core::cell::RefMut<leptos_dom::hydration::HydrationKey>>::h9149f27aa3a23070]
	<?>.wasm-function[leptos_dom::hydration::HydrationCtx::next_component::{{closure}}::h6883c5616db2da57]
	<?>.wasm-function[std::thread::local::LocalKey<T>::try_with::hb94a1e0a0aef6298]
	<?>.wasm-function[std::thread::local::LocalKey<T>::with::h89a5ada3f068daa0]
	<?>.wasm-function[leptos_dom::hydration::HydrationCtx::next_component::hc33f11bf247b26b6]
	<?>.wasm-function[leptos_dom::components::Component<F,V>::new::h465abdfae9683bc5]
	<?>.wasm-function[test_ui::app::App::hbad01cb3c50974fa]
	<?>.wasm-function[test_ui::main::{{closure}}::hde19ea94619b4cb6]
	<?>.wasm-function[leptos_dom::mount_to::{{closure}}::hd08507726cd06d49]
	<?>.wasm-function[leptos_reactive::runtime::RuntimeId::run_scope_undisposed::{{closure}}::h2390710064a783d0]
	<?>.wasm-function[leptos_reactive::runtime::with_runtime::{{closure}}::hfa3448a66d7673c7]
	<?>.wasm-function[std::thread::local::LocalKey<T>::try_with::hd4a7100a53c5c0c5]
	<?>.wasm-function[std::thread::local::LocalKey<T>::with::h30c6a5082ecc8b4b]
	<?>.wasm-function[leptos_reactive::runtime::with_runtime::h6a6a8e56b71ffd28]
	<?>.wasm-function[leptos_reactive::runtime::RuntimeId::run_scope_undisposed::h4069f30e99a0b11d]
	<?>.wasm-function[leptos_reactive::scope::create_scope::h5e625713b546d5da]
	<?>.wasm-function[leptos_dom::mount_to::hd2c03519c91041c3]
	<?>.wasm-function[leptos_dom::mount_to_body::h791b05ecb2e8fb8f]
	<?>.wasm-function[test_ui::main::h2310ebba16fb5874]
	<?>.wasm-function[core::ops::function::FnOnce::call_once::h684953229061ec4b]
	<?>.wasm-function[std::sys_common::backtrace::__rust_begin_short_backtrace::h68ebcd09cf1acae6]
	<?>.wasm-function[std::rt::lang_start::{{closure}}::h03c05521b45f41b4]
	<?>.wasm-function[std::rt::lang_start_internal::hbecc6ff7763fb2f1]
	<?>.wasm-function[std::rt::lang_start::h9cdb9a905687b1d8]
	<?>.wasm-function[main]
	<?>.wasm-function[]
	wasm-stub
	__wbg_finalize_init (test-ui-d856fd919585e10.js:612)

Additional context
I would happily help to fix this, but at this moment I don't know where to look to fix this.
Thanks

Hello,
Thanks for your reply, I'm sorry if it was not clear in the first issue message, but this crashes are not only related to leptos as they happens with every other UI template (Vanilla, Yew, Leptos or Sycamore).
Do you have any advice regarding where I can look to debug or fix this ? Is this related to WebkitGtk ?
Thanks

Yew, leptos or sycamore are all using wasm-bindgen behind the scene so they all should have the same issue but are you sure 100% that vanilla is also suffering the same issue?

After verification, It's not happening on Vanilla. So this is related to wasm-bindgen right ?
Thanks for your time.

Same here : https://github.com/jrouaix/wasm_pbm
filled something here : https://bugs.webkit.org/show_bug.cgi?id=259441
I think it'll slow the adoption of full stack rusty things if the community don't handle this specific problem of WASM on Webkit on Linux.

I also get various crashes running WASM on Webkit on Linux.
for example: https://github.com/rust-lang/hashbrown/issues/194
Note: Everything work as expected with Chrome or Firefox.
Right now, it is quite impossible to use tauri on Linux because the WASM runtime is totally unstable...

Also uploaded a test application to reproduce the bug:
https://github.com/maurerdietmar/webkit-yew-bug


Dynamic configuration API documentation refactor

Reorganization of the Dynamic configuration API page.
This PR has:

[ x ] been self-reviewed.

@ektravel , could you please include some more details about the changes made in the PR description?


Tag StatisticalRethinking 2.0.2

@JuliaRegistrator register()

Registration pull request created: JuliaRegistries/General/8934
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:
git tag -a v2.0.2 -m "<description of version>" a6d1bfcaa08ae34d607a27221bad8b678e4c973c
git push origin v2.0.2


Limit backend events.js batch job to run only as many in parallel as there are connections available

#1798 part 2/3

not causing issues at this time, fix when sentry starts complaining again


allowing users to browse all data type specific solutions

The data types are:

proteomics
metabolomics
transcriptomics
cohort/clinical

need more resources, and controlled vocabulary for data types. might borrow things from the RDMtoolkit
A good example might be the #28


Using skipfc: true with resnet model doesn't appear to remove the fully connected layer

Hello. I'm trying to use the pretrained resnet152 model in torchvision.models . When I create the model using the line:
var resnet = torchvision.models.resnet152(skipfc: true);
I would expect the FC layer to be removed from the model. Is it accomplishing this in a different way than removing that layer? Is there another way I can accomplish removing that final layer from the resnet model?
Thanks for your help

I may have misunderstood, but I think that is the correct behavior.
In torchvision, the implementation of ResNet's forward is as follows:
    def _forward_impl(self, x: Tensor) -> Tensor:
        # See note [TorchScript super()]
        x = self.conv1(x)
        x = self.bn1(x)
        x = self.relu(x)
        x = self.maxpool(x)

        x = self.layer1(x)
        x = self.layer2(x)
        x = self.layer3(x)
        x = self.layer4(x)

        x = self.avgpool(x)
        x = torch.flatten(x, 1)
        x = self.fc(x)

        return x

IOW, the FC layer is always there. What 'skipfc' in TorchSharp does is ignore the FC layer when loading weights from a file, instead leaving the linear layer with the random weights that is its default. This can be useful when you just want to train the linear layer for a new categorization scenario and leave all the residual layers having learned what they have learned.

Okay gotcha that makes sense. So the FC layer isn't influenced by the weights, but is still changing the final shape. I'm trying to match up my model to what we currently use in pytorch. They are removing that fc layer at the end to extract the embeddings from images and I'm trying to see if I can match that exactly in my implementation.
Do you know if it's possible to easily remove that final layer from the resnet model? Similar to how it's done in pytorch with this line:
resnet152 = models.resnet152(pretrained=True)
resnet152 = torch.nn.Sequential(*(list(resnet152.children())[:-1]))

Technically, you should be able to do the same thing in TorchSharp, just with LINQ and a Take() call instead of the list slicing. Haven't tried it, myself, but it should work...

Okay I think I've got something along those lines now. I did also notice that there is a flatten layer that doesn't seem to be there on the pytorch resnet model. I tried removing both so it would have the same layers, but the output shape from executing that model is the same shape as the input tensor (1,3,224,224) whereas on pytorch it has the output shape of (1, 2048, 1, 1).  Here's what I had:
var path = @"C:\ModelWeightFiles\model_weights.dat";
var resnet = torchvision.models.resnet152();

resnet.load(path);
resnet.eval();

var model = torch.nn.Sequential();

foreach (var child in resnet.named_children().Take(9))
{
    model.add_module(child.name, child.module);
}

About the Flatten -- I've seen that in ResNet, too. Don't know why it's necessary. There are no weights or buffers, obviously, so it doesn't affect the state_dict

It appears looking again that it just returned the same exact tensor back.
var result= model.forward(inputTensor);

It appears looking again that it just returned the same exact tensor back.
var result= model.forward(inputTensor);

Okay, I'm not sure I know what you're saying here -- does it return the exact same tensor (i.e. the 'Handle' property is the same), or one with identical elements?

The handle property is different between the input and output tensor. But looking at the bytes property, both are identical. Do I need to define a new forward function for the new Sequential I created?

I think I've resolved this by using append() instead of add_module()


Make a new Android SDK for Casdoor based on Kotlin

The old SDK is hard to use and has been deprecated: https://github.com/casdoor/casdoor-android-sdk-old

@ziliangyu
/cc @xiaobeiswift


[Holistic] Extracting Coordinate to move a 3D avatar

Plugin Version or Commit ID
v.0.10.3
Unity Version
2021.3.11f1
Your Host OS
macOS Ventura M1
Target Platform
Android
Description
I want to use this plugin to animate a 3D avatar (.fbx format). The avatar already have all of its joints and landmark ready to go. I imported the avatar to the "Holistic" sample scene inside a new gameobject that I created called "Avatar". I also created a script inside this gameobject called "Animator.cs" that I will use to store the coordinate data from the holistic and use it to move my avatar.
Now the problem is, I can't find any reference to coordinate in the plugin. For example, in the "Holistic" scene, there's a gameObject hierarchy:

Annotable Screen

HolisticLandmarks Annotation

FaceLandmarkListWithIris Annotation

FaceLandmarkList Annotation

Point List Annotation

I opened some scripts that are attached to these gameObject (mainly "FaceLandmarkListAnnotation.cs") and it includes an array that contains numbered landmark of face (_connections). But try as I might, I can't extract any coordinate and print it on log from these list.
I also notice that there are lots of sphere gameObject that corresponds to each face landmark that is visible on the screen. I also notice that these sphere contains coordinate (standard unity coordinate on inspect window).
Is there any way to extract those coordinate? Can I just straight up attaching my 3D model to those sphere? Is my approach to this problem wrong? Please help me.
Code to Reproduce the issue
No response
Additional Context
No response

I'm wondering the same. I have the list of pose world landmarks, but these world gameobjects only have the position updated, and not the rotation, so when I move my hand, it works, but if I rotate it, it doesn't

That is because a holistic example builds on normalized landmarks.
To use for 3D purposes, you need to build our own library to use that
You can check on https://github.com/homuler/MediaPipeUnityPlugin/wiki/Installation-Guide


Add more info to error messages in log

My processing crashed with the following error:
2024-09-22 08:50:53 ERROR Thread-7 (process_file_list) [cli.process_file_list] Cannot load file containing pickled data when allow_pickle=False

Probably there is something wrong with the image I'm trying to load, but it would be convenient to know the filename.

Please use log_level = 'DEBUG'
then you will get a filename print out in the form: Chunk {c} starting to process {filename} before the pipeline.run(filename) is called


[Hexagon] Rework tvm.target.hexagon() interface

Make the tvm.target.hexagon() function take most options as keyword parameters. This will allow adding additional parameters without changing the interface.
No changes are required to existing code, except for changing positional parameters following the CPU version to keyword parameters, and updating the names of the keyword parameters:
  sim_args  -> sim_options,
  llvm_args -> llvm_options,

although the old names will be accepted for the time being.

cc @csullivan @mbs-octoml can you take a pass at this one

cc @zxybazh can you take a look at this one?


Extend config file locations to match the locations searched for the reqnroll runtime

🤔 What's changed?
Extension now searches for json config file in the following locations:

Project folder (already the case before)
Assembly directory
Two folders above assembly directory

⚡ What's your motivation?
#17
The reqnroll runtime searched these locations.
This meant that it was possible to have a correctly compiling and running build, but the extension would not be able to find the steps in the feature files.
🏷 What kind of change is this?

:zap: New feature (non-breaking change which adds new behaviour)

♻ Anything particular you want feedback on?
As far as I can see there are currently no test covering this behaviour.
Is this actually the case?
📋 Checklist:

[x] I've changed the behaviour of the code

[ ] I have added/updated tests to cover my changes.

@gasparnagy

Thx! I have made a few smaller comments.
Have you been able to manually check if the extension with this change finds the config file in the output folder?

Yes I managed to get the visual studio experimental instance working (thanks to the contributing guidelines) and confirmed the config file is correctly found.

This is great, thx. I forgot one small thing in my last review: Could you please add a line to the Improvements section of the CHANGELOG.md and add your github handle to the Contributors of this release section?

@gasparnagy Sure, updated.

@gasparnagy Thanks for approving. I'm unable to merge, given I don't have write access to the repo. Would you be able to do that for me?

@jdb0123 Yes, I can do the merge, I just wanted to wait for the green build and got a meeting in the meantime... 😎


Keep me signed in after browser close

Hi,
We are using Azure as IdP. When the browser is closed and reopened, you need to login again. Not great user experience. Is this created by design? Other services don't have this issues like gitlab or jenkins.
There are some exceptions like Opera browser on Windows.
Kind regards,

Yes, that's right.

Sorry for the delay, was on vacation.

Yes, that's right.

We don't enforce a re-authentication, that's managed by your identity provider (AzureAD in this case).  I think there's a setting on AzureAD that lets you stay logged in after restarting the browser.

Hey sorry, I was on vacation too.
Yes, there is an option in Azure and it is already enabled:
Azure Active Directory > Company branding > Configure > Advanced settings section > Show option to remain signed in > YES

And this on client side

Is it possible somehow app isn't trying to use persistent cookie stored on the disk, because other applications don't have this problem (gitlab, jenkins...)

Hi mlbiam, have you managed to see my previous message?


Run "PT+PT" with the class of PlainText

I have two const PlainText a and b and I would like to do a+b. As the class of PlainText only support the addition of PT and CT, I converted a and b to BigNumber with the conversion function. However, I met the following error:

that seems the conversion function only support non-const conversion. Can the conversion of const PlainText to BigNumber be supported some time in the future as well?

It is possible to support ipcl::PlainText + BigNumber or other unsigned integer types. We'll look into it. Thanks!


Strange problem with string resolver

Here the Java Code:
Graph graph = GraphBuilder.newBuilder().build();
        graph.connect(new Callback<Boolean>() {
            @Override
            public void on(Boolean isSucceed) {
                TaskResult result = Tasks.newTask()
                        .travelInWorld("0")
                        .travelInTime(System.currentTimeMillis() + "")
                        .createNode()
                        .setAttribute("name",Type.STRING,"Room")
                        .setAttribute("floor",Type.INT,"587")
                        .addToGlobalTimedIndex("idxRoom","name","floor")
                        .createNode()
                        .setAttribute("humidity",Type.INT,"587")
                        .setAttribute("temperature",Type.STRING,"18.2")
                        .setAttribute("wind", Type.DOUBLE,"44")
                        .setAttribute("identifier",Type.STRING,"anIdentifier")
                        .addToGlobalTimedIndex("idxWeather","identifier")
                        .executeSync(graph);

                if(result.exception() != null) {
                    result.exception().printStackTrace();
                }

                final long time = System.currentTimeMillis();

                graph.index(0, time, "idxWeather", new Callback<NodeIndex>() {
                    @Override
                    public void on(NodeIndex result) {
                        result.find(new Callback<Node[]>() {
                            @Override
                            public void on(Node[] result) {
                                System.out.println(Arrays.toString(result));
                            }
                        });
                    }
                });
                System.out.println(graph.resolver().hashToString(548027571));
                System.out.println(graph.resolver().hashToString(321701236));
            }
        });

Here my output:
[{"world":0,"time":1491940246250,"id":3,"548027571":587,"321701236":"18.2","wind":44.0,"identifier":"anIdentifier"}]
null
null

I don't have enough time to try to understand why there is the bug. Here some things that I tested:

If I delete the indexation of the first node, the bug disappear
if I remove one attribute of the second node, the bug disappear
If I change the Type of the attributes of the second node, the bug will still be there
the first node is not affected by the bug
If I modify the order of creation/indexation, the bug will be still there, on the same node
If I add an attribute to the first node, with the following code setAttribute("another",Type.INT,"8745"), this attribute will be "touched" by the bug. BUT, if I add an attribute with the following code: .setAttribute("number",Type.DOUBLE,"8.2"), the bug will not be present on the first node. (I changed the value/type to see if it changed something and nothing change)

thanks ludo I can now reproduce with your test.
I will fix this immediately

fixed in trunk, will be released in V7
explanation: bug in the rehash process of global shared dictionary


DLS: Add support for Terms Lookup Queries

Is your feature request related to a problem? Please describe.
Some users/customers report the need to use Term Lookup Queries (TLQ) with Document-level security.  This comes in handy if, for example, the access permissions for documents in an index are stored in a separate, second index. At the moment the Document-level security feature does not support TLQ and throws an error if TLQ is used as DLS query.
Describe the solution you'd like
DLS should support Term Lookup Queries. If the DLS query does not contain any Term Lookup Query, the current DLS code should be executed as before. If we detect a TLQ in the DLS query, we should treat it differently.
Describe alternatives you've considered
None.
Additional context
We are working on a solution for this and would like to contribute it. This issue is for tracking.

@davidlago This looks like a proposal not a feature request.


10917 add filters to category products

I want to merge this change because...

Impact

[ ] New migrations
[x] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[ ] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[x] The changes are tested
[x] GraphQL schema and type definitions are up to date
[x] Changes are mentioned in the changelog

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 2 committers have signed the CLA.:x: Cihan Karluk:x: ogunheperCihan Karluk seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Fix lower method invocation

Was getting the unauthorized scopes error (line 191) due to a GCP organizational mix-up (I think the script was trying to use "No org" instead of my org, perhaps that could also be fixed, though shouldn't really happen in the real world) and I noticed "c">Enter wasn't doing anything. This fixes that.

Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement
Learn more about why HashiCorp requires a CLA and what the CLA includes
Have you signed the CLA already but the status is still pending? Recheck it.


Improve cost model of partial query

cost reduction effect from projection affects some test result

cost reduction effect from projection affects some test result


No intellisense on linux Ubuntu

I get 0 intellisense from my NuGet package (LLVMSharp) after installing it or anything at all. Everything compiles, but no intellisense.

Any ideas? I have dotnetcore updated to latest, and using Ubuntu 18.01.
I'm also getting this when starting VSCode:

My .csproj:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.2</TargetFramework>
    <RootNamespace>llvm_sharp</RootNamespace>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="LLVMSharp" Version="5.0.0" />
  </ItemGroup>

</Project>

This might be related to https://github.com/OmniSharp/omnisharp-vscode/issues/2965. Could you try the workaround that is mentioned(downgrading the sdk)?
We are working on it and a fix will be out soon.

This might be related to OmniSharp/omnisharp-vscode#2965. Could you try the workaround that is mentioned(downgrading the sdk)?
We are working on it and a fix will be out soon.

Thanks for the quick fix! Very fast response, saved my day!


Typescript "cannot find name [Storage Type]" error.

I'm just getting to know Client Web Storage. Things work great — until I try to persist data by setting a value for the storage type, following the example in the documentation to a tee:
const todoStore = new ClientStore<ToDo>("todo", {
  $name: String,
  description: "No Description",
  complete: false
}, {
  type: INDEXEDDB, // <- "Cannot find name 'INDEXEDDB'" Typescript error
  version: 2,
  appName: "Test",
  idKeyName: "id",
  createdDateKeyName: "dateCreated",
  updatedDateKeyName: "dateUpdated",
});

"Cannot find name 'INDEXEDDB'." (This error appears with any storage type value, not just INDEXEDDB.) The context is a tiny Webpack + vanilla JS project.
I'd be grateful for any hint pointing me in the right direction.

Try
import {ClientStore, StorageType} from "client-web-storage";

const {INDEXEDDB} = StorageType;

interface ToDo {
  name: string;
  description: string;
  complete: boolean;
}

const todoStore = new ClientStore<ToDo>("todo", {
  $name: String,
  description: "No Description",
  complete: false
}, {
  type: INDEXEDDB,
  version: 2,
  appName: "Test",
  idKeyName: "id",
  createdDateKeyName: "dateCreated",
  updatedDateKeyName: "dateUpdated",
});


Not allowing images to use retina.js

Is there anyway to add some code to the javascript where if images that have a class of 'retina-disabled', retina.js will not search for @2x images?

Yep, @seanwalsh is correct.


Add definitions for js-cookie 2.0

Based on discussion at https://github.com/js-cookie/js-cookie/issues/50, the older jquery.cookie definitions will be kept separate.

@theodorejb Thanks mate!


Yi 1080p Home: IFUSY44*** FW: <IP_ADDRESS>_202007*

Hello, it's seems to me that, on my camera (details in the title), this hack doesn't works (i've tried with version 0.1.4 and 0.1.3). Unless i'm doing something wrong following the installatin process.

The most common problem is an incompatible SD card. Try another one.

Thanks for your feedback, i've tried first with a native Kingstone 8GB class 4, then i've tried with a 64GB SD, on wich i've made an unique 4GB FAT32 partition, same behaving for bouth cards. I'm wondering if i'm doying something wrong. Please, confirm that the following steps are correct:
1 - download the "y21ga_0.1.4.tgz" file
2 - copy the following folder/file to the empty SD root:
Factory
newbackup
yi-hack
lower_half_init.sh
3 - insert the SD into the camera (power disconnected), then power up the camera and wait (should i reset the camera first?)...
thanks a lot!

Is Factory renamed to Factory.done after the boot?

yes, after the boot, i've got the following file/folders in the root:
Factory.done
log
newbackup
record
yi-hack
lower_half_init.sh

Did you try to connect to the web site on port 80?

I'm stupid! sorry! indeed it's working on port 8080... thanks a lot for your support


What are the modifications to the files that are needed to enable the three layers on metatron-discovery maps ?

I wanted to use three layer map on metatron-discovery latest version 3.2.3 . Can anyone suggest me what are the files that are modified to enable that feature in "discovery-frontend" directory.

@kaviranga The shelf system used in the existing chart and the shelf system used in the map was very different. So I think it is not easy because it has a very complicated structure.
But if you want, I'll ask the developer to provide you with the information you need.

@kyungtaak Thank you , This is an awsome fact. I want that information from your developer(s) :100:


Set-secret-manager-only-region

With replication { automatic = true } it is not controllable where the secret will be created, and it will create a [global] secret, but throughout the project we use a specified zone, I believe this change is valid.
Many users may suffer from security restriction policies in their organizations.
Error: Error creating Secret: googleapi: Error 400: Constraint constraints/gcp.resourceLocations violated for [orgpolicy:projects/XXXXXXX] attempting to create a secret in [global]. For more information, see https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations.
DOC

Hello, is this change valid? If it is valid in this way, could you indicate a better way, if it does not have a good way, I will have to create a fork with this change.


Fix link to README broken in #937

The PyPI project description has a broken link because README.md was renamed to README.rst in #937 but the link was not updated.
cc @mark-edgeworth @madchutney

CI failure appears unrelated to this change.

@madchutney  - can this be merged in? I don't see any reason why not!

Looks like the change is not related to the CI failure, but this should be investigated...

@madchutney @mark-edgeworth The CI failure was unrelated and fixed in a recent commit to master.   I rebased with latest master and CI passes now.

This link is still broken.

This link is still broken.

On PyPI, the link is fixed in mbed-cli 1.10.4 (released Jun 9, 2020).  Older versions of the package will still show the broken link.


Ability to cleanly extend media definitions when subclassing an adapter

The discussion at https://github.com/wagtail/wagtail/pull/7094#issuecomment-827547708 shows a few iterations on extending one of the existing adapters supplied with Wagtail, on both the Python and Javascript side. This means appending the .js file containing the new code to the media definition on the parent, and the natural way to do that would be:
class ImageBlockAdapter(StructBlockAdapter):
    js_constructor = 'bakerydemo.blocks.ImageBlock'

    @cached_property
    def media(self):
        return super().media + forms.Media(js=[
            static('js/image-block.js')
        ])

but adding two media objects together like that doesn't guarantee ordering (because it performs more complex dependency resolution, and we haven't specified that StructBlockAdapter's media is a dependency of image-block.js). We ended up having to either repeat the parent's js, or poke inside its internal _js property.
The solution is probably to keep those definitions as plain lists for as long as possible, add a bit of (metaclass?) hackery so that we append to those lists on subclassing, and only turn them into Media objects at the point where telepath retrieves the media property.

Django has a nice-in-theory mechanism for inheritance when defining media through an inner Media class: https://docs.djangoproject.com/en/3.2/topics/forms/media/#extend. It would be nice to adopt that pattern or something close to it.
We can't use Django's implementation directly, for two reasons:

Wagtail's media definitions need to use a dynamic property so that we can use the versioned_static helper inside it without evaluating it on load (https://github.com/wagtail/wagtail/issues/5632); once a dynamic property is use, static media definitions and inheritance don't get a look in
The combined media definition suffers from the same non-deterministic ordering issues as described above:

(on Django 3.0.14)
>>> from django.forms import Media, Widget
>>> class ChooserWidget(Widget):
...     class Media:
...         js = ['jquery.js', 'chooser.js']
...
>>> class ImageChooserWidget(ChooserWidget):
...     class Media:
...         js = ['image-chooser.js']
...
>>> w = ImageChooserWidget()
>>> w.media
Media(css={}, js=['jquery.js', 'image-chooser.js', 'chooser.js'])

We might expect the ChooserWidget -> ImageChooserWidget inheritance to imply that image-chooser.js depends on chooser.js, but it doesn't - it just uses the ordinary 'merge' operation on the two media objects, which requires both sides to specify their dependencies explicitly. In other words, ImageChooserWidget's media has to explicitly include chooser.js, which rules out the kind of 'black box' treatment of ChooserWidget that telepath's way of thinking really demands: "ImageChooserWidget's media consists of whatever ChooserWidget needs, plus image-chooser.js".
I think this is a misfeature on Django's side: a naive merge algorithm that just repeatedly runs "if item not in result: result.append(item)" would be better on all counts except dubious edge cases like [A, B, D] + [A, C, D] having to equal [A, B, C, D] and not [A, B, D, C]. Given that telepath doesn't have the obligation that Django has to preserve backward compatibility here, I reckon that reinventing the wheel and rolling our own alternative is the right technical approach :-)

Following the changes in #4, where the favoured way of including media is now to call add_media within the pack / telepath_pack method, we're no longer reliant on inheritance rules, and there's little reason for anyone to work with Media objects directly any more. Right now we still use them as our canonical representation within add_media, so it's still possible to get unintuitive results like the above from repeated calls to add_media - but that could now be replaced with the simpler append-based rule.


Feature request: create PPA.

Would it be possible to create a PPA for Caddy? As a web server, getting security releases quickly is very important, and a PPA would help with that by integrating caddy with the system's package manager.

Someone mentioned that he was working on it on Gitter a while ago, but don't know who anymore and what resulted out of it...
Maybe someone else remembers?

Hello @skorokithakis and @DenBeke,
the PPA is located here :smile: --> https://launchpad.net/~hduran-8/+archive/ubuntu/caddy

Fantastic, thank you!

what add-ons are included?

I don't know @davidak

Packaging Caddy for distros can be discussed at https://forum.caddyserver.com now!

@elcore need update 0.10.2 now :3

@elcore need update 0.10.2 now :3

Sorry, I am not responsible for the PPA

Just as a note, the PPA hasn't been updated in aeons. (It was last updated 2½ years ago, in Jan 2017.)


What's the difference between "samples_per_epoch" and "steps_per_epoch"???

Hello everyone, I was confused by this problem for several days...
My question is that why the training time has such massive difference between that I set the batch_size to be "1" and "20" for my generator.
If I set the batch_size to be 1, the training time of 1 epoch is approximately 180 ~ 200 sec.
If I set the batch_size to be 20, the training time of 1 epoch is approximately 3000 ~ 3200 sec.
However, this horrible difference between these training times seems to be abnormal..., since it should be the reversed result:
batch_size = 1, training time -> 3000 ~ 3200 sec.
batch_size = 20, training time -> 180 ~ 200 sec.
The input to my generator is not the file path, but the numpy arrays which are already loaded into the
memory via calling "np.load()".
So I think the I/O trade-off issue doesn't exist.
I'm using Keras-2.0.3 and my backend is tensorflow-gpu 1.0.1
I have seen the update of this merged PR,
but it seems that this change won't affect anything at all. (the usage is just the same with original one)
The link here is the gist of my self-defined generator and the part of my fit_generator.
Could somebody help me explain this problem...???
Thank you so much...Orz

This forum is not for discussion and is for issues.  Please remove and post in the forum.

Sorry for that, I will post in the forum.


Title:  Drawing Game In js

Is your feature request related to a problem? Please describe.
I want to add a drawing game in js
Describe the solution you'd like.
I already build this project.
Describe alternatives you've considered.
kindly assign this work to me .
Add any other context or screenshots about the feature request here.

No response

@Poushik11 Thank you for providing your insight but it is not required as of now.


feat: do not store properties decorated with @Ignore() decorator

New decorator allows for entities to have properties that are not stored.

One integration test
Documentation

I'll do my best to add these to the branch.

Great work! @danieleisenhardt

@all-contributors add @danieleisenhardt for code


Installation waits for user input

Hi,
I made a comment on the corresponding commit but I'm not sure how comments work here so I thought I'd make a proper issue.
When I try to install a plugin, the plugin manager opens a Python shell in the terminal from which I opened the plugin manager. That shell allows input like a normal python shell and is blocking the execution. Closing the shell using Ctrl+D results in the plugin manager showing the successful installation dialog without actually completing the installation. Specifically it seems to be waiting on sp.stdout.readline().
I traced the issue to a 3-year old commit, where you changed the do_subprocess() function in the file manager.py. In the creation of the sub-process, you set the shell flag to True. Disabling it results in what I assume is the intended behavior: the output of pip is streamed to the main window and the package installation is successfully completed.
I'm not sure why the shell=True is present, a cursory glance at the Python documentation doesn't seem to indicate that it's necessary here. But I've never had to work with sub-processes so I'm not sure.
I'm running Python 3.11.7 and PyMoDaq 4.1.1
I'm on Arch (btw)
I can run some tests if necessary.
Thanks in advance,
Semptum

do you want to do a PR to modify this, I'll then try it on my machine?

Sure thing, thanks

your PR has been merged and solves this issue. I'm closing it


Image upload with GPT 4o

It would be great to be able to utilize gpt-4o's image upload feature to include our bettergpt conversations.

https://github.com/animalnots/BetterChatGPT-VISION/releases


Incorrect username or cardNumber in RechargeMoney class.

Even if I put the correct username and cardNumber the program the program is giving error.

done


Initial implementation of labs

This PR implements the first four lab exercises for Module 1 of Flink academy.

Hello @ness-RazvanFilip, pls see my comments

Hi @ness-PavelKhokhlov , I have updated my code, please have another look.


Respect CancellationToken in HubConnection.StartAsync()

Summary of the changes:
HubConnection.StartAsync() can be cancelled now even after network operations have started. CancellationToken passed through to HttpConnection and transports (LongPolling, ServerSentEvents, WebSocket).
Addresses #10059
If possible, please don't squash the commits of the PR so that both our names remain in the commit history :)

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

@danielloczi Can you:

Remove all of the CancellationToken.None from all of the tests where it was added
use the new C# syntax = default instead of default(CancellationToken)

Yes, will be there within a few mins!

@davidfowl CancellationToken.None was removed from all unit tests (they were reverted to their original versions). We're using the "Cancellation cancellationToken = default" syntax in ITransport.StartAsync() and all locations where this interface is implemented (the 3 transports and the 2 test files).

If possible, please don't squash the commits of the PR so that both our names remain in the commit history

Yep, we generally try to merge commit external PRs. We ❤ having external contributors in the commit history! (Reminder to @BrennanConroy and @halter73 who will probably be merging this ;P)

Is there anything we can do to fix that failing test?
(to be honest, can't find the reason why it throws error: "System.ComponentModel.Win32Exception : The credentials supplied to the package were not recognized")

It's not related to the change :). We have some flaky tests and you just got hit with it. I'll handle it and restart the pipeline.

@aspnet-hello triage https://dev.azure.com/dnceng/public/_build/results?buildId=185664

This comment was made automatically. If there is a problem contact<EMAIL_ADDRESS>I've triaged the above build. I've created/commented on the following issue(s)
https://github.com/aspnet/AspNetCore-Internal/issues/1950

@aspnet-hello triage https://dev.azure.com/dnceng/public/_build/results?buildId=185665

This comment was made automatically. If there is a problem contact<EMAIL_ADDRESS>I've triaged the above build. I've created/commented on the following issue(s)
https://github.com/aspnet/AspNetCore-Internal/issues/2502

@danielloczi I think we can merge this after https://github.com/aspnet/AspNetCore/pull/10140#discussion_r283056511 is addressed.

Here's an issue to track adding tests: https://github.com/aspnet/AspNetCore/issues/10432

Thanks @danielloczi!

It was a team work together with @BalintFarkas! Thanks!

@halter73 If I see correctly, our commits were squashed after all, so I was removed from the list of authors :( Is there some way to add them un-squashed, or somehow add me as author, too? Just for the sweet glory :) Thanks!!

Sorry about that @BalintFarkas . We generally merge external contributions but it looked like this got squashed. I don't think it's really possible to unsquash...

alternatively, I'd love to help out by creating the unit tests for this scenario, as tracked in this issue: #10432, and get the coveted contributorship that way

That would certainly be OK!

Sorry @BalintFarkas! Totally my fault. I'll try not to let it happen it again.

No problem - I'll get to work on the unit tests! :)


Improve the README.md documentation

TODO
Improve the README.md documentation to:

Better describe/position the project
Add some additional commands to track ArgoCD applications
Include a prerequisites section
etc

Fixed.


"authenticator" and "authorizer" blueprints

This allows the user to run e.g. ember generate authenticator custom to generate a app/authenticators/custom.js file.

Nice! Can you add a generator for custom sessions as well? Also please use 2 spaces for indentation.

Thought I had used two spaces... I'll have another look. I haven't used
custom sessions yet so I'm not sure how they should look like.

@marcoow I've adjusted the indentation and added a "session-store" blueprint. I haven't found any documentation on using a "curstom session" so I assumed you actually meant a "custom store".

Having a generator for stores is nice but can you rename that to just "store" and add another one for generating a custom session as well?

@marcoow I don't think using "store" is a good idea, because "store" is already used by Ember Data and we shouldn't introduce potential conflicts at that point.

Yes, but isn't the generator already namespaced by the addon name?

Nope, neither the command (ember generate session-store custom) nor the generated file (app/session-stores/custom.js) are prefixed in any way. IMHO that is not a bad thing for authorizers and authenticators, but for stores we should prevent any naming conflicts.

OK, makes sense

@marcoow I've added the "session" blueprint too

:+1:

cool, thanks!


Use Last Commit Hash to Identify Image

It would be really useful to expose the commit hash that a container points to. That would allow identifying at a glance how outdated an image is, and knowing if its worth deploying the new version, or not.

this is exactly the current behaviour when RelatedRepositories is not used


feat(tab-bar): Add component

Fixes #151
MDC Web #3386 fixes the issue where activating an already-activated tab will deactivate it.
Changes in Tab:

update previousIndicatorClientRect from state (passed into the adapter) instead of from props
add activate/deactivate methods for TabBar to call
add custom event details to click event
remove isIconIndicator prop because of redundancy

Changes in TabScroller:

set the style of scroll content and scroll area from state

Still writing tests for tab bar but I figured the rest of it can get reviewed in the meantime

Codecov Report

Merging #229 into master will decrease coverage by 0.39%.
The diff coverage is 70.58%.

@@            Coverage Diff            @@
##           master     #229     +/-   ##
=========================================
- Coverage   98.86%   98.46%   -0.4%
=========================================
  Files          23       23
  Lines         969      980     +11
  Branches       98      100      +2
=========================================
+ Hits          958      965      +7
- Misses         11       15      +4

Impacted Files
Coverage Δ

packages/tab-scroller/index.js
100% <100%> (ø)
:arrow_up:

packages/tab/index.js
92.06% <66.66%> (-6.02%)
:arrow_down:

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 fedf138...773c89e. Read the comment docs.

Commit f03f897 depends on MDCW #3394


ci: verify we have something to deploy before deploying

Signed-off-by: Tomer Figenblat<EMAIL_ADDRESS>

I wonder why CI is not running for my user...

sometimes the actions runners just get stuck


Model with field named 'instance' does not have the instance field in the history table

Hi,
I am using django-simple-history==1.8.1 with python 3.4.2 and Django==1.9.4
I had a model with a field named 'instance' and set-up a history table as per the documentation. All other fields from that model appeared as expected apart from the instance field. When I renamed the field to 'milestone_instance' and did a make migrations the field was correctly added to the model and history table on the database.
Here are some extracts from the migrations directory
0001_initial.py
instance is in the souce model
operations = [
migrations.CreateModel(
name='ProjectMilestone',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('instance', models.PositiveSmallIntegerField(default=1, help_text='...')),
('iteration', models.PositiveSmallIntegerField(default=1, help_text='...')),
('status', models. ....
0005_...py
Note that instance is missing from the migration to create the history table
operations = [
migrations.CreateModel(
name='HistoricalProjectMilestone',
fields=[
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')),
('iteration', models.PositiveSmallIntegerField(default=1, help_text='...')),
('status', models.CharField ....
0008_...py
Changing the name in the source model from 'instance' to 'milestone_instance' causes the feild to be added to the history table
operations = [
...
migrations.RenameField(
model_name='projectmilestone',
old_name='instance',
new_name='milestone_instance',
),
...
migrations.AddField(
model_name='historicalprojectmilestone',
name='milestone_instance',
field=models.PositiveSmallIntegerField(default=1, help_text='Which (planned) instance of a milestone is this, e.g. RS-A or RS-B. Milestone instances are a sign of the process working'),
),
Therefore I think that the migration generation for the history table does not work if the source model field is called 'instance'.
I do not need a fix for this as I have renamed the field but thought I had better let you know.

Hi @nicolasrimmer, I'm sorry you had to go through so much before finding a way that things worked for you. I don't know if there is a good way around the issue... Maybe if we had a get_instance() function you could pass historical instances to, instead of having a property directly on the instance. At minimum I think this should be documented as a common issue, or a note in the documentation on registering a model with django-simple-history. Thanks for opening the issue!

Is there a workaround for this issue? Trying to incorporate Django Simple History into a Project that already has a Model named 'Instance' that has a Foreign Key relation with a number of Models.

Wrote a wrapper around HistoricalRecord and SimpleHistoryAdmin to get past this.


💾 Member Events

We want to store historical events related to members so that we can visualise this data in the admin. This issue focuses on the data side of things!
Tasks

[x] Newsletter subscription status changes

[x] DB Table
[x] Model
[x] Event capturing
[x] Aggregate query

[x] Paid subscription changes

[x] DB Table
[x] Model
[x] Event capturing
[x] Aggregate query

[x] Status changes

[x] DB Table
[x] Model
[x] Addition of the 'comped' status
[x] Event capturing
[x] Aggregate query

[x] Email address changes

[x] DB Table
[x] Model
[x] Event capturing

[x] Logins

[x] DB Table
[x] Model
[x] Event capturing

[x] Payments

[x] DB Table
[x] Model
[x] Aggregate query

[x] Event Repository

[x] Member timeline
[x] Global timeline
[x] Subscriptions over time
[x] Gross volume over time
[x] MRR over time

This has been completed in all of the above linked PR's


[swift-4.0-branch] [stdlib] Use minimal bits for stride for indices in String.UTF8View

Fixes rdar://33276845

@swift-ci Please test

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 6117e974c8c513eedb9a000f7a3684c1537257a1
Test requested by - @dabrahams

@shahmishal What happened here?  Was the failure because the branch got deleted?

@dabrahams Yes


Can travis download precompiled C libs from somewhere?

I tried this before, but failed for some reason, can't remember why exactly. But you're right this must be done. Test time is way too long...

@ljubobratovicrelja
a) just compile them for yourself and store them somewhere
b) use the caching feature at Travis

use the caching feature at Travis

Awesome, thanks!


Implement a dynamic reload mechanism for Besu plugins.

PR description
Changes

Added reloadConfiguration method in plugin-api.
Added admin_reloadPlugin RPC endpoint.
if the first parameter is specified the API will attempt to reload the individual plugin configuration if found in the map.
if no parameter is specified the API will attempt to reload all plugins configurations.
Added method in BesuPluginContextImpl to retrieve a map of named plugins.

TODO

add unit tests to cover new methods and test the new RPC API endpoint.

Signed-off-by: Abdelhamid Bakhta<EMAIL_ADDRESS>Fixed Issue(s)

fixes BESU-162

Is there complexity around reloading the encrypted-storage plugin? I.e. do all threads in besu need to stop before the plugin is reloaded?

I'm somewhat confused about this - we don't, as far as I know, have any built-in way to change a plugin's configuration at runtime (the only config options we provide are CLI args), so why do we need to have plugins reload their config when it won't have changed?  If plugins have to provide their own way to update their config, why wouldn't they just automatically reload when it changes?
I'm guessing I'm just missing some context but it's probably worth adding that info to the PR description for the historical record (particularly for when someone tries to document this).

Is there complexity around reloading the encrypted-storage plugin? I.e. do all threads in besu need to stop before the plugin is reloaded?

In the lifecycle  we had in mind you can call multiple times reload method between start and stop. The idea is to do this operation on the fly without stopping the plugin. Also this operation does not make sense for all plugins. For instance i think the encrypted-storage might be out of scope for the reloading.

I'm somewhat confused about this - we don't, as far as I know, have any built-in way to change a plugin's configuration at runtime (the only config options we provide are CLI args), so why do we need to have plugins reload their config when it won't have changed? If plugins have to provide their own way to update their config, why wouldn't they just automatically reload when it changes?
I'm guessing I'm just missing some context but it's probably worth adding that info to the PR description for the historical record (particularly for when someone tries to document this).
Agreed, the description does not provide enough context. So we have some users using Eventeum and they are not happy with it because they have to add a MongoDB instance into their infrastructure. It is an additional component to maintain and to administrate. Consequently we are extending our event stream plugin to add an underlying persistent DB using the KeyValueStorageFactory provided by Besu services exposed to plugins. One feature they are using is the possibility to define the schema of smart contract events using configuration files that describe the fields of the smart contract event(indexed or not, type of the field,...). The location of this schema-mapping file is passed through CLI but then we load the content in memory and we do the parsing only once for performance reasons. We don't necessarily want to poll the file to check if the content has changed because it is only done through a manual operation from the users. The user currently has to stop Besu nodes in order to re-apply the new schema when they want to add/update smart contract events. They want to be able to do this operation on the fly through a manual process, hence the new RPC endpoint. I hope it makes the need of this PR more clear. Happy to discuss about it more if you still have concerns with it.

Thanks for the context.  I can see how a reload trigger would be useful there.  To me it does sound like it should just be a feature of the specific plugin, not a change to the plugin lifecycle.  Mostly I just think it would be a better user experience to have a reload API specific to the plugin - especially as in the future plugins might have multiple things they could reload or other reload options etc.
I'm not strongly opinionated on that and don't have all the background. I can see that multiple plugins might want to reload and this approach would work for that, so I'm happy to go along with whatever you decide.

Thanks for the context. I can see how a reload trigger would be useful there. To me it does sound like it should just be a feature of the specific plugin, not a change to the plugin lifecycle. Mostly I just think it would be a better user experience to have a reload API specific to the plugin - especially as in the future plugins might have multiple things they could reload or other reload options etc.
I'm not strongly opinionated on that and don't have all the background. I can see that multiple plugins might want to reload and this approach would work for that, so I'm happy to go along with whatever you decide.

I think i will wait after until  after holidays so we have the opportunity to discuss more about the next steps.