AttributeError: 'CompiledFFI' object has no attribute 'unpack'

Hi,
I'm using sentry==8.14.1, and see that sentry generates this error (in libsourcemap==0.5.0) when receiving a JS error and parsing the related sourcemap file.
AttributeError: 'CompiledFFI' object has no attribute 'unpack'
  File "celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "celery/app/trace.py", line 438, in __protected_call__
    return self.run(*args, **kwargs)
  File "sentry/tasks/base.py", line 54, in _wrapped
    result = func(*args, **kwargs)
  File "sentry/tasks/store.py", line 152, in process_event
    return _do_process_event(cache_key, start_time, event_id)
  File "sentry/tasks/store.py", line 114, in _do_process_event
    new_data = process_stacktraces(data)
  File "sentry/stacktraces.py", line 354, in process_stacktraces
    if processor.preprocess_step(processing_task):
  File "sentry/lang/javascript/processor.py", line 477, in preprocess_step
    self.populate_source_cache(frames)
  File "sentry/lang/javascript/processor.py", line 739, in populate_source_cache
    filename=filename,
  File "sentry/lang/javascript/processor.py", line 711, in cache_source
    for src_id, source in sourcemap_view.iter_sources():
  File "libsourcemap/highlevel.py", line 179, in iter_sources
    yield src_id, self.get_source_name(src_id)
  File "libsourcemap/highlevel.py", line 170, in get_source_name
    return decode_rust_str(rv, len_out[0])
  File "libsourcemap/highlevel.py", line 36, in decode_rust_str
    return _ffi.unpack(ptr, len).decode('utf-8', 'replace')

I can fairly reliably trigger the error if need be.
Thanks !

The sourcemap in question is generated with browserify + minifyify for a react app.

This happens if you are using a version of cffi that is too old. Not sure how you managed to do that since we have a minimum requirement in the setup.py.

pip install sentry==8.14.1 says Requirement already satisfied: cffi>=1.0.0 in ./ve/lib/python2.7/site-packages (from symsynd<3.0.0,>=2.2.0->sentry==8.14.1).
So your requirement may not be taken into account.
I had cffi==1.5.2. With the latest cffi, the problem disappeared !
Thanks


gnome collides with pipewire

Describe the bug
When setting services.xserver.desktopManager.gnome.enable to true, I get an error stating "Using PipeWire as the sound server conflicts with PulseAudio. This option requires hardware.pulseaudio.enable to be set to false"
This is despite gnome supporting pipewire.
Additional context
my configuration
Ideas to resolve
I do not know if this is a nix architecture fail. Something something nix options cannot know if other options are set and plasma needs some sort of audio server.
If this is the case, I would recommend implementing a better error message at least.
But I then don't understand, why this would work on plasma. Maybe you can look into their package and find out how they resolved it.
Notify maintainers

Metadata

system: "x86_64-linux"
host os: Linux 6.6.32, NixOS, 24.11 (Vicuña), 24.11.20240531.57610d2
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.18.2
nixpkgs: /nix/store/5jgh89kgmrb687c254wxdac4cj5hqjw8-source

Add a :+1: reaction to issues you find important.

okay more context:
this issue disappears when I disable plasma6
However now it says:

To use Flatpak you must enable XDG Desktop Portals with xdg.portal.enable.
and I understand that even less, because I do not use flatpack.

please post the full error message when reporting errors

with plasma6:
error:
       … while calling the 'head' builtin

         at /nix/store/5jgh89kgmrb687c254wxdac4cj5hqjw8-source/lib/attrsets.nix:1575:11:

         1574|         || pred here (elemAt values 1) (head values) then
         1575|           head values
             |           ^
         1576|         else

       … while evaluating the attribute 'value'

         at /nix/store/5jgh89kgmrb687c254wxdac4cj5hqjw8-source/lib/modules.nix:809:9:

          808|     in warnDeprecation opt //
          809|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          810|         inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error:
       Failed assertions:
       - Using PipeWire as the sound server conflicts with PulseAudio. This option requires `hardware.pulseaudio.enable` to be set to false

without plasma6
error:
       … while calling the 'head' builtin

         at /nix/store/5jgh89kgmrb687c254wxdac4cj5hqjw8-source/lib/attrsets.nix:1575:11:

         1574|         || pred here (elemAt values 1) (head values) then
         1575|           head values
             |           ^
         1576|         else

       … while evaluating the attribute 'value'

         at /nix/store/5jgh89kgmrb687c254wxdac4cj5hqjw8-source/lib/modules.nix:809:9:

          808|     in warnDeprecation opt //
          809|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          810|         inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error:
       Failed assertions:
       - To use Flatpak you must enable XDG Desktop Portals with xdg.portal.enable.

in the first case, disable pulseaudio:
hardware.pulseaudio.enable = false;

in the second case, you enabled flatpak:
https://gitlab.com/betalars/hier-gibt-es-nix-zu-sehen/-/blob/master/configuration.nix?ref_type=heads#L187
hence the error tells you the prerequisite option to set:
xdg.portal.enable = true;

and if you enable some wayland compositor or DE, that should be enabled for you already. For example, with gnome:
https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/x11/desktop-managers/gnome.nix#L283

Oh okay sorry for the user error and thanks to @eclairevoyant for catching that. I was really sure about never having had this enabled and I should have bothered to look it up myself.

Anyways ... I think a slightly better error message could help here.
I think it is counter intuitive that you have to explicitly disable pulse to enable pipewire in gnome.
That is also not needed for plasma.

The problem here is that PipeWire is an alternate implementation of PulseAudio, and that [GNOME enables PulseAudio by default]. So to enable PipeWire, PulseAudio has to be disabled first. I get that the error message is not that intuitive but I wonder how exactly we could improve it...

Okay I think I am going to close this then and make a new issue that just asks for a better error message.


Haml should be a development dependency, along with Compass.

I doubt every middleman user requires Haml and Compass. So let's not install them by default.

@tdreyno If I understand correctly, I can't use Slim without the middleman-more gem. Is this correct?
In the event that my understanding is accurate, and I choose to use Slim, then there's no reason to install Haml. It becomes, as I pointed out, an unnecessary dependency.
Is there a reason we shouldn't use begin/end to load Haml/Compass/any other dependency that isn't required?

Haml has always been supported in Middleman, so it needs to continue to be so and included as a dependency. We don't want to anger the hundreds of users that expect Haml to work out of the box.
Are you saying you'd like to be able to use Slim without middleman-more?

@tdreyno That would be AWESOME. Slim is the only reason I use middleman-more at all.
On that note, a simple DSL for tying in a template language of your choice, rather than having to build an 'extension' to support it might be awesome in 3.0.

@tdreyno Well, I also like to compress and minify my CSS and JavaScript, and that's in the ``middleman-more``` gem too. (Although I don't know why. It seems like a core feature for a tool that helps you build static websites.)

Tilt is our DSL. Any library which supports Tilt works out of the box. This includes Slim. Simply require it. The extra support is more is for enabling the nested_layouts and content_for helpers with Slim.
 Adding Sprockets to core would require so many dependencies... not good.

...well, that still doesn't change much in my scenario. I'm using content_for. I guess the big issue is, if I'm not using Haml (and in my case, have replaced it with a another templating language entirely) why should it be a dependency? Why is it required when I don't need it?
Requiring it when it's unnecessary is a decision that should be reversed, and while it might break a few people's sites, they should have required it in their Gemfile anyway. This change would be good for the project as it moves forward. Modularity is always a plus.

I should say though, that given the current state of master - if you want to wait until 3.0 to fix this, I understand.

"why should it be a dependency? Why is it required when I don't need it?"
How does having these unnecessary dependencies affect you?

I actually fundamentally disagree that "Modularity is always a plus." We're trying to provide a system that "just works" without having to teach designers, new to things like Terminal and Ruby, how to install gems and manage Gemfiles.

Granted, it's only a few items - but in my experience, the download of even just a few extraneous gems can add a measurable amount of time to the bundle process.
Plus, it's just a good practice to not include extra dependencies. I don't think anyone will dispute that.

@tdreyno IMO, you can have both. Modularity for advanced users, and a simple default. This is exactly what Rails does, by providing ActiveRecord, ActionController, etc out of the box. But if I want, I can replace the ORM with something more compatible - and when I do, the old dependency (in this hypothetical example, ActiveRecord) is no longer required.
Maybe it's just me, but it seems that modularity and 'smart defaults' is exactly what we need. The two ideas compliment each other.

Yes, and that's exactly why middleman-core exists.


Add C implementation for @stdlib/math/base/special/fibonacci

Resolves #780.
Checklist

[x] update readme.md
[x] include.gypi
[x] binding.gyp
[x] include/stdlib/math/base/special/
[x] src
[x] manifest.json
[x] lib
[x] examples
[x] benchmark
[x] test

@kgryte

I am not sure regarding fibonacci.h, @kgryte if you can have a look

Some tests are failing, I will have a look at those asap.

All tests and benchmarks cleared, this PR can have a final review.

All tests and benchmarks cleared, this PR can have a review, @kgryte.

You can keep the license year, as is. Thanks for checking!


Consider supporting passphrase change for private keys

It is probably easier for a passphrase to get compromised (by someone just watching a keyboard, or a window manager unexpectedly switching focus) than for the private key to get compromised; so it might be useful to support changing passphrases on existing keys.

This has been added for root keys, we're tracking adding this functionality (and import/export, since they are also root-only) in https://github.com/docker/notary/issues/483


tests: Tests query count when creating stream with subscriptions API.

These test cases are used to test the cost of stream creation.
Three scenarios of stream creation are covered:

create a public stream;
create a private stream;
create a public stream with announce=true when there is a notification stream.

Fix: #4804.
Testing Plan:
GIFs or Screenshots:

This looks great, merged, thanks @zhoufeng1989!  Let me know if you're looking for additional similar things to work on.


A white screen appears after splash screen instead of flutter view

Currently I'm on Android and I can't test this on iOS at the moment.
I have a custom native splash screen set to my app.
When entering the app (when it's not in memory) the splash screen appears as expected, but after a few seconds it fades out to a white screen instead of the flutter view.
Then the white screen just cuts to the flutter view.
My app is nearly done, and it has an hefty amount of widgets and code (I suspect this what causes the white screen because when creating a blank flutter project and running it, it doesn't show a white screen, even on debug mode).
Unfortunately, I can't share some code because the app is almost done as I said.
It's important to note that I have set the file launch_background.xml to show a custom logo and color.
This happens in debug mode and release mode.
When in debug mode the white screen appears for 5 seconds at least.
In release mode the white screen appears for under a second (really fast, but still noticeable).
Here is a gif showing the problem in release mode:
In the gif you can see the splash screen appears first as expected (the grey background), after that it just fades out to a white screen, and then it shows the actual flutter view.

Flutter doctor -v
[✓] Flutter (Channel stable, 1.22.3, on macOS 11.0.1 20B29, locale en-IL)
    • Flutter version 1.22.3 at /Users/naamapps/flutter
    • Framework revision 8874f21e79 (3 weeks ago), 2020-10-29 14:14:35 -0700
    • Engine revision a1440ca392
    • Dart version 2.10.3
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/naamapps/Library/Android/sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.2, Build version 12B45b
• CocoaPods version 1.9.1
[!] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.51.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.16.0
[✓] Connected device (1 available)
• SM G955F (mobile) • ce031713b9cc111e01 • android-arm64 • Android 9 (API
28)
! Doctor found issues in 1 category.

If you are doing any user validation or any async operation before rendering the first state of the application, it causes some delay in rendering which results in white screens like this one.

@naamapps
Please provide a complete minimal reproducible code sample that shows the issue you are facing.
Thanks.

I actually found out that the package easy_localization is loading the translation assets and in the meantime it show a blank screen.
Here is the package github issue, if anyone also experience this problem.
https://github.com/aissat/easy_localization/issues/267
Sorry for the inconvenience.

I fixed that bug when rewrite by link.    https://androworldblog.wordpress.com/2017/08/31/removing-blank-white-screen-before-app-start-upsplash-screen/


demo 119 not working

demo 119, 109,21..
popups & popover not working.
demos with html:script,
some formal ns declarations not working such as in demo 88 line ->")->header( ns = tnt"
i see the constructor of in xml view is changed..

Same issue for me.
Must be linked to the latest updates.

I adjusted the xml view generation that only namespaces which are in use are transferred, to keep the payload small. Most demos are fixed now, still some work to do...

let me know if help needed


GoogleMediaFrameworkDemo project not working, file, method declaration missing.

I downloaded the GoogleMediaFrameworkDemo project but it is giving errors.
This is how My PodFile look like:
platform :ios, ‘6.1’
target ‘GoogleMediaFrameworkDemo’ do
pod 'GoogleMediaFramework', '~> 1.0'
end
In 'VideoListController.h' it is giving error 'Unknown type name GMFIMASDKAdService, did you mean GMFAdService' on this line;
@property(nonatomic, strong) GMFIMASDKAdService *adService;
In 'VideoListController.m' it is giving error 'No visible @interface for GMFPlayerViewController declares the selector 'loadStreamWithURL:imaTag:'' on this line;
[self.videoPlayerViewController loadStreamWithURL:[NSURL URLWithString:video.videoURL] imaTag:video.adTagURL];
What should i do to resolve these errors and run the project.

Hey there,
Sorry for the confusion - we're having issues pushing the latest GMF version to CocoaPods because of how we link the IMA SDK, and that mehod is only defined as of the latest version. I'm working on getting this fixed and will keep you updated.
Thanks,
Shawn

Hope you will fix it soon.
A few questions i wanted to ask, does GMF support 'adaptive bit rate' (low/high streaming based on network speed) and 'digital video recording' (to view content which was aired earlier that day) ???
Thanks.

We use AVPlayer under the hood, so we support any video format that AVPlayer supports. For adaptive bitrate, AVPlayer supports HLS streams (m3u8). For DVR, do you mean watching a live stream and rewinding it, or just watching a standard video file that was recorded earlier in the day? The latter is definitely supported. For the former, it looks like it depends on how your server is sending the stream (see this StackOverflow question).

Going to close as a duplicate of #89


Discovery Service should be covered with unit tests

We merged this https://github.com/knaperek/djangosaml2/pull/233 and fixed the indentation errors, unit tests now works fine but we should have a valid test for this feature.
@vgiralt that would be for you if you agree

I agree, but I might need some guidance, as unit testing is my "pending subject"

Just try to see how the tests was made and put a configuration with a unknow idp that should be handled with DS.

A call that must produce a redirect to DS url
Another call that should put in the GET args the DS returning values to handle in the view.

Keep also in mind that today we moved to
https://github.com/knaperek/djangosaml2/issues/235

Done here:
https://github.com/IdentityPython/djangosaml2/commit/86a5dc792e29e873714b18600f17e0d7b7e8d657


Persistent Variance in IMDB

In running experiments on IMDB, I found that there was a very high variance in validation and test set results and I don't fully understand it, so I'm looking for some advice.
Here, I've run PPO for 10 seeds using default hyperparameters

First of all, its clear that

there is clearly a large variance in performance at epoch 0, which could be explained by randomness in the eval sampling during decoding
there is a large variance in performance at epoch 50, which could be explained by randomness in RL

But together, we see runs that perform best at epoch 0 generally perform best on perplexity at epoch 50, which I can't explain. Here's the top 5 and bottom 5 based on initial perplexity scores, plotted against each other

Given that all models should be initialized to the pretrained model, there should be no randomness in initialization. So I'm confused as to how this is possible. Getting a lucky random seed for the initial validation should not affect the random seed for RL training, so why does the model that performs best at epoch 0 generally perform best at epoch 50?
Finally, I think the variance in results is high enough that I would recommend using 10 seeds for RL4LMs experiments

So each run will have some randomness due to the dataset creation (we randomly select val and test samples) due to the large size of the original dataset.
Additionally, during decoding, there is randomness due to the sampling of tokens (both during epoch 0 and epoch 50)
Randomness in episode generation of PPO

Also can you tell the exact mean and sd of these runs and the corresponding config? We can double-check from our side too.


Sorting and the latest data

Hello, may I ask how to sort Series, how to query the latest data Series, thank you

I realized that, I don't know what's the problem?
select coutn(load) from cpu;
select * from cpu limit 1 offset count(load)-1;

The mailing list<EMAIL_ADDRESS>is a more appropriate place to ask usage questions. GitHub Issues are primarily for feature requests and bug reports.
In your note, please mention the version of the database you are running.
select * from cpu limit 1 offset count-1; You cannot reference count as a value in the query. Functions do not generate stored or cached values and the results cannot be referenced in subsequent queries or in clauses other than the SELECT clause.


[DMP 2024]: Programming Framework Enhancements

https://github.com/sugarlabs/musicblocks-v4/issues/400

comment


Corrupt worker heartbeat on server reboot

Reported on the user group: http://groups.google.com/group/storm-user/browse_thread/thread/dd3fe363db21f4f5

FileOutputStream.close() might not be sufficient to sync the file to disk. Might need to do a manual fsync.


example/set: Set is slow

Reported by @dbriemann

My understanding is that I have been trying to reduce memory usage in Ebiten especially for mobile. This was successful, but this degraded performance to get pixels from GPU like At or Set.
As actual games don't use At and Set so much, I started to think we should keep pixels for them now 🤔

Note that this was reported that FPS was about 24FPS with high resolution screen like 800x600.


Returned result not stable when query large range data

Hi Experts,
I have query range for the last 30days as this:
(sum_over_time(app_availability_5m[30d]))/count_over_time(app_availability_5m[30d])
When query from Grafana UI, the returned value is not stable, sometimes it is 100.000%, for the next seconds when I click Run Queries, it returns 99.954%.
My thanos query has basically 4 endpoints: thanos-storegateway, thanos-ruler and 2 replicas of prometheus(running thanos-sidecar).
I am thinking maybe when the value is 100.000%, it is the result from Prometheus(thanos-sidecar) as it only contains the last 2days' data. And when the value is 99.954%, this is the result from thanos-storegateway as it truly contains last 30days' data.
And obviously, 99.954% is the Correct result that I expected.
I am wondering my assumption is correct or not?
How can I ensure I only get the result from thanos-storegateway?
Thanks for you help！

Hey,
The way the query is written i would suspect it to always be 1  ( if the metric has value 1 always ), right? Can you try giving it an "offset 10m" or something like that?
 (sum_over_time(app_availability_5m[30d] offset 10m))/count_over_time(app_availability_5m[30d] offset 10m)

I checked the debug log for thanos-query, find out sometimes I will get below error:
While there is NO error log at thanos-storegateway side.
level=error ts=2023-12-18T13:28:07.580694458Z caller=proxy.go:299 component=proxy request="min_time:1700313720000 max_time:1702906080000 matchers:<name:\"__name__\" value:\"app_availability_5m\" > max_resolution_window:12000 aggregates:COUNT step:60000 range:2592000000 " err="fetch series for {cluster=\"aks-001\", prometheus_replica=\"prometheus-observability-0\"},{cluster=\"aks-001\", prometheus_replica=\"prometheus-observability-1\"},{prometheus_replica=\"observability-thanos-ruler-0\", ruler_cluster=\"aks-001\"} Addr: <IP_ADDRESS>:10901 LabelSets: {cluster=\"aks-001\", prometheus_replica=\"prometheus-observability-0\"},{cluster=\"aks-001\", prometheus_replica=\"prometheus-observability-1\"},{prometheus_replica=\"observability-thanos-ruler-0\", ruler_cluster=\"aks-001\"} Mint:<PHONE_NUMBER>012 Maxt:<PHONE_NUMBER>000: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial tcp <IP_ADDRESS>:10901: connect: connection refused\""

Can you maybe request raw data? I think you might get downsampled data in storage gateway right now.

Can you maybe request raw data? I think you might get downsampled data in storage gateway right now.

I did try to run query against raw data, still got randomly partial data returns: as below, last point, you can see the value droped to around 630, however, it normally should be 8640.

Which verson of thanos again? Is it the latest?

No it is not the latest. Thanos version:  thanos:0.29.0-scratch-r0
Also how often is this metric collected?
This metrics is collected every 5mins.
And Yes I can try a bigger offset, such as 1h. But can I know why would this offset value helps on this situation.
Is it always the "latest" datapoint in the graph?
No, sometimes it is in the middle, them back to normal.

@MichaHoffmann
I observed there are multiple times, the thanos-storegateway get OOMKilled as too much data loaded.
I guess because of this, the thanos-query ignored thanos-storegateway as an endpoint, thus only use the returned value from Prometheus thanos-sidecar.
I am wondering is there any configuration to specify: for this expression, I only want thanos-storegateway as my datasource? If thanos-storegateway is down, I can accept No Data as the result.

@MichaHoffmann I observed there are multiple times, the thanos-storegateway get OOMKilled as too much data loaded. I guess because of this, the thanos-query ignored thanos-storegateway as an endpoint, thus only use the returned value from Prometheus thanos-sidecar.
I am wondering is there any configuration to specify: for this expression, I only want thanos-storegateway as my datasource? If thanos-storegateway is down, I can accept No Data as the result.

You can use store filtering: https://thanos.io/tip/components/query.md/#store-filtering or configure querier to not ask the store at all probably!

I am wondering is there any configuration to specify: for this expression, I only want thanos-storegateway as my datasource? If thanos-storegateway is down, I can accept No Data as the result.

I suggest you have a new Thanos Query deployment that points to Store Gateway only


Add mediainfo-gui

MediaInfo's GUI currently saves its configuration file in $HOME/.mediainfo-gui

Thanks!
And btw, congrats on being the 100th contributor.


Add terminal attribute to request hash and two more hash methods.

Signed-off-by: Xin Zhuang<EMAIL_ADDRESS>For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md
Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

rebased in local, drop this and create one with most recent upstream sync.


Bugfix Model class incomaptible with inhomogeneous arrays

Related to #214, tested and contributed by @casarotti
Changelog:

Model class now saves internal model representation as 'object' arrays to deal with chunks of differing lengths
Model .npz files are now saved as pickle files
Update and improve tests to cover Model class

Hellow @bch0w,
Could this bug be related to the mpirun issue #194 using specfem2d?

@raulleoncz Yes it may be! I was unaware of this issue as I was always using uniformly distributed meshes. Are you able to re-test your problem with the latest devel branch of the code to see if you still have any issues?

Hello @bch0w, thanks for the answer.
I tried to simulate my problem using the new version of seisflows and this is what I got.
First of all, I tried using python 3.12 and numpy 1.26.4 and I got the following error:
2024-06-05 17:37:53 [INFO] | checking true/target model parameters:
2024-06-05 17:37:53 [DEBU] | checkpointing workflow to seisflows state file
Traceback (most recent call last):
File "/Users/raul/anaconda3/envs/seisflows/bin/seisflows", line 8, in
sys.exit(main())
File "/Users/raul/seisflows/seisflows/seisflows.py", line 1456, in main
sf()
File "/Users/raul/seisflows/seisflows/seisflows.py", line 456, in call
getattr(self, self._args.command)(**vars(self._args))
File "/Users/raul/seisflows/seisflows/seisflows.py", line 813, in submit
system.submit(workdir=self._args.workdir,
File "/Users/raul/seisflows/seisflows/system/workstation.py", line 213, in submit
workflow.run()
File "/Users/raul/seisflows/seisflows/workflow/inversion.py", line 239, in run
super().run()  # Runs task list
File "/Users/raul/seisflows/seisflows/workflow/forward.py", line 283, in run
func()
File "/Users/raul/seisflows/seisflows/workflow/inversion.py", line 281, in generate_synthetic_data
super().generate_synthetic_data(**kwargs)
File "/Users/raul/seisflows/seisflows/workflow/forward.py", line 313, in generate_synthetic_data
self.solver.check_model_values(path=self.path.model_true)
File "/Users/raul/seisflows/seisflows/solver/specfem.py", line 329, in check_model_values
_model.check()
File "/Users/raul/seisflows/seisflows/tools/model.py", line 402, in check
assert(val.any()), (
File "/Users/raul/anaconda3/envs/seisflows/lib/python3.10/site-packages/numpy/core/_methods.py", line 57, in _any
return umr_any(a, axis, dtype, out, keepdims)
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
At first, I thought this problem was related to the numpy version but after I downgraded it to numpy=1.23.5 the above error persisted.
The original code in model.py was this:
assert(val.any()), (
f"SPECFEM_{self.flavor} model '{key}' has no values, please "
f"check your input model path_model_init and the chosen "
f"material which controls the expected parameters"
)
I tried using val.all() instead of val.any() but the error was still there. Since 'val' is a numpy array with more than one element, I thought we were not working with this variable correctly.  After trying several ideas, I thought we could evaluate each of the individual arrays in the val list using:
for key, val in self.model.items():
# Make sure there are values in the model (not empty)
        # Modified
        print("val:", val) # Just to see if val was an array with more than one element
        for array in val:
            assert array.all(), (

Original part
assert(val.any()), (
                f"SPECFEM_{self.flavor} model '{key}' has no values, please "
                f"check your input model `path_model_init` and the chosen "
                f"`material` which controls the expected parameters"
                )

        # Make sure none of the values are NaNs
        assert(not np.isnan(np.hstack(val).astype(float)).any()), (
             f"SPECFEM_{self.flavor} model '{key}' contains NaN values and "
             f"should not, please check your model construction"
             )

    # Check the physicality of the parameters
    if self.flavor in ["2D", "3D"]:
        self._check_2d3d_parameters(min_pr, max_pr)
    elif self.flavor == "3DGLOBE":
        self._check_3dglobe_parameters(min_pr, max_pr)

The above modification worked for my particular problem. I haven't analyzed if this can affect other parts of the workflow, but for now I was able to perform the simulation using NPROC > 1 when each processor has a variable workload.
Do you think this change can affect other parts of the seisflows workflow? If not, do you think it could be a solution?

Hi @raulleoncz, thanks for the detailed error description. I'll share some thoughts here but would you mind opening this as a new issue as well so that we can continue the discussion outside of the closed PR? Thanks!

It might help if you are able to share your model file with me, I'm not sure how big the files are but I think it would help a lot in diagnosing the issue. It seems like there is still some lingering issues with non-uniform model arrays that are not being accounted for.
Looks like I missed adding an 'object' dtype to get around this ragged array here (https://github.com/adjtomo/seisflows/blob/devel/seisflows/tools/model.py#L362). That should be a simple fix, thanks for catching it, I will try and get to that asap.
In your last issue it looks like a warning is preceding the actual error ( logger.warning(f"Vp minimum is negative {self.model.vp.min()}")), which suggests your model is becoming unphysical (negative velocities). I can fix the ValueError but you will likely still get errors from having unphysical values.


"CRUISE FAULT" error on TSS2 Toyotas non-US market

Describe the bug
"CRUISE FAULT" error

How to reproduce or log data
Starting the car on 90% of the time

Expected behavior
The expected behaviour is to handle the "CRUISE FAULT" error, considering this cars have a specific fingerprint, differing from other TSS2 Toyota cars that doesn't have this kind of error.

Device/Version information (please complete the following information):

Device: [e.g. EON/EON Gold/comma two]
Dongle ID: [e.g. 77611a1fac303767, can be found in Settings -> Device -> Dongle ID or my.comma.ai/useradmin]
Route: [e.g. 77611a1fac303767|2020-05-11--16-37-07, can be found in my.comma.ai/useradmin]
Timestamp: [When in the route the bug occurs (e.g. 4min 30s into the drive)]
Version: [commit hash when on a non-release branch, or version number when on devel or release2 (e.g. 0.7.6)]
Car make/model: [e.g. Toyota Prius 2016]

@alfatag

Device: Comma two
Dongle ID: 4aef35a12dbe0a01
Route: Not applicable
Timestamp: Not applicable
Version: Shane's based on 0.8.2, Openpilot master-ci and 0.8.3
Car make/model: Corolla Hybrid 2021 (Brazil made - Brazilian market)

@Anotabien

Device: Comma 2
Dongle ID: 1e9d51d3eb083940
Route: Not applicable
Timestamp: Not applicable
Version: OP 8.1 master-ci/OP 8.2 release/OP 8.3 release/Shane Fork 0.6.6(8.2)
Car make/model: Toyota Corolla non-hybrid 2021 (Brazil made - Argentina market)

@Ale Sato Brazil SP

Device: EON Gold
My Dongle: 7d5fbee9d4476ca3
Route: Not applicable
Timestamp: Not applicable
Car make/model: Toyota / Corolla Hybrid 2020 (Brazil made - Latinamerican market)

@tomascw

Device: Comma 2
Dongle ID: 1a5384cb44ae8c65
Route: Not applicable
Timestamp: Not applicable
Version: 0.8.2 / 0.8.3
Car make/model: Toyota Rav4 HV Limited 2019 (Japan made - Argentina market)

@tape

Device: comma two
Dongle ID: 5dc0b649528bd49c
Route: 5dc0b649528bd49c|2021-04-17--07-04-17
Timestamp: Not applicable
Version: 0.8.3
Car make/model: Toyota Corolla Cross Hybrid (Thailand made and Asian market eg Thailand, Vietnam and Taiwan)

@fabiomla

Device: comma two
My Dongle: 66334e164c2e9976
Route: Not applicable
Timestamp: Not applicable
Car make/model: Toyota / Corolla Hybrid 2020 (Brazil made - Latinamerican market)

Additional context
We understand all cars are TSS2 with no LTA and Stop and go in the Toyota Stock features.
Of the 10% of the times it works, openpilot works perfectly, including "stop and go".
As a workaround, the "CRUISE FAULT" problem is by changing the "LOW_SPEED_LOCKOUT = False", where openpilot works 100% of the time when starting the car, but with no "Stop and Go" functionality.

This is a duplicate of #20606, but I'll leave this one open since it has more info. From #20606:

For clarification, my car (21 Camry) is a US model.

This is affecting my US 2017 Corolla LE.
I had it working fine (DSU-less) for a day or so and now I get cruise fault every time.
Can comment out low speed lockout event in selfdrive/car/toyota/interface.py but then I don't get full stopping to 0mph, it just disengages at 25-28mph
When I had it working, OP would break to 0mph with a lead car (but not start from 0mph as i don't have the pedal)

This is affecting my US 2017 Corolla LE.
I had it working fine (DSU-less) for a day or so and now I get cruise fault every time.
Can comment out low speed lockout event in selfdrive/car/toyota/interface.py but then I don't get full stopping to 0mph, it just disengages at 25-28mph
When I had it working, OP would break to 0mph with a lead car (but not start from 0mph as i don't have the pedal)

Your DSU-based TSS-P issue is unrelated to this TSS2 issue.

Got another one here:
https://discordapp.com/channels/469524606043160576/524327905937850394/848738053446697010
@adeebshihadeh it may be worth removing, or at least adding a note to the readme that 2021 Camry support is hit and miss, even on US model spec cars.

It is always happened with my US version of the 2018 Highlander Hybrid. Solution for me is 'turn off engine and restart'. My car is clearly not a TSS2. I could not remember exact number, but it was started from some versions ago. With Comma-Power, it didn't happen on old versions. When I figure out more. I will update my comments here.

Yeah, but was your TSS-P Highlander's DSU disconnected?  Really not a good idea to clog up this TSS2 issue.

it may not a TSS2 issues. That is the reason why I post my comments here.

Found the reason at least for my car. I will reach to other folks for the verification. I will be back to this thread when finished.

I had something like this, but for an unrelated issue (using gray panda+giraffe on TSS2 Rav4)
One can disable OP long and revert to factory by forwarding the ACC messages & disabling OP long: https://github.com/zorrobyte/openpilot/tree/TSS2_stockCruise

Device: comma two
My Dongle: dd6ca38aa430a72e
Route: Not applicable
Timestamp: Not applicable
Car make/model: Toyota / Camry LE 2021 US Model
"Cruise Fault" 100% time
OpenPilot can't engage
Restart the car doesn't solve the issue

Device: comma two
My Dongle: dd6ca38aa430a72e
Route: Not applicable
Timestamp: Not applicable
Car make/model: Toyota / Camry LE 2021 US Model
TSS 2.5+
"Cruise Fault" 100% time
OpenPilot can't engage
Restart the car doesn't solve the issue

The last time the restarting trick worked for 21 camry was on 0.8.3.
That still does involve turning key till you  see the cruise fault error, and then back, and repeatig every 10 seconds until you don't  get the error.
For long trips, its work it ( normally takes 2 or 3 min till no error and you can start car), otherwise, wait until 21 camry is supported again or return for refund.

Exactly same problem as @ShawnOnGitHub
My Dongle: 65e48933dc1b498a
Route: Not applicable
Timestamp: Not applicable
Car make/model: Toyota / Camry LE 2021 US Model
TSS2.5+
"Cruise Fault" 100% time
OpenPilot can't engage
Restart the car doesn't solve the issue.
The following attempts were unsuccessful:

To restart the car using some magic as suggested on:
https://discord.com/channels/469524606043160576/524327905937850394/816110647048667137
Try release branches 0.8.4, 0.8.5
I also tried a bunch of branches, for which I always ran: git submodule init && git submodule update && scons -j4 && reboot

Stock Cruise fork from zorrobyte:
Cloned from https://github.com/zorrobyte/openpilot.git and using branch TSS2_stockCruise.
Someone who claimed that this is fixed in a github issue https://github.com/commaai/openpilot/pull/21220:
Cloned from https://github.com/daehahn/openpilot.git using branch fix-can_recv
I tried the original Camry 2021 merge to master commit:
https://github.com/commaai/openpilot/tree/ff0be15bbc382d13c565132342cb50f2e3a342da

I was going to try relogger.py on the logs that I collected when the car was starting up, but I didn't have time yet to setup my ubuntu environment to make it all work together and on my mac I am still trying to get all the python dependencies to work.
I can submit all the logs if that would help (it's about 1.2GB from all the tries).

Exactly same problem as @ShawnOnGitHub
My Dongle: 65e48933dc1b498a
Route: Not applicable
Timestamp: Not applicable
Car make/model: Toyota / Camry LE 2021 US Model
TSS2.5+
"Cruise Fault" 100% time
OpenPilot can't engage
Restart the car doesn't solve the issue.
The following attempts were unsuccessful:

To restart the car using some magic as suggested on:
https://discord.com/channels/469524606043160576/524327905937850394/816110647048667137

Try release branches 0.8.4, 0.8.5

I also tried a bunch of branches, for which I always ran: git submodule init && git submodule update && scons -j4 && reboot

Stock Cruise fork from zorrobyte:
Cloned from https://github.com/zorrobyte/openpilot.git and using branch TSS2_stockCruise.
Someone who claimed that this is fixed in a github issue Toyota: 'Cruise Fault' fix when ignition. Not a TSS2 related fix. #21220:
Cloned from https://github.com/daehahn/openpilot.git using branch fix-can_recv
I tried the original Camry 2021 merge to master commit:
https://github.com/commaai/openpilot/tree/ff0be15bbc382d13c565132342cb50f2e3a342da

I was going to try relogger.py on the logs that I collected when the car was starting up, but I didn't have time yet to setup my ubuntu environment to make it all work together and on my mac I am still trying to get all the python dependencies to work.
I can submit all the logs if that would help (it's about 1.2GB from all the tries).

You sir saved people a lot of time.
I understand car support is not comma ai top security. But this issue pretty much render Camry 21 incompatible. I wonder if Shane or someone can provide a projected timeline on fixing this bug?
I will post my progress here.

@ShawnOnGitHub @gazeek can you turn on upload raw logs in settings and let your devices sit on WiFi until they are uploaded? Also please post a route name with the issues

Also it would be helpful if someone with a 2021 Camry uploaded a route with Enable openpilot in settings toggled off. Make sure to engage for a bit while using the stock system as well.

@sshane I have gotten the data you requested:

log with Enable openpilot set to on:

65e48933dc1b498a|2021-07-04--13-20-18--0

log with Enable openpilot set to off:

65e48933dc1b498a|2021-07-04--13-28-22--0
65e48933dc1b498a|2021-07-04--13-37-22--0

Please note that Cruise Fault shows up immediately after turning the ignition to on.
I can perform more experiments as you request, but it might take me till the weekend to provide the logs.

@sshane
My C2 has only a few routes recorded/uploaded. Same as  @gazeek, all of them demonstrate the bug since car started. OP can't engage.
dd6ca38aa430a72e
I can help experiment it as well. Please let me know.

Me too, I also am having  the same problem!!

Same tell me how to post a bounty? And I will do 500$ for the person who fixes this issue in the next 24hrs!?

Oh this issue has been going on for a while, guess I overlooked this before. Really don't know anything about coding, though I'm tech savvy enough to figure most problems out. This I can not. Help! Please! I assumed by having a car that was on the comma ai supported list that it would be easy.
There's 4 days before the 30 day return period is up.
I don't want to return it,seeing as it was the biggest reason behind the model of car I went with!!
Not to mention I bought the red edition last night!
If someone will tell me how long it will be, or how I can help that would be awesome.
People that support comma are all fans, especially when they offer money in exchange for a solution to the problem.

Thanks for the routes gazeek. @Nyck310 did you say you can reproduce stop and go functionality if you stop and restart the car a few times? A route where openpilot is able to accelerate from a stop and has no faults would be helpful!

2702185606b65689|2021-07-05--12-27-27
Long ride fully functional OP so I'm  sure it includes stop n go. 0.8.3 is the latest version I can use the Restart Workaround for OP, anything later I've  been SOL.

@Nyck310 Make sure to have upload raw logs enabled and let the device sit for the logs to upload.

No raw logs on 0.8.3. At least, no option on the GUI.
This drive is from a few days ago so I can see it all uploaded myself, but I'll make it public just in case.  If anything else, please advise.

You want to make sure that the Nones in the third column are replaced with links to download rlogs in useradmin: https://my.comma.ai/useradmin/?onebox=2702185606b65689|2021-07-05--12-27-27. If your device is online you can also see a button to request upload at the bottom of the list.

I'll  check when I go back to the garage but I'm  not sure I remember a request upload button on 0.8.3.
If I don't  respond back tonight, I'll  do more on my lunch break tomorrow.
Cheers

results:<PHONE_NUMBER>b65689|2021-06-18--12-18-22
Older, but all four filled.
Hope this helps!

That one looks good, thanks for the route! One more question, if you ignore the lowSpeedLockout and a fault occurs, can the car brake to zero and just not accelerate, or does it fully disengage under a certain speed?

I've  never modified to use that sng workaround so I'm not sure tbh, I'm  pretty stacked until monday, but if no one can post a route for that by then, I can try and see what exactly happens.

I can say for me (and the others Non-US toyotas) that the car disengage at
the same speed as the ACC system without the OP. In my case 27km/h.
El jue, 8 jul 2021 a las 15:45, sshane @.***>)
escribió:

That one looks good, thanks for the route! One more question, if you
ignore the lowSpeedLockout and a fault occurs, can the car brake to zero
and just not accelerate, or does it fully disengage under a certain speed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/commaai/openpilot/issues/20703#issuecomment-876663179,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASSVWZLOLGMJSYDQ2PDI7NLTWXW3VANCNFSM43GFW2WA
.

Would someone want to test this branch? https://github.com/commaai/openpilot/pull/21512 It should not give a cruise fault error, but stop and go (full range DRCC) will not work as it's not a feature from the factory. I'm interested to know if it brakes to zero though. Let me know your results!

@Nyck310 @ShawnOnGitHub @gazeek can one of you test out https://github.com/commaai/openpilot/tree/low-speed-lockout? It should be ready now!

I'll  be able to test in about 6 hours on 21 camry.

2702185606b65689|2021-07-09--16-34-03   -- low-speed-lockout
So the cruise fault error is officially gone, which is amazing, but also SnG is gone as well...  when speeds drop to 15mph it disengages. Progress, but I'll probably revert back to 0.8.3 for my trip tomorrow so I can have SnG during traffic.
I'll try to be available for tests over the weekend, but definitely a little tonight and Monday.
Thanks for your effort!

@Nyck310 Thanks for testing! Your logs aren't fully uploaded for what ever reason (try to leave the device on for a few extra minutes), but another user's car disengages at 12 mph, so I imagine yours might as well. Do you have a Discord? I have another branch with an experiment to try and enable sng in recent versions of openpilot (won't get merged any time soon, but interested to see if it works).

This should be fixed by 16e4f432bf592ad74dcd6085e55c01570d642757. The fix will be included in the next release.

Wait... Sorry, why is this closed, isn't  it the same result as changing only the low speed lockout to false? SnG is still screwed and nothing is different...
If this fixed the other non US cars awesome, though should I reopen a ticket for 21 camrys?

@Nyck310 Only certain trims of the Camry has a permanent low speed lockout, and we definitely don't want to ignore the lockouts on all cars, where it being non-2 is a valid lockout and we shouldn't engage. That PR correctly detects if the car has a permanent low speed lockout (no full range ACC from the factory) and ignores it since it's not a valid reason to lock you out from openpilot.
The patch I'm thinking might enable stop and go won't be merged to upstream (since these cars don't have an electronic parking brake, which is usually required by the manufacturer for stop and go), but you can feel free to incorporate it on any fork you run. I'll message you on Discord more info

@sshane thanks for fixing this issue. I have also verified (albeit a bit late...) that it works as expected in log 65e48933dc1b498a|2021-07-11--21-20-00--0
Getting stop and go working for me would be something I am interested in pursuing (as does @Nyck310, it would seem ), so I might spend time trying to get it to work on it on the weekends since comma does not want to spend time on it.
My only request is that the README.md on master branch be updated for Camry 2021 (and maybe others), currently for Camry 2021 it says:

Make
Model (US Market Reference)
Supported Package
ACC
No ACC accel below
No ALC below

Toyota
Camry 2021
All
openpilot
0mph
0mph

From what you said, there should be some tag 5 that reads something like:
5 15mph for models which don't have Full-Speed Range Dynamic Radar Cruise Control, see TSS Applicability Chart

Yes. The same for thE TSS2 Toyotas without full ACC like my RAV4 2019
Hybrid.
El lun., 12 de julio de 2021 01:54, Piotr Held @.***>
escribió:

@sshane https://github.com/sshane thanks for fixing this issue. I have
also verified (albeit a bit late...) that it works as expected in log
65e48933dc1b498a|2021-07-11--21-20-00--0
Getting stop and go working for me would be something I am interested in
pursuing (as does @Nyck310 https://github.com/Nyck310, it would seem ),
so I might spend time trying to get it to work on it on the weekends since
comma does not want to spend time on it.
My only request is that the README.md on master branch be updated for
Camry 2021 (and maybe others), currently for Camry 2021 it says:
Make Model (US Market Reference) Supported Package ACC No ACC accel below No
ALC below
Toyota Camry 2021 All openpilot 0mph 0mph
From what you said, there should be some tag 5 that reads something like:
5 15mph for models which don't have Full-Speed Range Dynamic Radar Cruise
Control, see TSS Applicability Chart
https://engage.toyota.com/static/images/toyota_safety_sense/TSS_Applicability_Chart.pdf
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/commaai/openpilot/issues/20703#issuecomment-877969521,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASSVWZJVIAJRC3DJGOVFEK3TXJYPFANCNFSM43GFW2WA
.


tower update <hostname>

re-provision a host
preserve /home partition
re-install packages installed with tower install

done


Severe Performance Degradation for S3 using SDK 1.8.32

Confirm by changing [ ] to [x] below:

[X] I've gone though Developer Guide and API reference
[X] I've searched for previous similar issues and didn't find any solution

Platform/OS/Hardware/Device
What are you running the sdk on?
Ubuntu 18.04 (x86_64)
Describe the question
We have been using SDK version 1.7.336 for a while. But we need some of the new HttpClient features in 1.8. So we upgraded to 1.8.32.
We saw our S3 transactions - puts, gets, lists all decrease in performance significantly
For example - for uploading data to S3 -
SDK 1.7.336, Speed - 1.5G to 1.75G
SDK 1.8.32, Speed - 50M to 150M

This is a significant performance regression
Here's the build info (we use bazel)
aws_copts = [
    "-DPLATFORM_LINUX",
    "-DAWS_SDK_VERSION_MAJOR=1",
    "-DAWS_SDK_VERSION_MINOR=8",
    "-DAWS_SDK_VERSION_PATCH=32",
    "-DENABLE_CURL_CLIENT",
    "-DENABLE_OPENSSL_ENCRYPTION",
]

How do I track where the problem is?
Logs/output
Nothing from a logs point of view

Hi @lintonv ,
That's interesting, would it be possible for you to share the code you're using to test these?

Hi @KaibaLopez
This is the gist of the code -
void S3Storage::upload_file(const std::string &bucket_name,
                            const std::string &object_key,
                            const std::string &file_path) const
{

    Aws::S3::Model::PutObjectRequest object_request;

    object_request.WithBucket(to_aws_str(bucket_name)).WithKey(to_aws_str(object_key));

    // The allocation tag is used for memory tracking purposes only - this char* could be anything
    // See Aws::MakeShared usage for details.
    constexpr auto mem_alloc_tag = "fstream_sptr";

    auto input_data = Aws::MakeShared<Aws::Utils::FStreamWithFileName>(
        mem_alloc_tag, to_aws_str(file_path), std::ios_base::in | std::ios_base::binary);

    object_request.SetBody(input_data);

    auto tag = set_upload_request_properties(object_request, object_key);

    auto path    = fmt::format("s3://{}/{}", bucket_name, object_key);
    // retry logic
    auto outcome = with_retry([this, &object_request]() { return this->s3_client_->PutObject(object_request); }, path);

    if (!outcome.IsSuccess())
    {
        // debug stmt
    }

    try
    {
        add_tag_to_object(bucket_name, object_key, tag.first, tag.second);
    }
    catch (S3Exception &e)
    {
        //debug stmt
    }
}

This is the same code we use for SDK Version 1.7.336 (and the latest version 1.8.32)

Thank you @KaibaLopez. Was this documented somewhere? Did I just miss that? If it is not documented, could you please make sure it is?

@KaibaLopez - we saw a segfaults and other issues with that flag on EC2 environments. We have a system that has a mixtures of code running on EC2 and running outside AWS but depending on S3 clients.
Is there an alternative way to not use that flag? Maybe configure the client in a different way?

@lintonv ,
Sorry we are working on a better way to do it but currently the only way to avoid these involve environment variables. If the AWS_EC2_METADATA_DISABLED is problematic for you, you could also set AWS_DEFAULT_REGION or AWS_REGION to your region...
Though honestly if having the env variable as true causes troubles later on, the best workaround I can think of is having something like:
setenv("AWS_EC2_METADATA_DISABLED", "true", 1);
Aws::Client::ClientConfiguration clientConfig("default"); // use this configuration for all aws clients or do the same for other client configurations
setenv("AWS_EC2_METADATA_DISABLED", "false", 1);

either that or changing the source code directly-  on clientConfiguration.cpp remove lines 127-134.
Hope one of these works for you.

Thanks @KaibaLopez
What will be the negative impact of commenting out the lines in clientConfiguration.cpp?
I understand that removing those lines will remove the need for the ec2 metadata check, but is there any negative impact of that for the code in version 1.8?

Not really, it just means that it won't do it for you.

mark


pub.dev readme for stacked_services is out of date

its missing an s
"New way:
service.registerCustomDialogBuilder(variant: Dialog.basic, builder: (context, request, completer) => Dialog(...))
Take note of the third parameter in the builder function that you can call to complete the builder instead of using the dialog service directly. You can simply call
```"
on registerCustomDialogBuilder**s**

also
`final builders = {
    DialogType.basic: (context, sheetRequest, completer) =>
        _BasicDialog(request: sheetRequest, completer: completer),
    DialogType.form:  (context, sheetRequest, completer) =>
        _FormDialog(request: sheetRequest, completer: completer),
  };`

should be
`  final builders = {
    DialogType.Basic: (context, sheetRequest, completer) =>
        _BasicDialog(request: sheetRequest, completer: completer),
    DialogType.Form:  (context, sheetRequest, completer) =>
        _FormDialog(request: sheetRequest, completer: completer),
  };`

also the rest of the example is not null-safe
`
class _BasicDialog extends StatelessWidget {
final DialogRequest request;
final Function(DialogResponse) completer;
const _BasicDialog({Key key, this.request, this.completer}) : super(key: key);
@override
Widget build(BuildContext context) {
return Dialog(
child: /* Build your dialog UI here */
);
}
}
class _FormDialog extends StatelessWidget {
final DialogRequest request;
final Function(DialogResponse) completer;
const _FormDialog({Key key, this.request, this.completer}) : super(key: key);
@override
Widget build(BuildContext context) {
return Dialog(
child: /* Build your dialog UI here */
);
}
}`

Yes, It's been a while since it's updated. We'll update it in the next release.


Hello!

I know that we tried, and totally failed, to collaborate. But there have been developments and I just wanted to check in.
(and sorry for doing it this way, is there a better way for me to get in touch?)

@mattmassicotte Hey Matt 😃
No worries at all! If a potential collaboration was short of anything, it was my consistent effort.
Open-source was not a top priority for me in recent months, the main reason being a new full-time job. Even though merging our LSP code would a bit of a tall order right now, I'd still appreciate staying in touch and exchange knowledge. Feel free to say hello via<EMAIL_ADDRESS>We could also set up a chat, that would be fun.
Thanks for letting me know of that new trace back on August 23rd. Somehow I managed not to react, my bad 🙈 I read that there's one place in macOS where a sandboxed app is allowed to run scripts. Without experimenting or totally thinking this through, my hunch was that this can not lead to simplification of user experience or development for Codeface, but I could be wrong.
I tried hard, for months, to make the LSPService unnecessary. I also approached Marcin, but he didn't react on the Swift forums, on Twitter or per email. So my current plan is to at least make the LSPService simpler and more general, which would allow setting up the servers via a GUI from within Codeface ...
Cheers,
Seb

No worries at all! If a potential collaboration was short of anything, it was my consistent effort.

Well we we have to agree to disagree on that 😃 I'll shoot you an email!


Update ticket page

Resolves #387

Recent activity doesn't look like it's taking account of every wallet created. I have tickets that are more recent than 109 days.


Have you ever heard of SOLID? This library is a joke

You can make your point without insults or you can just go ahead and create your own library

I am very sorry for insults. It's just frustrating that or I am having compose crash on 1.3, or I have to spend time to migrate to your new api...

I am very sorry for insults. It's just frustrating that or I am having compose crash on 1.3, or I have to spend time to migrate to your new api...

The old API codes were not clean. Because I wrote it when I was just starting Jetpack Compose. I cleared the unnecessary codes now. The old version was causing problems with new Android updates. So I made changes.


remove deprecated RelayBlock RPC

Remove deprecated RelayBlock RPC as mentioned/requested by @DavidVorick in PR #1630.

Need to run and update the testing

@DavidVorick sorry for that. Not yet used to the fact that make test doesn't run all tests. Will make sure to run all tests that travis runs, from now on.


Migrate global search mechanism from v1 to latest

In order to allow global, wild card based search across all entity repos, we'll want to bring that functionality from the previous version to the latest. Adhere as much as possible to SDR framework without too much custom code.

Done.


[WIP] Cfunc x86 abi

This PR makes CFunc produce LLVM IR function wrapper compliant with amd64 ABI specification and
have the same function signature as expected by a clang compiler for a given C type. Most importantly it covers the struct handling. Most of the test cases were taken from https://github.com/scrossuk/llvm-abi.
Additionally, two new types are added, CVoid and Vector. CVoid is needed for the correct void return type. Vector type is expected by clang when two floats occur inside a struct. The VectorType class should eventually be added to llvmlite, but for the sake of making it pass the CI is included directly here.

Impressive!!!!

Do you think the arg layout logic can be refactored into something more standalone and then CFunc can just use that?

FYI, we have a callconv file at:   https://github.com/numba/numba/blob/master/numba/targets/callconv.py

Yes, I think I could modify callconv.CPUCallConv.call_function directly to generate the right instructions.
I was not sure if this class is used by something else.
With arg layout logic do you mean the _compute_arguments() method? I am not sure where to put that otherwise.
Completely unrelated: there is this library which facilitates correct llvm-abi handling https://github.com/scrossuk/llvm-abi, I could not find a way to integrate it into numba, could it be possible to use it in llvmlite?

@SabirAkhadov, are you done with this PR feature-wise?

I've kicked a build on the buildfarm.  Need to check back later.

The tests are not checking whether proper C-ABI is generated.  The tests should try to execute the cfunc using one of the .ctypes or .cffi wrappers.

Also, it seems like the amd64 ABI is used regardless of the host architecture.  Does this work on x86?  What about non-x86 platforms?  i.e ARM and Power?

What about using clang to generate this LLVM code? I am looking into using dragonffi to try to generate these wrappers: https://github.com/aguinet/dragonffi/issues/13


Client should remember last pastas

The client should remember the ids of the last pastas, so we will be able to modify them in the future

https://github.com/grisu48/pasta/pull/9


Add SDMMC v1 and SDIO support

SDMMC v2 peripheral is an extension of SDMMC v1 (or SDIO) so I managed to reuse most of the code, with some cfg's.
Apart from small differeces in registers, the biggest change is that v2 uses internal DMA, while v1 has to use shared DMA peripheral. This makes code a bit uglier, because DMA channel for v1 has to be passed around. Not sure if it's possible to make it any cleaner.
This also adds TransferOptions structure to DMA, because SDMMC v1 requires setting peripheral flow control and burst transfers. Let me know if some alternative way would be prefered.
I tested this on STM32F429ZIT6 (with sd card) and STM32H745ZIT6 (with oscilloscope).
Depends on: https://github.com/embassy-rs/stm32-data/pull/130

The sdmmc-rs feature, which enables embedded-sdmmc FAT FS is currently broken, because it uses an outdated fork of asyncifyed lib. I don't think there is currently an async FS library, so maybe this feature could be removed for now.
However, I'm not sure how usable this peripheral is, without an async FS. I have yet to test if it works with future::block_on to use with a non-async FS library.

The sdmmc-rs feature, which enables embedded-sdmmc FAT FS is currently broken, because it uses an outdated fork of asyncifyed lib. I don't think there is currently an async FS library, so maybe this feature could be removed for now.

Yeah, this is quite unfortunate. embedded-sdmmc is kind of a kitchen sink though: it has a BlockDevice trait, an impl for SD SPI, MBR partition parsing, and FAT filesystem. Only the SPI impl is actually related to SDMMC, the other stuff can be used with any block device really.
Perhaps the best way forward is to add a BlockDevice trait to embedded-storage, then build on top of that? the higher layers could go into a crate like embassy-fat32, embassy-mbr or something.

Yeah, this is quite unfortunate. embedded-sdmmc is kind of a kitchen sink though: it has a BlockDevice trait, an impl for SD SPI, MBR partition parsing, and FAT filesystem. Only the SPI impl is actually related to SDMMC, the other stuff can be used with any block device really.
Perhaps the best way forward is to add a BlockDevice trait to embedded-storage, then build on top of that? the higher layers could go into a crate like embassy-fat32, embassy-mbr or something.

I also had weird feelings for that crate. There is a standalone fatfs lib, which could be used instead, without all other bloat. But it does not support async either (yet?).
I think the proposed embedded-storage trait would be ideal. Do you want me to submit a PR there now, before proceeding with this,, or can we fix that in the followup PR later?

Do you want me to submit a PR there now, before proceeding with this,, or can we fix that in the followup PR later?

If the driver is already useful as-is, we can merge it and build on top later, no probs.

There is a standalone fatfs lib, which could be used instead, without all other bloat. But it does not support async either (yet?).

Huh, fun! Seems to be a bit more mature than embedded-sdmmc, it can delete files and create/delete dirs. Hmm.


Wrong owner address on some inscriptions

I've noticed a few inscriptions that have the wrong owner address.
curl -L 'https://api.hiro.so/ordinals/v1/inscriptions/39399e536443446eda3f26ce7038178ec3b69157f38eaed19caea4614aabaf62i10' \
-H 'Accept: application/json'

Returns owner address as: bc1pugucxk7chk8phv5vatruhd4ngwefml06m2evraw9eruanwsvmd2s46zlhe
However, ord indicates the address as: bc1pardmwnx0ehtuu62q03nvlw9uglz4rvzmv9a43uq9tf99rtra897st3mxst
https://ordinals.com/inscription/39399e536443446eda3f26ce7038178ec3b69157f38eaed19caea4614aabaf62i10

I noticed the same issue on another as well. I also checked transfers for this and it doesn't include a transfer to the address that old indicates is owner.
Curious if anyone has seen this issue before.

Thanks for opening this issue @ismyhc. This issue was in our radar, and addressed in v2.1.0 - in the process of being released.


LivePersona - hover not working

Category
[ ] Enhancement
[X ] Bug
[ ] Question
Version
3.5.0
Expected / Desired Behavior / Question
Hover should be showing the information of the user as in SharePoint Online and Teams.
Observed Behavior
Hover is not working when I mouse over the persona card.
Implementation details
import { LivePersona } from "@pnp/spfx-controls-react/lib/controls/LivePersona";
import { ServiceScope } from '@microsoft/sp-core-library';
export default class MyTeamsGraph extends React.Component<IMyTeamsGraphProps, IMyTeamsGraphState> {
constructor(props, serviceScope: ServiceScope) {
 super(props);
 this._serviceScope = serviceScope;

}
public render(): React.ReactElement {
return (
<LivePersona disableHover={false} serviceScope={this._serviceScope}<EMAIL_ADDRESS>template={
<>

</>
}
context={this.props.context}
/>
);
}
Can you help?
Thanks
Miguel

I was able to solve it by passing a null serviceScope. Is this expected?

@joaojmendes - could you please answer this question?
I don't see serviceScope in the docs, so don't know why it's needed if it is populated from the context.

Hi Alex,
I’m already talked with Miguel and is working.   I will refactor some code… the ServiceScope is not need ,  and you are right we can get the serviceScope from context.
Thanks!
João
From: Alex Terentiev @.>
Date: Saturday, 29 January 2022 at 17:45
To: pnp/sp-dev-fx-controls-react @.>
Cc: João Mendes @.>, Mention @.>
Subject: Re: [pnp/sp-dev-fx-controls-react] LivePersona - hover not working (Issue #1105)
@joaojmendeshttps://github.com/joaojmendes - could you please answer this question?
I don't see serviceScope in the docs, so don't know why it's needed if it is populated from the context.
—
Reply to this email directly, view it on GitHubhttps://github.com/pnp/sp-dev-fx-controls-react/issues/1105#issuecomment-1024955875, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC7YHVOKBO2YAQJBM4QNRMLUYQRUDANCNFSM5NBQDJQA.
You are receiving this because you were mentioned.Message ID: @.***>

For compatibility with other controls that use "LivePersona". I remove the context, the control has only  has the serviceScope  property.
This change only be effect on the next release os controls.
here a sample  how to use.
<LivePersona<EMAIL_ADDRESS>template={
<>

</>
}
serviceScope={this.context.serviceScope}
/>

Hey @miguelisidoro, is this issue now resolved?
The PR from Joao Mendes to remove the property for SPFx context is also now merged


How to Set always trigger event of a marker instead of another when near together?

Summary
I have 2 marker has coordinate at same point(or has coordinate near together).
When i press on a point that there are 2 marker override other, at first time event of marker A was triggered, but the seconds marker B will be triggered.
How to set always trigger marker A  when it has same(or nearly) location others?
I tried set zIndex of markerA > zIndex of markerB but it only help marker A trigger first
Reproducible sample code
this is a question not bug

Steps to reproduce
Setup 2 marker has same coordinate called that A and B
Set MarkerA zIndex = 1
Set MarkerB zIndex = 2
Expected result
always trigger event when press on position that has 2 marker
Actual result
the first press: event Marker A is triggered
the second press: event marker B is triggered
the third press: event marker A is triggered
the fourth press: event marker B is triggered
.....
React Native Maps Version
1.3.2
What platforms are you seeing the problem on?
Android
React Native Version
0.68.2
What version of Expo are you using?
Not using Expo
Device(s)
android
Additional information
No response

Please follow the steps
https://youtu.be/VOCRBdzHEqM


Missing detail on performance optimization and troubleshooting

Can't find any documentation on what to do when this does not perform well and how to make it performant in the first place.
This article makes no mention of even using it which implies that it should not be used in production workloads, it would be good to call that out at a very minimum...
https://docs.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/performance-guidelines-best-practices
At the absolute minimum SQL Server Event 833 should be documented in the troubleshooting section
Specifically this error from event 833...
SQL Server has encountered 1 occurrence(s) of I/O requests taking longer than 15 seconds to complete on file [https://xxxx.blob.core.windows.net/yyyy/zzzz.mdf] in database id 10.  The OS file handle is 0x00000250B129D311.  The offset of the latest long I/O is: 0x00000f2ef6a000.  The duration of the long I/O is: 15759 ms.

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

ID: fb6076ae-3679-3a8e-6530-5f0db78b3f06
Version Independent ID: 335044f8-f561-6f8d-b878-f3fde1664e19
Content: SQL Server data files in Microsoft Azure - SQL Server
Content Source: docs/relational-databases/databases/sql-server-data-files-in-microsoft-azure.md
Product: sql
Technology: supportability
GitHub Login: @MikeRayMSFT
Microsoft Alias: mikeray

@MashaMSFT  - would you be available to investigate?
Thanks,
Mike

Hi @james---- , thanks for bringing this to our attention! We have processed a change to add this to the documentation that should be live later this week.
I'm going to close out this Git Issue for the time being but please feel free to comment should you need anything further.
Thanks again for reaching out and I hope you have a wonderful rest of your day!
Masha from the SQL Docs team


support windows

fix #393

01_sync.ipynb and 03_export2html.ipynb failed in windows
The reasons are
2.1 Unix path is not applicable on Windows
2.2 Notebook could not use parallel on Windows

parallel uses fastai's ProcessPoolExecutor, not the stdlib one, which behaves differently with n_workers=0. Try it :)

parallel uses fastai's ProcessPoolExecutor, not the stdlib one, which behaves differently with n_workers=0. Try it :)

@jph00 https://github.com/jph00 , Thank your reply. it was stuck when if n_workers=0.
I find it's caused by https://github.com/fastai/fastcore/blob/8ddf4dde118dea53daf849d7a5f2dc425ca49390/fastcore/parallel.py#L84-L85.
The Manager().Lock() spawns a new process.

Could we don't set self.lock = Manager().Lock() https://www.fastmail.com/mail/url?u=35e541ae when it is not_parallel?

Ah great find - yes feel free to submit a PR to add a condition there. (And please at-mention me on any PRs you do)

@jph00 https://github.com/jph00 , Thank your reply. it was stuck when if n_workers=0.
I find it's caused by https://github.com/fastai/fastcore/blob/8ddf4dde118dea53daf849d7a5f2dc425ca49390/fastcore/parallel.py#L84-L85.
The Manager().Lock() spawns a new process.

Could we don't set self.lock = Manager().Lock() https://www.fastmail.com/mail/url?u=35e541ae when it is not_parallel?

Ah great find - yes feel free to submit a PR to add a condition there. (And please at-mention me on any PRs you do)

git diff throws exception without https://github.com/mszhanyi/nbdev/blob/93ceef10b29e2d897f2e14d8ed1c81fbcab0bc53/nbdev/clean.py#L85

git diff throws exception without https://github.com/mszhanyi/nbdev/blob/93ceef10b29e2d897f2e14d8ed1c81fbcab0bc53/nbdev/clean.py#L85

Super - thank you :)

Super - thank you :)


Handshake status 502 Bad Gateway

I got this message when running bija
Bija is now running at http://localhost:5000
websocket connected
[_logging.py:66 -              warning() ] websocket connected
websocket connected
[_logging.py:66 -              warning() ] websocket connected
websocket connected
[_logging.py:66 -              warning() ] websocket connected
websocket connected
[_logging.py:66 -              warning() ] websocket connected
websocket connected
[_logging.py:66 -              warning() ] websocket connected
Handshake status 502 Bad Gateway - goodbye
[_logging.py:62 -                error() ] Handshake status 502 Bad Gateway - goodbye
Handshake status 502 Bad Gateway - goodbye
[_logging.py:62 -                error() ] Handshake status 502 Bad Gateway - goodbye

I tried changing the port, but nothing changed.
Even though the localhost address was still accessible and I could access the bija front panel.
The logs continued to give more clues:
[app.py:1741 -        log_exception() ] Exception on / [GET]
Traceback (most recent call last):
  File "sqlalchemy/engine/base.py", line 1900, in _execute_context
  File "sqlalchemy/engine/default.py", line 736, in do_execute
sqlite3.OperationalError: database is locked

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "flask/app.py", line 2525, in wsgi_app
  File "flask/app.py", line 1822, in full_dispatch_request
  File "flask/app.py", line 1820, in full_dispatch_request
  File "flask/app.py", line 1796, in dispatch_request
  File "bija/routes.py", line 59, in decorated_function
  File "bija/routes.py", line 68, in index_page
  File "bija/db.py", line 389, in set_all_seen_in_feed
  File "sqlalchemy/orm/query.py", line 2901, in __iter__
  File "sqlalchemy/orm/query.py", line 2916, in _iter
  File "sqlalchemy/orm/session.py", line 1714, in execute
  File "sqlalchemy/engine/base.py", line 1705, in _execute_20
  File "sqlalchemy/sql/elements.py", line 334, in _execute_on_connection
  File "sqlalchemy/engine/base.py", line 1572, in _execute_clauseelement
  File "sqlalchemy/engine/base.py", line 1943, in _execute_context
  File "sqlalchemy/engine/base.py", line 2124, in _handle_dbapi_exception
  File "sqlalchemy/util/compat.py", line 211, in raise_
  File "sqlalchemy/engine/base.py", line 1900, in _execute_context
  File "sqlalchemy/engine/default.py", line 736, in do_execute
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked
[SQL: SELECT note.id AS note_id, note.public_key AS note_public_key, note.content AS note_content, note.response_to AS note_response_to, note.thread_root AS note_thread_root, note.reshare AS note_reshare, note.created_at AS note_created_at, note.members AS note_members, note.media AS note_media, note.seen AS note_seen, note.liked AS note_liked, note.shared AS note_shared, note.raw AS note_raw, note.deleted AS note_deleted
FROM note JOIN profile ON profile.public_key = note.public_key
WHERE profile.following=1 OR profile.public_key='40b9c85fffeafc1cadf8c30a4e5c88660ff6e4971a0dc723d5ab674b5e61b451']
(Background on this error at: https://sqlalche.me/e/14/e3q8)
[app.py:1741 -        log_exception() ] Exception on / [GET]
Traceback (most recent call last):
  File "sqlalchemy/engine/base.py", line 1900, in _execute_context
  File "sqlalchemy/engine/default.py", line 736, in do_execute
sqlite3.OperationalError: database is locked

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "flask/app.py", line 2525, in wsgi_app
  File "flask/app.py", line 1822, in full_dispatch_request
  File "flask/app.py", line 1820, in full_dispatch_request
  File "flask/app.py", line 1796, in dispatch_request
  File "bija/routes.py", line 59, in decorated_function
  File "bija/routes.py", line 70, in index_page
  File "bija/notes.py", line 23, in __init__
  File "bija/notes.py", line 51, in build
  File "bija/notes.py", line 83, in build_thread
  File "bija/db.py", line 212, in get_note
  File "sqlalchemy/orm/query.py", line 2824, in first
  File "sqlalchemy/orm/query.py", line 2916, in _iter
  File "sqlalchemy/orm/session.py", line 1714, in execute
  File "sqlalchemy/engine/base.py", line 1705, in _execute_20
  File "sqlalchemy/sql/elements.py", line 334, in _execute_on_connection
  File "sqlalchemy/engine/base.py", line 1572, in _execute_clauseelement
  File "sqlalchemy/engine/base.py", line 1943, in _execute_context
  File "sqlalchemy/engine/base.py", line 2124, in _handle_dbapi_exception
  File "sqlalchemy/util/compat.py", line 211, in raise_
  File "sqlalchemy/engine/base.py", line 1900, in _execute_context
  File "sqlalchemy/engine/default.py", line 736, in do_execute
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked
[SQL: SELECT note.id AS note_id, note.public_key AS note_public_key, note.content AS note_content, note.response_to AS note_response_to, note.thread_root AS note_thread_root, note.reshare AS note_reshare, note.created_at AS note_created_at, note.members AS note_members, note.media AS note_media, reaction_tally.likes AS reaction_tally_likes, reaction_tally.replies AS reaction_tally_replies, reaction_tally.shares AS reaction_tally_shares, note.liked AS note_liked, note.shared AS note_shared, note.deleted AS note_deleted, profile.name AS profile_name, profile.pic AS profile_pic, profile.nip05 AS profile_nip05, profile.nip05_validated AS profile_nip05_validated, profile.following AS profile_following
FROM note LEFT OUTER JOIN reaction_tally ON reaction_tally.event_id = note.id JOIN profile ON profile.public_key = note.public_key
WHERE note.id = ?
 LIMIT ? OFFSET ?]
[parameters: ('5c3471bd1fda302d309d107793774f39a20d000a627fb9c0126990175c52a6cb', 1, 0)]
(Background on this error at: https://sqlalche.me/e/14/e3q8)
bs4/__init__.py:404: MarkupResemblesLocatorWarning: The input looks more like a URL than markup. You may want to use an HTTP client like requests to get the document behind the URL, and feed that document to Beautiful Soup.
[app.py:1741 -        log_exception() ] Exception on / [GET]
Traceback (most recent call last):
  File "sqlalchemy/engine/base.py", line 1900, in _execute_context
  File "sqlalchemy/engine/default.py", line 736, in do_execute
sqlite3.OperationalError: database is locked

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "flask/app.py", line 2525, in wsgi_app
  File "flask/app.py", line 1822, in full_dispatch_request
  File "flask/app.py", line 1820, in full_dispatch_request
  File "flask/app.py", line 1796, in dispatch_request
  File "bija/routes.py", line 59, in decorated_function
  File "bija/routes.py", line 70, in index_page
  File "bija/notes.py", line 23, in __init__
  File "bija/notes.py", line 51, in build
  File "bija/notes.py", line 83, in build_thread
  File "bija/db.py", line 212, in get_note
  File "sqlalchemy/orm/query.py", line 2824, in first
  File "sqlalchemy/orm/query.py", line 2916, in _iter
  File "sqlalchemy/orm/session.py", line 1714, in execute
  File "sqlalchemy/engine/base.py", line 1705, in _execute_20
  File "sqlalchemy/sql/elements.py", line 334, in _execute_on_connection
  File "sqlalchemy/engine/base.py", line 1572, in _execute_clauseelement
  File "sqlalchemy/engine/base.py", line 1943, in _execute_context
  File "sqlalchemy/engine/base.py", line 2124, in _handle_dbapi_exception
  File "sqlalchemy/util/compat.py", line 211, in raise_
  File "sqlalchemy/engine/base.py", line 1900, in _execute_context
  File "sqlalchemy/engine/default.py", line 736, in do_execute
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked
[SQL: SELECT note.id AS note_id, note.public_key AS note_public_key, note.content AS note_content, note.response_to AS note_response_to, note.thread_root AS note_thread_root, note.reshare AS note_reshare, note.created_at AS note_created_at, note.members AS note_members, note.media AS note_media, reaction_tally.likes AS reaction_tally_likes, reaction_tally.replies AS reaction_tally_replies, reaction_tally.shares AS reaction_tally_shares, note.liked AS note_liked, note.shared AS note_shared, note.deleted AS note_deleted, profile.name AS profile_name, profile.pic AS profile_pic, profile.nip05 AS profile_nip05, profile.nip05_validated AS profile_nip05_validated, profile.following AS profile_following
FROM note LEFT OUTER JOIN reaction_tally ON reaction_tally.event_id = note.id JOIN profile ON profile.public_key = note.public_key
WHERE note.id = ?
 LIMIT ? OFFSET ?]
[parameters: ('f02a888b758fa1e26a07e1a5d25d20a17580984ae10c955b5d6583f24265a7d5', 1, 0)]
(Background on this error at: https://sqlalche.me/e/14/e3q8)
Connection to remote host was lost. - goodbye

What do you think? I hope that can help as much as possible.

Hi there,
that first block of messages you received with the "Handshake status 502 Bad Gateway - goodbye" weren't an error in the app itself, they were just reporting on the status of the connection to relays, I can see how that would be unclear though.
Did you try opening http://localhost:5000 in your browser at that point? I suspect everything would've been running fine if you had, although it can take some time to sync with the network if you were loading an existing private key.
The subsequent errors are because the database is locked. This is probably caused by an error occurring during a write operation, that could either have been an error in the app itself, or if you force shut the app from the console after seeing the initial messages that could also be the issue (it's best to always log out using the logout link in the UI so that there's a clean shutdown).
Like I said, on the initial loading of Bija it can take some time to sync with the network (assuming you were loading an existing account with various follows, messages, notifications, etc.) Those database errors could appear if you were trying to do other stuff in the app during the sync. Basically if the database was really busy writing all your data and you were trying to access it to load other pages etc.. When loading an existing account it's best to just let it do its thing for a few mins.
The database file will be in the location where you ran bija from and is named bija.sqlite, if it's still locked there will also be a file named something like bija.sqlite-journal. If that is there then I'd just delete both files and start again, or if you only see the database file then I'd try to run it again before deleting.
Hope this helps. Do let me know how it goes.


Lines on WebGL are offsetted a few pixels to the right/bottom

Basically, I got a few "island" made out of the lineTo functions, using lineStyle I have a stroke. When I'm using a canvas it basically outputs what I like: a line that's centered to the points (no offset). However using WebGL I notice that the line is actually offsetted a few pixels to the right. I'm using a scale so it's really easy to spot this.

Could be anything, sorry - a rounding issue, WebGL issue, the way Pixi handles lines, etc - really need a simple / clear piece of code that demonstrates it (feel free to re-open with that added, or just open a new issue)


Code Style

also gain a little performance

Codecov Report

Merging #3 (7081b4d) into main (e1bac12) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main        #3   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           13        13
  Lines          371       371
=========================================
  Hits           371       371

Impacted Files
Coverage Δ

Sources/Kodable/Kodable.swift
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

Codecov Report

Merging #3 (7081b4d) into main (e1bac12) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main        #3   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           13        13
  Lines          371       371
=========================================
  Hits           371       371

Impacted Files
Coverage Δ

Sources/Kodable/Kodable.swift
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

Thanks @iAugux 🙌🏻

Thanks @iAugux 🙌🏻


Challenge http://www.freecodecamp.com/challenges/waypoint-create-a-text-field has an issue

the "x" message says "Syntax error, unrecognized expression" all the time, and the exercise can not be finished

We've fixed this. Thank you for your patience, and for bringing this to our attention!


Supported OSes

Is there documentation about which OSes are supported by Blazesym?  Windows is clearly unsupported, but is OSX expected to work?

There is not and I wanted to add that somewhere. We generally target Linux (no specific kernel requirement that I am aware of). MacOS is not officially supported, mostly due to a lack of expertise with it, but also because there has not been a need for us. We do make sure the library builds there, as some members of the community used it there in the past. That being said, we'd be happy to accept pull requests for the same.
As for Windows: you are correct, no effort has been made. In general the APIs should be largely OS agnostic (and so are the core algorithms), but system details will likely differ quite a bit and we don't have the expertise (we all come from a Linux background).


How do I run the bot at all?

I am a complete coding noob and want to run this file. I got as far as running anaconda but how do I even activate the bot? Is there any # that explains this please? :( i've been trying everything but can't make anything to anything

Read readme first


Window.onKeyEvent gets called even if propagation to the parent is stopped in the child

Describe the bug
According to Modifier.onKeyEvent documentation, returning true will prevent it's propagation to the parent, but this is currently not the case at least for Window and its child.
Here's the sample code which can be used to reporduce the problem:
fun main() = application {
  Window(
    title = "Test",
    state = rememberWindowState(position = WindowPosition(Alignment.Center), width = 1280.dp, height = 920.dp),
    onCloseRequest = ::exitApplication,
    onKeyEvent = { event ->
      exitApplication()
      true
    }
  ) {
    Box(
      modifier = Modifier
        .size(200.dp)
        .onKeyEvent {
        // do stuff
        true
      }
    )
  }
}

According to the docs, Box should not propagate key event to the Window, but if you run this program and press any key, the app will exit.
Note that both onKeyEvent handlers are getting called.
Affected platforms
Select one of the platforms below:

Desktop
(Maybe others, I didn't test)

Versions

Kotlin version*: 1.8.10
Compose Multiplatform version*: 1.3.1
OS version(s)* (required for Desktop and iOS issues): Linux 6.2.13-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 26 Apr 2023 20:50:14 +0000 x86_64 GNU/Linux
OS architecture (x86 or arm64): x86
JDK (for desktop issues): openjdk 11.0.19 2023-04-18

Note that both onKeyEvent handlers are getting called.

This is an incorrect statement, actually only Window's callback is getting called, which is not mentioned in it's documentation, I would expect that events would flow bottom up in composable hierarchy.
If this is somehow an expected behavior I'd suggest to mention it in documentation of Window.onKeyEvent.
Also: what's the right way to receive event in a child first?

In your example the Box is not focused, so it's not receiving (and not consuming) key events. This will work as you expect:
fun main() = application {
    Window(
        title = "Test",
        state = rememberWindowState(position = WindowPosition(Alignment.Center), width = 1280.dp, height = 920.dp),
        onCloseRequest = ::exitApplication,
        onKeyEvent = { event ->
            exitApplication()
            true
        }
    ) {
        val focusRequester = remember { FocusRequester() }
        Box(
            modifier = Modifier
                .size(200.dp)
                .onKeyEvent {
                    println("Key pressed in box")
                    true
                }
                .focusRequester(focusRequester)
                .focusable(true)
        )

        LaunchedEffect(Unit){
            focusRequester.requestFocus()
        }
    }
}

I see! Thank you!

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Helium address not wrapping well on mobile

The new Helium address isn't wrapping correctly on mobile

Hmm yep seems like it does.
I'll tweak it the best I can and push it in a fix.
On Mon, 24 May 2021, 04:51 Aaron Shaw, @.***> wrote:

The new Helium address isn't wrapping correctly on mobile
[image: Screenshot_20210524-044811_Gallery]
https://user-images.githubusercontent.com/3359418/119293917-46b88900-bc4b-11eb-9874-7641d35f641e.jpg
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/NebraLtd/hm-diag/issues/32, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAINW2OQ2SE4BKPWOZH6OP3TPHEKPANCNFSM45MNM5MQ
.

Fixed this


fix link to image

:rocket: PR was released in v0.0.2-next.0 :rocket:

:rocket: PR was released in v0.1.0 :rocket:


throws errors causing existing JQuery apps to fail

JQuery handles a lot of errors silently and is helpful when creating mocks/demos
ex:
$(".combobox").combobox() returns an empty array in jQuery
While the same when shoestring is included throws a `TypeError: $(...).combobox is not a function' error.
I understand that this should be handled in the application code, but I think it would be better if this stays as close as possible to JQuery or else shoestring should use a different namespace and not conflict with JQuery's $.
My usecase is Im using tablesaw in an app which already has jquery and Im now getting these errors which otherwise used to fail silently.

Hm, @jaichandra sorry about the delayed response. If you have an app that includes jQuery, use the jQuery compatible version of tablesaw:
https://github.com/filamentgroup/tablesaw#user-content-the-full-tablesaw
<script src="tablesaw.jquery.js"></script> instead of <script src="tablesaw.js"></script>
I’m going to leave this issue open though, because I think it raises a good point.


[JBPM-9894] - PIM needs to accommodate integration tests and DB profiles needs to be removed

JBPM-9894: PIM needs to accommodate integration tests and DB profiles needs to be removed

How to retest this PR or trigger a specific build:

a pull request please add comment: Jenkins retest this
a full downstream build please add comment: Jenkins run fdb

jenkins retest this

jenkins retest this

Jenkins retest this

Looks good to me, awesome work @afalhambra ! Just remove frontend/package-lock.json, that file shouldn't be uploaded

Done. Thanks a lot for the review!

Also do we want to inherit kie-parent? I think it can bring only benefits.

Thanks for the review @MarianMacik. Would be nice if you could have a look at the related PR https://github.com/jboss-integration/bxms-qe-tests/pull/3997
I agree with you. That was the idea initially when migrating PIM to Quarkus as explained in some comments already. But seems eng faced many issues due to some Quarkus deps and they decided to break that, but it might be something to start looking into it right now, since we are more tied to Quarkus right now, what do you think?


Better logging / output information as emails are parsed

Pelican's article generator and reader tell you when they've read an article and then report the number of articles parsed. It'd be nice if we could do the same.

I think we've fixed this. There are messages printed with the number of mails read from each mbox, then a summary, and now they are actually added to the list of articles!


Identifying 502 bad gateway errors

When trying to understand some API calls returning a 502 bad gateway error, I found out that mappersmith returns, in this case, a default status code of 400 and the Network error message. So I am unable to filter out these failed calls through the lib.
Is this an expected result or is it a bug? Is there a way to get a response object with the status code 502?

@fgameiro sorry for the delay, mappersmith should only return 400 for network errors, but I can see a potential bug on the node http gateway, are you talking about node.js?
https://github.com/tulios/mappersmith/blob/7381e226be5f7dde4fb1870b6e9f0113608305ef/src/gateway/http.js#L108-L113
This might be happening for 502, I can double check

hey @tulios, thanks for the response!
No, actually the problem is happening on browser, but after further checking, we found out that what is probably happening is that the cloudflare service we use is masking our server's 502. Then, we can't reach the cloudflare's 502 because of their lack of Access-Control-Allow-Credentials.
After all this, we conclude that mappersmith is getting an errored response as we expect, but without any info, so we get some sort of default response (the 400 status code and the Network error message).


Injectable log destinations

I saw that you have pretty hard-coded handlers for console and file destinations, but:
1- It's not flexible enough
2- It's not scalable
What if I want to have a Bonjour destination or a remote HTTP endpoint one?
It could be nice to setup a logger to log to multiple configured destinations (even multiple files, for example)

That would mean a lot of refactoring but your idea makes more than sense and it would be great to have it. I don’t have a quick solution how to do it elegantly and flexibly so maybe it is something worth contributing?! :wink:

Sure, I'd love to do it.
Unfortunately I don't have enough free time lately, since I'm starting to work on a personal project + I have enough features to work on for my Carlos repo as well :crying_cat_face:
let's see if someone else can step in!

Carlos looks nice, I will look deeper into that, too. But before doing that: SwiftyBeaver needs some flexible tails :smile:  - or teeth?

Implemented & released at 3ccc67c


Fix false negatives in automated tests

When running the test suite against BrowserStack I get the following failures. Things are working fine in local tests (running the browser client in a local VM) and when running the demos from the docs. I'm not sure how to handle these discrepancies. I assume this has something to do with Intern / LeadFoot / WebDriver / BrowserStack.
× IE10 on WIN - unit tests - get/focus-target - none (body) (0.002s)
AssertionError: expected <div id="intern-dom-fixture"> to equal null

× IE10 on WIN - unit tests - query/focusable.all - document (0.085s)
AssertionError: expected 'div, div, #intern-dom-fixture, <…>' to equal '<…>'

× IE10 on WIN - unit tests - query/focusable.strict - document (0.151s)
AssertionError: expected 'div, div, div, #intern-dom-fixture, <…>' to equal '<…>'

I guess the unexpected <div> elements are scrollable and thus considered focusable - I have no idea why this is happening, though.

× IE10 on WIN - unit tests - event/active-element - lifecycle (0.29s)
CancelError: Timeout reached on IE10 on WIN - unit tests - event/active-element - lifecycle
  at Anonymous function  <__intern/lib/Test.js:242:9>
  at cancel  <__intern/node_modules/dojo/Promise.js:120:21>
  at Anonymous function  <__intern/lib/Test.js:164:7>

× IE10 on WIN - unit tests - style/focus-source - lifecycle (0.185s)
CancelError: Timeout reached on IE10 on WIN - unit tests - style/focus-source - lifecycle
  at Anonymous function  <__intern/lib/Test.js:242:9>
  at cancel  <__intern/node_modules/dojo/Promise.js:120:21>
  at Anonymous function  <__intern/lib/Test.js:164:7>

× IE10 on WIN - unit tests - style/focus-source - key (0.888s)
CancelError: Timeout reached on IE10 on WIN - unit tests - style/focus-source - key
  at Anonymous function  <__intern/lib/Test.js:242:9>
  at cancel  <__intern/node_modules/dojo/Promise.js:120:21>
  at Anonymous function  <__intern/lib/Test.js:164:7>

× IE10 on WIN - unit tests - style/focus-source - pointer (0.274s)
CancelError: Timeout reached on IE10 on WIN - unit tests - style/focus-source - pointer
  at Anonymous function  <__intern/lib/Test.js:97:5>
  at cancel  <__intern/node_modules/dojo/Promise.js:120:21>
  at Anonymous function  <__intern/lib/Test.js:234:10>
  at cancel  <__intern/node_modules/dojo/Promise.js:120:21>
  at Anonymous function  <__intern/lib/Test.js:164:7>

and
× IE11 on WIN - unit tests - observe/interaction-type - detect mouse (0.098s)
CancelError: Timeout reached on IE11 on WIN - unit tests - observe/interaction-type - detect mouse
  at Anonymous function  <__intern/lib/Test.js:242:9>
  at cancel  <__intern/node_modules/dojo/Promise.js:120:21>
  at Anonymous function  <__intern/lib/Test.js:164:7>

I'm not sure how setTimeout(…, 20); can possibly hit a 100ms timeout.

× Firefox 40 on WIN - unit tests - when/focusable - scroll parent, area: 1 (0.742s)
CancelError: Timeout reached on Firefox 40 on WIN - unit tests - when/focusable - scroll parent, area: 1
  at Test.prototype.restartTimeout/this._timer<  <__intern/lib/Test.js:162:20>

× Firefox 40 on WIN - unit tests - when/focusable - scroll parent, area: 0.5 (1.46s)
CancelError: Timeout reached on Firefox 40 on WIN - unit tests - when/focusable - scroll parent, area: 0.5
  at Test.prototype.restartTimeout/this._timer<  <__intern/lib/Test.js:162:20>

× Firefox 40 on WIN - unit tests - when/visible-area - repeat callback (0.502s)
CancelError: Timeout reached on Firefox 40 on WIN - unit tests - when/visible-area - repeat callback
  at Test.prototype.restartTimeout/this._timer<  <__intern/lib/Test.js:162:20>

Maybe the container's size changes so that the calculations are off by a (few) pixels?

Upgrading a few timeouts and updating to the latest version of Firefox available on BrowserStack seems to have reduced the problems. Or maybe it was running the tests repeatedly. Or the moon's ascent. Or whatever. Who knows… Fact is, a few tests keep failing on Intern that don't fail when run locally.

right, the tests aren't flaky at all…

Build 10: https://travis-ci.org/medialize/ally.js/builds/91569028#L1060
Build 10: https://travis-ci.org/medialize/ally.js/builds/91569028#L1080
Build 11: https://travis-ci.org/medialize/ally.js/builds/91581091#L1532
Build 12: https://travis-ci.org/medialize/ally.js/builds/91658490#L1600
Build 12: https://travis-ci.org/medialize/ally.js/builds/91658490#L1716

Travis will continue to build (i.e. run npm run ci:test) on every push, even though the result (i.e. build failed) won't say much about anything…

let's see what the experts say, theintern/intern#539

after bumping the timeouts to (ridiculous) 10 seconds the builds seem to have stablizied… :dancers: