win-11 low on disk space local Temp directory.

Type of Request
bug
Infrastructure Environment
LUCI, Github, Cocoon scheduler, Autosubmit, etc...
What is happening?
win-11 low on disk space on local Temp directory.

Steps to reproduce
Step 1:
Step 2:
..
Step n:
Expected results
I expect to see X when Y is finished.

Removing old files and directories local Temp directory to clear the error.


(FSM)Handle a history of inputs to FSMs

When we want to test output of FSM, we sometimes want to build an expectation from a history of inputs.
E.g., Suppose we want to test a StringBuilder, internal state is I only, but the output of build (toString()) is determined by the inputs by the time the method is called (a history).
We want a way to let users model/represent this.

done


Apple Pay is not working on iOS (Apple Pay from the Demo not working either)

Platform

[ ] Web
[x] iOS
[ ] Android

Describe the bug
I'm currently working on application that needed Apple Pay. I've followed all the instructions including the ones from Stripe themselves (Certificates, Adding Domains, etc). And still the Apple Pay is not working. I've also tested the Demo website on our iPhone and no, it's also not working. So, my theory is there's something wrong with the plugin? Can someone else confirm that the demo for Apple Pay is working?
Expected behavior
The app should allow users to click the create and present button for the ApplePay
Screenshots

Here's from Apple (To confirm that apple pay is enabled)
Here's from the demo

Having the same issue with native iOS, works fine on iOS 16 simulator but Apple review team keeps rejecting the app stating:
We discovered one or more bugs in your app. Specifically, no action occurred when we tapped Apple Pay button.
Review device details:
- Device type: iPhone
- OS version: iOS 17.0.3

I've added catch() with alerts to all isAvailable(), create() and `present()' methods but none of them get triggered suggesting a success flow with unsuccessful operation.
P.S: Followed all steps including merchant ID for Apple Pay along with including it in create().

Also having the same issue. Am using createpayment Sheet. Apple Pay is set up and configured, so is PayPal. But the sheet appears only with card payment details.

Platform

[ ]  Web
[x]  iOS
[ ]  Android

Describe the bug I'm currently working on application that needed Apple Pay. I've followed all the instructions including the ones from Stripe themselves (Certificates, Adding Domains, etc). And still the Apple Pay is not working. I've also tested the Demo website on our iPhone and no, it's also not working. So, my theory is there's something wrong with the plugin? Can someone else confirm that the demo for Apple Pay is working?
Expected behavior The app should allow users to click the create and present button for the ApplePay
Screenshots
Here's from Apple (To confirm that apple pay is enabled)	Here's from the demo

I tried it the last time in september and it was working, now it doesn't work anymore and i dont know if it's a problem of ios 17 or if something changed in the meanwhile and i didnt update my code
i'm gettin this error: in xcode

or
this in my app

can you show me what kind of error are you getting?

I tried it the last time in september and it was working, now it doesn't work anymore and i dont know if it's a problem of ios 17 or if something changed in the meanwhile and i didnt update my code i'm gettin this error: in xcode
or this in my app
can you show me what kind of error are you getting?

Funnily enough, we don't even get to see the create button of this library's demo. As you can see in the Apple's demo screenshot, my sandbox apple pay is working (not just that, we tried using other online stores that accepts apple pay and it works), but not the demo. So my guess is there's an issue in the library (Though I'm always open for corrections)

@polidario @ciccilleju @miraclemaker
I was having the same issues. I dived into the Swift code in the plugin and it looks like iOS may have changed how it handles the window rootView. I made the following changes to ApplePayExecutor.swift and it has resolved the issue. Will try make a PR when I can, however I'm not super familiar with Swift, so not sure if my changes will break something elsewhere, but it seems to be working fine.
Added to the top of the file below the imports.
extension UIApplication {     public var firstKeyWindow: UIWindow? {         return UIApplication.shared.connectedScenes             .compactMap { $0 as? UIWindowScene }             .filter { $0.activationState == .foregroundActive }             .first?.windows             .first(where: \.isKeyWindow)     } }
Changed the following line of code in the presentApplePay function.
if let rootViewController = self.plugin?.getRootVC() { to if let rootViewController = UIApplication.shared.firstKeyWindow?.rootViewController {
Hope this helps!

Sorry to keep you waiting. Soon I will address this issue.


Add Fancy Text Extension

Description
The fastest fancy text generator for macOS. Turn your normal text into fancy text!
Some examples:

𝚂𝚝𝚊𝚢 𝚒𝚗 𝚝𝚑𝚎 𝚏𝚕𝚘𝚠
𝕾𝖙𝖆𝖞 𝖎𝖓 𝖙𝖍𝖊 𝖋𝖑𝖔𝖜
S̶t̶̶a̶y̶ i̶n̶ t̶h̶e̶ f̶l̶o̶w̶
𝒮𝓉𝒶𝓎 𝒾𝓃 𝓉𝒽ℯ 𝒻𝓁ℴ𝓌

This extension converts your text by using pseudofonts made with unicode characters.
Screencast
https://github.com/user-attachments/assets/4743124b-1f75-40cf-a262-1a8295b06bd0
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Hi 👋
We already have this in the store, could you check this one out: https://www.raycast.com/koinzhang/text-decorator


can't find  lib

./bin/rcg_player: error while loading shared libraries: libboost_program_options.so.1.58.0: cannot open shared object file: No such file or directory
and  I do this:
d@d:~/boost_1_46_1/stage/lib$ sudo  ln  -s  libboost_program_options.so  /usr/lib/
but no use
how can i slove it?

Hi, please try to run ./build.sh first to compile it on your own machine.

You should also install the dependencies:
libqt4-dev
qt4-qmake
libboost-all-dev


Allow inline call to a specific method from a specific contract

It would be really handy to make an inline call to a specific method from a specific contract.
A possible command would be something in the fashion of:
eth <contract> <method> <args>

To be able to call a contract method we'll require the contract's ABI as well. So a new parameter will be required (the ABI file) to properly encode the method call.
With that in mind, we can create two different commands that will solve different problems, and combine them to solve this particular issue. Thus, the commands will be:

one for encode the ABI, e.g.:

eth encode Contract.abi 'myMethod(1,2)'

the other one for sending the transaction, e.g.:

eth send --data <encodedABI> <contractAddress> <pk>

With that we can combine both commands:
eth send --data `eth encode Contract.abi 'myMethod(1,2)'` 0x123... 0x444...


format error

With current master:
mount.c: In function ‘main’:
mount.c:141:9: warning: too many arguments for format [-Wformat-extra-args]
         snprintf(prompt, strlen(containerimage) + strlen(mountpoint) + 15, "Singularity/%s> ", containername, mountpoint);
         ^

Oops, darn. Again in one of my hasty changes to fix on Debian and wanting to get to sleep. I'll fix ASAP.

Fixed, thanks!


[✨] Support complex nested forms

Is your feature request related to a problem?
As of Qwik 0.19.3 there isn't a way to submit and validate complex nested form data as seen below.
export const useAction = globalAction$(
  async (formData, ctx) => {
    console.log(formData);
    /*
    {
      todo: [
        { title: 'Wash clothes' },
        { title: 'Buy Food', desc: 'Apple, banana' },
      ];
    }
    */
  },
  zod$({
    todo: z.array(
      z.object({
        title: z.string(),
        desc: z.string().optional(),
      }),
    ),
  }),
);

Describe the solution you'd like
{[
  { title: 'Wash clothes' },
  { title: 'Buy Food', desc: 'Apple, banana' },
].map((todo, i) => {
  <>
    <input type="text" name={`todo.${i}.title`} value={todo.title} />
    <input type="text" name={`todo.${i}.desc`} value={todo.desc} />
  </>;
})}

Describe alternatives you've considered
{[
  { title: 'Wash clothes' },
  { title: 'Buy Food', desc: 'Apple, banana' },
].map((todo, i) => {
  <>
    <input type="text" name={`todo[${i}].title`} value={todo.title} />
    <input type="text" name={`todo[${i}].desc`} value={todo.desc} />
  </>;
})}

Additional context
No response

@adamdbradley this will be solved by the forms solution you're working on right?


[BUG] Wrong offsets?

Hi i think we need to update the offsets
This help?
{
"OffsetVersion": "13.10.1",
"GameOffsets": {
"Manager": "0x210ddc8",
"MapCount": "0x48",
"MapRoot": "0x40",
"MapNodeNetId": "0x20",
"MapNodeObject": "0x28"
},
"ObjectOffsets": {
"ID": "0x10",
"NetworkID": "0xc8",
"Team": "0x3C",
"DisplayName": "0x60",
"DisplayNameLength": "0x70",
"Pos": "0x280",
"Mana": "0x340",
"MaxMana": "0x358",
"Health": "0x1068",
"MaxHealth": "0x1080",
"CurrentGold": "0x2148",
"GoldTotal": "0x2160",
"EXP": "0x4050",
"Level": "0x4038",
"Name": "0x38D0",
"NameLength": "0x38E0"
},
"FileVersion": "1.0"
}

NO :(

Added new offsets, should work as intended now.

Still not working, here is the log
Log-2023-05-25-15-21.log

We have a tournament tomorrow, would be really helpful if we had a stable version for this where it automatically updates the offsets. I'm having the same issue with the new offsets created.

It looks like it might have something to do with this:
Time: 2023.05.26-08:56
Description: Error getting value from 'blueGold' on 'LeagueBroadcast.Ingame.State.StateData'.

@sdomi4 it works! thank you man :D just update your PR and I think we are golden

Updated the offsets to fix, should auto-update if I understood how it works correctly

that's farsight.json offset right?

Yeah that's correct @sod101316, its that file that needs updating every new League of Legends patch.

Where can I get the latest offset? Offsets in native-farsight-module have different contents.

Anyone have a solution? Because on my side the offsets have not been updated and nothing works... We have a tournament tomorrow...

@sdomi4  hello, do u have new offset? app crash when im join ingame


Automatically fix mailmap?

When running the utility, I see errors like:
[ERROR] Please add a .mailmap entry for: John Doe<EMAIL_ADDRESS>I wonder if it would be possible to support a --fix parameter so that the current mailmap gets automatically updated.

Maybe partial fix that adds all missing git names for a given email?

I think the complexity of doing this vs the benefits makes it not worth it.


Htdemucs errors out on youtube videos with special characters in their names

Youtube Videos with special characters in their titles error out on track separation with htdemucs, as below:
(.venv) F:\UltraSinger>UltraSinger.py -i https://www.youtube.com/watch?v=FoV8lkAa_rM
The torchaudio backend is switched to 'soundfile'. Note that 'sox_io' is not supported on Windows.
The torchaudio backend is switched to 'soundfile'. Note that 'sox_io' is not supported on Windows.
[UltraSinger] Using cuda GPU.
[UltraSinger] full automatic mode
[youtube] Extracting URL: https://www.youtube.com/watch?v=FoV8lkAa_rM
[youtube] FoV8lkAa_rM: Downloading webpage
[youtube] FoV8lkAa_rM: Downloading android player API JSON
[UltraSinger] Creating output folder. -> F:\UltraSinger\output\Căsuța noastră
[UltraSinger] Downloading Audio
[youtube] Extracting URL: https://www.youtube.com/watch?v=FoV8lkAa_rM
[youtube] FoV8lkAa_rM: Downloading webpage
[youtube] FoV8lkAa_rM: Downloading android player API JSON
[info] FoV8lkAa_rM: Downloading 1 format(s): 251
[dashsegments] Total fragments: 1
[download] Destination: F:\UltraSinger\output\Căsuța noastră\Căsuța noastră
[download] 100% of    2.42MiB in 00:00:00 at 44.19MiB/s
[ExtractAudio] Destination: F:\UltraSinger\output\Căsuța noastră\Căsuța noastră.mp3
Deleting original file F:\UltraSinger\output\Căsuța noastră\Căsuța noastră (pass -k to keep)
[UltraSinger] Downloading Video
[youtube] Extracting URL: https://www.youtube.com/watch?v=FoV8lkAa_rM
[youtube] FoV8lkAa_rM: Downloading webpage
[youtube] FoV8lkAa_rM: Downloading android player API JSON
[info] FoV8lkAa_rM: Downloading 1 format(s): 137+140
[dashsegments] Total fragments: 2
[download] Destination: F:\UltraSinger\output\Căsuța noastră\Căsuța noastră.f137.mp4
[download] 100% of   10.77MiB in 00:00:00 at 26.65MiB/s
[dashsegments] Total fragments: 1
[download] Destination: F:\UltraSinger\output\Căsuța noastră\Căsuța noastră.f140.m4a
[download] 100% of    2.36MiB in 00:00:00 at 42.20MiB/s
[Merger] Merging formats into "F:\UltraSinger\output\Căsuța noastră\Căsuța noastră.mp4"
Deleting original file F:\UltraSinger\output\Căsuța noastră\Căsuța noastră.f137.mp4 (pass -k to keep)
Deleting original file F:\UltraSinger\output\Căsuța noastră\Căsuța noastră.f140.m4a (pass -k to keep)
[UltraSinger] Downloading thumbnail
[youtube] Extracting URL: https://www.youtube.com/watch?v=FoV8lkAa_rM
[youtube] FoV8lkAa_rM: Downloading webpage
[youtube] FoV8lkAa_rM: Downloading android player API JSON
[UltraSinger] Creating output folder. -> F:\UltraSinger\output\Căsuța noastră\cache
[UltraSinger] Separating vocals from audio with demucs and cuda as worker.
Important: the default model was recently changed to htdemucs the latest Hybrid Transformer Demucs model. In some cases, this model can actually perform worse than previous models. To get back the old default model use -n mdx_extra_q.
Selected model is a bag of 1 models. You will see that many progress bars per track.
Separated tracks will be stored in F:\UltraSinger\separated\htdemucs
File F:\UltraSinger\output\Casu?a noastra\Casu?a noastra.mp3 does not exist. If the path contains spaces, please try again after surrounding the entire path with quotes "".
[UltraSinger] Converting audio for AI
Traceback (most recent call last):
File "F:\UltraSinger\UltraSinger.py", line 785, in
main(sys.argv[1:])
File "F:\UltraSinger\UltraSinger.py", line 711, in main
run()
File "F:\UltraSinger\UltraSinger.py", line 299, in run
audio_separation_path = separate_vocal_from_audio(
File "F:\UltraSinger\UltraSinger.py", line 427, in separate_vocal_from_audio
convert_audio_to_mono_wav(vocals_path, settings.mono_audio_path)
File "F:\UltraSinger\src\modules\Audio\convert_audio.py", line 15, in convert_audio_to_mono_wav
sound = AudioSegment.from_wav(input_file)
File "F:\UltraSinger.venv\lib\site-packages\pydub\audio_segment.py", line 808, in from_wav
return cls.from_file(file, 'wav', parameters=parameters)
File "F:\UltraSinger.venv\lib\site-packages\pydub\audio_segment.py", line 651, in from_file
file, close_file = _fd_or_path_or_tempfile(file, 'rb', tempfile=False)
File "F:\UltraSinger.venv\lib\site-packages\pydub\utils.py", line 60, in _fd_or_path_or_tempfile
fd = open(fd, mode=mode)
FileNotFoundError: [Errno 2] No such file or directory: 'F:\UltraSinger\output\Căsuța noastră\cache\separated\htdemucs\Căsuța noastră\vocals.wav'

This is currently cross fixed by the merge of #68 which handels the namings different.
But it could still happens in other songs.

Will check and come back with feedback. Thanks!

Still getting the htdemucs error, but now I've also experienced a different issue - the song title is getting replace by the author, as per the log below:
(.venv) F:\UltraStar>py UltraSinger.py -i https://www.youtube.com/watch?v=S3ELSnWybX8
The torchaudio backend is switched to 'soundfile'. Note that 'sox_io' is not supported on Windows.
The torchaudio backend is switched to 'soundfile'. Note that 'sox_io' is not supported on Windows.
[UltraSinger] Using cuda GPU.
[UltraSinger] full automatic mode
[youtube] Extracting URL: https://www.youtube.com/watch?v=S3ELSnWybX8
[youtube] S3ELSnWybX8: Downloading webpage
[youtube] S3ELSnWybX8: Downloading android player API JSON
[UltraSinger] Searching song in musicbrainz
[UltraSinger] Found and using Gică Petrescu by Gică Petrescu
[UltraSinger] Release year: 1972
[UltraSinger] Creating output folder. -> F:\UltraStar\output\Gică Petrescu - Gică Petrescu
[UltraSinger] Downloading Audio
[youtube] Extracting URL: https://www.youtube.com/watch?v=S3ELSnWybX8
[youtube] S3ELSnWybX8: Downloading webpage
[youtube] S3ELSnWybX8: Downloading android player API JSON
[info] S3ELSnWybX8: Downloading 1 format(s): 251
[dashsegments] Total fragments: 1
[download] Destination: F:\UltraStar\output\Gică Petrescu - Gică Petrescu\Gică Petrescu - Gică Petrescu
[download] 100% of    3.65MiB in 00:00:00 at 53.68MiB/s
[ExtractAudio] Destination: F:\UltraStar\output\Gică Petrescu - Gică Petrescu\Gică Petrescu - Gică Petrescu.mp3
Deleting original file F:\UltraStar\output\Gică Petrescu - Gică Petrescu\Gică Petrescu - Gică Petrescu (pass -k to keep)
[UltraSinger] Downloading Video
[youtube] Extracting URL: https://www.youtube.com/watch?v=S3ELSnWybX8
[youtube] S3ELSnWybX8: Downloading webpage
[youtube] S3ELSnWybX8: Downloading android player API JSON
[info] S3ELSnWybX8: Downloading 1 format(s): 135+140
[dashsegments] Total fragments: 1
[download] Destination: F:\UltraStar\output\Gică Petrescu - Gică Petrescu\Gică Petrescu - Gică Petrescu.f135.mp4
[download] 100% of    1.25MiB in 00:00:00 at 18.34MiB/s
[dashsegments] Total fragments: 1
[download] Destination: F:\UltraStar\output\Gică Petrescu - Gică Petrescu\Gică Petrescu - Gică Petrescu.f140.m4a
[download] 100% of    3.57MiB in 00:00:00 at 41.33MiB/s
[Merger] Merging formats into "F:\UltraStar\output\Gică Petrescu - Gică Petrescu\Gică Petrescu - Gică Petrescu.mp4"
Deleting original file F:\UltraStar\output\Gică Petrescu - Gică Petrescu\Gică Petrescu - Gică Petrescu.f140.m4a (pass -k to keep)
Deleting original file F:\UltraStar\output\Gică Petrescu - Gică Petrescu\Gică Petrescu - Gică Petrescu.f135.mp4 (pass -k to keep)
[UltraSinger] Downloading thumbnail
[youtube] Extracting URL: https://www.youtube.com/watch?v=S3ELSnWybX8
[youtube] S3ELSnWybX8: Downloading webpage
[youtube] S3ELSnWybX8: Downloading android player API JSON
[UltraSinger] Creating output folder. -> F:\UltraStar\output\Gică Petrescu - Gică Petrescu\cache
[UltraSinger] Separating vocals from audio with demucs and cuda as worker.
Important: the default model was recently changed to htdemucs the latest Hybrid Transformer Demucs model. In some cases, this model can actually perform worse than previous models. To get back the old default model use -n mdx_extra_q.
Selected model is a bag of 1 models. You will see that many progress bars per track.
Separated tracks will be stored in F:\UltraStar\separated\htdemucs
File F:\UltraStar\output\Gica Petrescu - Gica Petrescu\Gica Petrescu - Gica Petrescu.mp3 does not exist. If the path contains spaces, please try again after surrounding the entire path with quotes "".
[UltraSinger] Converting audio for AI
Traceback (most recent call last):
File "F:\UltraStar\UltraSinger.py", line 840, in
main(sys.argv[1:])
File "F:\UltraStar\UltraSinger.py", line 766, in main
run()
File "F:\UltraStar\UltraSinger.py", line 303, in run
audio_separation_path = separate_vocal_from_audio(
File "F:\UltraStar\UltraSinger.py", line 435, in separate_vocal_from_audio
convert_audio_to_mono_wav(vocals_path, settings.mono_audio_path)
File "F:\UltraStar\src\modules\Audio\convert_audio.py", line 15, in convert_audio_to_mono_wav
sound = AudioSegment.from_wav(input_file)
File "F:\UltraStar.venv\lib\site-packages\pydub\audio_segment.py", line 808, in from_wav
return cls.from_file(file, 'wav', parameters=parameters)
File "F:\UltraStar.venv\lib\site-packages\pydub\audio_segment.py", line 651, in from_file
file, close_file = _fd_or_path_or_tempfile(file, 'rb', tempfile=False)
File "F:\UltraStar.venv\lib\site-packages\pydub\utils.py", line 60, in _fd_or_path_or_tempfile
fd = open(fd, mode=mode)
FileNotFoundError: [Errno 2] No such file or directory: 'F:\UltraStar\output\Gică Petrescu - Gică Petrescu\cache\separated\htdemucs\Gică Petrescu - Gică Petrescu\vocals.wav'


⚠ Fetchers has degraded performance

In f694c5e, Fetchers ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 435 ms

Resolved: Fetchers performance has improved in 6c45f9c.


Code 33

Running the Austin extension on Windows and it just doesn’t seem to work - I keep getting the error message “Austin process exited with code 33” “the terminal process terminated with exit code:33” “terminal will be reused by tasks, press any key to close it”
When I try to pipe it using powershell, however, it works and gives me a .austin file as the output. But when I try to open the file using the flamegraph tab, it says “crunching the numbers” for a long time and eventually exits. I also get nothing displayed on Austin Stats

👋  @ayush22jain thanks for reporting this. May I get some more details from you please?

Running the Austin extension on Windows and it just doesn’t seem to work - I keep getting the error message “Austin process exited with code 33” “the terminal process terminated with exit code:33” “terminal will be reused by tasks, press any key to close it”

How are you running Austin in this case? Is it via a task definition, or the "Profile with Austin" command?

When I try to pipe it using powershell, however, it works and gives me a .austin file as the output. But when I try to open the file using the flamegraph tab, it says “crunching the numbers” for a long time and eventually exits. I also get nothing displayed on Austin Stats

It might be the case that the file is too big to be processed. If so, you could try increasing the sampling interval with -i/--interval to reduce the number of samples collected. That should make the file easier to parse by the extension (at the cost of some accuracy).

I'm having the same problem with VS Code on Windows.  I have the latest VS Code, just installed the Austin extension as well ast the austin executables.
I have a very simple python script for testing (basically a single time.sleep() command followed by print())
I'm running Austin with "Profile with Austin"   command
The path to my python script does have a space in it but the extension seems to be putting in quotes to account for it:
Starting Profiler in d:\Documents\Files & Data\My_Project\Python. Running 'austin' with args '-i 100 --pipe P:\programming\anaconda3\carlosn\envs\gcat\python.exe "d:\Documents\Files & Data\My_Project\Python\sleep.py"'. austin process exited with code 33
I can run Austin directly from the VS Code terminal and it works fine:
austin python sleep.py

@ayush22jain
Have you tried it like this?
pip install austin-dist

This is likely a duplicate of #62


Hedera Transaction count includes consensus algorithm transactions

They are massively faking their TPS just like Solana does.
I just watched the explorer live for 5minutes or so. I have only seen like 10 normal transactions or so, the rest was consensus transactions.
There needs to be a warning on the website to not get fooled by Hedera

I'll give a look this weekend.

I've given it a look and don't fully understand how HCS is being used, discussed further in https://github.com/Aimeedeer/realtps/issues/78. Continuing in that issue.


How to deal with non-existing entities

In https://github.com/home-assistant/home-assistant-polymer/pull/1322#pullrequestreview-131207237 we added a stop-gap fix to prevent cards from crashing when an entity does not exist. This fix will skip the entity if it doesn't exist instead of crashing.
With Lovelace we have taken the stance that we should fail visibly when things are misconfigured. To that end, we need a better solution. I think that we need to look on a per-card basis how to deal with this.
Example: entity-picture should just show the title overlay and behind the entity name add a (not found) text.

I think most cards handle this now


Update user guide with an example of the URI for the Required parameter "Host"

In the app setup/config page, the required parameter "Host" requires a URI for the EIQ IC which includes the version of the  API, in the format (as per our User Guide):
https://<hostname>/api/<version>
For anyone who's unaware of the new API bundled with the EIQ IC, and/or doesn't know what particular version ships with their particular version of the EIQ IC, it's unclear what URI to enter in the "Host" field.
It would be useful to:
a) Include an example in the User Guide of what the URI should look like
b) Include a screenshot  or instructions on how to determine the version of the API for the EIQ IC

Included an example of the hostname and version which is used currently.


Getting GCC compile error for installation on MacOS

I am trying to install hover on my MacOS Monterey which has the miniforge python installation (python 3.8). I get following error message --  distutils.errors.CompileError: command 'gcc' failed with exit status 1
Maybe a conda package will help with this?

Looking into it. Will do this:

(optional) repro the error on Monterey
create a conda package for the latest release version (0.5.0)

Update: this conda-forge PR for 0.5.0 is unlikely to pass due to failed builds. Here's what we have to do:

1 move snorkel to an optional dependency that is only required when you use rule-based features of hover (upcoming).
2 loose other dependency version specifications as much as we can.

Because 1 alters the source code, it makes more sense to start conda support at the upcoming 0.6.0 release.
@MohitMayankOP could you try a pip installation for 0.5.0 instead? Or conda install -c phurwicz hover.

Hey @phurwicz, able to install using conda install -c phurwicz hover. For future reference, can we add it to readme? Thnx for the help!

Let me know if the conda installation above worked for you during runtime. I'm a bit concerned because the dependency specification for 0.5.0 on conda is flawed. I would delay adding conda installation to README till 0.6.0 makes it to conda-forge. (This should happen within a few weeks)

I tried it out and it didn't. First I had to reinstall certain packages due to version conflicts, which is okay. But even after that when I try to run hover using following code, I cannot see the visualization. Code I used,
from hover.recipes import simple_annotator
from hover.recipes.stable import _simple_annotator
from bokeh.io import show, output_notebook

output_notebook()

interactive_plot = simple_annotator(dataset)
show(interactive_plot, notebook_url='https://localhost:8888')

Console output I get,
🔵 SupervisableTextDataset: Initializing...
🔵 SupervisableTextDataset: Deduplicating...
🔵 SupervisableTextDataset: --subset raw rows: 19544 -> 19544.
🔵 SupervisableTextDataset: --subset train rows: 0 -> 0.
🔵 SupervisableTextDataset: --subset dev rows: 0 -> 0.
🔵 SupervisableTextDataset: --subset test rows: 0 -> 0.
🟢 SupervisableTextDataset: Set up label encoder/decoder with 0 classes.
🟢 SupervisableTextDataset: Population updater: latest population with 0 classes.
🟢 SupervisableTextDataset: SupervisableTextDataset: finished initialization.
100%|█████████████████████████████████████████████████████████| 19544/19544 [00:00<00:00, 568139.76it/s]
🔵 SupervisableTextDataset: Fit-transforming UMAP on 19544 samples...
OMP: Info #271: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
🔵 SupervisableTextDataset: Transforming UMAP on 0 samples...

Not sure if this is bcoz of my dataset or something else. But yeah the dependency spec is kinda flawed and requires manual effort.

The console output seems ok. There is a numba warning, but everything else is expected.
However, this output cannot be from the code block you posted. It should be from something like
dataset = SupervisableTextDataset.from_pandas(<your_dataframe>)
dataset.compute_2d_embedding(*args)

If you see neither an exception or the visualization, then this particular problem is not with installation or dependencies. What about removing notebook_url='https://localhost:8888'?
Also _simple_annotator is different from simple_annotator. The web tutorial had to use _simple_annotator, but it explained that in real usage one should choose simple_annotator (without the underscore prefix).

Hi @MohitMayankOP, the package is now available: https://github.com/conda-forge/hover-feedstock
conda install -c conda-forge hover should do it :)
Please let me know if it runs ok (it should now).


Implement partitioning.Pipeline.

This is a broker.Pipeline implementation that selects a replica-specific pipeline based on the partitioning configuration.
Messages destined for remote replicas are sent using the broker transport, whereas messages to be handled by the current replica are sent directly to the replica's inbound pipeline.

Merging to proceed, but please still take a look through when you have tine.

Yeah man, all the changes make sense. The description is quite clear in the context of what we discussed. Sorry could not do the proper review earlier, I was mostly offline today.


BouncingScrollPhysics not working

Steps to Reproduce

Run the following code sample on the web platform.

import 'package:flutter/material.dart';

void main() {
      runApp(
        MaterialApp(
          home: Scaffold(
            body: ListView.builder(
              physics: const BouncingScrollPhysics(
                  parent: AlwaysScrollableScrollPhysics()),
              itemBuilder: (_, i) => ListTile(title: Text('$i')),
              itemCount: 50,
            ),
          ),
        ),
      );
    }

Scroll to the top.

Expected results: A bounce should be visible when scrolled to the top.
Actual results: No bounce visible.

[✓] Flutter (Channel stable, 3.3.0, on macOS 12.5.1 21G83 darwin-x64, locale de-DE)
    • Flutter version 3.3.0 on channel stable at /usr/local/Caskroom/flutter/3.3.0/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ffccd96b62 (5 days ago), 2022-08-29 17:28:57 -0700
    • Engine revision 5e9e0e0aa8
    • Dart version 2.18.0
    • DevTools version 2.15.0

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc2)
    • Android SDK at /Users/jonas/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13F100
    • CocoaPods version 1.11.3

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

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.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 11.0.11+0-b60-7590822)

[✓] IntelliJ IDEA Community Edition (version 2021.2.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • 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

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

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 12.5.1 21G83 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 104.0.5112.101

[✓] HTTP Host Availability
    • All required HTTP hosts are available

Web platform cannot support overscrolling / bouncing. The web browser does not provide enough data from the trackpad to reproduce this behavior within flutter.

Hi @jtdLab,
Based on @moffatman's response, and also the explanation at https://github.com/flutter/flutter/issues/91507#issuecomment-940207028, I will close the issue from here.
If you disagree, please write in the comments and I will reopen it.
Thanks for your contribution!


Out of memory, can not train on 11G machine

Hi,I set batch_size = 2, and I can not train resnet50 on 2080ti due to out of memory.Do you have any way to reduce the memory usage of the code? I tried to reduce the number of blocks in resnet50,but  loss=nan, and error:
WARNING:root:NaN or Inf found in input tensor.

Thank you.

Hello!
You could also increase the voxel size, which increases the dimensions of each voxel and therefore reduces the total number of voxels/BEV cells in the voxel/BEV grid. This can be adjusted by adjusting https://github.com/TRAILab/CaDDN/blob/master/tools/cfgs/kitti_models/CaDDN.yaml#L12.
Note that the number of cells in each dimension of the BEV grid (H, W) need to be divisible by 4 in order to be processed by the BEV backbone.

@codyreading When I set VOXEL_SIZE: [0.64, 0.64, 0.64], error:
x = torch.cat(ups, dim=l)
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 48 and 47 tn dimension 2 at /pytorch/aten/src/THC/generic/THCTensorMath.cu:71

Am I missing something？Thank you.

The number should be divisible by 30.08, this time it can run normally. thank you very much,

No problem! Closing this issue then. Also FYI, expect a degradation in performance with a reduced voxel size.

After I understand the code，I will try to copy mobilenetv3 from torchvision deeplabv3。 Thank you again.

what numbers are divisible by 30.08?

The number of cells in each dimension of the BEV grid (H, W) need to be divisible by 8 in order to be processed by the BEV backbone, due to the downsample/upsample by 8.  If we look at the current BEV grid H.
H = (Y_max - Y_min) / voxel_size_y = (30.08 - (- 30.08)) / 0.16 = 376
H / 4 = 376 / 8 = 47

As long as that final number is a whole number, this should be able to be processed by the BEV backbone.

@codyreading @DuZzzs  Hi， could you tell me how to change the setting? I change the voxel to [1.0, 1.0, 1.0] but still Out of memory.

@codyreading I set VOXEL_SIZE: [0.94, 0.94, 0.94], but when the training reaches epoch6, the program reports an error.

@czy341181 How much GPU memory do you have? And what batch size are you using? A voxel size of [1.0, 1.0, 1.0] should not consume too much memory with a lower batch size.

@DuZzzs What error are you reporting?

My GPU has 11178MB.  When I set the voxel_size as [0.94, 0.94, 0.94], it runs for a while and then out of memory.

@codyreading I didn't record that error, it was probably cudnn's error. When I used OpenPcDet's spconv1.0 corresponding docker, cudnn error also appeared. I think my environment is inconsistent with the official documentation. I will check this error in cudnn later. Thank you very much。

你最后用什么方法减少的内存？ @czy341181

请问你最后用什么方法减少的内存？ @czy341181


searchScope

@Rick-Anderson who needs to look at this, and does this fix #2387?

@spboyer  Copy of #2388 for testing


error[E0061]: this function takes 2 arguments but 1 argument was supplied

   Compiling spider v1.42.1
error[E0061]: this function takes 2 arguments but 1 argument was supplied
   --> /Users/roniemartinez/.cargo/registry/src/index.crates.io-6f17d22bba15001f/spider-1.42.1/src/website.rs:857:37
    |
857 |                         Some(cb) => cb(u),
    |                                     ^^--- an argument of type `std::option::Option<string_concat::String>` is missing
    |
help: provide the argument
    |
857 |                         Some(cb) => cb(u, /* std::option::Option<string_concat::String> */),
    |                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0308]: `match` arms have incompatible types
   --> /Users/roniemartinez/.cargo/registry/src/index.crates.io-6f17d22bba15001f/spider-1.42.1/src/website.rs:858:30
    |
856 |                       let link_result = match self.on_link_find_callback {
    |  _______________________________________-
857 | |                         Some(cb) => cb(u),
    | |                                     -----
    | |                                     |  |
    | |                                     |  here the type of `u` is inferred to be `CaseInsensitiveString`
    | |                                     this is found to be of type `(CaseInsensitiveString, std::option::Option<string_concat::String>)`
858 | |                         _ => u,
    | |                              ^ expected `(CaseInsensitiveString, ...)`, found `CaseInsensitiveString`
859 | |                     };
    | |_____________________- `match` arms have incompatible types
    |
    = note: expected tuple `(CaseInsensitiveString, std::option::Option<string_concat::String>)`
              found struct `CaseInsensitiveString`

Some errors have detailed explanations: E0061, E0308.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `spider` (lib) due to 2 previous errors

@roniemartinez thank you the issue and details. This is now fixed in v1.42.2.🙌


undefined reference to `strtoull'

Hi ,
i installed all libraries , and download the Cryptosuite to the lib dir , and win compiling getting the following error :
Archiving built core (caching) in: C:\Users\obadaa\AppData\Local\Temp\arduino_cache_588465\core\core_esp8266_esp8266_d1_mini_CpuFrequency_80,UploadSpeed_921600,FlashSize_4M3M_2c866e82cf51a3a3653ab1299af6ca1c.a
sketch\ESP8266-HTTP-IR-Blaster.ino.cpp.o: In function `rokuCommand(String, String)':
C:\Users\obadaa\Desktop\Ardinu\ESP8266-HTTP-IR-Blaster/ESP8266-HTTP-IR-Blaster.ino:234: undefined reference to `strtoull'
C:\Users\obadaa\Desktop\Ardinu\ESP8266-HTTP-IR-Blaster/ESP8266-HTTP-IR-Blaster.ino:234: undefined reference to `strtoull'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board WeMos D1 R2 & mini.
please advise , what can be the issue ?

What version of the ESP8266 Arduino Core are you using?
Need to use the latest (2.4.0) and it seems like you’re using an older version
From: Obada abu alhiga
Sent: Wednesday, March 14, 2018 2:17 AM
To: mdhiggins/ESP8266-HTTP-IR-Blaster
Cc: Subscribed
Subject: [mdhiggins/ESP8266-HTTP-IR-Blaster] undefined reference to `strtoull'(#161)
Hi ,
i installed all libraries , and download the Cryptosuite to the lib dir , and win compiling getting the following error :
Archiving built core (caching) in: C:\Users\obadaa\AppData\Local\Temp\arduino_cache_588465\core\core_esp8266_esp8266_d1_mini_CpuFrequency_80,UploadSpeed_921600,FlashSize_4M3M_2c866e82cf51a3a3653ab1299af6ca1c.a
sketch\ESP8266-HTTP-IR-Blaster.ino.cpp.o: In function rokuCommand(String, String)': C:\Users\obadaa\Desktop\Ardinu\ESP8266-HTTP-IR-Blaster/ESP8266-HTTP-IR-Blaster.ino:234: undefined reference to strtoull'
C:\Users\obadaa\Desktop\Ardinu\ESP8266-HTTP-IR-Blaster/ESP8266-HTTP-IR-Blaster.ino:234: undefined reference to `strtoull'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board WeMos D1 R2 & mini.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

i don't have such version , i am using Adafruit lib , which one you have installed ?

You need to follow the instructions and add the ESP8266 board library in the settings page..

What was not clear of it's already installed but not working ?! , i have Adafruit IO Arduino v 2.7.1 installed which include all the ESP8266 lib's , but it's look like another lib needed , in the instructions there is info regarding lib source .
i am using the following source : http://arduino.esp8266.com/stable/package_esp8266com_index.json
i hope it's clear and finally someone can share the full version name and source .
because searching for :
Install the following libraries from the Arduino IDE Library Manager: ESP8266WebServer ESP8266WiFi ArduinoJson WiFiManager EasyNTPClient IRremoteESP8266 as well as Cryptosuite which is not on the IDE
is not working !

This is actually a bug that I forgot to PR.
There's still one reference to strtoull in the code here https://github.com/mdhiggins/ESP8266-HTTP-IR-Blaster/blob/master/IRController/IRController.ino#L1311
Seems the fix from https://github.com/mdhiggins/ESP8266-HTTP-IR-Blaster/commit/b4e0f15215382f6a8eb6da031abf487af7bf1147 got reverted here https://github.com/mdhiggins/ESP8266-HTTP-IR-Blaster/commit/8fb3e70a67d658e13a368460dd763394ad8c947d

Lots of misinformation here
@kokarn is incorrect strtoull is not a typo and is different in functionality than strtoul
strtoull creates an unsigned long long (as opposed to unsigned long) and is needed for decoding things with higher memory usage
It was added in ESP8266 Arduino Core 2.4.0 and you need to update to this to support it
You install this via board manager in Arduino IDE

Glad I was wrong about that then. Sorry for diluting the issue

No worries I didn’t know that initially either and reverted after doing some reading. Just wanted to clarify and set things straight
Sent from my iPhone

On Mar 16, 2018, at 5:22 PM, Oskar Risberg<EMAIL_ADDRESS>wrote:
Glad I was wrong about that then. Sorry for diluting the issue
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Thanks everyone , i do remove all my resources  , clean AppData , reinstall Arduino IDE , reinstall it all , and now it compiled with no issues.

Great glad it’s woeking


lockOrientation missing

as described here: https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation#Browser_compatibility
and https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation
usage example:
http://stackoverflow.com/a/30222772/1644202

Seems like it falls under http://caniuse.com/#feat=screen-orientation The properties/methods you mention are presumably from an old version of the spec.

Yeah, I've updated http://caniuse.com/#feat=screen-orientation a bit to clarify and made lockOrientation searches point at it.


Fix busybox.obfuscate (closes #143)

[Current coverage][cc-pull] is 97.22%

Merging [#145][cc-pull] into [master][cc-base-branch] will not change coverage

@@             master       #145   diff @@
==========================================
  Files            11         11
  Lines           504        504
  Methods           0          0
  Messages          0          0
  Branches         56         56
==========================================
  Hits            490        490
  Misses            4          4
  Partials         10         10

Powered by Codecov. Last updated by [dc54a35...1b8d72d][cc-compare]
[cc-base-branch]: https://codecov.io/gh/lxc/pylxd/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/lxc/pylxd/compare/dc54a355b3fcbc3487075eaab79ffba3ff921261...1b8d72da39240c9a6e2d31b0bf88848388cdb38f
[cc-pull]: https://codecov.io/gh/lxc/pylxd/pull/145?src=pr


new version does not suggest props

seems like version 0.30.2 broke the auto suggestion for props
my component

suggestion

i'm using typescript version 4.5.4 and vue-tsc 0.30.2

Hi @zynth17, it's works for me, could you provide repro case?


 This may take a few minutes...

  This may take a few minutes...

 This may take a few minutes...

I ran your tests @ianjennings and here's what I found:


Allow to edit the last search when starting a new one

Fixes #688

@jonan one minor comment, otherwise this looks good. Let me know if you have time to do it, otherwise I can just change it after merge.

Actually this isn't working properly with the new search widget...
I need to give it another go.


Design System > Action Issues

Design System > Action Issues
1.I clicked on button for opening off canvas after that label is invisible
2.There is issue in raaghu with action buttons as per designed we cannot add oversize label
3.Cannot manually enter the value & while binding the value back it is not get assigned.

Design System > Action Issues
1.I clicked on button for opening off canvas after that label is invisible
2.There is issue in raaghu with action buttons as per designed we cannot add oversize label
These points are out of scope

Fixed on stage


KAFKA-3382: Add system test for ReplicationVerificationTool

@granders one more for you to take a look at.

@granders adopted your suggestion, mind giving it another pass.

Test failure is not related, pinging for review @granders :)

@granders up for your review again. Some of the issues you have seen in past might be due to ReplicaVerificationTool not getting killed properly in previous runs. Fixed that and ran a few times in loop. Hopefully it checks out at your end as well.

Thanks for the updates @SinghAsDev - only a couple minor comments

@SinghAsDev Thanks for the update - just need to rebase and this should be good

Done, thanks for the reviews!
On Fri, Apr 22, 2016 at 9:49 AM, Geoff<EMAIL_ADDRESS>wrote:

@SinghAsDev https://github.com/SinghAsDev Thanks for the update - just
need to rebase and this should be good
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/apache/kafka/pull/1160#issuecomment-213506677

--
Regards,
Ashish

@SinghAsDev You're welcome!
@ewencp Mind taking a final look?

@ewencp this should be good now, mind taking a look again?

LGTM, thanks @SinghAsDev!


[SPARK-41722][CONNECT][PYTHON] Implement 3 missing time window functions

What changes were proposed in this pull request?
Implement 3 missing time window functions
Why are the changes needed?
For API coverage
after this PR, following ones are missing:
1, call_udf
2, pandas_udf
3, sequence - SPARK-41723
4, format_number - SPARK-41473
5, unwrap_udt
6, udf
Does this PR introduce any user-facing change?
yes
How was this patch tested?
added UT

cc @HyukjinKwon

merged into master


Is there API supporting to calculate color image uv's corresponding uv in depthimage

k4a_calibration_2d_to_2d can do this thing ,but it need source_depth_mm as an input, but I dont know the depth value in colorimage.
I need use k4a_calibration_2d_to_3d calculte depth in colorimage and use k4a_calibration_2d_to_2d  to find its corrsponding uv in depthimage?

Is there API like realsense which use a search strategy to calculate the color's corresponding uv in depthimage.
https://github.com/Ayangdanny/librealsense/blob/master/include/librealsense2/rsutil.h

@Ayangdanny
Transformation_depth_to_color_camera

@venscn You did not understand what I mean. This API trans depthimage to color, not from color to depth and also the output is a transformed image, I still can not get the one by one uv corresponfdence between color and depth image .

@Ayangdanny
U can see issues #260 or #98.
I don't know if it is the same as your question.

@venscn  they are not.

@Ayangdanny Isn't it similar to this issue: [#502] ?

yes，but #502 map the whole frame，it does not care the single pixel.  For example,  one pixel uv(300, 200) in color image. I want get the uv of the correspondence pixel in depthimage.
you can see the function(rs2_project_color_pixel_to_depth_pixel) of realsense , it is what I want.
https://github.com/Ayangdanny/librealsense/blob/master/include/librealsense2/rsutil.h

U don't need depth info to mapping the color image?

@Ayangdanny
Hoho, u want to point to point.

@Ayangdanny
U can make depth equal 1, and .... lookagain  tomorrow, sleeping now.

@Ayangdanny , please take a look #498 and the updated documentation (https://docs.microsoft.com/en-us/azure/Kinect-dk/use-calibration-functions#converting-between-2d-coordinate-systems), this line particularly: "The function requires the pixel’s depth value (in millimeters) in the source camera image as an input, one way to derive the depth value in the color camera geometry is to use the function k4a_transformation_depth_image_to_color_camera(). "

@Ayangdanny, you are right that we do not support the exact function that you are looking for. In general, we suggest using k4a_transformation_depth_image_to_color_camera() to obtain the depth value in the color camera system.
However, if you want to avoid transforming the whole depth image, the following search strategy might work. You can iterate over all discrete depth values d. For every depth value d, compute uv' = k4a_calibration_2d_to_2d(uv, d, Color_to_Depth). Look up the depth d' of pixel uv' from the depth map. Now compute uv'' = k4a_calibration_2d_to_2d(uv', d', Depth_to_Color). If uv'' equals uv, uv' is the corresponding pixel you have been looking for. Please note that such a roundtrip will not always be possible, as the corresponding pixel in the depth map might be occluded.

@rabbitdaxi @mbleyer  Thanks, I know the search strategy,  I suggest you add this function later. This feature is often used and can avoid  performance waste when just need a few pixels.


Getting failed MSpanList_Insert while doing mongorestore

Please answer these questions before submitting your issue. Thanks!
What did you do?
I am trying to run a command mongoexport but getting the error  ./mongorestore -d storefront /Users/temp/storefront/
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
What did you expect to see?
Dump of mongodb should be restored
What did you see instead?
failed MSpanList_Insert 0xb58000 0x382f48ff9d6d 0x0
fatal error: MSpanList_Insert
runtime stack:
runtime.throw(0xabaecb)
/usr/local/go/src/runtime/panic.go:491 +0xad fp=0x7ffeefbff660 sp=0x7ffeefbff630
runtime.MSpanList_Insert(0xadcb88, 0xb58000)
/usr/local/go/src/runtime/mheap.c:692 +0x8f fp=0x7ffeefbff688 sp=0x7ffeefbff660
MHeap_FreeSpanLocked(0xad9780, 0xb58000, 0x100)
/usr/local/go/src/runtime/mheap.c:583 +0x163 fp=0x7ffeefbff6c8 sp=0x7ffeefbff688
MHeap_Grow(0xad9780, 0x8, 0x0)
/usr/local/go/src/runtime/mheap.c:420 +0x1a8 fp=0x7ffeefbff708 sp=0x7ffeefbff6c8
MHeap_AllocSpanLocked(0xad9780, 0x1, 0x0)
/usr/local/go/src/runtime/mheap.c:298 +0x365 fp=0x7ffeefbff748 sp=0x7ffeefbff708
mheap_alloc(0xad9780, 0x1, 0x12, 0x0)
/usr/local/go/src/runtime/mheap.c:190 +0x121 fp=0x7ffeefbff770 sp=0x7ffeefbff748
runtime.MHeap_Alloc(0xad9780, 0x1, 0x10000000012, 0xdea9)
/usr/local/go/src/runtime/mheap.c:240 +0x66 fp=0x7ffeefbff7a8 sp=0x7ffeefbff770
MCentral_Grow(0xae14f8, 0x0)
/usr/local/go/src/runtime/mcentral.c:197 +0x8b fp=0x7ffeefbff810 sp=0x7ffeefbff7a8
runtime.MCentral_CacheSpan(0xae14f8, 0x0)
/usr/local/go/src/runtime/mcentral.c:85 +0x167 fp=0x7ffeefbff848 sp=0x7ffeefbff810
runtime.MCache_Refill(0xb54000, 0x12, 0x0)
/usr/local/go/src/runtime/mcache.c:90 +0xa0 fp=0x7ffeefbff870 sp=0x7ffeefbff848
runtime.mcacheRefill_m()
/usr/local/go/src/runtime/malloc.c:368 +0x57 fp=0x7ffeefbff890 sp=0x7ffeefbff870
runtime.onM(0x9d5490)
/usr/local/go/src/runtime/asm_amd64.s:273 +0x9a fp=0x7ffeefbff898 sp=0x7ffeefbff890
runtime.mallocgc(0x120, 0x3273c0, 0x0, 0x0)
/usr/local/go/src/runtime/malloc.go:178 +0x849 fp=0x7ffeefbff948 sp=0x7ffeefbff898
runtime.newobject(0x3273c0, 0xb54000)
/usr/local/go/src/runtime/malloc.go:353 +0x49 fp=0x7ffeefbff970 sp=0x7ffeefbff948
runtime.newG(0x29e6a)
/usr/local/go/src/runtime/proc.go:233 +0x2a fp=0x7ffeefbff988 sp=0x7ffeefbff970
allocg(0xacaf40)
/usr/local/go/src/runtime/proc.c:925 +0x1f fp=0x7ffeefbff998 sp=0x7ffeefbff988
runtime.malg(0x8000, 0xacafe0)
/usr/local/go/src/runtime/proc.c:2106 +0x1f fp=0x7ffeefbff9c8 sp=0x7ffeefbff998
runtime.mpreinit(0xacb5c0)
/usr/local/go/src/runtime/os_darwin.c:137 +0x27 fp=0x7ffeefbff9e0 sp=0x7ffeefbff9c8
mcommoninit(0xacb5c0)
/usr/local/go/src/runtime/proc.c:201 +0xc9 fp=0x7ffeefbffa08 sp=0x7ffeefbff9e0
runtime.schedinit()
/usr/local/go/src/runtime/proc.c:138 +0x55 fp=0x7ffeefbffa30 sp=0x7ffeefbffa08
runtime.rt0_go(0x7ffeefbffa60, 0x4, 0x7ffeefbffa60, 0x0, 0x4, 0x7ffeefbffba0, 0x7ffeefbffbaf, 0x7ffeefbffbb2, 0x7ffeefbffbbd, 0x0, ...)
/usr/local/go/src/runtime/asm_amd64.s:95 +0x116 fp=0x7ffeefbffa38 sp=0x7ffeefbffa30
System details
go version go1.12.5 darwin/amd64
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/temp/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/temp/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
GOROOT/bin/go version: go version go1.12.5 darwin/amd64
GOROOT/bin/go tool compile -V: compile version go1.12.5
uname -v: Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64
ProductName:	Mac OS X
ProductVersion:	10.14.2
BuildVersion:	18C54
lldb --version: lldb-1<IP_ADDRESS>
  Swift-4.2

Hello @AnilDarji, we would need the complete steps to reproduce this issue.
Could you confirm that this is an issue with the Go runtime and not with mongorestore code ?
Will it be possible for you to create a minimalistic repro (by pulling out the necessary code from mongorestore) that creates the same crash ?


[bug report] Stretched camera feed

The video camera feed is stretched on my android chrome (ARJS Geolocation). I took a photo with ARJS, and then with the camera app of my phone so you can see the difference
ARJS:

Camera app

@marcusx2 this is a known problem, I will try to get to it when I have a moment.

Hi @nickw1 , thanks for the reply. If it helps at all, MindAR uses aframe as well, so the answer to the issue is probably there.

@marcusx2 thanks for the tip re. MindAR.

In the ar-threex-location-only file and aframe-ar, there's this line navigator.mediaDevices&&navigator.mediaDevices.getUserMedia){const t={video:{width:1280,height:720,facingMode:"environment"}} that seems to be the issue.
On this file https://github.com/hiukim/mind-ar-js/blob/master/src/image-target/aframe.js
this code snippet seems to be the solution
navigator.mediaDevices.getUserMedia({audio: false, video: {
      facingMode: 'environment',
    }}).then((stream) => {
      this.video.addEventListener( 'loadedmetadata', () => {
        //console.log("video ready...", this.video);
        this.video.setAttribute('width', this.video.videoWidth);
        this.video.setAttribute('height', this.video.videoHeight);
        this._startAR();
      });
      this.video.srcObject = stream;
    }).catch((err) => {
      console.log("getUserMedia error", err);
      this.el.emit("arError", {error: 'VIDEO_FAIL'});
    });

If I use videoTexture: false the problem goes away. But then the cube stretches, so another bug comes up ;_; damn it.

Thanks for that. I think what I'll probably do is incorporate fixes for all your issues into a new version 3.5, with the agreement of @kalwalt, as the world-origin-as-original-GPS-position will be a breaking change. I'll also try and add the multiple cameras feature.

with the agreement of @kalwalt, as the world-origin-as-original-GPS-position will be a breaking change

It doesn't have to be breaking if it's optional! It can default to false to keep the functionality as it is.

I'll also try and add the multiple cameras feature.

Multiple cameras? Don't know anything about that. Must be some other feature request.

I just thought that, as you have made quite a few requests, it would be best to collate them and include them in a new release. And if the initial position as world origin is the preferred behaviour anyway, maybe it's best to make that the default by switching with a 3.5 release. It won't affect most use cases anyhow. (It will also fit in with some other work I'm doing to try and combine AR.js with the SLAM library AlvaAR).
Sorry, I lost track of who requested the multiple cameras feature!

Ok just to summarize this issue includes 2 bug reports:
1- Camera feed stretching when videoTexture: true.
2- Entity stretching when videoTexture: false.

@marcusx2 I have implemented your suggested fix for stretching for the videoTexture: true mode (note that videoTexture: false is deprecated for location-based AR in any case).
Do you want to try testing it? You need to check out the stretched-video-fix branch of AR.js and include the built files from that branch into your project, e.g.
<script type='text/javascript' src='LOCATION_OF_ARJS_ON_YOUR_SYSTEM/three.js/build/ar-threex-location-only.js'></script>
<script type='text/javascript' src=''LOCATION_OF_ARJS_ON_YOUR_SYSTEM/aframebuild/aframe-ar.js'></script>

I simply got the files ar-threex-location-only and aframe-ar from the branch and added to the same folder as the index.html.
Like this
<!DOCTYPE html>
<html>
<head>
<title>AR.js A-Frame Location-based</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script type='text/javascript' src='./ar-threex-location-only.js'></script>
<script type='text/javascript' src='./aframe-ar.js'></script>
</head>
<body>
<a-scene vr-mode-ui='enabled: false' arjs='sourceType: webcam; videoTexture: true; debugUIEnabled: false' renderer='antialias: true; alpha: true'>
    <a-camera look-controls-enabled='false' arjs-device-orientation-controls='smoothingFactor: 0.1' gps-new-camera='positionMinAccuracy: 100; gpsMinDistance: 5; simulateLatitude: 51.049; simulateLongitude: -0.723; simulateAltitude: 0; gpsTimeInterval: 0;' position='0 10 0'></a-camera>
    <a-entity material='color: red' geometry='primitive: box' gps-new-entity-place="latitude: -21.1873371; longitude: -47.7996175" scale="1 1 1" ></a-entity>
</a-scene>
<script>
    const entity = document.querySelector("[gps-new-entity-place]");
    console.log(entity.components['gps-new-entity-place'].distance);//returns undefined
	setTimeout(() => {
		console.log(entity.components['gps-new-entity-place'].distance);//returns distance
	}, 0);
</script>
</body>
</html>

Should be correct right? The fix didn't work here though, unless I missed something.

I have implemented your suggested fix for stretching for the videoTexture: true mode (note that videoTexture: false is deprecated for location-based AR in any case).

Please don't deprecate/remove it. videoTexture: false is better for projects that use AR.js as an API to get the information about positioning and apply it elsewhere. For example, for PlayCanvas I  don't need the videoTexture to be true because I just get the information of the camera and entities, and use it to place the objects in PlayCanvas, which draws the scene in its own Canvas which overlays the video element. The threejs canvas is completely useless for cases like this, just consuming unnecessary resources, because I don't need aframe/threejs to actually draw anything.

If it helps anything, you can take a look at this issue from another repo. I tried the fix provided there but it didn't work here. Maybe the JeelizResizer and/or the JeelizThreeHelper can give some clues.

I tried checking out the new branch as well, just in case. Still didn't work =/. The problem happens on my Android Chrome and on iOS Safari.

Does the bug not happen with you? Hopefully it's something that you can debug.

I know, but it might be something that requires some research to fix. This is very much dependent on my time availability, which is a bit restricted right now - whereas the other two problems are already fixed. Hence, as soon as #507 and #508 have been reviewed, I can make a bugfix release for those two issues, at least.

Can this bug be worked around in current version of AR.js?

bump

Hey @nickw1 , I recently had this stretching issue with another app, and I fixed it with something like this
myclass.windowResizeEvent = function () {
                if (window.innerHeight > window.innerWidth) {
                    if (myclass.firstResize !== "portrait" && myclass.firstResize !== "landscape") {
                        video.videoWidthbk = video.videoWidth;
                        video.videoHeightbk = video.videoHeight;
                        myclass.firstResize = "portrait";
                    } else {
                        if (myclass.firstResize == "portrait") {
                            video.videoWidthbk = video.videoWidth;
                            video.videoHeightbk = video.videoHeight;
                        } else {
                            video.videoWidthbk = video.videoHeight;
                            video.videoHeightbk = video.videoWidth;
                        }

                    }

                    dynCall_vii(callback, video.videoWidthbk, video.videoHeightbk)
                } else {
                    if (myclass.firstResize !== "portrait" && myclass.firstResize !== "landscape") {
                        video.videoWidthbk = video.videoHeight;
                        video.videoHeightbk = video.videoWidth;
                        myclass.firstResize = "landscape";
                    } else {
                        if (myclass.firstResize == "landscape") {
                            video.videoWidthbk = video.videoHeight;
                            video.videoHeightbk = video.videoWidth;
                        } else {
                            video.videoWidthbk = video.videoWidth;
                            video.videoHeightbk = video.videoHeight;
                        }
                    }

                    dynCall_vii(callback, video.videoHeightbk, video.videoWidthbk)
                }

            };
            window.addEventListener("resize", myclass.windowResizeEvent)
            window.dispatchEvent(new Event("orientationchange"));

don't know if this applies to arts or not, but the problem I was having on said app is that depending if the it started on landscape mode or portrait mode, I had to swap the video width with the video height and vice versa so that the aspect ratio was always correct and it didn't show up stretched. I had to check for the first resize event and detect if the app started in portrait or landscape...anyways. Don't know if this helps at all, but just throwing it here just in case, who knows.
I really need this videoTexture: false to work properly

Can this bug be worked around in current version of AR.js?

@kbs1 I've found a workaround:
</a-scene>
    <button id="fullscreen" onclick="start()" style="position: absolute; top: 0; width: 100%; height: 100%; z-index: 10;">Start</button>
  </body>
</html>
<script>
  var elem = document.documentElement;
  /* View in fullscreen */
  function start() {
    if (elem.requestFullscreen) {
      elem.requestFullscreen();
    } else if (elem.webkitRequestFullscreen) { /* Safari */
      elem.webkitRequestFullscreen();
    } else if (elem.msRequestFullscreen) { /* IE11 */
      elem.msRequestFullscreen();
    }
    document.querySelector("#fullscreen").remove()
    document.querySelector('video').setAttribute('style', 'width: 100vw;height: 100vh;object-fit: cover;position: absolute;top: 0;left: 0;');
  }

I found the style doesn't work if set directly, probably something to do with setting the style after AR.js is done setting up the scene. So I imagine you can get this to work without the 'start' button by just getting the start function to run after the first gps camera position is updated, although I haven't tried it:
let testEntityAdded = false;
    document
      .querySelector("#camera")
      .addEventListener("gps-camera-update-position", (e) => {
        if (!testEntityAdded) {
          start()

Never-mind actually, just noticed that for some reason changing the video's CSS seems to destroy all entities as does setting a-scene to embedded

@nickw1 I didn't apply anything to ARJS. It's just that I had a similar problem with something else and posted my solution here, which maybe can be used by ARJS with the same idea or something similar.

I've found out that the issue arises when camera aspect ratio is not the same as device (mobile phone) aspect ratio, or more specifically, usable viewport aspect ratio. I've found out that AR.js creates a PlaneBufferGeometry of width 1 and height 1, if you tweak these values to have the same aspect ratio as the viewport, you can then unstretch the video feed (video texture) on that particular device.

@kbs1 is this tweaking done by modifying ar.js's source code?

@Platform-Group yes, you can search the source for PlaneBufferGeometry, there will be 2 instances. You can find the active one based on your use case and tweak the values there. For my usecase, I added reading from window (global) so the correct values can be calculated before initialising AR.js itself

@kbs1 thanks for that. Do you want to submit a PR to fix the issue?

@nickw1 the fix I used was not proper, and it required reading from magic window..... variables at the patched PlaneBufferGeometry creation. It also assumed AR.js will be full-width and full-height in the viewport, which might not be the case.  It also did not work on iOS devices, so I added a workaround that it would not activate on those.
I'm not familiar with AR.js / aframe / three.js codebases enough to develop a proper fix, but for the fix itself, further research is also needed. The way I understand it AR.js creates a plane that is filled with video texture (the camera feed). This plane is 1x1 in dimensions. Somehow, this plane is stretched to "fit" the scene, and this creates the distortion (might be due to OrthographicCamera being used).
The code in question is here: https://github.com/AR-js-org/AR.js/blob/3.4.5/aframe/src/location-based/arjs-webcam-texture.js#L6-L20
The proper fix would be to emulate a behavior like CSS's background-size: cover; background-position: center for the video feed. That way, it would not matter what the wiewport aspect ratio is, and what the video feed aspect ratio is. It might however be needed to adjust the position of AR objects so they are truest to the shown camera feed, but that's outside of my abilities to judge.

@kbs1 I think you can still contribute your modifications as a PR, we will review it, and if your code is not compatible stylistically or otherwise with AR.js, we will modify it.
Even if it's not a full fix, if it partly solves some problems, it's still worth incorporating.

@nickw1 here, I had a crack at it, works for me:
    let sourceAspectRatio = streamSettings.width / streamSettings.height;
      let displayAspectRatio = window.innerWidth / window.innerHeight;
      let geomX = 1;
      let geomY = 1;
      if (displayAspectRatio > sourceAspectRatio) {
          // Display is wider than source
          geomX = sourceAspectRatio / displayAspectRatio;
      } else {
          // Display is taller than source
          geomY = displayAspectRatio / sourceAspectRatio;
      }
      console.log('geomY ', geomY, ' geomX ', geomX)
      this.geom = new THREE.PlaneBufferGeometry(geomX, geomY);

It still has problems though:

Doesn't handle resizing such as toggling to fullscreen
Uses window, so won't work with embedded (not that that matters right now anyway as embedded is broken anyway, at least it is for me using location based)

@Platform-Group thank you, that is esentially exactly the same workaround I have used. Outstanding issues are well written

This also made me realise that it's using the 0.5x zoom camera for everything which is weird

@Platform-Group I am using this code before initialising AR.js:
if (window.navigator.mediaDevices && window.navigator.mediaDevices.getUserMedia)
	window.navigator.mediaDevices.getUserMedia({audio: false, video: {facingMode: {exact: 'environment'}}}).then(async stream => {
		stream.getTracks().forEach(track => {
			let trackSettings = track.getSettings();

			let ios = () => {
				if (typeof window === 'undefined' || typeof navigator === 'undefined') return false;
				return /iPhone|iPad|iPod/i.test(navigator.userAgent || navigator.vendor || (window.opera && opera.toString() === '[object Opera]'));
			};

			if (ios()) {
				this.deviceCameraInitialised = true;
			} else if (trackSettings.width && trackSettings.height) {
				console.log('webcam width ' + trackSettings.width);
				console.log('webcam height ' + trackSettings.height);
				console.log('webcam aspect ratio ' + (trackSettings.width / trackSettings.height));

				window.ARJS_WEBCAM_ASPECT_RATIO = (trackSettings.width / trackSettings.height);
				this.deviceCameraInitialised = true;
			}

			track.stop();
		});
	}).catch(e => console.log(e));

Then at AR.js side, I have the following code:
var w = 1;
var h = 1;

if (window.ARJS_WEBCAM_ASPECT_RATIO) {
	if (window.ARJS_WEBCAM_ASPECT_RATIO < 1) {
		// portrait (width < height) => stretch width
		w = 1 / window.ARJS_WEBCAM_ASPECT_RATIO * 1.1;
	} else {
		// landscape (width >= height) => stretch height
		h = 1 * window.ARJS_WEBCAM_ASPECT_RATIO * 1.3;
	}
}

this.geom=new I.PlaneBufferGeometry(w, h);

This involves some magic constants, so the video feed is "as unstretched as possible". My primary goal was to make this work on a particular android device.
I have also added window resize event listener, which re-initialises AR.js upon  window resize (or device orientation change, e.g. portrait => landscape).
I am using Vue 3 in the project, so all aframe elements such as <a-scene> are bound to a v-if condition, that becomes false upon resize, and the whole init flow is restarted after 500ms. This way, after the resize (or orientation change), whole aframe DOM is wiped, and re-inserted. Camera aspect ratio detection code and modified AR.js aspect ratio code runs again, producing proper results (at least in my use case). If I remember correctly, camera feed aspect ratio is reported differently when in portrait vs landscape mode.

@kbs1 How did you get around this issue? I've changed over to vue 3 too but this particular bug is rather annoying. I'm thinking it doesn't really matter as I'll add a high z-level border around the video anyway but still.

@Platform-Group I've just hidden all video elements using CSS display: none !important. The video element doesn't have to be visible, all rendering is done via a-scene

Working workaround
I fixed the camera stretching by putting the whole arjs scene inside a separate html file and then using an iframe to embed that within another page. From there I can set the iframe width and height to match the camera's aspect ratio. Here's the function I used to calculate the needed iFrame width and height, it however doesn't take into account rotating devices or window size adjustments:
function calculateEmbedDimensions () {
        // Setting ideal width and height seems to actually screw up the aspect ratio so it isn't the true camera resolution
        // And if you set it to a high value (around 4k or higher) it seems to break the video stream completely on some devices
        // So just using a min and max to try and figure out what aspect ratio is default is our best bet I believe
        const constraints = {
          video: {
            facingMode: "environment",
            width: { min: 100, max: 4096 },
            height: { min: 100, max: 2160 },
          },
        };

        console.log('arjs webcam texture ', this)
        navigator.mediaDevices.enumerateDevices().then(devices => {
          console.log('devices available ', devices)
        })
        return navigator.mediaDevices.getUserMedia(constraints).then(stream => {
          console.log('video tracks ', stream.getVideoTracks())
          let streamSettings = stream.getVideoTracks()[0].getSettings()
          console.log('stream settings ', streamSettings)
          console.log('video track functions ', listFunctionsInObject(stream.getVideoTracks()[0]))
          // console.log('capabilities ', stream.getVideoTracks()[0].getCapabilities())

          let sourceAspectRatio = streamSettings.width / streamSettings.height;
          let displayAspectRatio = window.innerWidth / window.innerHeight;
          // A value of 1 represents using the full width (geomX) or height (geomY) of the display for the embed
          let geomX = 1;
          let geomY = 1;
          if (displayAspectRatio > sourceAspectRatio) {
              // Display is wider than source
              geomX = sourceAspectRatio / displayAspectRatio;
          } else {
              // Display is taller than source
              geomY = displayAspectRatio / sourceAspectRatio;
          }
          return { width: window.innerWidth * geomX, height: window.innerHeight * geomY }
        })
      }

Bump!

Is this getting fixed anytime soon? T_T

@nickw1 I'm going to pay @DuncanPodmore to fix this properly and he is going to make a pull request. I need to know if you will be available to review it as soon as he makes the pull request, to know if the solution is proper. The pull request should be there sometime next month.

Hello,
I used this kbs1 commented on Jul 26, 2023 solution and worked like a charm for arjs='sourceType: webcam;
But when I run the Ionic Angular app on my phone I get an error: Sorry, media devices API not supported.
How can I have the resize as a general solution? Not just for webcam?

Hello, I got stuck with this problem, because apart from the fact that the video image did not look as it should, the resolution is also horrible. I was looking for solutions everywhere, I even tried each of the solutions proposed here, but absolutely nothing worked.
After trial and error, I arrived at the following solution. When using arjs, you must import some libraries, including 'aframe.min.js' and 'aframe-ar.js', as you can see in the screenshots I am attaching. Within the aframe-ar.js file, there is a fragment within all the obfuscated code where the video settings, "constraints", are established.
There, there is only the following constraints "{ video: { facingMode: 'environment' } }", you must modify it in such a way that it is "{ video: { facingMode: 'environment', width: { ideal: 4096 }, height: { ideal: 2190 } }", which apart from increasing the horrible resolution that the camera has with the library, solves the error.
As the code is obfuscated, you must find this fragment in VSCode using CTRL + F (search: "mediadevices.getusermedia").
Perhaps, in a future version of arjs it would be useful to add a little more customization (perhaps it already does and I'm talking about ignorant). Well, I have already had to modify the code directly from the library to solve other types of things that are not customizable.
I will attach screenshots to clarify the situation:
From this:

To this:

I hope my answer can help resolve the error, greetings!

try to add aspect-ration in css, for make the height and width same to the resolution of the screen.

@marcusx2 apologies for late reply on this. To be honest I don't really have any time for AR.js these days and haven't looked on here for a while; hope this is fixed though.
Do please bear in mind the nature of open source projects is that contributors and maintainers are doing it on a voluntary basis.

@kalwalt and @nicolocarpignoli have been with the project for longer but I have the feeling they too may have limited time at the moment, worth contacting them perhaps though.

@marcusx2 sorry: to add to my last message, just seen you were awaiting a PR from @DuncanPodmore to fix this. I should have time to test this out in the next few weeks, I'll watch the PR list in the near future.
Apologies once again for my lack of time to spend on AR.js of late.


Fix socket_addr() to not drop chars in path

Fixes #1101

Good catch!
Change added.
It's great that you have tests ready for the changes. I'm curious what is the smart way to test functions which create files on disk - and potentially leave them behind if test have failed.

@glelk Yes so that is something I'm wondering about too... I'm not sure why the tests did not originally catch this.
The tests I have added are only unit tests for the socket_addr function to make sure it returns expected socklen values for known values.

@glelk connect and bind should return EINVAL errors if addrlen is wrong. The fact that it is 2 bytes short and still successfully connects is interesting. The smoke_test should have caught this, but it seems to connect/bind okay even with the wrong addrlen.
running 1 test
path: "/tmp/uds.6SiU3OV6QtyD/foo", socklen: 26
successfully bound socket
successfully connected
test smoke_test ... ok

running 1 test
path: "/tmp/uds.3m77UYivQ67E/foo", socklen: 28
successfully bound socket
successfully connected
test smoke_test ... ok

Just curious what OS you ran into the issue on? Maybe it has something to do with the libc::bind impl and it just doesn't error on some OSs--however the mio CI runs on quite a few platforms.
Either way this fix looks good and I'll follow up with some additional unit tests.

@kleimkuhler I ran the code on x68_64 Arch Linux


create-rspc-app build error with Axum and Prisma

Hello :wave:
I was trying out rspc with create-rspc-app and am getting this error when I run  cargo build
error[E0583]: file not found for module `prisma`
  --> api/src/main.rs:10:1
   |
10 | mod prisma;
   | ^^^^^^^^^^^
   |
   = help: to create the module `prisma`, create file "api/src/prisma.rs" or "api/src/prisma/mod.rs"

error[E0412]: cannot find type `PrismaClient` in module `prisma`
 --> api/src/api/mod.rs:9:29
  |
9 |     pub client: Arc<prisma::PrismaClient>,
  |                             ^^^^^^^^^^^^ not found in `prisma`

error[E0412]: cannot find type `PrismaClient` in module `prisma`
  --> api/src/main.rs:12:31
   |
12 | fn router(client: Arc<prisma::PrismaClient>) -> axum::Router {
   |                               ^^^^^^^^^^^^ not found in `prisma`

error[E0425]: cannot find function `new_client` in module `prisma`
  --> api/src/main.rs:35:35
   |
35 |     let client = Arc::new(prisma::new_client().await.unwrap());
   |                                   ^^^^^^^^^^ not found in `prisma`

error[E0271]: type mismatch resolving `<Router as Service<Request<Body>>>::Response == Response<UnsyncBoxBody<Bytes, Error>>`
   --> api/src/main.rs:19:13
    |
17  |           .route(
    |            ----- required by a bound introduced by this call
18  |               "/rspc/:id",
19  | /             router
20  | |                 .endpoint(move || api::Ctx {
21  | |                     client: Arc::clone(&client),
22  | |                 })
23  | |                 .axum(),
    | |_______________________^ expected struct `axum::Error`, found struct `axum_core::error::Error`
    |
    = note: struct `axum_core::error::Error` and struct `axum::Error` have similar names, but are actually distinct types
note: struct `axum_core::error::Error` is defined in crate `axum_core`
   --> /home/blue/.cargo/registry/src/github.com-1ecc6299db9ec823/axum-core-0.3.3/src/error.rs:6:1
    |
6   | pub struct Error {
    | ^^^^^^^^^^^^^^^^
note: struct `axum::Error` is defined in crate `axum_core`
   --> /home/blue/.cargo/registry/src/github.com-1ecc6299db9ec823/axum-core-0.2.9/src/error.rs:6:1
    |
6   | pub struct Error {
    | ^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `axum_core` are being used?
note: required by a bound in `axum::Router::<B>::route`
   --> /home/blue/.cargo/registry/src/github.com-1ecc6299db9ec823/axum-0.5.17/src/routing/mod.rs:127:32
    |
127 |         T: Service<Request<B>, Response = Response, Error = Infallible> + Clone + Send + 'static,
    |                                ^^^^^^^^^^^^^^^^^^^ required by this bound in `Router::<B>::route`

Some errors have detailed explanations: E0271, E0412, E0425, E0583.
For more information about an error, try `rustc --explain E0271`.
error: could not compile `rspc` due to 5 previous errors

I am very new to rust, I apologize if I could have done something to fix it myself.

Try making sure you've run cargo run --bin primsa-cli -- generate dev to generate the primsa.rs file.


Trying to address issue #3 InvalidOperationException LayoutTransform.ScaleX

Trying to address Issue #3  by introducing a
work-around / quick fix until the cause of the problem is identified.

Is it already fix?


Invalid swagger is loaded when click on try it in a service

Description:
When clicked on try it button which is on top of a service declaration, wrong swagger is getting loaded. It actually loads the swagger of another service in the same project.
https://github.com/wso2/ballerina-plugin-vscode/assets/34091327/3e288ee8-8da5-45e7-99be-a14cb30ca7c1
Steps to reproduce:
Affected Versions:
2201.7.1 RC1
OS, DB, other environment details and versions:
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

This is because the service identifier was constructed incorrectly. Hence, the view was not able to identify the service and defaulted to the last available service in the package. This issue has been fixed and will be available with the next plugin patch release.


Inefficient bean validation

Current validation implementation is very resource consuming, because it creates new validator object on each invocation in snippets/validate.txt.
When builders are used frequently, validation becomes a major cpu hog scanning classpaths, unzipping JARs etc. We have such a case using fabric8io's kubernetes-client.
It would be much more efficient to reuse the same validation object as javax.validation.Validation's documentation suggests. A static instance or user-provided factory would probably solve this problem (I do not know internal workings of generator, so I'm guessing).

@bartebor: I'll have a look.

@iocanel,  thanks for the fix :)
When do you plan to make a release?

@bartebor: It's been already released as part of 0.9.0.

Ok, thanks - I just could not find new release here: https://github.com/sundrio/sundrio/releases


Synchronize subheadings confusing

When reading "Synchronize a container to a local file system", because of "to" typically implying a left-to-right direction, I assume the instructions following it are for syncing/copying files FROM a container TO the local file system. When, in reality, the instructions and commands do the opposite. It feels like the "Synchronize a container to a local file system" and "Synchronize a local file system to a container" subheadings should be flipped.

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

ID: b646ce05-8744-6bd6-89d2-d830d27955e2
Version Independent ID: 1c2226e5-be43-2d8e-a791-78570378b988
Content: Transfer data to or from Azure Blob storage by using AzCopy v10
Content Source: articles/storage/common/storage-use-azcopy-blobs.md
Service: storage
Sub-service: common
GitHub Login: @normesta
Microsoft Alias: normesta

Thanks for the feedback @IGx89. The intention in these headings is most certainly to imply direction with one location synchronizing "to" a source location like when one synchronizes their watch to the universal time server. The time server is the source and the watch is the destination in that example. Flipping this the other way is likely to cause confusion on those perceiving it in the way that it is currently presented. Perhaps their is a direction agnostic way that we can phrase the line. What do you think about "Synchronize a container with changes to a local file system" and "Synchronize a local file system with changes to a container"?

Thanks a lot for the quick and detailed response! I'm unfortunately still not following the logic. If you're proposing the first section be renamed to "Synchronize a container with changes to a local file system" that still doesn't make sense to me, because the commands under that section move data FROM the local file system TO the container. No data leaves the container. Does that make sense?

"Synchronize a container with a local file system" would make a little more sense to me. I'm guessing part of the confusion may be because I'm coming from a developer mindset and maybe you're coming from a sysadmin mindset?

Thank you for the feedback. The term "synchronize" along with any order is likely going to cause confusion. Removing the term from each subheading to be a bit more clear about  what is happening. Thx again!

#please-close


L2 loss being added once for each stage instead of once overall?

The euclidean loss between ground truth and predicted coordinates is added once for each stage, but should be added only once, correct? Am I missing something?
https://github.com/anibali/margipose/blob/e96d59187dc17651ab184ca263f9a1a150cfa201/src/margipose/models/margipose_model.py#L244

Yes you are correct, that is a bug that I found a couple of months ago. In fact, the intention is to calculate the euclidean loss at each stage, but using the coordinate predictions from those stages (rather than repeating the same calculation based on the final predictions). However, I found that fixing it did not really affect the results so I didn't push the fix to this repo.

Fixed in https://github.com/anibali/margipose/commit/604494922989b58a5f1fa5d2ecfbe7e062578dae.


chore(main): release 0.1.2

:robot: I have created a release beep boop
0.1.2 (2024-10-28)
Miscellaneous

wordsmith readme (#35) (8ca4359)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/momentohq/momento-php-redis-client/releases/tag/v0.1.2 :sunflower:


Upload files to existing model

Describe the solution you'd like
The ability to upload files after a models creation
Describe alternatives you've considered
N/A
Additional context
Add any other context or screenshots about the feature request here.

I heartily agree! Duplicate of #1091 though, so I'll close this one. Coming soon I hope!


NixOS 19.03 manual does not note changes to kernel configuration

Issue description
I was going to test out NixOS 19.03 (nixos-19.03) after reading the release notes.
I stumbled upon an issue similar to https://github.com/NixOS/nixpkgs/issues/55415.
This seems to be a backwards-incompatible change, and is not noted in the release notes for 19.03.
Steps to reproduce
Same as https://github.com/NixOS/nixpkgs/issues/55415.
The release notes in the manual: https://github.com/NixOS/nixpkgs/blob/768336a74b95f24c7b33daf8905bd822be03c78e/nixos/doc/manual/release-notes/rl-1903.xml
Search for "linux", "kernel" or "structuredExtraConfig" and find nothing.
Technical details

system: "x86_64-linux"
host os: Linux 4.19.26, NixOS, 18.09.2292.4c0be408155 (Jellyfish)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.1.3
channels(root): "nixos-19.03.170684.07e2b59812d, nixos-unstable-19.09pre171582.26d8a8c0eb2"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

There is not a definite way yet to configure the structuredExtraConfig https://github.com/NixOS/nixpkgs/pull/55755 so I didn't feel like documenting it as:

it's a new mechanism on top of extraConfig
I would like to make some progress on https://github.com/NixOS/nixpkgs/issues/55415, which may influence the way we configure the structuredExtraConfig.

Meanwhile you can have a look at pkgs/os-specific/linux/kernel/hardened-config.nix or my supermessy repo https://github.com/teto/home/blob/1b60389b9f9e097a2fc213be512da0b528dcde57/nixpkgs/overlays/kernels.nix#L48

I understand, thanks for the response. Now that I look at it, the previous incompatible changes in 18.09 (extraConfig -> structuredExtraConfig) weren't mentioned in the release notes for 18.09 either.
This is how I got it working again in my config, in case anyone's interested: https://github.com/CrazedProgrammer/nix/commit/2d13a24bdb0ba2cf346d9fb57d435c0492b87cf7.

I think we definitely want to put it in the release notes. It's kind of on the edge between Nixpkgs and NixOS but might as well make it available in NixOS release notes.

My idea was to  expose the structured config and get rid of extraConfig as strings after https://github.com/NixOS/nixpkgs/pull/70157 so that I can finally document the thing but it's harder than I had anticipated...


Icon: Icon.color values don't work with color prop

issue reported here -> https://pluralsight.slack.com/archives/C70HPSJPP/p1581010158117100

fixed


make it so the entire node is clickable, not just the text inside the node

Currently if I click on the edges of this node :

Nothing happens. You have to click on the text inside. I think it is best to make the entire node clickable for better user experience.

Could I try my hand on this one? Never actually worked with JS on an open source project so this should be fun.

Yeah of course. Thank you. 💙
If you want some help or guidance, we have a slack team you can join. :)

@GavinFreud at the moment the links are not stored in an object i.e:
node: {     linkUrl: "url",     linkTitle: "title",     linkEmoji: "emoji" }
but rather stored inside a string as can be seen here: https://github.com/learn-anything/react-mindmap#nodes
As you wanted to try your hand on this one I'll skip this but in case you are stuck the method I was thinking of is to find "href=" inside text then get the url inside the quotes then attach an onclick handler on the p tag inside foreignObject with cursor: pointer as css on hover.
Tried it with css but no luck with height/width 100% without breaking all the layout.

I fixed this on react-mindmap, the change won't be propagated to the search engine until I'm done with the new contribution system. I'm closing this issue to avoid confusion.


jet list-channels does not show a table of top 10 peers by disk footprint on RaspiBlitz

This issue seems to be specific to RaspiBlitz, observed on two instances.
Workaround: lncli listchannels | jq -r '.channels[] | select(.num_updates) | "(.chan_id) (.num_updates)"' | sort -rgk 2 | head -10

fix is identified (not specific to RaspiBlitz). will be part of the next git push.


Unable to install Ludwig in Colab (gmpy)

Describe the bug
Installation of ludiwg via pip install ludwig fails in Colab with Python 3.6 Kernel
Colab Kernel Python 3
To Reproduce
Steps to reproduce the behavior:

Go to colab.google.com
Click on + Code
Scroll down to New code cell
Install ludwig via pip install
See error:
Please provide code, yaml definition file and a sample of data in order to entirely reproduce the issue.
Issues that are not reproducible will be ignored.

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

OS: Jupyter (Colab)
Version Kernel Python 3
Python version: Python 3.6.8
Ludwig version: 0.2

Additional context
Building wheels for collected packages: gmpy
  Building wheel for gmpy (setup.py) ... error
  ERROR: Failed building wheel for gmpy
  Running setup.py clean for gmpy
Failed to build gmpy
Installing collected packages: websockets, uvloop, httptools, h11, uvicorn, pydantic, soundfile, gmpy, starlette, fastapi, python-multipart, ludwig
  Running setup.py install for gmpy ... error
ERROR: Command "/usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-n2juq717/gmpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-nqcam76f/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-n2juq717/gmpy/

pip install gmpy and gmpy2 fails

Collecting gmpy
  Using cached https://files.pythonhosted.org/packages/26/37/2184c13cee81e1dbeaebbb13570195247e73ab2138a3db0c9d2c5347e372/gmpy-1.17.zip
Building wheels for collected packages: gmpy
  Building wheel for gmpy (setup.py) ... error
  ERROR: Failed building wheel for gmpy
  Running setup.py clean for gmpy
Failed to build gmpy
Installing collected packages: gmpy
  Running setup.py install for gmpy ... error
ERROR: Command "/usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-7tljbr5j/gmpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-amw9m7tv/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-7tljbr5j/gmpy/

Looks like error has been addressed in Github but still pipy installer/wheels in Pipy needs to be updated

@gogasca I fixed it by installing these libs
!apt-get install libgmp-dev libmpfr-dev libmpc-dev

It is both already addressed in the current master, plus there is an explaination of the solution in both the getting started and the faq pages


sandpack cannot connect to the runtime or your network is having some issues

Couldn't connect to server
This means sandpack cannot connect to the runtime or your network is having some issues. Please check the network tab in your browser and try again. If the problem persists, report it via email or submit an issue on GitHub.
ENV:
ERROR: TIME_OUT

I see this issue consistently when doing a production build with Astro.
Works absolutely fine in dev.

I'm having this error as well for the sandpack in an online course (ui.dev). Any clue?

@chopfitzroy how do we run sandpack in dev mode?

Sorry should have been more clear, running the Astro development server works, building for production with Astro causes the above issue.
I did find that updating the Astro directive on the component from client:load to client:only resolved the issue but it's not an ideal fix. In my case the issue appears to be Astro SSR.

always timeout on my phone
https://blocksuite.affine.pro/getting-started.html

Did anyone found a solution?

Check the vite config, disabling   "Cross-Origin-Embedder-Policy": "require-corp" fixed the issue.
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
optimizeDeps: {
exclude: ["@ffmpeg/ffmpeg", "@ffmpeg/util"],
},
server: {
// headers: {
//   "Cross-Origin-Opener-Policy": "same-origin",
//   "Cross-Origin-Embedder-Policy": "require-corp",
// },
},
});

@theashishmaurya solution is correct, however if the web page still requires SharedArrayBuffer(e.g you are running something like WebContainers.io or WASI in the same page/URL), those HTTP headers are required, not sure if there are any valid options that can help co-host sandpack and webcontainers or some WASI in the same web page.


Feature request - include the PV/HVM and other instance type data

Info from this page in some form would be very useful to include:
http://aws.amazon.com/amazon-linux-ami/instance-type-matrix/

closing - already covered by #33


Feature/unity serialization

Pull Request Test Coverage Report for Build 445263895

84 of 90 (93.33%)  changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-1.2%) to 98.137%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

HexCore/Graph.cs
33
39
84.62%

Totals

Change from base Build 194790138:
-1.2%

Covered Lines:
522

Relevant Lines:
530

💛  - Coveralls


fixes #676: Updating parsing to match entity spec

Closes #676

What has been done to verify that this works as intended?
Why is this the best possible solution? Were any other approaches considered?
How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
Does this change require updates to the API documentation? If so, please update docs/api.md as part of this PR.
Before submitting this PR, please make sure you have:

[ ] run make test-full and confirmed all checks still pass OR confirm CircleCI build passes
[ ] verified that any code from external sources are properly credited in comments

Sorry about pouncing on your draft PR. Can you tell I'm excited? 🥳