Bug: Crashing when spotify continues

After I stop playing music from spotify, which basically works fine, the Musicbox will crash if I leave it for more than an hour or so, and then wants to continue playing music again.
If i stop playing, and I get back to it an hour later, I need to reboot it manually if I want to play from spotify again. I only use spotify, so i am not aware of if the problem is the same with the other services.
If i pause a song for 5 minutes, and continue the song, there is no issue.
I've had this issue for 1½ years now.
I'm running the latest release of Musicbox.
Great work though, love the features.

Could you perhaps take a look at /var/log/mopidy/mopidy.log and post any relevant error messages contained therein?
Does it work if you do service mopidy restart instead of a full reboot of the Musicbox?

And, just to clarify, when you say 'stop' do you mean pause?

Have the same issue

And with me it just won't play anything

If you don't your logs there is literally nothing to go on.

Bit of a noob looked for log file do you use a different name for the log file

I have the same issue also, as I use MusicBox infrequently but solely for Spotify. I am still able to restart MB via the web UI but its very slow to respond (UI very sluggish to load menus, will play songs like there is no bandwidth).
I'll be sure to get the log next time this happens, I'm just so used to rebooting it now!
Original Pi B+ btw

Ok, so this issue happened again and I remember to grab the log.
Basically I start to play a spotify playlist, then pause it after several hours and try to unpause it the next day and nothing happens. I can navigate the GUI but searching for music or trying to start a new playlist results in a spinning busy icon. Sometimes it will start working 30 minutes later, but usually I simply restart and it works.
Hope this helps:
Monit.log
[UTC Apr 17 13:08:21] info     : 'mopidy' trying to restart
[UTC Apr 17 13:08:21] info     : 'mopidy' stop: /etc/init.d/mopidy
[UTC Apr 17 13:08:51] info     : 'mopidy' start: /etc/init.d/mopidy
[UTC Apr 17 13:10:51] info     : 'mopidy' connection succeeded to INET[localhost:6680] via TCP
[UTC Apr 17 16:06:38] info     : monit daemon with pid [2478] killed
[UTC Apr 17 16:06:38] info     : 'system_MusicBox' Monit stopped
[UTC Apr 17 16:07:15] info     : Starting monit daemon
[UTC Apr 17 16:07:15] info     : Monit start delay set -- pause for 300s
[UTC Apr 17 16:12:15] info     : 'system_MusicBox' Monit started
[UTC Apr 18 12:05:40] info     : monit daemon with pid [2480] killed
[UTC Apr 18 12:05:40] info     : 'system_MusicBox' Monit stopped
[UTC Apr 18 12:06:42] info     : Starting monit daemon
[UTC Apr 18 12:06:42] info     : Monit start delay set -- pause for 300s
[UTC Apr 18 12:11:42] info     : 'system_MusicBox' Monit started
[UTC Apr 24 08:07:17] info     : monit daemon with pid [2488] killed
[UTC Apr 24 08:07:17] info     : 'system_MusicBox' Monit stopped
[UTC Apr 24 08:07:55] info     : Starting monit daemon
[UTC Apr 24 08:07:55] info     : Monit start delay set -- pause for 300s
[UTC Apr 24 08:12:55] info     : 'system_MusicBox' Monit started
[UTC Apr 25 11:45:46] error    : 'upmpdcli' process is not running
[UTC Apr 25 11:45:46] info     : 'upmpdcli' trying to restart
[UTC Apr 25 11:45:46] info     : 'upmpdcli' start: /etc/init.d/upmpdcli
[UTC Apr 25 11:47:46] info     : 'upmpdcli' process is running with pid 3066
[UTC Apr 29 17:48:54] error    : 'upmpdcli' process is not running
[UTC Apr 29 17:48:54] info     : 'upmpdcli' trying to restart
[UTC Apr 29 17:48:54] info     : 'upmpdcli' start: /etc/init.d/upmpdcli
[UTC Apr 29 17:50:54] info     : 'upmpdcli' process is running with pid 5317
[UTC May  4 05:17:30] info     : Starting monit daemon
[UTC May  4 05:17:30] info     : Monit start delay set -- pause for 300s
[UTC May  4 05:22:30] info     : 'system_MusicBox' Monit started
[UTC May 10 07:36:18] error    : 'mopidy' process is not running
[UTC May 10 07:36:18] info     : 'mopidy' trying to restart
[UTC May 10 07:36:18] info     : 'mopidy' start: /etc/init.d/mopidy
[UTC May 10 07:38:18] info     : 'mopidy' process is running with pid 3691
[UTC May 11 06:27:07] error    : 'mopidy' failed protocol test [HTTP] at INET[localhost:6680] via TCP -- HTTP: Error receiving data -- Resource temporarily unavailable
[UTC May 11 06:29:12] error    : 'mopidy' failed protocol test [HTTP] at INET[localhost:6680] via TCP -- HTTP: Error receiving data -- Resource temporarily unavailable
[UTC May 11 06:29:12] info     : 'mopidy' trying to restart
[UTC May 11 06:29:12] info     : 'mopidy' stop: /etc/init.d/mopidy
[UTC May 11 06:29:42] info     : 'mopidy' start: /etc/init.d/mopidy
[UTC May 11 06:31:43] info     : 'mopidy' connection succeeded to INET[localhost:6680] via TCP`
Mopidy.log
2016-05-11 06:29:46,473 - INFO     Starting Mopidy 0.19.5 2016-05-11 06:29:48,592 - INFO     Loading config from: builtin defaults, /etc/mopidy/extensions.d/spotify.conf, /etc/mopidy/mopidy.conf, command line options 2016-05-11 06:29:50,262 - INFO     Enabled extensions: mopify, spotify, mpd, http, stream, spotify_tunigo, mobile, podcast-gpodder, local-sqlite, youtube, podcast-itunes, http-kuechenradio, scrobbler, simple-webclient, softwaremixer, local-whoosh, dirble, moped, websettings, podcast, tunein 2016-05-11 06:29:50,265 - INFO     Disabled extensions: alsamixer, gmusic, somafm, subsonic, internetarchive, audioaddict, musicbox_webclient, local, soundcloud 2016-05-11 06:29:50,268 - WARNING  Found alsamixer configuration errors, the extension has been automatically disabled: 2016-05-11 06:29:50,271 - WARNING    alsamixer/control must be set. 2016-05-11 06:29:50,274 - WARNING    alsamixer/card must be set. 2016-05-11 06:29:50,276 - WARNING  Found musicbox_webclient configuration errors, the extension has been automatically disabled: 2016-05-11 06:29:50,279 - WARNING    musicbox_webclient/musicbox unknown config key. 2016-05-11 06:29:50,282 - WARNING  Please fix the extension configuration errors or disable the extensions to silence these messages. 2016-05-11 06:30:07,956 - INFO     Starting Mopidy mixer: SoftwareMixer 2016-05-11 06:30:07,963 - INFO     Mixing using GStreamer software mixing 2016-05-11 06:30:07,976 - INFO     Mixer volume set to 85 2016-05-11 06:30:07,980 - INFO     Starting Mopidy audio 2016-05-11 06:30:07,997 - INFO     Starting Mopidy backends: SpotifyTunigoBackend, TuneInBackend, StreamBackend, PodcastBackend, YoutubeBackend, SpotifyBackend, DirbleBackend 2016-05-11 06:30:08,150 - INFO     Audio output set to "alsasink" 2016-05-11 06:30:08,299 - INFO     Starting Mopidy-Podcast directories: iTunesDirectory, FeedsDirectory, GPodderDirectory 2016-05-11 06:30:08,333 - INFO     Refreshing Mopidy-Podcast directories 2016-05-11 06:30:08,412 - INFO     Starting new HTTP connection (1): itunes.apple.com 2016-05-11 06:30:08,516 - INFO     Mopidy uses SPOTIFY(R) CORE 2016-05-11 06:30:08,647 - INFO     Starting Mopidy core 2016-05-11 06:30:09,136 - INFO     Starting Mopidy frontends: MpdFrontend, HttpFrontend, ScrobblerFrontend 2016-05-11 06:30:09,152 - INFO     MPD server running at [::ffff:<IP_ADDRESS>]:6600 2016-05-11 06:30:09,181 - INFO     HTTP server running at [::ffff:<IP_ADDRESS>]:6680 2016-05-11 06:30:09,933 - INFO     Scrobbler connected to Last.fm 2016-05-11 06:30:10,439 - INFO     Connected to Spotify 2016-05-11 06:30:11,271 - INFO     New MPD connection from [::ffff:<IP_ADDRESS>]:60441 2016-05-11 06:30:28,905 - INFO     Loaded 31 Spotify playlists 2016-05-11 06:31:43,277 - INFO     200 GET / (<IP_ADDRESS>) 108.47ms 2016-05-11 06:33:43,333 - INFO     200 GET / (<IP_ADDRESS>) 14.96ms 2016-05-11 06:35:43,388 - INFO     200 GET / (<IP_ADDRESS>) 14.72ms 2016-05-11 06:37:43,446 - INFO     200 GET / (<IP_ADDRESS>) 14.86ms 2016-05-11 06:39:43,501 - INFO     200 GET / (<IP_ADDRESS>) 14.69ms 2016-05-11 06:41:43,563 - INFO     200 GET / (<IP_ADDRESS>) 21.08ms 2016-05-11 06:43:43,613 - INFO     200 GET / (<IP_ADDRESS>) 14.67ms 2016-05-11 06:45:43,668 - INFO     200 GET / (<IP_ADDRESS>) 14.43ms 2016-05-11 06:47:43,725 - INFO     200 GET / (<IP_ADDRESS>) 14.21ms 2016-05-11 06:49:43,782 - INFO     200 GET / (<IP_ADDRESS>) 15.23ms 2016-05-11 06:51:43,837 - INFO     200 GET / (<IP_ADDRESS>) 14.40ms 2016-05-11 06:53:43,893 - INFO     200 GET / (<IP_ADDRESS>) 14.77ms 2016-05-11 06:55:43,952 - INFO     200 GET / (<IP_ADDRESS>) 17.65ms 2016-05-11 06:57:44,053 - INFO     200 GET / (<IP_ADDRESS>) 29.91ms 2016-05-11 06:59:44,106 - INFO     200 GET / (<IP_ADDRESS>) 14.33ms 2016-05-11 07:01:44,162 - INFO     200 GET / (<IP_ADDRESS>) 14.77ms 2016-05-11 07:03:44,218 - INFO     200 GET / (<IP_ADDRESS>) 14.48ms 2016-05-11 07:05:44,274 - INFO     200 GET / (<IP_ADDRESS>) 15.16ms 2016-05-11 07:07:44,386 - INFO     200 GET / (<IP_ADDRESS>) 31.09ms 2016-05-11 07:09:44,430 - INFO     200 GET / (<IP_ADDRESS>) 14.61ms 2016-05-11 07:11:44,486 - INFO     200 GET / (<IP_ADDRESS>) 14.69ms 2016-05-11 07:13:44,542 - INFO     200 GET / (<IP_ADDRESS>) 15.27ms 2016-05-11 07:13:55,134 - INFO     Loaded 31 Spotify playlists 2016-05-11 07:15:44,601 - INFO     200 GET / (<IP_ADDRESS>) 16.78ms 2016-05-11 07:17:44,657 - INFO     200 GET / (<IP_ADDRESS>) 14.35ms 2016-05-11 07:19:44,714 - INFO     200 GET / (<IP_ADDRESS>) 15.15ms 2016-05-11 07:21:44,772 - INFO     200 GET / (<IP_ADDRESS>) 14.99ms 2016-05-11 07:23:44,829 - INFO     200 GET / (<IP_ADDRESS>) 14.35ms 2016-05-11 07:25:44,887 - INFO     200 GET / (<IP_ADDRESS>) 14.37ms 2016-05-11 07:27:44,944 - INFO     200 GET / (<IP_ADDRESS>) 15.18ms 2016-05-11 07:29:40,221 - INFO     304 GET /images/icons/pause_32x32.png (<IP_ADDRESS>) 58.29ms 2016-05-11 07:29:40,376 - INFO     200 GET /images/icons/play_alt_12x12.png (<IP_ADDRESS>) 50.37ms 2016-05-11 07:29:45,023 - INFO     200 GET / (<IP_ADDRESS>) 17.77ms 2016-05-11 07:31:45,088 - INFO     200 GET / (<IP_ADDRESS>) 17.16ms 2016-05-11 07:33:45,156 - INFO     200 GET / (<IP_ADDRESS>) 18.78ms 2016-05-11 07:35:45,272 - INFO     200 GET / (<IP_ADDRESS>) 32.83ms 2016-05-11 07:37:45,382 - INFO     200 GET / (<IP_ADDRESS>) 21.83ms 2016-05-11 07:39:00,775 - INFO     304 GET /images/icons/play_alt_32x32.png (<IP_ADDRESS>) 105.35ms 2016-05-11 07:39:00,876 - INFO     304 GET /images/default_cover.png (<IP_ADDRESS>) 69.91ms 2016-05-11 07:39:01,209 - INFO     304 GET /images/icons/pause_32x32.png (<IP_ADDRESS>) 128.83ms 2016-05-11 07:39:45,561 - INFO     200 GET / (<IP_ADDRESS>) 71.53ms 2016-05-11 07:41:45,617 - INFO     200 GET / (<IP_ADDRESS>) 17.70ms 2016-05-11 07:42:12,766 - INFO     304 GET /images/icons/play_alt_32x32.png (<IP_ADDRESS>) 36.17ms 2016-05-11 07:42:12,920 - INFO     304 GET /images/default_cover.png (<IP_ADDRESS>) 80.46ms 2016-05-11 07:42:13,229 - INFO     304 GET /images/icons/pause_32x32.png (<IP_ADDRESS>) 41.58ms 2016-05-11 07:43:45,683 - INFO     200 GET / (<IP_ADDRESS>) 18.80ms 2016-05-11 07:45:18,321 - INFO     304 GET /images/default_cover.png (<IP_ADDRESS>) 82.82ms 2016-05-11 07:45:18,398 - INFO     304 GET /images/icons/play_alt_32x32.png (<IP_ADDRESS>) 57.46ms 2016-05-11 07:45:18,566 - INFO     304 GET /images/icons/pause_32x32.png (<IP_ADDRESS>) 38.26ms 2016-05-11 07:45:45,750 - INFO     200 GET / (<IP_ADDRESS>) 18.57ms 2016-05-11 07:47:37,347 - INFO     304 GET /images/icons/play_alt_32x32.png (<IP_ADDRESS>) 14.70ms 2016-05-11 07:47:45,809 - INFO     200 GET / (<IP_ADDRESS>) 15.83ms 2016-05-11 07:49:45,866 - INFO     200 GET / (<IP_ADDRESS>) 14.20ms 2016-05-11 07:51:46,018 - INFO     200 GET / (<IP_ADDRESS>) 46.41ms 2016-05-11 07:52:10,622 - INFO     304 GET /images/default_cover.png (<IP_ADDRESS>) 43.26ms 2016-05-11 07:53:46,073 - INFO     200 GET / (<IP_ADDRESS>) 18.34ms 2016-05-11 07:55:46,135 - INFO     200 GET / (<IP_ADDRESS>) 15.07ms 2016-05-11 07:57:23,657 - INFO     304 GET /images/icons/play_alt_32x32.png (<IP_ADDRESS>) 43.15ms 2016-05-11 07:57:23,766 - INFO     304 GET /images/default_cover.png (<IP_ADDRESS>) 69.07ms 2016-05-11 07:57:46,201 - INFO     200 GET / (<IP_ADDRESS>) 17.33ms 2016-05-11 07:59:46,346 - INFO     200 GET / (<IP_ADDRESS>) 55.81ms 2016-05-11 08:01:46,429 - INFO     200 GET / (<IP_ADDRESS>) 22.53ms 2016-05-11 08:03:46,552 - INFO     200 GET / (<IP_ADDRESS>) 38.37ms

Thanks for providing your log unfortunately the LOG_LEVEL is too high to show anything interesting. The problem with increasing the verbosity is that over time it's a great way to wear out your SD card so it's not advisable in the long-term. However, if you have a way to reliably recreate this problem then you could try temporarily setting level = DEBUG in /etc/mopidy/mopidy.log.
When Mopidy crashes, depending on your browser, you may still be able to navigate the web UI since it's cached by your browser; but anything action that requires new response data will fail and you'll get the spinning icon.
Can you just clarify when you paused and unpaused, particularly in relation to the events in monit.log.


Fix log_sum_exp to handle large positive/negative inputs

Fixing #2356
For the updated unit test case, the current log_sum_exp(-1) yields [[3.4076, 6.4076], [-inf, inf]].  With this fix, the result will be [[3.4076, 6.4076], [-998.5924, 1001.4076]], which matches the output from pytorch.

Nice, thanks!


Should there be seed setting for recursiveSplitModule / recursiveSplitCell ??

Even though what is actually stochastic that needs seed setting is the celda_CG/celda_G/celda_C functions that were wrapped into recursiveSplitModule / recursiveSplitCell. Should we still set seed to them so that the results are more reproducible?

This concern from me is that I don't know how set.seed() outside of the recursiveSplitModule / recursiveSplitCell affects the with_seed() function used inside of celda_CG/celda_G/celda_C

seed arguments added to recursiveSplitModule and recursiveSplitCell


[CVE-2022-39135] Bump up the calcite version to 1.32.0

Bumping up the calcite version from 1.30.0 to 1.32.0

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 27.64%. Comparing base (59551e4) to head (2acc4f1).
Report is 79 commits behind head on master.

Additional details and impacted files
@@              Coverage Diff              @@
##             master   #12586       +/-   ##
=============================================
- Coverage     61.75%   27.64%   -34.11%
- Complexity      207      211        +4
=============================================
  Files          2436     2451       +15
  Lines        133233   133730      +497
  Branches      20636    20704       +68
=============================================
- Hits          82274    36968    -45306
- Misses        44911    93943    +49032
+ Partials       6048     2819     -3229

Flag
Coverage Δ

custom-integration1
?

integration
<0.01% <ø> (-0.01%)
:arrow_down:

integration1
<0.01% <ø> (-0.01%)
:arrow_down:

integration2
0.00% <ø> (ø)

java-11
<0.01% <ø> (-61.71%)
:arrow_down:

java-21
27.63% <ø> (-33.99%)
:arrow_down:

skip-bytebuffers-false
27.64% <ø> (-34.11%)
:arrow_down:

skip-bytebuffers-true
0.00% <ø> (-27.73%)
:arrow_down:

temurin
27.64% <ø> (-34.11%)
:arrow_down:

unittests
27.63% <ø> (-34.11%)
:arrow_down:

unittests1
?

unittests2
27.63% <ø> (-0.10%)
:arrow_down:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Fix Android version detection (once and forever)

Android parsing is broken... again!
In this patch I changed the way Android versions are detected, using a regex instead of parsing CSS: this should be way more robust.
Motivation: CSS parsing is not reliable, class names are auto-generated and change at every update of Play Store Web.
Instead, now the Android version is gathered using a regex which supports "1.2.3" and "1.2.prod.3" naming conventions.
This PR also includes content from PR https://github.com/CodesFirst/new_version_plus/pull/8 for updated dependencies on package_info_plus.

While we wait for merging and publishing people can use my fork by adding this in pubspec.yaml:
dependency_overrides:
  new_version_plus:
    git: https://github.com/easyhour/new_version_plus.git

app_review should depend on newer version of package_info_plus, 1.0.0 is outdated.

Because every version of new_version_plus from git depends on package_info_plus ^3.0.0 and app_review 2.1.2+1 depends on package_info_plus ^1.0.0, new_version_plus from git is incompatible with app_review 2.1.2+1.

thanks for your help, the regular expression was modified, since it did not work in some applications, but your idea helped us a lot. thanks for your help.


Crash in [FSRRunLoopThread main] (FSRWebSocket.m:1839)

I got a crash in crashlytics that seems to lead streight to a problem in FIRWebSocket.
ENV:

Xcode version: 10.1
Firebase Versions and use:

Firebase/Auth (5.12.0):

Firebase/CoreOnly
FirebaseAuth (= 5.0.5)
Firebase/Core (5.12.0):

Firebase/CoreOnly
FirebaseAnalytics (= 5.3.0)

Firebase/CoreOnly (5.12.0):

FirebaseCore (= 5.1.7)
- Firebase/Database (5.12.0):
Firebase/CoreOnly
FirebaseDatabase (= 5.0.3)

NOTE: Also  using, in parallel, Firestore V0.14

Problem:
I got a crash that I cannot reproduce, and cannot find the reason.
Happened once, in my production env app, some details from crashlytics:
Model: iPhone 5
Version: 10.3.3 (14G60)
Happened on opening of app, before any screens or anything.
com.squareup.SocketRocket.NetworkThread 👍 com.google.fira.worker :
0
libsystem_kernel.dylib
mach_msg_trap + 20
1
libsystem_kernel.dylib
mach_msg + 44
2
CoreFoundation
__CFRunLoopServiceMachPort + 144
3
CoreFoundation
__CFRunLoopRun + 1436
4
CoreFoundation
CFRunLoopRunSpecific + 470
5
CoreFoundation
CFRunLoopRunInMode + 104
6
Foundation
<redacted> + 258
7
MY-APP
FSRWebSocket.m - Line 1839
-[_FSRRunLoopThread main]
8
Foundation
<redacted> + 1122
9
libsystem_pthread.dylib
_pthread_body + 216
10
libsystem_pthread.dylib
_pthread_start + 234
11
libsystem_pthread.dylib
thread_start + 8

Other possibly related threads:
com.google.fira.worker:

0
libcorecrypto.dylib
ccn_sub + 93
1
(Missing)
2
libcorecrypto.dylib
cczp_sqr_ws + 50
3
libcorecrypto.dylib
cczp_power_ssma_ws + 244
4
libcorecrypto.dylib
cczp_power_ssma + 76
5
libcorecrypto.dylib
ccprime_rabin_miller + 240
6
libcorecrypto.dylib
ccrsa_generate_probable_prime_from_auxilary_primes + 476
7
libcorecrypto.dylib
ccrsa_generate_probable_prime + 528
8
libcorecrypto.dylib
ccrsa_generate_fips186_prime_factors + 242
9
libcorecrypto.dylib
ccrsa_generate_fips186_key_trace + 224
10
libcorecrypto.dylib
ccrsa_generate_fips186_key + 26
11
Security
SecRSAPrivateKeyInit + 456
12
Security
SecKeyCreate + 106
13
Security
SecRSAKeyGeneratePair + 34
14
Security
SecKeyGeneratePair + 198
15
MY-APP
+[FIRInstanceIDKeyPair generateRSA2048KeyPairWithPrivateTag:publicTag:error:] + 562
16
MY-APP
-[FIRInstanceIDKeyPairStore generateAndSaveKeyWithSubtype:creationTime:error:] + 138
17
MY-APP
-[FIRInstanceIDKeyPairStore loadKeyPairWithError:] + 664
18
MY-APP
-[FIRInstanceIDKeyPairStore appIdentityWithError:] + 24
19
MY-APP
-[FIRInstanceID(Private) appInstanceID:] + 50
20
MY-APP
-[APMIdentity firebaseInstanceID] + 112
21
MY-APP
-[APMMeasurement createRawEventMetadataWithUserAttributes:] + 562
22
MY-APP
__42-[APMMeasurement writeEventOnWorkerQueue:]_block_invoke.1144 + 584
23
MY-APP
-[APMSqliteStore performTransaction:] + 146
24
MY-APP
-[APMMeasurement writeEventOnWorkerQueue:] + 1464
25
MY-APP
-[APMMeasurement handleEventOnWorkerQueue:] + 1356
26
MY-APP
__51-[APMScheduler scheduleOnWorkerQueueBlockID:block:]_block_invoke + 92
27
libdispatch.dylib
_dispatch_call_block_and_release + 10
28
libdispatch.dylib
_dispatch_queue_serial_drain + 854
29
libdispatch.dylib
_dispatch_queue_invoke + 886
30
libdispatch.dylib
_dispatch_root_queue_drain + 326
31
libdispatch.dylib
_dispatch_worker_thread3 + 106
32
libsystem_pthread.dylib
_pthread_wqthread + 1040
33
libsystem_pthread.dylib
start_wqthread + 8

@shachar-silbert Did you, by chance, transpose the line number in your bug report?  Is this the same crash as #2485?

@paulb777 I did not, and I looked in the bug you sent, it seems quite different, with different classes on the way, and different final crash reasons.

@shachar-silbert Looking more closely at the second thread, I see 'FIRInstanceID' and 'APMSqliteStore', both of which fixes for rare, sporadic crashes in recent release. Would you try Firebase 5.19.0 to see if the issue still occurs and send us updated traces?

Sure, will update if happens in further versions

Closing for now. Will reopen on new data.

@shachar-silbert, I am also facing the same issue, did you find the solution for this?

@neemssoni I updated the version of the FIR and had no crashes since, yet...


Add skeleton loading to pagination in explore page

With PR https://github.com/liteflow-labs/starter-kit/pull/323, the pagination is executed separately and only client side,  a skeleton should be added while it's loading. This concern the explore page.
https://github.com/liteflow-labs/starter-kit/pull/323#discussion_r1241770442

Closed with https://github.com/liteflow-labs/starter-kit/pull/348


@orta => [Post] Notorious BUG – the Unbugged session

Closes #77.
This post documents what goes on in https://github.com/artsy/eigen/pull/203

Currently when rendering this post there are a few issues:

[x] No decoration for (un)ordered lists.
[x] Thin column layout makes codeblocks hard to read.
[x] Codeblock in between list items makes a list item completely disappear and add a huge whitespace gap.
[x] Small codeblocks are being rendered inline and very weird:

Alright, this is :+1:

Sweet, thanks @orta!

I just noticed that lists in the blurb on the index page still don’t show decoration.

I scope the changes to only be in the article pages, wasn't too sure what else I'd be affecting.


Fixed objectdisposedexception Issue #68

Suppress throws from dispose

This seems to fix the issue #68 I reported.

@McNeight @tdhintz I have posted release on the thread you linked.

@Ezghoul
Thank you for your contribution.
-Neil


Simply test the built docker image in nightly CI

It closes #1580.

In nightly CI, we have built docker images for kvrocks, but we cannot confirm the built docker image is valid, e.g. the kvrocks may just crash after starting due to some OS environment problems, like shared library missing. We want to add some simple test to confirm the built image is run-able.

Or even add the extra test step at -

Seems a good idea, but I do not know how to get the docker image in the previous step (docker/build-push-action@v3) since we do not push it.

And, a failed try by me, is that uses: docker://apache/kvrocks:nightly does not work, seems the asf github settings blocked them.

@PragmaTwice I already link to this snippet which has a step to "Build and load".
      - name: Build and load
        uses: docker/build-push-action@v3
        with:
          context: .
          file: ${{matrix.file}}
          tags: ${{matrix.name}}:ci
          outputs: type=docker
      - name: Sanity check
        run: docker run --rm -v $(pwd):/github/workspace ${{matrix.name}}:ci check

Take care of outputs and the sanity check step we use docker run.

@PragmaTwice I already link to this snippet which has a step to "Build and load".
      - name: Build and load
        uses: docker/build-push-action@v3
        with:
          context: .
          file: ${{matrix.file}}
          tags: ${{matrix.name}}:ci
          outputs: type=docker
      - name: Sanity check
        run: docker run --rm -v $(pwd):/github/workspace ${{matrix.name}}:ci check

Take care of outputs and the sanity check step we use docker run.

Got it. Done.


fix:change kubernetes rabac url

/ok-to-test

/approve
/lgtm

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: fleeto, wbtlb
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

content_zh/OWNERS [fleeto]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Configuration file with sorting parameters?

Done. This is not documented. However, you can do things like this:
mountainsort ds001_sort.msh $path0/pre0.mda $path0 --detectability_threshold=4 --include=testing.cfg
where testing.cfg has some parameters like this
clip_size=200


Implement a fast CLI

Is your feature request related to a problem? Please describe.
The Alluxio CLI (ie. bin/alluxio fs) is very slow (~1s+ response times).
Describe the solution you'd like
A faster Alluxio CLI (<100ms response times)
Urgency
Not urgent
Additional context
We could use the rest interface but that has a dependency on the proxy.

Will close it for now, feel free to reopen it and contact us if this is a strong request.


Documentation suggestion: "Is added to" and "Also requires" for each script

Whilst this information is often in the description for a component - it's not always there and is sometimes a bit buried.
I suggest a standard format for the docs where each component has an entry maybe at the start of "Overview" that describes:

What gameobject/prefab this component is intended to be added to
What other components/prefabs either here or elsewhere in the scene are needed for minimal functionality.

The probably I'm trying to solve here is the "starting from scratch" problem. I still find myself grabbing prefabs from the example scenes that do what I need - as it's quicker than figuring out what combination of components I need to add to a vanilla scene.

Good idea. A shared doc format can go a long way in making it more beginner-friendly and eases the pain that is documenting it all.

I've been thinking about this some more. Personally - I've been going back to basics. My original project involving VRTK was rushed and I mainly muddled through by grabbing a whole hierarchy from the examples and tweaking it as needed.
I've started to try and teach a couple of others to use VRTK and it's forced me to ensure I fully understand what's going on.
With that in mind I've started going through the examples to see the simplest route to recreate their functionality. As mentioned elsewhere "getting started" stops a little short and the main docs are a mix of things you really need to know to get anywhere and a bunch of more advanced things that will just confused someone starting out.
My method so far has been a mixture of:
a) Taking apart the example to see which components are used
b) Recreating the same thing in a new scene to see what the minimum required configuration is
c) Reading the docs when I get stuck.
As you can see - reading the docs comes last in this list! So - how could the docs be more useful?
This ticket is one addition that would help. It would make it much easier to understand how to use each component.
The other thing that would be a huge improvement to the current state of the docs is the addition of something along the lines of RECIPES.md
I envisage this as a fairly short, succinct step by step instructions for common functionality. The more basic ones would come first (with the general gist of 'getting started' being the very first recipe).
 ;-)

(I realise this comment has got very little to do with the title of this issue now. Apologies - I'll start a new issue if anyone thinks this is worth pursuing)

Gonna close this and roll the discussion into this new issue:
https://github.com/thestonefox/VRTK/issues/1422


Install core cli

Closes #2647

What changed?
Added section to describe installing the gitops CLI

Why was this change made?
We use this within our install and getting started guides

How did you validate the change?
Tested locally
To note
This change introduces an element which we will need to update on each new release to stay current.]
This will need following up when WGE has its own CLI which we want to highlight

@ozamosi I think i've addressed everything now, PTAL when you have chance


[FEATURE] Aggiunta Dockerfile

Buongiorno,
ho provato a creare una immagine Docker da poter utilizzare con bettersis, ma non riesco a farlo andare.
bettersis restituisce degli errori all'avvio.
In allegato il mio dockerfile, e l'errore di bettersis.
In caso sarebbe bello aggiungerlo di default nella repository.
Dockerfile:
FROM ubuntu:18.04

WORKDIR /sis-main

USER root

RUN apt update && apt install sudo wget readline-common sudo rsyslog -y

RUN wget https://github.com/JackHack96/logic-synthesis/releases/download/SIS/sis_1.4-1_amd64.deb -O sis.deb

RUN dpkg -i sis.deb

RUN wget https://github.com/mario33881/betterSIS/releases/download/1.2.1/bettersis.deb

RUN sudo dpkg -i bettersis.deb

WORKDIR /sis-data

CMD [ "bsis" ]

Logs:
# bsis
--- Logging error ---
Traceback (most recent call last):
  File "logging/handlers.py", line 934, in emit
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "logging/handlers.py", line 855, in _connect_unixsocket
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "logging/handlers.py", line 937, in emit
  File "logging/handlers.py", line 866, in _connect_unixsocket
FileNotFoundError: [Errno 2] No such file or directory
Call stack:
  File "bettersis/bettersis.py", line 684, in <module>
  File "bettersis/bettersis.py", line 651, in main
  File "logging/__init__.py", line 1378, in info
  File "logging/__init__.py", line 1514, in _log
  File "logging/__init__.py", line 1524, in handle
  File "logging/__init__.py", line 1586, in callHandlers
  File "logging/__init__.py", line 894, in handle
  File "logging/handlers.py", line 944, in emit
Message: '[PLATFORM] Using OS: Linux-5.10.76-linuxkit-x86_64-with-debian-buster-sid'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "logging/handlers.py", line 934, in emit
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "logging/handlers.py", line 855, in _connect_unixsocket
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "logging/handlers.py", line 937, in emit
  File "logging/handlers.py", line 866, in _connect_unixsocket
FileNotFoundError: [Errno 2] No such file or directory
Call stack:
  File "bettersis/bettersis.py", line 684, in <module>
  File "bettersis/bettersis.py", line 652, in main
  File "logging/__init__.py", line 1378, in info
  File "logging/__init__.py", line 1514, in _log
  File "logging/__init__.py", line 1524, in handle
  File "logging/__init__.py", line 1586, in callHandlers
  File "logging/__init__.py", line 894, in handle
  File "logging/handlers.py", line 944, in emit
Message: '[PLATFORM] OS version: #1 SMP Mon Nov 8 10:21:19 UTC 2021'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "logging/handlers.py", line 934, in emit
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "logging/handlers.py", line 855, in _connect_unixsocket
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "logging/handlers.py", line 937, in emit
  File "logging/handlers.py", line 866, in _connect_unixsocket
FileNotFoundError: [Errno 2] No such file or directory
Call stack:
  File "bettersis/bettersis.py", line 684, in <module>
  File "bettersis/bettersis.py", line 653, in main
  File "logging/__init__.py", line 1378, in info
  File "logging/__init__.py", line 1514, in _log
  File "logging/__init__.py", line 1524, in handle
  File "logging/__init__.py", line 1586, in callHandlers
  File "logging/__init__.py", line 894, in handle
  File "logging/handlers.py", line 944, in emit
Message: '[PLATFORM] Python version: 3.7.5'
Arguments: ()

 ██████╗ ███████╗████████╗████████╗███████╗██████╗ ███████╗██╗███████╗
 ██╔══██╗██╔════╝╚══██╔══╝╚══██╔══╝██╔════╝██╔══██╗██╔════╝██║██╔════╝
 ██████╔╝█████╗     ██║      ██║   █████╗  ██████╔╝███████╗██║███████╗
 ██╔══██╗██╔══╝     ██║      ██║   ██╔══╝  ██╔══██╗╚════██║██║╚════██║
 ██████╔╝███████╗   ██║      ██║   ███████╗██║  ██║███████║██║███████║
 ╚═════╝ ╚══════╝   ╚═╝      ╚═╝   ╚══════╝╚═╝  ╚═╝╚══════╝╚═╝╚══════╝

 =====================================================================

                              DISCLAIMER:
 BetterSIS, this software, controls SIS in the background and tries to
 provide modern features
 (such as command history, suggestions and autocompletion)
 and small improvements to SIS itself. (like the simulate improvement)
 > SIS is a tool for synthesis and optimization of sequential circuits

 I'm not affiliated with the SIS developers in any way.
 You can read more about SIS here:
 https://jackhack96.github.io/logic-synthesis/sis.html

 =====================================================================

 BetterSIS version:    2021-09-07 1.2.1
 BetterSIS repository: https://github.com/mario33881/betterSIS
 Siswrapper version:   2021-09-05 1.2.2
 Running in the background:  None
--- Logging error ---
Traceback (most recent call last):
  File "logging/handlers.py", line 934, in emit
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "logging/handlers.py", line 855, in _connect_unixsocket
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "logging/handlers.py", line 937, in emit
  File "logging/handlers.py", line 866, in _connect_unixsocket
FileNotFoundError: [Errno 2] No such file or directory
Call stack:
  File "bettersis/bettersis.py", line 684, in <module>
  File "bettersis/bettersis.py", line 664, in main
  File "bettersis/bettersis.py", line 109, in __init__
  File "bettersis/bettersis.py", line 172, in show_msg_on_startup
  File "logging/__init__.py", line 1378, in info
  File "logging/__init__.py", line 1514, in _log
  File "logging/__init__.py", line 1524, in handle
  File "logging/__init__.py", line 1586, in callHandlers
  File "logging/__init__.py", line 894, in handle
  File "logging/handlers.py", line 944, in emit
Message: '[STARTUP_MESSAGE] Showing software versions (BetterSIS: 2021-09-07 1.2.1, Siswrapper: 2021-09-05 1.2.2, SIS: None)'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "bettersis/bettersis.py", line 664, in main
  File "bettersis/bettersis.py", line 126, in __init__
  File "bettersis/bettersis.py", line 191, in main
  File "bettersis/siscompleter.py", line 266, in get_siscompleter
  File "bettersis/siscompleter.py", line 132, in get_commands
AttributeError: 'NoneType' object has no attribute 'split'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "logging/handlers.py", line 934, in emit
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "logging/handlers.py", line 855, in _connect_unixsocket
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "logging/handlers.py", line 937, in emit
  File "logging/handlers.py", line 866, in _connect_unixsocket
FileNotFoundError: [Errno 2] No such file or directory
Call stack:
  File "bettersis/bettersis.py", line 684, in <module>
  File "bettersis/bettersis.py", line 671, in main
  File "logging/__init__.py", line 1425, in critical
  File "logging/__init__.py", line 1514, in _log
  File "logging/__init__.py", line 1524, in handle
  File "logging/__init__.py", line 1586, in callHandlers
  File "logging/__init__.py", line 894, in handle
  File "logging/handlers.py", line 944, in emit
Message: '[MAIN_FUNC] This error was unexpected and interrupted the program: '
Arguments: ()

Traceback:

  File "bettersis/bettersis.py", line 664, in main
  File "bettersis/bettersis.py", line 126, in __init__
  File "bettersis/bettersis.py", line 191, in main
  File "bettersis/siscompleter.py", line 266, in get_siscompleter
  File "bettersis/siscompleter.py", line 132, in get_commands

AttributeError: 'NoneType' object has no attribute 'split'

Please, (if someone didn't post this error already) create a Github Issue here: 'https://github.com/mario33881/betterSIS/issues'
and share the '/var/log/pybettersis/pybettersis.log' log file
to help the developer to fix the problem

> If you are NOT using the DEB package version, execute this command:
> 'cat /var/log/syslog | grep "bettersis" > pybettersis.log'
> to create the log file inside the current directory.

You should also make sure that no private information is present in the log file before publishing it
#

Buongiorno,
scusa ma non ho potuto risponderti prima.
Gli errori "OSError: [Errno 9] Bad file descriptor" e "FileNotFoundError: [Errno 2] No such file or directory" molto probabilmente sono dovuti al fatto che il processo rsyslog non e' in esecuzione e quindi quando python cerca di scrivere i log fallisce.

E' possibile avviarlo con il comando service rsyslog start.

L'errore "AttributeError: 'NoneType' object has no attribute 'split'" e' risolvibile installando libreadline7.

Senza libreadline7 sis 1.4 da errore "sis: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory" e quindi quando python prova ad eseguire sis per recuperare l'output del comando help non ci riesce. Siccome il programma si aspetta di aver ricevuto dall'output dell'help (interpretato e restituito da siswrapper) una stringa ma invece riceve None tenta di richiamare il metodo split facendo lanciare l'errore.

Ho caricato su Github un Dockerfile e su docker hub l'immagine ottenuta dalla build per eseguire betterSIS con docker.

Per eseguirla e' sufficiente eseguire il comando docker run -it --rm -v "$(pwd):/data" mario33881/bettersis nella cartella che contiene i file da leggere in input con betterSIS.

Ho preferito utilizzare la versione 1.3.6 di SIS anziche' la versione 1.4 perche' dovrebbe contenere meno bug.
Per evitare possibili problemi con PyInstaller ho deciso di eseguire direttamente betterSIS con python all'interno del container.


BoAT English Docs/ BoAT Overall Design/ BoAT Design Goals

Wording suggestion
Under "BoAT Design Goals", the description states: "The design of BoAT follows the following goals:"
Suggestion:
Perhaps the word "principles" instead of "goals" is better suited?
Also, the list is written with no "Periods" except for the last sentence:
"C interface code generation tool for corresponding smart contracts of different blockchains."
Suggestion:
Delete the period for this sentence since it's part of the list.

Also, the sentence "The design of BoAT follows the following goals:"
could be written differently since the word "follow" is used twice.
Suggestion:
"The design of BoAT is based on these following principles:"
or
"The protocol is based on these following principles:"


Vendored libmodplug not installing correctly with CMake

I've been switching over the Linux build script for pysdl2-dll (pre-compiled multiplatform binaries for PySDL2) to build image/ttf/mixer using the new-and-improved CMake system, and overall it's much cleaner and nicer than building each library and all its external dependencies manually using autotools. Nicely done!
However, I think I've caught a small bug in the CMakeLists.txt for mixer:
https://github.com/libsdl-org/SDL_mixer/blob/b0fc0348b4be986621841715d8be45aa170b9bc1/CMakeLists.txt#L553-L555
In the part of the script that handles building a vendored version of libmodplug, when deciding whether to install the binary in the target prefix or not, it checks the SDL2MIXER_FLAC_LIBFLAC_SHARED variable instead of the SDL2MIXER_MOD_MODPLUG_SHARED one, so if you're using dr_flac instead of libflac libmodplug gets built but never installed.
For now I'm just working around it by patching the CMakeLists.txt in my script before using it.

Thanks, can you attach a patch?

Sure, here you go!
modplug_fix.patch.txt

Looks like a simple copy+paste mistake. Patch applied as b60b64fdfd1b210bf5c7c7fa87c79d2f1bd257ea

Great, thanks so much!


UI Needs To Know Fees

When getting the rate for exit position where fees are counted, you need the market creation and reporting fees. These can be grabbed from contract calls but that's inefficient so they should be gathered from the graph.
The market creation fee is constant per-market.
The reporting fee is dynamic. It comes from OINexus but is cached in each ParaUniverse.
Blocked by #10423

Currently these values are hardcoded based on the values set in the tests.

Currently these values are hardcoded based on the values set in the tests.


Proof-read the developer guide for new devs

If you are a new developer and you just started developing things in Feathr, try to read our developer guide(https://github.com/linkedin/feathr/tree/main/docs/dev_guide).
If you found issues and things need to improve:

Raise an issue with us
Help us fix the issue.

It's a dev guide version of https://github.com/linkedin/feathr/issues/160.

@hangfei
I can help out with this as well.

@ahlag Thanks for improving this.

I would welcome any new contributors to go through this process and consistently improve our developer guide so I will keep this issue open.


Fix #894 - Explicitly set text-on-X-token in dark mode.

Before submitting the PR:

[x] Does your PR reference an issue?
[x] Did you update and run tests before submission using npm run test?
[x] Does your branch follow our naming convention? If not, please amend the branch name using branch -m new-branch-name
[ ] Did you update documentation related to your new feature or changes?
Not applicable

Fixes #894

This looks great @AgarwalPragy, thanks for the PR! I've merged this, which means it's part of the dev branch and will be part of the next release on Tuesday next week.


Resize for a single widget with min/max-resize not possible?

Hello.
I want add ~20 widgets, but only few of them with a resize property and each of them with individual min/max for resize. Is this not possible?
I have tried:
gridster.add_widget('<li />', 2, 1, 1, 1)
    .resizable({
    resize: {
            enabled: true,
            max_size: [2, 2]
    }
});

Another:
var widget = gridster.add_widget('<li />', 1, 1, 1, 1);
widget.attr('data-min-sizex', 2);
widget.attr('data-min-sizey', 2);

Can anybody help me? ;)
EDIT:
Here its working for pre-defined widgets: http://gridster.net/demos/resize-limits.html
I need it for runtime. ;)

At the moment you can set "data-max-sizex" and "data-max-sizey" equals to "data-min-sizex" and "data-min-sizey" for the widgets you don't want to resize.


Incompatibility with next.js redirects

Issue
If redirects are configured in a next config the sessions don't seem to make it into session storage, which results in a redirect back to login, which then redirects back to the app - this cycle happens indefinitely.
Steps to reproduce:

Add a new route file (e.g., test.js)

Configure a redirect in a next.js config file (e.g., in a next.config.js file in the root directory):

/** @type {import('next').NextConfig} */
const nextConfig = {
  async redirects() {
    return [
      {
        source: '/',
        destination: '/test',
        permanent: false,
      },
    ]
  },
}

module.exports = nextConfig

Versions

react-oidc v6.5.7
next v12.2.5
react v18.2.0

Hi @madze , thank you very much for your issue.
What does look like your oidc configuration?

Hi @madze , i haven not tested but i think if you update your config like bellow it will work:
const configuration = {   client_id: 'interactive.public.short',   redirect_uri: 'http://localhost:3001/test/#authentication/callback',   silent_redirect_uri: 'http://localhost:3001/test/#authentication/silent-callback', // Optional activate silent-signin that use cookies between OIDC server and client javascript to restore the session   scope: 'openid profile email api offline_access',   authority: 'https://demo.duendesoftware.com' };

@guillaume-chervet - Thanks!! I just finally had a chance to take a look and though I haven't tested extensively I can verify that this at least works for basic redirects. Also, it seems that this may only be necessary for the case where a redirect is set up on the root path (e.g. redirecting / to some other route).
Thank you!!

Thank you for the feedback @madze , that a good new :)

May we close the issue?

@guillaume-chervet - Yes, absolutely! Sorry, I should have added that in the last message.

Thank you very much @madze


Support HTTPS Cloning

It defaults to SSH right now, but some folks use HTTPS, I think.

i also used mainlt https


Code error

Hi, the feature size mismatch here when I use the normal Conv in get_conv2d.
https://github.com/VITA-Group/SLaK/blob/050a1b81d5de073ecaee90ef7ed158c68d78b175/models/SLaK.py#L93
You should change into
self.LoRA1 = conv_bn(in_channels=in_channels, out_channels=out_channels, kernel_size=(kernel_size, small_kernel),
                                      stride=stride, padding=(padding, small_kernel//2), dilation=1, groups=groups, bn=bn)
self.LoRA2 = conv_bn(in_channels=in_channels, out_channels=out_channels, kernel_size=(small_kernel, kernel_size),
                                     stride=stride, padding=(small_kernel//2, padding), dilation=1, groups=groups, bn=bn)

Does the sparseConv calc the pad automatically ?

Besides, the merge_kernel reports error when I set Decom=True. Could you fix the error?

Hi,
To use normal Conv of Pytorch, you can change our sparse Conv to:
nn.Conv2d(in_channels, out_channels, kernel_size=kernel_size, stride=stride, padding=padding, dilation=dilation, groups=groups, bias=bias)

Regarding the padding, our sparse Conv uses zero padding as default to perform convolutions.
We did not merge kernels at inference, you can set small_kernel_merged=False which is our default setting to fix it.


Manually add new blank meetups

Eventually,
a) we should create some kind of pinging mechanism for organizers to remember to fill in this data (most is autogenerated)
b) the generator should automatically detect these "blank" meetups and include it in the stats-api by default
With these blank meetups, these meetups will show up on https://cloudnativenordics.com/events
cc @kaspernissen

With this we should see many more upcoming meetups :smile:


he following _CastError was thrown during paint(): Null check operator used on a null value

======== Exception caught by rendering library =====================================================
My error
The following _CastError was thrown during paint():
Null check operator used on a null value
The relevant error-causing widget was:
ListView file:///C:/Users/Orbit/Desktop/StudioProjects/themealDB_app/lib/screens/result_search-screen.dart:25:21
When the exception was thrown, this was the stack:
#0      RenderSliverMultiBoxAdaptor.childMainAxisPosition (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:567:36)
#1      RenderSliverMultiBoxAdaptor.paint (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:635:36)
#2      RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2317:7)
#3      PaintingContext.paintChild (package:flutter/src/rendering/object.dart:187:13)
#4      RenderSliverEdgeInsetsPadding.paint (package:flutter/src/rendering/sliver_padding.dart:274:15)
...
The following RenderObject was being processed when the exception was fired: RenderSliverList#fd8c3 relayoutBoundary=up2
...  needs compositing
...  parentData: paintOffset=Offset(0.0, 0.0) (can use size)
...  constraints: SliverConstraints(AxisDirection.down, GrowthDirection.forward, ScrollDirection.idle, scrollOffset: 0.0, remainingPaintExtent: 603.4, crossAxisExtent: 411.4, crossAxisDirection: AxisDirection.right, viewportMainAxisExtent: 603.4, remainingCacheExtent: 853.4, cacheOrigin: 0.0)
...  geometry: SliverGeometry(scrollExtent: Infinity, paintExtent: 603.4, maxPaintExtent: Infinity, hasVisualOverflow: true, cacheExtent: 853.4)
...    scrollExtent: Infinity
...    paintExtent: 603.4
...    maxPaintExtent: Infinity
...    hasVisualOverflow: true
...    cacheExtent: 853.4
...  currently live children: 0 to 2
RenderObject: RenderSliverList#fd8c3 relayoutBoundary=up2
needs compositing
parentData: paintOffset=Offset(0.0, 0.0) (can use size)
constraints: SliverConstraints(AxisDirection.down, GrowthDirection.forward, ScrollDirection.idle, scrollOffset: 0.0, remainingPaintExtent: 603.4, crossAxisExtent: 411.4, crossAxisDirection: AxisDirection.right, viewportMainAxisExtent: 603.4, remainingCacheExtent: 853.4, cacheOrigin: 0.0)
geometry: SliverGeometry(scrollExtent: Infinity, paintExtent: 603.4, maxPaintExtent: Infinity, hasVisualOverflow: true, cacheExtent: 853.4)
scrollExtent: Infinity
paintExtent: 603.4
maxPaintExtent: Infinity
hasVisualOverflow: true
cacheExtent: 853.4

My code
@override
Widget build(BuildContext context) {
return Scaffold(
appBar:AppBar(backgroundColor: Colors.white,elevation: 0,
title: Text(
'Meal Categories',
style: TextStyle(fontSize: 20,
fontWeight: FontWeight.w900,
color: Color(0xffA11930)),
),
) ,
body: Center(
child: FutureBuilder(
future: _repository.searchMeals(_title),
builder: (context, snapshot) {
if (snapshot.hasData) {
List newItem = snapshot.data.meals;
int length = newItem.length;
return GridView.count(
shrinkWrap: true,
crossAxisCount: 2,
childAspectRatio: 3/2,
// mainAxisSpacing: 1,
// crossAxisSpacing: 1,
children: List.generate(length, (index) {
return InkWell(
onTap: () {
Navigator.of(context).pushNamed(ItemScreen.routeName,
arguments: newItem[0].strMeal);
},
child: Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
),
elevation: 5,
margin: EdgeInsets.all(10),
child: Column(
children: [
Stack(
children: [ClipRRect(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10),
topRight: Radius.circular(10),
),
child: Image.network(
'${newItem[0].strMealThumb}',
height: 120,
fit: BoxFit.cover,
),
),
]),
],
),
),
);
}));
} else if (snapshot.hasError) {
return Text('${snapshot.error}');
}
return CircularProgressIndicator();
},
),
),
);

please any help

@Al7ossainy The error clearly states that there is an issue on line 25

s/themealDB_app/lib/screens/result_search-screen.dart:25:21

Please note that the Github issue tracker is not to get help with personal code but to track issues in the flutter framework. Closing this issue as invalid, As this isn't an issue with flutter itself, If you disagree feel free to write in the comments and I will reopen it.
Thank you.

Ok,
Thanks
I solved the problem


How to map output model property?

Hello @JonathanMagnan
I use this library in another way
[StoredProcedure("SP_Test")]
public class LoadEmployeeData
{
    [StoredProcedureParameter(SqlDbType.DateTime, ParameterName = "OnDate")]
    public DateTime? OnDate { get; set; }
    [StoredProcedureParameter(SqlDbType.Int, ParameterName = "ResourceID")]
    public int ResourceId { get; set; }
}

//Output model
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WebTime.DAL
{
    public class LoadEmployeeDataModel
    {
        public int RowType { get; set; }
        [Column("ID")]
        public int Id { get; set; }
        [Column("Start_Date")]
        public DateTime StartDate { get; set; }
        [Column("Resource_ID")]
        public int ResourceId { get; set; }
        public string Creator { get; set; }
        public string Created { get; set; }
        public string Modifier { get; set; }
        [Column("Last_Modified")]
        public string LastModified { get; set; }
    }
}
//Context class:
public virtual Task<IEnumerable<LoadEmployeeDataModel>> SP_Test(
            LoadEmployeeData model)
{
    return this.Database.ExecuteStoredProcedureAsync<LoadEmployeeDataModel>(model);
}
//Call:
namespace temp
{
    class Program
    {
        static async Task Main(string[] args)
        {
            var data = new List<LoadEmployeeDataModel>();
            using (var context = new WebtimeDataContext())
            {
                data = (await context.SP_Test(new LoadEmployeeData()
                {
                    ResourceId = 333333,
                    OnDate = null
                })).ToList();
            }
            Console.ReadKey();
        }
    }
}

Originally posted by @enverkrinickii in https://github.com/zzzprojects/EntityFrameworkExtras/issues/40#issuecomment-783326948

Hello @enverkrinickii ,
My developer will look at it
Best Regards,
Jon

Performance Libraries
context.BulkInsert(list, options => options.BatchSize = 1000);
Entity Framework Extensions • Entity Framework Classic • Bulk Operations •  Dapper Plus
Runtime Evaluation
Eval.Execute("x + y", new {x = 1, y = 2}); // return 3
C# Eval Function • SQL Eval Function

Hello @enverkrinickii ,
My developer is asking for a runnable project or example.
There is some essential element that's missing in your example such as the Context, the P_SEC_LoadEmployeeCost
We want to be sure if he passes time on this issue that he has all elements to investigate it.
Make sure to provide a full runnable example or better, a project if you want we investigate it.

Hello @JonathanMagnan , I have updated my comment

Hello @enverkrinickii ,
As asked, we would like to have a runnable project or example.
You currently show only some part of it.
If you need, take example of what my developer provided you: https://github.com/zzzprojects/EntityFrameworkExtras/issues/40#issuecomment-775657411
Everything is included, even the stored procedure creation

Hello @JonathanMagnan
Unfortunately i can't share it with you because of organization policy
I provided you a code sample how I use your library and as you can see, I return function result instead of data set

We didn't ask for your company project, we asked for a runnable project or example.
It can contain exactly what you provided but just make sure it compile, run and show the issue.

Not sure that it possible because of I'm using DB first aproach an scaffold it

Have you developer tried to return var entity = context.Database.ExecuteStoredProcedure<EntitySimple>(proc_Get_EntitySimple);  instead of var list = context.EntitySimples.ToList();


Custom GL context creation

Due to some issues with MacOS, and the loading speed of OpenGLCanvas, I decided to replace the "built-in" context creation in LWJGL and JOGL with my own.

(It will replace GLFW and OffscreenAutoDrawable)

The main improvements should be:

Creating context without a window
Initialization speed up
Independence from the main thread (#20)
It will also allow to add a Shared rendering type #17.

In this issue I will publish the current progress

Context creation on Windows is ready

macOS is ready

Linux is ready


fix(onboarding): dot navigation and add more slides

:tada: This PR is included in version 2.130.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


test(cwv): ensure that TTFB core web vital works

Related Issues
Fixes: #219

Since this PR is really only related to testing I'm going to merge this.

:tada: This PR is included in version 2.2.4 :tada:
The release is available on:

v2.2.4
v2.2.4
GitHub release

Your semantic-release bot :package::rocket:


add widstucson.org and kelseygonzalez.github.io

Hi, I'd like to add both of the websites I've built with blogdown.

Thanks for your submission Kelsey!! 🎉 🎊


[Project Addition] : Covid-19 X-Ray Image Classification

Deep Learning Simplified Repository (Proposing new issue)
:red_circle: Project Title : [Project Addition] : Covid-19 X-Ray Image Classification
:red_circle: Aim : To classify various and prediction of COVID-19 using chest X-ray image dataset.
:red_circle: Dataset : https://www.kaggle.com/datasets/pranavraikokte/covid19-image-dataset
:red_circle: Approach : Try to use 3-4 algorithms to implement the models and compare all the algorithms to find out the best fitted algorithm for the model by checking the accuracy scores. Also do not forget to do a exploratory data analysis before creating any model.

📍 Follow the Guidelines to Contribute in the Project :

You need to create a separate folder named as the Project Title.
Inside that folder, there will be four main components.

Images - To store the required images.
Dataset - To store the dataset or, information/source about the dataset.
Model - To store the machine learning model you've created using the dataset.
requirements.txt - This file will contain the required packages/libraries to run the project in other machines.

Inside the Model folder, the README.md file must be filled up properly, with proper visualizations and conclusions.

:red_circle::yellow_circle: Points to Note :

The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Follow Contributing Guidelines & Code of Conduct before start Contributing.

:white_check_mark: To be Mentioned while taking the issue :

Full name : Aaradhya Singh
GitHub Profile Link : https://github.com/kyra-09
Email ID<EMAIL_ADDRESS>Participant ID (if applicable):
Approach for this Project :

) Using 5 different available network architectures such as DenseNet121 , Xception , VGG16 etc. to do catagorical classification for chest X-ray images to detect COVID19 symptom .
2.) use data augmentation techniques to improve the accuarcy of models.
3.) Comparing performance and accuracy of models using accuracy score ,loss and accuracy graph , confusion matrix for better understanding.
4.) Perfroming EDA (data analysis) for dataset to understand the structure of data.
5.) Using README file for describing the work I've performed.

What is your participant role? (Mention the Open Source program) - GSSOC-2024 Contributor

kindly assign this issue to me @abhisheks008

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

Wait for the existing PR to be merged with the repository.
@kyra-09

Okay... I'll soon make the changes and get back to you

At least wait for this issue to get assigned to you. Without an assignment why have you pushed your code?
@kyra-09

Pardon me @abhisheks008 for my ignorance..do you want me to close the pr and get assigned first?

Pardon me @abhisheks008 for my ignorance..do you want me to close the pr and get assigned first?

Yes. If the GSSOC core team observed this kind of thing, your contributions will be disqualified. That's why I haven't added any labels there.

@abhisheks008 assign this issue to me.

Make your pull request in the evening.


Test Check Sum

Test Click Numbers and function Sum
Using Playwright make tests to check this functions

Great Job


Coracle strips hashes from links, markdown support breaks with links

The inconsistencies here cause some confusion and require that I check the event json to see if the note was altered pre-publish or if it is a rendering issue.

Sharing a hashed link, for example a github link with line numbers, is stripped nostr:nevent1qywhwumn8ghj7mr4de3kscn00qh8xctwv3mkjcmg9enxzund9uq32amnwvaz7tmjv4kxz7fwv3sk6atn9e5k7tcpzdmhxue69uhhqatjwpkx2urpvuhx2ue0qqsy96802f55pn634vtgzvnvva0pcj8cq8a4jej2quyf4vl7295wcxcddv7qj
Sharing a single-backticked link for instance, is rendered poorly, resulting in a bad location change nostr:nevent1qyf8wumn8ghj7mn0wd68yat99e3k7mf0qyg8wumn8ghj7cfwdehhxtnvdakz7qghwaehxw309aex2mrp0yhxummnw3ezucnpdejz7qpqx56znkn94uhgs7qxeg5cr0ph0lw3rev0aps0lawhglcm4wxyunvsy0qv79

Fixed in the next release


Add example for beginners to show how to use this binder

Add an example for beginners to show how to insert, query, update and delete K-V in UnQLite with this binder.

Add an example for beginners to show how to insert, query, update and delete K-V in UnQLite with this binder.
@zyfdegh! Well, look here.


5 add reader functions

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>8:
0.0%

Covered Lines:
22

Relevant Lines:
22

💛  - Coveralls


Resuming from checkpoint

My first run of the trainer could not save the model because the evaluate() call fails. I have removed that method call and now would like to resume from the last checkpoint. However,  I cannot seem to get that working. Is there some disparity between model architecture and checkpoint architecture? The change I made to accommodate checkpoint resumption and the error I get are shown below show below.
Change for checkpoint resumption**
`data_module = make_supervised_data_module(tokenizer=tokenizer, data_args=data_args)
trainer = Trainer(model=model, tokenizer=tokenizer, args=training_args, **data_module)

transformers.logging.set_verbosity_info()

#trainer.train()

trainer.train("output/checkpoint-18000")

#trainer.evaluate()

trainer.save_state()

safe_save_model_for_hf_trainer(trainer=trainer, output_dir=training_args.output_dir)`

Error stacktrace.
Loading model from output/checkpoint-18000/.
Traceback (most recent call last):
File "/home/ubuntu/alpaca/stanford_alpaca/train.py", line 246, in
train()
File "/home/ubuntu/alpaca/stanford_alpaca/train.py", line 239, in train
trainer.train("output/checkpoint-18000/")
File "/home/ubuntu/.local/lib/python3.10/site-packages/transformers/trainer.py", line 1617, in train
self._load_from_checkpoint(resume_from_checkpoint)
File "/home/ubuntu/.local/lib/python3.10/site-packages/transformers/trainer.py", line 2120, in _load_from_checkpoint
load_result = load_sharded_checkpoint(model, resume_from_checkpoint, strict=is_sagemaker_mp_enabled())
File "/home/ubuntu/.local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 385, in load_sharded_checkpoint
state_dict = torch.load(os.path.join(folder, shard_file), map_location="cpu")
File "/home/ubuntu/.local/lib/python3.10/site-packages/torch/serialization.py", line 809, in load
return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
File "/home/ubuntu/.local/lib/python3.10/site-packages/torch/serialization.py", line 1172, in _load
result = unpickler.load()
File "/home/ubuntu/.local/lib/python3.10/site-packages/torch/_utils.py", line 169, in _rebuild_tensor_v2
tensor = _rebuild_tensor(storage, storage_offset, size, stride)
File "/home/ubuntu/.local/lib/python3.10/site-packages/torch/_utils.py", line 148, in rebuild_tensor
return t.set(storage._untyped_storage, storage_offset, size, stride)
RuntimeError: Trying to resize storage that is not resizable
WARNING:torch.distributed.elastic.multiprocessing.api:Sending process 122406 closing signal SIGTERM
WARNING:torch.distributed.elastic.multiprocessing.api:Sending process 122407 closing signal SIGTERM
WARNING:torch.distributed.elastic.multiprocessing.api:Sending process 122409 closing signal SIGTERM
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 2 (pid: 122408) of binary: /usr/local/bin/python3.10
Traceback (most recent call last):
File "/home/ubuntu/.local/bin/torchrun", line 8, in
sys.exit(main())
File "/home/ubuntu/.local/lib/python3.10/site-packages/torch/distributed/elastic/multiprocessing/errors/init.py", line 346, in wrapper
return f(*args, **kwargs)
File "/home/ubuntu/.local/lib/python3.10/site-packages/torch/distributed/run.py", line 794, in main
run(args)
File "/home/ubuntu/.local/lib/python3.10/site-packages/torch/distributed/run.py", line 785, in run
elastic_launch(
File "/home/ubuntu/.local/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 134, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/home/ubuntu/.local/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 250, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:

"RuntimeError: Trying to resize storage that is not resizable" . I met same error . but do not know the solution

Any luck on this issue? I'm facing the same problem.

The same problem.

Same

@bernaljg What is the version of your Pytorch,transformers,deepspeed,nvcc and cuda？
My Pytorch version is 1.13.1+cuda11.7 ,transformers-4.18.0dev

same problem

@bernaljg What is the version of your Pytorch,transformers,deepspeed,nvcc and cuda？ My Pytorch version is 1.13.1+cuda11.7 ,transformers-4.28.0dev0

torch->1.13.1+cuda11.6
transformers->4.27.4

https://github.com/lm-sys/FastChat/issues/351#issuecomment-1519060027


403 forbidden for replies

I can write comments, but I cannot leave a reply. The response is always:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>403 Forbidden</title>

Forbidden

edit time frame is still open

Even on different pages. Is that due to me using the same IP in two browsers? If so: what about networks with a lot of users, like universities. Can one user not reply to a comment of another user?

You can disable this feature by setting reply-to-self to True (https://posativ.org/isso/docs/configuration/server/#guard). If you are using two different browsers, the second browser doesn't have the cookie to know whether the IP address has an editable comment.

In my particular case this won't be a problem, I was just curious as to how it detects "the same user". Thanks a lot!

you can see the database to see more detail, here every comments with a ip address.

0|tid||0||0
1|id|INTEGER|0||1
2|parent|INTEGER|0||0
3|created|FLOAT|1||0
4|modified|FLOAT|0||0
5|mode|INTEGER|0||0
6|remote_addr|VARCHAR|0||0
7|text|VARCHAR|0||0
8|author|VARCHAR|0||0
9|email|VARCHAR|0||0
10|website|VARCHAR|0||0
11|likes|INTEGER|0|0|0
12|dislikes|INTEGER|0|0|0
13|voters|BLOB|1||0
this is the scheme of the comments table information. find more detail you can get it out.

Seems like not a problem anymore.


Use uB to calculate line segment intersection

I came across this extremely helpful repo when trying to put the "hat" in a cartesian coordinate system.
I noticed, that uB is not used in function intersect.
I wasn't able to figure out if not using uB was intentional (in wich case this line could be removed), or
if it should be used for calculating the return value.
https://github.com/isohedral/hatviz/blob/a2a068bf8f3c184ce2210597a72cece8e0d74de8/geometry.js#L85-L89
https://en.wikipedia.org/wiki/Line–line_intersection#Given_two_points_on_each_line_segment

See, e.g., https://stackoverflow.com/questions/13937782/calculating-the-point-of-intersection-of-two-lines. To compute the point of intersection you only need one of uA (which gives the position along line segment p1->q1)or uB (which gives the position along p2->q2).


[FEATURE] Harden token handling

There are a number of reasons why acquiring a new access token might not work:

You have invalid configuration (eg. your client id is wrong)
SLAS web service is temporarily unavailable or returning errors
Your refresh token was corrupted

The current implementation doesn't surface errors with with a correct server side status code. The issue is not clear until you inspect logs or DevTools:

We should seek to:

Return HTTP errors if we fail to acquire a token server side. The response should include information that makes it clear about what went wrong.
Revisit error handling logic around refresh tokens: https://github.com/SalesforceCommerceCloud/pwa-kit/blob/c4a97cd4f5499b6783fe4c2e78e941ef1d7e853d/packages/commerce-sdk-react/src/auth/index.ts#L442-L468

Related to https://github.com/SalesforceCommerceCloud/pwa-kit/issues/1475.

This has been addressed in PWA v3. There is also a PR (#2031) that shows an example of how this can be fixed in existing v2 projects.


Add sponsor name + Sandia logo

Fix #69
Fix #74

Thank you @msimonin! @carlosmalt: let us know if this is good to merge.

@msimonin -- I think the sponsor page (https://github.com/acm-rep/2024/blob/main/content/sponsor/index.md) also needs to be updated.

I've updated the sponsor way the easy way to not repeat sponsor list there (they are already in the frontpage ! )

Centered the sponsor list (I used a good old table for this ! )


terminal screen is cut when window resize

I have an issue at vscode about terminal screen is cut when window resize here: Microsoft/vscode#44894,
and vscode team reply:

Nothing we can do about this atm as it's how https://github.com/rprichard/winpty works

Could this issue be fixed?  Thank you.

winpty is doing the same thing as an ordinary Windows console here, so I don't think there's anything that can be improved.


[EN] Feedback for: /web/fundamentals/getting-started/your-first-progressive-web-app/step-02?hl=en Firebase Weather API Deprecated

While going through @petele's Weather Forecast app tutorial: https://developers.google.com/web/fundamentals/getting-started/your-first-progressive-web-app/step-02 code we noted that it's meant to use Firebase Public Weather API:

Sadly, the "Firebase Open Data Sets are deprecated and will be shut down on March 30th, 2016."

Also, the link to "Try it" at the end of Step 2:

Why?!

Firebase API still works ... but data is a Snapshot from 31st March 2016 (the day they discontinued the API)

Will fix in the DevSite update coming in the next two weeks. In the mean time, try https://codelabs.developers.google.com/codelabs/your-first-pwapp/


No events emitted for gateway subdevices

OS: Windows 10, Node: v6.10.3, Mio: 0.13.0 ℹ
I have a gateway with: magnet, temperature, button, motion, socket. ℹ
Listening to the propertyChanged event for the gateway works, e.g. when changing brightness. ✔
Reading sensor values of subdevices works, e.g. temperature. ✔
Listening to custom events (magnet, controller, motion) doesn't work, although devices are found. ❌
Device discovery (waited >5 minutes) does not find any devices (neither via cli nor via node code). ❌

const miio = require('miio');

miio.device({address: '<IP_ADDRESS>'})
    .then(device => {
        for (d of device.devices) {
            if (d.type === 'motion') {
                d.on('propertyChanged', e => console.log(`${d.type}: propertyChanged action: ${e}`));
                d.on('motion', e => console.log(`motion event: ${e}`));
            } else if (d.type === 'magnet') {
                d.on('propertyChanged', e => console.log(`${d.type}: propertyChanged action: ${e}`));
                d.on('open', e => console.log(`open event: ${e}`));
                d.on('close', e => console.log(`close event: ${e}`));
            } else if (d.type === 'controller') {
                const actions = d.actions;
                console.log(actions)
                d.on('action', e => console.log(`controller action: ${e}`));
                d.on('propertyChanged', e => console.log(`${d.type}: propertyChanged action: ${e}`));
                actions.forEach(a => d.on(a, e => console.log(`controller action: ${e}`)));
            }
        }
    })
    .catch(console.error);

Thank your opening an issue about this. The devices on the gateway depend on multicast, which might be the issue here. miio hasn't been tested with Windows so compatibility might be an issue in this case.
Can you run your script with debug on and see if you get can see the data being sent from the gateway? It can be activated via the environment variable DEBUG, such as setting DEBUG=miio* to see all debug output that miio provides.

I think i have figured out how to listen for the properties
When creating subdevice the this._propertiesToMonitor = []; is empty, but after getting the capabilities of the subdevice it should be automaticly filled.
For now i use such code to fix it by hand
device.devices.forEach(device =>{
    device.defineProperty('temperature',v=>v/100);
    device.defineProperty('humidity',v=>v/100);
    device.on('propertyChanged', data=> console.log(data));
}

Should have the capabilities check, but i only use the temp sensors.

@aholstenson Thanks for your reply.
Output for script:
While it was running, I pressed the controller which activated the socket.
  miio.device.[<IP_ADDRESS>] -> Handshake +0ms
  miio.packet -> <Buffer 21 31 00 20 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff> +3ms
  miio.packet <- <Buffer 21 31 00 20 00 00 00 00 03 5f 8b 98 00 23 75 be 3c 32 0e 64 ac 60 2f d5 86 c3 ce 2c 01 2e ea 85> +12ms
  miio.device.[<IP_ADDRESS>] <- Handshake reply: <Buffer 3c 32 0e 64 ac 60 2f d5 86 c3 ce 2c 01 2e ea 85> +1ms
  miio.device.[<IP_ADDRESS>] -> (3) {"id":1,"method":"miIO.info","params":[]} +1ms
  miio.packet -> <Buffer 21 31 00 50 00 00 00 00 03 5f 8b 98 00 23 75 be a7 9c 0e 29 b8 21 25 06 1f 8a d7 23 4f 12 c2 41> +2ms
  miio.packet <- <Buffer 21 31 02 20 00 00 00 00 03 5f 8b 98 00 23 75 be 77 4b 37 c6 50 d1 93 9d d1 de cf ab 0b 58 3e a5> +9ms
  miio.device.[<IP_ADDRESS>] <- Message: `{"result":{"life":2323902,"cfg_time":0,"token":"3c320e64ac602fd586c3ce2c012eea85","mac":"(removed)","fw_ver":"1.4.1_150","hw_ver":"MW300","model":"lumi.gateway.v3","mcu_fw_ver":"0143","wifi_fw_ver":"SD878x-14.76.36.p84-702.1.0-WM","ap":{"rssi":-61,"ssid":"","bssid":"(removed)"},"netif":{"localIp":"<IP_ADDRESS>","mask":"<IP_ADDRESS>","gw":"<IP_ADDRESS>","gw_mac":""},"mmfree":172200,"ot":"ott","otu_stat":[7,101,685,62,612,40],"ott_stat":[50, 0, 36, 1513]},"id":1}` +1ms
  miio.device.[<IP_ADDRESS>] -> Handshake +4ms
  miio.packet -> <Buffer 21 31 00 20 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff> +1ms
  miio.packet <- <Buffer 21 31 00 20 00 00 00 00 03 5f 8b 98 00 23 75 be 3c 32 0e 64 ac 60 2f d5 86 c3 ce 2c 01 2e ea 85> +8ms
  miio.device.[<IP_ADDRESS>] <- Handshake reply: <Buffer 3c 32 0e 64 ac 60 2f d5 86 c3 ce 2c 01 2e ea 85> +0ms
  miio.device.[<IP_ADDRESS>] -> (3) {"id":1,"method":"get_prop","params":["illumination","rgb"]} +1ms
  miio.packet -> <Buffer 21 31 00 60 00 00 00 00 03 5f 8b 98 00 23 75 be b7 03 67 db d4 df d0 48 2e ab 11 4e 0d 21 71 5d> +0ms
  miio.device.[<IP_ADDRESS>] -> (2) {"id":1,"method":"get_prop","params":["illumination","rgb"]} +2s
  miio.packet -> <Buffer 21 31 00 60 00 00 00 00 03 5f 8b 98 00 23 75 c0 68 67 40 72 28 a1 41 30 6f fd 28 20 86 9a 6b 8d> +1ms
  miio.packet <- <Buffer 21 31 00 40 00 00 00 00 03 5f 8b 98 00 23 75 c0 18 9f 29 c0 8b 98 01 7d e5 49 21 7f 4b 0e a6 bc> +6ms
  miio.device.[<IP_ADDRESS>] <- Message: `{"result":[309,0],"id":1}` +1ms
  miio.device.[<IP_ADDRESS>] Property illuminance changed from undefined to 309 +1ms
  miio.device.[<IP_ADDRESS>] Property rgb changed from undefined to { red: 0, green: 0, blue: 0 } +0ms
  miio.device.[<IP_ADDRESS>] Property brightness changed from undefined to 0 +2ms
  miio.device.[<IP_ADDRESS>] -> (3) {"id":2,"method":"get_device_prop","params":["lumi.0","device_list"]} +1ms
  miio.packet -> <Buffer 21 31 00 70 00 00 00 00 03 5f 8b 98 00 23 75 c0 dd 68 ed 0e b7 d7 ba 3a 3f f9 f3 48 56 d5 61 5d> +2ms
  miio.packet <- <Buffer 21 31 00 d0 00 00 00 00 03 5f 8b 98 00 23 75 c0 5b 17 12 36 a9 61 0b 9a b2 5e 19 61 52 ad c8 8b> +13ms
  miio.device.[<IP_ADDRESS>] <- Message: `{"result":["lumi.158d0001882058",11,1,22,1,"lumi.158d0001217ca3",3,1,0,10,"lumi.158d00015a9e0f",2,1,0,11,"lumi.158d000121cd51",1,1,0,10,"lumi.158d0001216bb0",10,1,0,2],"id":2}` +1ms
  miio.device.[<IP_ADDRESS>] -> (3) {"id":3,"method":"get_device_prop_exp","params":[["lumi.158d0001882058","status","load_voltage","load_power","power_consumed"]]} +6ms
  miio.packet -> <Buffer 21 31 00 b0 00 00 00 00 03 5f 8b 98 00 23 75 c0 0a 73 f9 42 fe 14 d5 ae 12 77 85 1b 01 57 7c 51> +1ms
  miio.device.[<IP_ADDRESS>] -> (3) {"id":4,"method":"get_device_prop_exp","params":[["lumi.158d0001216bb0","temperature","humidity"]]} +0ms
  miio.packet -> <Buffer 21 31 00 90 00 00 00 00 03 5f 8b 98 00 23 75 c0 b4 a4 a0 a8 9f 6d 34 d9 b4 17 02 31 99 cd 59 15> +1ms
  miio.device.[<IP_ADDRESS>] -> (3) {"id":5,"method":"get_lumi_dpf_aes_key","params":[]} +1ms
  miio.packet -> <Buffer 21 31 00 60 00 00 00 00 03 5f 8b 98 00 23 75 c0 e3 09 f7 18 37 5b ff 04 be ac ed e4 aa c4 88 3e> +1ms
  miio.packet <- <Buffer 21 31 00 50 00 00 00 00 03 5f 8b 98 00 23 75 c0 9d 81 ba 91 ee d8 7f 0b dd 9f b0 04 6f 0c 88 ff> +7ms
  miio.device.[<IP_ADDRESS>] <- Message: `{"result":[["","",0.00,""]],"id":3}` +1ms
  miio.device.[<IP_ADDRESS>].158d0001882058 Property powerChannel0 changed from undefined to false +0ms
  miio.device.[<IP_ADDRESS>].158d0001882058 Property power changed from undefined to { '0': false } +1ms
  miio.device.[<IP_ADDRESS>].158d0001882058 Property loadVoltage changed from undefined to NaN +1ms
  miio.device.[<IP_ADDRESS>].158d0001882058 Property loadPower changed from undefined to 0 +0ms
  miio.device.[<IP_ADDRESS>].158d0001882058 Property powerConsumed changed from undefined to NaN +1ms
  miio.packet <- <Buffer 21 31 00 40 00 00 00 00 03 5f 8b 98 00 23 75 c0 0b c5 1c 03 70 ed ba 24 3c fd e9 ae d6 bc e3 4c> +0ms
  miio.device.[<IP_ADDRESS>] <- Message: `{"result":[[1961,3638]],"id":4}` +1ms
  miio.device.[<IP_ADDRESS>].158d0001216bb0 Property temperature changed from undefined to 19.61 +1ms
  miio.device.[<IP_ADDRESS>].158d0001216bb0 Property humidity changed from undefined to 36.38 +0ms
  miio.packet <- <Buffer 21 31 00 50 00 00 00 00 03 5f 8b 98 00 23 75 c0 15 e6 b1 c6 fa 0b 8a 86 90 f0 5a 78 e3 72 1f 5e> +0ms
  miio.device.[<IP_ADDRESS>] <- Message: `{"result":["tmww2v6743mfszkd"],"id":5}` +1ms
[ 'click',
  'double_click',
  'long_click_press',
  'long_click_release' ]

Output for discover:
[~/workspace/sfschedule](master)$ miio --discover
 INFO  Discovering devices.
Debug log shows the packets:
  miio.device.57833582 DEV <- {"cmd":"report","model":"sensor_magnet.aq2","sid":"158d0001ab6d65","short_id":8072,"data":"{\"status\":\"open\"}"} +6s
  miio.device.57833582 DEV <- {"cmd":"report","model":"sensor_magnet.aq2","sid":"158d0001ab6d65","short_id":8072,"data":"{\"status\":\"close\"}"} +2s

console.log(device.devices) output:
[ SubDevice {
    domain: null,
    _events: {},
    _eventsCount: 0,
    _maxListeners: undefined,
    model: undefined,
    id: '158d0001ab6d65',
    type: 'generic',
    capabilities: [],
    _properties: {},
    _propertiesToMonitor: [],
    _propertyDefinitions: {},
    _parent:
     Gateway {
       domain: null,
       _events: {},
       _eventsCount: 0,
       _maxListeners: undefined,
       id: undefined,
       type: 'gateway',
       model: 'lumi.gateway.v3',
       capabilities: [Array],
       address: '<IP_ADDRESS>',
       port: 54321,
       writeOnly: false,
       packet: [Object],
       socket: [Object],
       _id: 3,
       _promises: {},
       _hasFailedToken: false,
       _properties: [Object],
       _propertiesToMonitor: [Array],
       _propertyDefinitions: [Object],
       _reversePropertyDefinitions: [Object],
       _loadProperties: [Function: bound _loadProperties],
       management: [Object],
       debug: [Object],
       _devices: [Object],
       _monitorInterval: 60000,
       _propertyMonitor: [Object],
       _lastToken:<PHONE_NUMBER>915,
       _developerKey: 'E6164BFFC1EA40CC',
       devApi: [Object],
       setRGB: [Function],
       setBrightness: [Function],
       _deviceListTimer: [Object] },
    management: SubDeviceManagement { _device: [Circular] },
    debug:
     { [Function: debug]
       namespace: 'miio.device.[<IP_ADDRESS>].158d0001ab6d65',
       enabled: true,
       useColors: true,
       color: 5,
       inspectOpts: {} } } ]

Any ideas?

@kiwikern Looks like your gateway is doing what should be expected when it comes to the "regular" communication but there are no broadcasts being received. This is either a network issue or the dev API doesn't start on the gateway, both which are hard to debug. Have you tried any other libraries for the gateway, do they receive events correctly?
@kissandr Your problem looks unrelated as you are receiving the events from the gateway. Your magnet sensor just needs to be mapped correctly. Could you open a new issue and we'll take it from there? You can have a look at https://github.com/aholstenson/miio/issues/26#issuecomment-300714389 for info on how mapping is done.

@aholstenson Yes, I'm using this to read events from my subdevices. It's not 100% reliable (when several events occur at the same time) but it does work in general.
-- As I've found this working solution now, I don't need to get miio working, but if I can help you with some information, please let me know. 🙂


chore: add codecov to circleci config

Proposed changes

Add codecov to the CircleCI config.
Types of changes

[x] Build (changes that affect the build system)

Checklist

[x] I have read the CONTRIBUTING documentation
[x] Lint and unit tests pass locally with my changes

Please merge your 3 PRs into a "setup repo" PR