"Lost connection to device" randomly when not doing anything in particular

We should keep closer track of what adb is doing. Is it dying on us? The logs don't say.
[+1366 ms] I/flutter (26953): <some stuff i was printing to the console>
[  +13 ms] I/flutter (26953): <ditto>
[   +1 ms] I/flutter (26953): <ditto>
[        ] I/flutter (26953): <ditto>
[        ] I/flutter (26953): <ditto>
[+128298 ms] Service protocol connection closed.
[        ] Lost connection to device.
[   +1 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/io.flutter.examples.gallery/cache/flutter_galleryIgEdy5/flutter_gallery/)
[ +251 ms] TimeoutException after 0:00:00.250000: Future not completed
[        ] 'flutter run' took 561,659ms.
[  +32 ms] ensureAnalyticsSent: 31ms
[        ] exiting with code 0

I'm also wondering what I get a TimeoutException for
  +45 ms] D/        (20923): HostConnection::get() New Host Connection established 0x870ffc40, tid 20945
[  +60 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/com.customer.project/cache/project_flutterNTBENX/project_flutter/)
[        ] _deleteDevFS: {fsName: project_flutter}
[   +4 ms] Service protocol connection closed.
[ +249 ms] TimeoutException after 0:00:00.250000: Future not completed
[        ] Application finished.
[{"id":0,"result":true}]
[{"event":"app.stop","params":{"appId":"f0e87c31-b8dc-4cdb-90cf-f5a8e24e1a58"}}]
[  +16 ms] "flutter run" took 18,225ms.

i happen to experience this, i suspect its with memory things. My app has 2 tab, 1 is to load text infinitely and its ok, another tab is to load a list of image from network and its also infinite. when i test on second tab, the image is loading fine and when i place it without doing anything the app will crash and it happens both in emulator and real phone, but it took longer for emulator to crash since the pc spec is good while the phone crash much faster.
There is no log, no nothing, the app just crash like that. Hope flutter can fix it

This is happening even on the Get Started Demo when hot-reloading on a Samsung SM G900A device running Android 26 and there is no log, no notification, the app just snaps.
Thanks for your help..Go Flutter!

Yes. it's happening to me too. And I have a bottomBarNavigation, what could be wrong?

I am facing the same issue. For me it happens on a page with a Stopwatch running while loading an animated GIF. Flutter crashes with similar log, on both simulator, and actual Android and iPhone devices.
Is there some clue from the line TimeoutException after 0:00:00.250000: Future not completed? Too coincidental that it is always 0.25 seconds from the few logs shared above.
[+104656 ms] Service protocol connection closed.
[   +1 ms] Lost connection to device.
[   +2 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/com.cust.app/cache/custXMFXED/cust/)
[        ] _deleteDevFS: {fsName: cust}
[ +254 ms] TimeoutException after 0:00:00.250000: Future not completed
[  +12 ms] "flutter run" took 164,722ms.

issue resolved?
I am facing the same issue
[+52972 ms] Service protocol connection closed.
[   +1 ms] Lost connection to device.
[   +6 ms] DevFS: Deleting filesystem on the device (file:///private/var/mobile/Containers/Data/Application/59644099-1284-4766-BCAD-BCFEE118853A/tmp/flutter_hk_cpm6pufOx/flutter_hk_cpm/)
[   +1 ms] Sending to VM service: _deleteDevFS({fsName: flutter_hk_cpm})
[{"id":33,"result":true}]

I am also receiving the same issue randomly.
Im assuming it's a memory issue some how, my app in the Observatory says that I am using 445mb of memory which is INSANE. The only thing I am loading is a user's profile picture from Firebase Storage and I am using the Google Maps API to do nearby place searches.

This problem is driving me crazy, as the app grows it becomes more and more impossible to debug, I have to try to run the app 5 times or more because it closes constantly, it has been like that since I started using flutter in February of this year and there are no signs that they know what causes it.

Same here. Any solution?
[+291139 ms] Service protocol connection closed. [        ] Lost connection to device. [   +2 ms] DevFS: Deleting filesystem on the device (file:///private/var/mobile/Containers/Data/Application/16F3F6C6-0951-4485-90A3-4656C977812C/tmp/MobileAPPhkXhpD/MobileAPP/) [        ] Sending to VM service: _deleteDevFS({fsName: MobileAPP}) [ +254 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed [   +2 ms] "flutter run" took 537,172ms. [        ] "flutter run" took 537,172ms.

@yethael @sk3llo Check out issue #32143. Looks like several others are also having this issue, it is for sure a RAM issue and it looks like Flutter has a couple developers working on this issue!

It seems more related to Android version, when I use a phone with Android 8.x the problem is really painful, but when I use an Android 6.x or 5.1 phone  the problem disappears.

I have the same problem , any solution please ?

I am also facing the same issue.
[+18927 ms] Service protocol connection closed.
[   +3 ms] Lost connection to device.
[   +4 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/com.dev/code_cache/chat-module-flutterVTPSZJ/chat-module-flutter/)
[   +1 ms] Sending to VM service: _deleteDevFS({fsName: chat-module-flutter})
[{"id":25,"result":true}]

Same problem. Trying to use lib multiple_image_picker 0.4.8 I get the following message before the app just close:
[+10514 ms] Service protocol connection closed.
[   +1 ms] Lost connection to device.
[   +2 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/br.com.<my_company_name>.<secret_project_name>/code_cache/<secret_project_name>YGPRCR/<secret_project_name>/)
[        ] Sending to VM service: _deleteDevFS({fsName: <secret_project_name>})
[{"id":28,"result":true}]

I have the same issue,  is it fixed, can anybody please tell me,

Same issue also after starting to use an image related library (gif_ani) so it's probably not specific to a library in particular.

I solved the issue for gif_ani, it was because of a listener on a completer which wasn't properly removed and kept being called. It might be a similar issue for https://github.com/Sh1d0w/multi_image_picker/issues/410 , I tried to look a little bit at the code of multi_image_picker but didn't immediately find a similar pattern.
It's still pretty weird that leaving a listener on it would end up crashing the application. At least it might be a lead.

The same problem, I have a ListView to load multiple images. When I load many images on the list, the Flutter application is closed without throw any exception.
Has Someone fixed it?
Additional information:

I use the package: cached_network_image: ^2.3.1
Flutter log before closed:

[+15548 ms] Service protocol connection closed.
[   +2 ms] Lost connection to device.
[  +11 ms] executing: /Users/lgonzalez/Library/Android/sdk/platform-tools/adb -s d391d441 forward --list
[  +24 ms] Exit code 0 from: /Users/lgonzalez/Library/Android/sdk/platform-tools/adb -s d391d441 forward --list
[        ] d391d441 tcp:58719 tcp:35412
[   +4 ms] executing: /Users/lgonzalez/Library/Android/sdk/platform-tools/adb -s d391d441 forward --remove tcp:58719
[  +19 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/app.criptolugares/code_cache/ubiappIXUJPE/ubiapp/)
[ +262 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed
[   +3 ms] executing: /Users/lgonzalez/Library/Android/sdk/platform-tools/adb -s d391d441 forward --list
[  +12 ms] Exit code 0 from: /Users/lgonzalez/Library/Android/sdk/platform-tools/adb -s d391d441 forward --list
[   +3 ms] "flutter run" took 391,186ms.
[ +221 ms] ensureAnalyticsSent: 211ms
[   +2 ms] Running shutdown hooks
[        ] Shutdown hook priority 4
[  +25 ms] Shutdown hooks complete
[   +1 ms] exiting with code 0

Flutter doctor:

[✓] Flutter (Channel stable, 1.20.2, on Mac OS X 10.15.5 19F101, locale en-AR)
    • Flutter version 1.20.2 at /Users/lgonzalez/development/flutter-1.20.2
    • Framework revision bbfbf1770c (2 weeks ago), 2020-08-13 08:33:09 -0700
    • Engine revision 9d5b21729f
    • Dart version 2.9.1

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/lgonzalez/Library/Android/sdk
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /Users/lgonzalez/Library/Android/sdk
    • 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 11.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C504
    • CocoaPods version 1.9.1

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 48.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

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

[✓] Connected device (1 available)
    • SM J250M (mobile) • d391d441 • android-arm • Android 7.1.1 (API 25)

• No issues found!

I'm having the same issue with iOS devices connected

I had exact same kind of bug while using the image_picker package
image_picker: ^0.6.7+17

I found a workaround on iOS for this bug.
Using a GestureDetector() and a Text() as it's child instead of the in-built Flutter buttons to trigger the function getting the image from either camera or gallery didn't crash on iOS. Issue might also be with the Button's fancy animation coinciding with the image_picker's Future..

If I use ListTile then also it's crashing the app.

If I use ListTile then also it's crashing the app.

This has been happening to me a lot more in the last week or two. But although it's frequent, it's also quite random. I'll just be sitting reading a web page in my browser, with VS Code running Flutter on my second monitor, and all of a sudden I see the server just stop in VS Code, and I hadn't touched a thing for minutes, and hadn't touched VS Code for even longer.
Sometimes it'll go for hours without fail. Today it has stopped at least a half dozen times. This last time, I ran Flutter via the command line with flutter run -v. It stayed up for quite awhile, and I thought that fixed it, but just "lost connection" a few minutes ago.
[+1578500 ms] Service protocol connection closed.
[   +4 ms] Lost connection to device.
[   +7 ms] executing: C:\Users\micro\AppData\Local\Android\sdk\platform-tools\adb.exe -s HT74V0204689 forward --list
[ +125 ms] Exit code 0 from: C:\Users\micro\AppData\Local\Android\sdk\platform-tools\adb.exe -s HT74V0204689 forward --list
[   +6 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/com.kdcinfo.hungry/code_cache/hungrySAGSMH/hungry/)
[ +260 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed
[   +4 ms] executing: C:\Users\micro\AppData\Local\Android\sdk\platform-tools\adb.exe -s HT74V0204689 forward --list
[  +90 ms] Exit code 0 from: C:\Users\micro\AppData\Local\Android\sdk\platform-tools\adb.exe -s HT74V0204689 forward --list
[   +3 ms] "flutter run" took 7,027,677ms.
[   +8 ms] ensureAnalyticsSent: 1ms
[   +4 ms] Running shutdown hooks
[   +1 ms] Shutdown hook priority 4
[  +10 ms] Shutdown hooks complete
[   +1 ms] exiting with code 0

Wish I had more info, but that's more than I knew how to get a day ago.
[ flutter doctor -v ]
PS D:\src\projects\kdrecall\hungry-on-hand> flutter doctor -v
[√] Flutter (Channel stable, 2.0.2, on Microsoft Windows [Version 10.0.19042.867], locale en-US)
    • Flutter version 2.0.2 at D:\src\flutter
    • Framework revision 8962f6dc68 (2 days ago), 2021-03-11 13:22:20 -0800
    • Engine revision 5d8bf811b3
    • Dart version 2.12.1

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\micro\AppData\Local\Android\sdk
    • Platform android-29, build-tools 29.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.54.2)
    • VS Code at C:\Users\micro\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.20.0

[√] VS Code, 32-bit edition
    • VS Code at C:\Program Files (x86)\Microsoft VS Code
    • Flutter extension version 3.20.0

[√] Connected device (3 available)
    • Pixel XL (mobile) • HT74V0204689 • android-arm64  • Android 10 (API 29)
    • Chrome (web)      • chrome       • web-javascript • Google Chrome 89.0.4389.82
    • Edge (web)        • edge         • web-javascript • Microsoft Edge 89.0.774.45

• No issues found!

am experiencing this issue on flutter desktop (windows) using the provider package

The same problem, but it only happens  in emulators. If I leave my app in the foreground without doing anything and I come back in a few minutes, I get the message "Lost connection to device". And if I run the application again in that same emulator, the connection loses faster even just a few seconds.
I have to remove the emulator, create one, and run the application. But after hours it happens again. It has happened to me with almost all the applications that I develop. I am frustrated by the bad development experience I am having.

@Adrek do not despair, you will find the solution. I had this problem some months ago. Let me talk to you about what was my problem and my solution.

The Behavior:
In my case When I ran the application, some minutes later the application crashed suddenly after being used it. This happened in the emulator and the device too. I was frustrated as well because the only message I got was "Lost connection to device" in the logs gotten from ADB.

My problem:
The reason because this issue was happening in my case was related to the performance of the Application. More specifically related to the Jank concept. Here is a video about a performance explanation and Jank https://www.youtube.com/watch?v=PKGguGUwSYE.

The origin of the performance issue I had was that I wasn't using a Grid View correctly, and when I was making scrolling down the device or emulator filled the RAM the App crashed with the message Lost connection to device.
In conclusion, my problem was a Performance Issue, and the only way to realize it was using the Profiling and Debugging tools we have in Flutter.

My solution:

I had to structure again the code where I was having the Jank issue.
There I was using a GridView.builder inside a SliverToBoxAdapter. Due to this the garbage collector wasn't working properly.
Finally, the solution was to replace the GridView.builder with SliverGrid.
E.g:
Replace this
GridView.builder(
              itemCount: state.items.length,
              physics: ScrollPhysics(),
              shrinkWrap: true,
              gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
                crossAxisCount: 2,
                mainAxisSpacing: 10.0,
                crossAxisSpacing: 10.0,
                childAspectRatio: 3/4,
              ),
              itemBuilder: (BuildContext context, int index) {
                  return MyWidget();
        })

with This
SliverGrid(
    delegate: SliverChildBuilderDelegate(
      (BuildContext context, int index) {
        return MyWidget();
      },
      childCount: state.items.length,
    ),
    gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
      crossAxisCount: 2,
      mainAxisSpacing: 10.0,
      crossAxisSpacing: 10.0,
      childAspectRatio: 3 / 4,
    ),
  )

Note: This is the documentation that was super useful in my case to realize what was the problem: https://flutter.dev/docs/perf/rendering/ui-performance.
Regards!

[+6046 ms] Service protocol connection closed.
[        ] Lost connection to device.
[   +3 ms] DevFS: Deleting filesystem on the device ([file:///C:/Windows/TEMP/Billing_Appb3e9dbf9/App/]())
[ +273 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed

I'm not sure this is useful for anyone else than me, but after struggling with these disconnects for longer than I would like to admit I discovered by accident that the disconnects seemed to be related to having the Chrome Devices tab opened
When I unchecked Discover USB Devices in chrome://inspect/#devices the problem went away

Just for recording my experience.
Environment: flutter 3.0.4, M1 macOS.
I have no issue when connecting with iOS device. Only android have this issue.
I tried mvrsn's workaround but it doesn't help. I used reliable usb cable and wireless connection but both have the issue.
I tested with simple counter example. So I think it have no relation with used packages.
Everytime I fill in flutter survey I consider this.

im facing this issue. anyone has a solution for this.?
[+15898 ms] Service protocol connection closed.
[   +1 ms] Lost connection to device.
[   +3 ms] DevFS: Deleting filesystem on the device
(file:///Users/jober/Library/Developer/CoreSimulator/Devices/7E66540A-D3EB-467D-B8B6-D7DAFA9869E2/data/Containers/Data/Application/C6BB618A-80EB-4A37-A851-2EA3D0668E6C/tmp/muraita_main7nULlN/muraita_main/)
[ +253 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed
[   +1 ms] "flutter run" took 379,806ms.
[ +172 ms] ensureAnalyticsSent: 171ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 0

Has anyone found a solution to this issue? App randomly crashes on windows.

cant believe this issues still exists ??!! no solutions yet, even with the basic counter app crashes
could it be something got to do with the gpu or something else?

I'm facing an issue where the emulator loses the connection. It started happening after upgrading Flutter to 3.10.4.
It happens as I tap on the container.

Exited

With flutter run --verbose
[+6384 ms] F/libc    ( 5582): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xf in tid 5645
(1.raster), pid 5582 (.grocery.vikash)
[  +63 ms] *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
[        ] Build fingerprint: 'google/sdk_gphone_arm64/emulator_arm64:11/RSR1.210722.003/7604015:user/release-keys'
[        ] Revision: '0'
[        ] ABI: 'arm64'
[   +8 ms] Timestamp: 2023-06-10 22:39:10+0500
[        ] pid: 5582, tid: 5645, name: 1.raster  >>> com.grocery.vikash <<<
[        ] uid: 10170
[        ] signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xf
[        ] Cause: null pointer dereference
[        ]     x0  b4000075ffffe071  x1<PHONE_NUMBER>00000f  x2<PHONE_NUMBER>000000  x3  b4000075ffffe070
[        ]     x4<PHONE_NUMBER>00000f  x5  b400007affffe071  x6  c00000007ca79e21  x7<PHONE_NUMBER>00000f
[        ]     x8<PHONE_NUMBER>000041  x9<PHONE_NUMBER>000001  x10<PHONE_NUMBER>00003f  x11<PHONE_NUMBER>000031
[        ]     x12<PHONE_NUMBER>000040  x13<PHONE_NUMBER>000000  x14<PHONE_NUMBER>001406  x15<PHONE_NUMBER>000007
[        ]     x16 0000007ca0ce1590  x17 0000007fa4eb3e40  x18 0000007ca1740000  x19 0000007ca79e21b8
[        ]     x20<PHONE_NUMBER>000000  x21<PHONE_NUMBER>000031  x22 b4000075ffffe040  x23<PHONE_NUMBER>000000
[        ]     x24 b400007d63fe35e8  x25 b400007ea3ff1b30  x26 b400007d63fe35e0  x27 b400007d44025868
[        ]     x28 b400007f04014d20  x29<PHONE_NUMBER>000004
[        ]     lr  0000007ca0446978  sp  0000007ca79e2140  pc  0000007fa4eb3db8  pst<PHONE_NUMBER>001000
[   +9 ms] backtrace:
[        ]       #00 pc<PHONE_NUMBER>049db8  /apex/com.android.runtime/lib64/bionic/libc.so (__memcpy+232) (BuildId:
ac8f7173c886715a2f2fec67246e21da)
[        ]       #01 pc<PHONE_NUMBER>646974
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #02 pc<PHONE_NUMBER>a9c774
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #03 pc<PHONE_NUMBER>a9c600
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #04 pc<PHONE_NUMBER>aa4bd0
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #05 pc<PHONE_NUMBER>aa5650
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #06 pc<PHONE_NUMBER>aa361c
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #07 pc<PHONE_NUMBER>aa32f8
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #08 pc<PHONE_NUMBER>aa2f74
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #09 pc<PHONE_NUMBER>aa2eec
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #10 pc<PHONE_NUMBER>aa5148
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #11 pc<PHONE_NUMBER>a8d2a8
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #12 pc<PHONE_NUMBER>a839d0
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[   +1 ms]       #13 pc<PHONE_NUMBER>a83994
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[   +2 ms]       #14 pc<PHONE_NUMBER>a7ff50
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #15 pc<PHONE_NUMBER>a7f780
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #16 pc<PHONE_NUMBER>a8e6c8
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #17 pc<PHONE_NUMBER>ab3d84
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #18 pc<PHONE_NUMBER>973b40
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #19 pc<PHONE_NUMBER>973ac0
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #20 pc<PHONE_NUMBER>979418
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #21 pc<PHONE_NUMBER>9781e0
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[   +1 ms]       #22 pc<PHONE_NUMBER>978a1c
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #23 pc<PHONE_NUMBER>979aa8
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #24 pc<PHONE_NUMBER>9785d8
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[   +1 ms]       #25 pc<PHONE_NUMBER>97834c
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #26 pc<PHONE_NUMBER>985090
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #27 pc<PHONE_NUMBER>64c7f0
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #28 pc<PHONE_NUMBER>651d58
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #29 pc<PHONE_NUMBER>019dac  /system/lib64/libutils.so (android::Looper::pollInner(int)+916) (BuildId:
d1aa3b02347f658128fc75fb371856b9)
[        ]       #30 pc<PHONE_NUMBER>0199b0  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*,
void**)+112) (BuildId: d1aa3b02347f658128fc75fb371856b9)
[        ]       #31 pc<PHONE_NUMBER>012c74  /system/lib64/libandroid.so (ALooper_pollOnce+100) (BuildId:
8879643b52a5202dc690df96c14de2cc)
[        ]       #32 pc<PHONE_NUMBER>651ce0
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #33 pc<PHONE_NUMBER>64c74c
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #34 pc<PHONE_NUMBER>6503a4
/data/app/~~C7FYHkY6eHMY9zjoz_SMyg==/com.grocery.vikash-GTR-m5k822o59HM00HSx2g==/lib/arm64/libflutter.so (BuildId:
58dc8375047fa5d0234c1f5b3879a05467383fd1)
[        ]       #35 pc<PHONE_NUMBER>0af8c8  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64)
(BuildId: ac8f7173c886715a2f2fec67246e21da)
[        ]       #36 pc<PHONE_NUMBER>04fe08  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
(BuildId: ac8f7173c886715a2f2fec67246e21da)
[ +637 ms] Service protocol connection closed.
[        ] Lost connection to device.
[        ] DevFS: Deleting filesystem on the device
(file:///data/user/0/com.grocery.vikash/code_cache/vikashVALMXU/vikash/)
[ +253 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed

[   +2 ms] "flutter run" took 30,772ms.
[ +259 ms] ensureAnalyticsSent: 252ms
[        ] Running 1 shutdown hook
[   +1 ms] Shutdown hooks complete
[        ] exiting with code 0

I'm encountering this same issue. any updates??

Most of the time when I'm working I have both vscode and android studio open.
I just realized that if i close android studio i don't have the issue launching from vscode anymore.

For me, this error sometimes happens at the same time there is a lot of garbage collector (GC) activity, which can be seen in the log while debugging.
I/art     (26076): Background partial concurrent mark sweep GC freed...

The scenario is the following:

a breakpoint is hit by the debugger
at this point, just observe the log. Lots of GC activity is sometimes taking place, suggesting something is going on (eg., including some activity in another isolate).
"Lost connection to device".

I tried on two different devices:

a 6GB Pixel 6a with Android 13
a 2GB Z5 Compact with Android 7.1.1

The connection is lost quickly on the Z5 device, heavily suggesting that it is a memory-related issue. It is sad that the debugger is unable to somehow warn me about this, though.
I can reproduce this issue with the camera package, and can get rid of it by explictly using camera_android_camerax. Note that I am not saying there is a memory leak in camera_android, just that there is a lot of GC activity, something that does not occur with camera_android_camerax.
cc @stuartmorgan FYI.

✓  Built build/app/outputs/flutter-apk/app-debug.apk.
D/FlutterArchivePlugin(10350): onAttachedToEngine - IN
D/FlutterArchivePlugin(10350): doOnAttachedToEngine - IN
D/FlutterArchivePlugin(10350): doOnAttachedToEngine - OUT
D/FlutterArchivePlugin(10350): onAttachedToEngine - OUT
Connecting to VM Service at ws://<IP_ADDRESS>:49813/bkpQuTS7dZA=/ws
  Lost connection to device.
Exited

Updated: I solved the problem by switching the default USB mode to "PTP over USB" and disabling system logging in the android developers menu Since then none 'Lost connection' happened

Switch to "File Transfer" from "No data transfer" solve the problem here

@GustavoNeri02 there are multiple causes for this error. Once cause is the File Transfert, that has not been enabled, and that indeed does need to be enabled for debug sessions to run smoothly. You're right.
But there seems to be other causes as well, and situations that are considerably more tricky to investigate.
In my case, a heap overflow somewhere in a background isolate could explain the behavior. I'm not even sure if "Break on: Uncaught exceptions" would help here.
Anyway, just my $0.02.

In my case, I have been facing "Lost connection to device" since the time I set up Subsystem for Android on Window, that require installing Ubuntu from the Microsoft Store. Now I removed Ubuntu then it works well. Hope this helps.

I have been building in debug and it was working well until I released the app and run the app on another machine and the app suddenly stopped and closed without sending any stack trace.

Same issue here as well, only on android.

I've the same problem, is a terrible experience debug in this situation on Android, is there something i can do to help you solve this situation?

Same issue when i try to use firebase on windows 10, but working on windows 11

Hello? It's been 7 years?

Still facing the same issue

Although not very straightforward, the problem disappeared on my side.
I can think of two culprits:

The connection port. It chooses a random port at startup and I'm wondering if it might not have chosen a port already used by all those docker-compose images I had.

Not straightforward problem in the code.
Which I think is the real culprit.
I did something such as:

onPressed: executeFunction()

Which seems to compile without any problem except it should actually be:
onPressed: executeFunction

And once I did that, the problem stopped happening.
Why Flutter doesn't print a big bad stack trace of exception is a mystery to me but I suggest you guys have a look at your code and see if you don't have any similar syntax issue.
Hope this helps.

This is happening to me with a fresh untouched flutter create new-project.

Happenning to me with a connected iPhone 12 Pro device. All the time! ie randomly gives up the connection after a few minutes.

Here is my flutter run -v on an Android device Flutter 3.19.2
[        ] Performing hot restart...
[   +4 ms] Scanned through 630 files in 4ms
[        ] Syncing files to device LM G810...
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[        ] Processing bundle.
[        ] <- recompile package:layouts/main.dart 82f94efb-1e11-4383-9aa7-5658b86df08c
[        ] <- 82f94efb-1e11-4383-9aa7-5658b86df08c
[        ] Bundle processing done.
[  +28 ms] Updating files.
[ +397 ms] Service protocol connection closed.
[        ] Lost connection to device.
[        ] DevFS: Deleting filesystem on the device (file:///data/user/0/com.example.layouts/code_cache/layoutsCLBDVZ/layouts/)
ERROR - 2024-06-24 23:18:59.747201
PUT /EZja7KpuUIo=/
Error thrown by handler.
Connection closed before full header was received
package:shelf/shelf_io.dart 138:16  handleRequest

[  +15 ms] DevFS: Sync finished
[        ] Syncing files to device LM G810... (completed in 444ms)
[        ] Synced 35.3MB.
[        ] <- accept
[ +238 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed

[   +4 ms] "flutter run" took 42,837ms.
[ +103 ms] ensureAnalyticsSent: 65ms
[        ] Running 1 shutdown hook
[   +1 ms] Shutdown hooks complete
[   +1 ms] exiting with code 0

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.2, on macOS 14.3 23D56 darwin-arm64, locale en-CZ)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 2023.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.3)
[✓] VS Code (version 1.90.2)
[✓] Connected device (3 available)
    ! Error: Browsing on the local area network for iPad 9th generation. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

I am facing this issue on windows platform, so both and target platform is windows.

still happening :(

Daily annoyance right now ... hope we find a stable way to manage the connection

I remember seeing somewhere in the 3.24.x release notes that the 'Lost connection to device' message had been improved, in that it would provide an explanation as to why it occurred.

I searched for it in https://docs.flutter.dev/release/release-notes/release-notes-3.24.0. Did not see it though

@pavanpodila that's right, it is here, too, in the 3.24.2 release changelog:
https://github.com/flutter/flutter/blob/main/CHANGELOG.md#3242
states "When running a Flutter app, display a concise error message when connection to the device is lost" (https://github.com/flutter/flutter/pull/153769). I expected this enhancement would help us diagnose 'Lost connection to device' issues, but I too do not see any information when that happens.

me ✌

Still having this issue with 3.24.4 stable. It happens on Android emulator 35. What's going on Flutter? This takes too much time to work on anything as it keeps disconnecting.

I'm working on a project with v3.24.3 using camera and Google MLKit text recognition on Android, with a real android phone connected. Loses connection without any specific errors after ~5 minutes. It's too hard to work on the project anymore.

I am still having issues too, rarely though.
To be on the safe side, I usually set up wireless debugging for my phone using adb. This way, I make sure the problem does not come from my USB cable. I would suggest anybody subscribed to this thread to use wireless debugging.

Most of the time when I'm working I have both vscode and android studio open.
I just realized that if i close android studio i don't have the issue launching from vscode anymore.

Closing Android Studio worked for me


Improve model preview.

Display the trigger words on model preview images. They are somewhat drag-select copy paste-able.
Prevents overwriting exiting preview images.

Displaying the trigger words does mean writing those to .txt files in the model directories for every model. Doing this is configurable in the settings. There is no notable lag.
Trigger-words with non-ascii characters cause a gradio error, so those areexcluded, and listed on the console.

I'm going to test one thing more, see if there's some hyperlink supprt, which could maybe facilitate the copy-paste process

I like their buttons, but I don't like it's another tab. maybe the .txt files solution is not ideal either, there should just be buttons and that a button press queries the civitai api.


Is there any way to make searchable on rails 4 enum attribute.

I have column pic_type in a table, with integer type, which is mapped to ActiveRecord as enum attribute. Now how can we search and return records for this attribute by searching 'string'(equivalent to enum values) value in datatable search box.

As of right you can't. The reason is, in your db engine you have a column
of type Integer, that in your app domain is mapped to an enum yes, but
that's in your app's code, not your db engine, and the gem pulls your db
column to perform searches.
This is a very interesting scenario, and would like to invite you to
contribute a solution for this. What do you say?
On Jun 30, 2015 21:58, "Milan Rawal"<EMAIL_ADDRESS>wrote:

I have column pic_type in a table, with integer type, which is mapped to
ActiveRecord as enum attribute. Now how can we search and return records
for this attribute by searching 'string'(equivalent to enum values) value
in datatable search box.
—
Reply to this email directly or view it on GitHub
https://github.com/antillas21/ajax-datatables-rails/issues/109.

thanks @antillas21, for quick response, actually I'm new to rails and ruby, I think, I can't contribute now, but will try my best in near future, will take it as a challenge from now onwards.

@coderawal Looking forward for a contribution from you in the future :smile:
Related to this, I just received this in the mail: http://www.justinweiss.com/blog/2015/06/30/creating-easy-readable-attributes-with-activerecord-enums/
which basically, describes the problem of using enum in an app's code. Not that it's a bad idea, but it has some cons when it comes to accessing data directly from the db.


fix token crash

token.go was updated to read the status code, but there isn't always a status code, since the client can return errors before the request even is sent.

I'm seeing the same error pattern in azure-sdk-for-go.
See network/publicipaddresses.go:
func (client PublicIPAddressesClient) CreateOrUpdate(resourceGroupName string, publicIPAddressName string, parameters PublicIPAddress) (result PublicIPAddress, ae error) {
	req, err := client.CreateOrUpdatePreparer(resourceGroupName, publicIPAddressName, parameters)
	if err != nil {
		return result, autorest.NewErrorWithError(err, "network/PublicIPAddressesClient", "CreateOrUpdate", autorest.UndefinedStatusCode, "Failure preparing request")
	}

	resp, err := client.CreateOrUpdateSender(req)
	if err != nil {
		result.Response = autorest.Response{Response: resp}
		return result, autorest.NewErrorWithError(err, "network/PublicIPAddressesClient", "CreateOrUpdate", resp.StatusCode, "Failure sending request")
	}
    ...

Basically, in resp, err := client.CreateOrUpdateSender(req) if the resp comes back as nil (let's say low-level network issue?) it totally panics will nil dereference error in resp.Status.
I can easily induce this by disconnecting network, right before the call to the client method.
I'm thinking of opening an issue in azure-sdk-for-go, but the sensible option is probably making the if resp==nil check in go-autorest, because both the SDK and token.go call this NewErrorWithError method in go-autorest.

So NewErrorWithError would take the response pointer itself and would do the null check? I didn't consider changing what we were passing to NewErrorWithError, but this makes sense if the generated code can also hit this case.
(In my case I hadn't yet put my new mitmproxy in my cert store, so my app was blowing up in an x509 check).

@colemickens @ahmetalpbalkan Let's change NewErrorWithError as suggested.

Agreed. Closing this.


Statement separator

Reimplemented statement separator to fix https://github.com/cloudspannerecosystem/spanner-cli/issues/33.
Note: Logic for parsing a statement is mostly taken from spansql.

[x] Implement byte string
[x] Implement raw byte string
[x] Add more tests
[x] optimization; parsing long text is very slow

close https://github.com/cloudspannerecosystem/spanner-cli/issues/33

Is the new separator only used in batch mode?
I have noticed triple-quoted string seems not to be properly handled in interactive mode.
Example
SELECT """
SELECT 1;
"""

$ go run ./
Connected.
spanner> SELECT """
-> SELECT 1;
ERROR: spanner: code = "InvalidArgument", desc = "Syntax error: Unclosed triple-quoted string literal [at 1:8]\nSELECT \"\"\" SELECT 1\n       ^"

Batch mode can execute the query.

go run ./ -f test.sql
SELECT 1;

Very minor edge case(back-quoted identifier containing semicolon).
SELECT 1 AS `tl;dr`;

$ spanner-cli -f edge-case.sql
ERROR: spanner: code = "InvalidArgument", desc = "Syntax error: Unclosed identifier literal [at 1:13]\nSELECT 1 AS `tl\n            ^"
exit status 1

Is quoted identifier not processed like this?
https://github.com/googleapis/google-cloud-go/blob/spanner/v1.4.0/spanner/spansql/parser.go#L788-L793

Is the new separator only used in batch mode?
I have noticed triple-quoted string seems not to be properly handled in interactive mode.

Ah, you're right. I'll change it to use new separator.

Isn't the quoted identifiers processed like this?

Thanks for pointing it out. I didn't consider quoted identifier. Let me fix that.

Thanks for your review!


Use jupyter-releaser

Oh there was no CI set up on the repo before?

Oh there was no CI set up on the repo before?

No :smile:
This PR seems to be the only remaining step before adopting jupyter-release.


Encryption / Decryption of a message

Hi, thanks for your repo. I don't know if I'm doing something wrong. When decrypting, characters are truncated and I only get 32 Bytes.
`
kyber := kyber.NewKyber1024()
pk, sk := kyber.PKEKeyGen(nil)
msg := make([]byte, 44)
msg = []byte("Very random message to sign in the benchmark")
encryptMessage := kyber.Encrypt(pk, msg, nil)
decryptedMessage := kyber.Decrypt(sk, encryptMessage)
log.Println("HELLO")
//log.Println(encryptMessage)
log.Println(len(msg)) // 44 Bytes
log.Println(len(decryptedMessage)) // 32 Bytes

`
So 'SEEDBYTES' only represents 32. Therefore, is not possible to use longer messages?

The encryption is meant for 32byte keys for symmetric encryption

You can do a workaround to encrypt more than 32bytes but it is very inefficient and creates unreasonably large files

https://github.com/acheong08/crystallize
(My attempt)

Hello and thanks for reporting. Please notice that this repository is not maintained anymore, it was part of a MsC thesis project but it was not correctly marked as "unmaintained". Kudelski Security does not use this library in any commercial offering or services, it was just meant for testing and fun. I have now updated the README file to clarify this, and I will now archive this repository to avoid further issues.


Datepicker options has no effect in 8.4.2

$datetime = loader::helper('form/date_time');
date('date', "2010-12-12", true, ["yearRange"=>"1000;c+10"]); ?>
This code should create jquery datepicker with year select option from 1000th year till current year +10, but instead of those parameters it uses default one(current-100 : current+10)

#6982 should fix this issue

This can be closed

👍


[WIP] feat: plugin antd

Codecov Report

Merging #421 (a8dffd8) into release-next (b227735) will increase coverage by 0.05%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##           release-next     #421      +/-   ##
================================================
+ Coverage         81.21%   81.26%   +0.05%
================================================
  Files                81       81
  Lines              6972     6972
  Branches            857      855       -2
================================================
+ Hits               5662     5666       +4
+ Misses             1303     1298       -5
- Partials              7        8       +1

Impacted Files
Coverage Δ

packages/ice/src/service/watchSource.ts
81.39% <0.00%> (-4.66%)
:arrow_down:

packages/ice/src/getWatchEvents.ts
41.22% <0.00%> (-0.88%)
:arrow_down:

packages/ice/src/commands/start.ts
89.04% <0.00%> (+0.68%)
:arrow_up:

packages/ice/src/utils/formatWebpackMessages.ts
69.34% <0.00%> (+0.72%)
:arrow_up:

packages/rax-compat/src/index.ts
100.00% <0.00%> (+2.00%)
:arrow_up:

packages/runtime/src/RouteContext.ts
71.42% <0.00%> (+3.57%)
:arrow_up:

packages/runtime/src/AppContext.tsx
72.22% <0.00%> (+5.55%)
:arrow_up:

packages/rax-compat/src/ref.ts
100.00% <0.00%> (+16.66%)
:arrow_up:

packages/rax-compat/src/context.ts
100.00% <0.00%> (+20.00%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Update Chinese translation and fix typo

Update Chinese translation and fix typo

@niusmallnan @kingsd041 Please help take a look at the translation update. Thanks!

LGTM

@bisht-richa can you review please


MRG: Update install instruction when using Spyder

Following this post: https://mne.discourse.group/t/mne-python-installation-in-windows-does-not-work/4336/7
@mmagnuski I am not fully satisfied with the text, if you have a better idea, please propose a change. Maybe a warning that the spyder and the spyder-kernel version must match?

Render: https://41355-1301584-gh.circle-artifacts.com/0/dev/install/mne_python.html#python-ides

In the section 2D plotting and sensor-level analysis, any reason why this one is a pip command?
$ conda create --name=new_environment_name python=3
$ conda activate new_environment_name
$ pip install mne matplotlib

Great, thanks @mscheltienne, I will take a look today.

Would installing the stand-alone Spyder app make anything easier?

I never tried it, but I don't think so as you still would have to do the same steps: create a separate venv for MNE and then spyder-kernels in this venv.

I think you could install MNE into the base env if using Anaconda, and then tell Spyder to use that env. But yes, you need to install spyder-kernels for sure.

@cbrnr unfortunatelly some of the pain points of separate Spyder env remain (I'm moving my earlier comments here because they fit better in the main discussion):
My recent experience is that trying to follow this instruction and set up Spyder and mne in separate envs can be much more frustrating than problems with dependency conflicts. :(
For example - (1) Spyder won't be able to show mne variables if you double click them if you don't have mne installed in Spyder env (this is the same for variables specific to any other library). So if you wan't to use the variable explorer without frequent errors you would have to mirror many packages between your mne and spyder envs...
(2) Installing the correct version of spyder-kernels is also not trivial - you would have to check the Spyder docs for the correct mapping of Spyder version -> spyder-kernels version or read the error you get in Spyder if you install the wrong spyder-kernels.
One other thought - (3) Spyder devs seem to recommend installing from conda-forge and this can also lead to problems if Spyder is installed in the base env. So maybe it would be better to have three envs: base, mne and spyder, but that gets even more cumbersome... Installing Spyder via the installer as @cbrnr suggests helps with this last problem, but not the previous two. Moreover, I'm not sure what level of control one has over the Spyder installer-installed env and so if problem (1) is not a tiny bit worse (I try to avoid installing packages from Spyder console, but I din't try %conda magic - if it still exists...).

FYI I think most of this is going to be replaced (hopefully) by mne-installers for 1.0: #10148
@mmagnuski maybe you could help test @hoechenberger's installers and share your experience?

@larsoner I'd be happy to try it out. But unless the mne installer installs Spyder to the same env as mne, the problems (1) and (2) remain. Although they are easy to solve once you've encountered them, they are likely to be problematic for new users.

IMO, for the install doc, the easiest is to replace the current text for Spyder with:

Recommended way: install both MNE and Spyder in the same environment. This might lead to dependency conflicts [...]. Spyder can be started from within the environment with the command spyder (I think? I am not a conda user, so please correct me if I'm wrong).
MNE can also be installed in a separate environment [description for spyder-kernels and how to set the environment in Spyder]. This might lead to non-working Spyder functionalities such as the variable explorer.

As @mmagnuski pointed out, it is less frustrating to deal with the (rare) dependency conflicts than with the many broken Spyder functionalities.

This sounds like a problem on Spyder's end though - they have an option to set a different environment, and if certain functions are not working as intended then this should probably be fixed in Spyder and not by us.

Agree, but if the doc recommends installing both in 2 different environments; then it should also mention spyder-kernels (original issue).

Shouldn't we recommend using the standalone installs of Spyder these days anyway?

Shouldn't we recommend using the standalone installs of Spyder these days anyway? They exist for Windows and macOS.

I think at least that's what they recommend, so yes.

Then maybe let's change the text to recommend using those installers. Do you know then if you have to install MNE in a separate env and link it in spyder (spyder-kernels + the setting) or if you can install packages in the base environment created by the installer?

I use neither Spyder nor conda, so unfortunately I don't know.

Render: https://41388-1301584-gh.circle-artifacts.com/0/dev/install/mne_python.html#python-ides
It's not perfect, but it should help users to get Spyder to work with MNE.

This sounds like a problem on Spyder's end though - they have an option to set a different environment, and if certain functions are not working as intended then this should probably be fixed in Spyder and not by us.

It might sound so @cbrnr, but we are advising the two-envs approach to mne and Spyder, not the Spyder devs. :) And the two-env solution might be more problematic for most new users than just installing Spyder in the same env. The spyder variable explorer problem for example does not seem easily fixable in the near future, and it forces an mne python user to additionally install mne into Spyder's env to be able to inspect mne objects by double clicking in the variable explorer (and the same for any other library like pandas, xarray or scikit learn). So in such case our two-env recommendation is:

install mne to a separate environment
set the interpreter to the other environment (this already requires a few steps as listed in the current instructions)
restart Spyder and read the spyder-kernels error that appears in the console - install the version of spyder-kernels recommended in the error message to the mne env
install mne to the Spyder environment to be able to use Spyder's variable explorer to inspect mne-python variables
(do the same for any other package that gives you errors in Spyder's variable explorer)

I think this is too complex for a new user and a first mne installation. I think it would be simpler to just advice:

install spyder into mne's env (for example conda install spyder -c conda-forge)
in case of problems/conflicts follow the advanced Spyder two-env instructions

I'd guess that about 75% of new users do not go for source reconstruction and 3d mne vis, so Spyder in the same env will likely work well for them.
BTW, maybe we can concoct an mne installer that has the right package versions so that Spyder and mne can run in the same env?

@mmagnuski But now, if we recommend installing in the same environment, the installation steps become more specific to how Spyder was installed. I never used the Spyder installers, and I am not sure you can install MNE in the base environment created by the installers.
IMO, the loss of the variable explorer is acceptable for now as it should be fixed at some point in Spyder, and can be bypassed by using the IPython console (not perfect, I know). As I remember, I had in the past different env with different package versions; and I could use the variable explorer to e.g. look at a numpy array or a pandas dataframe; which is not the case anymore. Maybe I'm wrong, but it feels like a new bug, introduced around... 5.1? Maybe? (Or maybe it was always present and I somehow never faced it.)

@hoechenberger Oh, great! I will be happy to test them (see below).

if we recommend installing in the same environment, the installation steps become more specific to how Spyder was installed. I never used the Spyder installers, and I am not sure you can install MNE in the base environment created by the installers.

I think we would ask the user to conda install spyder into the same env as mne (just like we now ask to conda install spyder-kernels into that env). I don't have experience with the Spyder standalone installer, so I don't know what's possible. I would prefer not to advice using something we didn't test ourseleves. :)

IMO, the loss of the variable explorer is acceptable for now as it should be fixed at some point in Spyder, and can be bypassed by using the IPython console (not perfect, I know).

The loss of variable explorer is only one of the problems. From my point of view the two-env installation is too complicated to be advised as the first contact with mne python.
But, to simplify this PR I propose to:

[now] finish this PR with the improved two-env instructions (I'll add a few comments soon)
[future] ask Spyder devs about the variable explorer two-env problem (if they plan to change this behavior etc.)
tomorrow I should be able to test the simplified instructions (install Spyder to mne env) and see if they are indeed pain-free.
I can also test the mne installer if @hoechenberger lets me know what instructions to follow
[future] after a bit more testing we can decide whether we change the Spyder instructions to one-env or just wait for the installers to be ready and only then change the instructions.

Sorry for fragmented review @mscheltienne. That was my last comment. :)

https://41444-1301584-gh.circle-artifacts.com/0/dev/install/mne_python.html#python-ides
LGTM for now, @mmagnuski @cbrnr @hoechenberger

Great, thanks @mscheltienne 🚀 !


Extensions written in C# fail when opening files from remote repo and a non-default branch

I've now seen this in two of our extensions:
https://github.com/Azure/bicep/issues/11467
https://github.com/microsoft/vscode-azurearmtools/issues/1647
Hard to believe no one else has seen this.
To repro:
Follow steps here: https://github.com/Azure/bicep/issues/11467#issuecomment-1745503349
My investigation results are here: https://github.com/Azure/bicep/issues/11467#issuecomment-1745613999
The problem is that for non-default branches, the URI we get for the document looks like this:
vscode-vfs://github%2B7b2276223a312c22726566223a7b2274797065223a342c226964223a225374657068656e57656174686572666f72642d70617463682d31227d7d/StephenWeatherford/template-examples/bicep/templatespec/client.bicep

This appears to technically be a valid URI, but OmniSharp (language server framework) and C#'s own System.Uri do not seem to handle it.
Example: System.Uri failing (whether the "+" is encoded or not):
new System.Uri("vscode-vfs://github+7b2276223a312c22726566223a7b2274797065223a342c226964223a225374657068656e57656174686572666f72642d70617463682d31227d7d/StephenWeatherford/template-examples/bicep/templatespec/client.bicep", System.UriKind.Absolute)
'new System.Uri("vscode-vfs://github+7b2276223a312c22726566223a7b2274797065223a342c226964223a225374657068656e57656174686572666f72642d70617463682d31227d7d/StephenWeatherford/template-examples/bicep/templatespec/client.bicep", System.UriKind.Absolute)' threw an exception of type 'System.UriFormatException'
System.Uri.IsWellFormedUriString() returns false.
By contrast, on the default branch the URI has this format:
github://github/StephenWeatherford/template-examples/bicep/main.bicep

Can you please provide guidance?  We need to be able to parse the URIs for documents.  Thanks.

Thanks for investigating. These are valid VS Code URIs based on our current validation logic which aims to match http://tools.ietf.org/html/rfc3986. The authority encodes information about the branch, so if you stripped out that data you would end up reading the contents of the main branch. We also use + in vscode-remote URI authorities. It's very unlikely that we'd be able to change this URI structure in Remote Repositories since it could cause data loss for uncommitted changes that are stored per-URI. IMHO as you've suggested https://github.com/dotnet/runtime/issues/64707 is the upstream issue.

Understood, but that still leaves us and who knows how many other language servers vulnerable if we can't parse your URIs?  Do you want us to disable our extension being loaded when it's not loaded locally?  It looks like that might be what C# did, but feels like it kind of defeats the purpose of your extension?

While your extension is unable to handle these URIs with the .NET runtime's curent URI parsing implementation, it might be preferable to temporarily declare that your extension can't support virtual workspaces. You can do this in the package.json manifest with "virtualWorkspaces": false. Also cc @alexdima in case there is additional guidance on URIs that we can share.

We have disabled virtual workspaces.


feat: Improvements for UQI form components

Description
Minor fixes for UQI form components that were raised in the review.

Entity selector - how or hide at child component level
When a component is hidden/disabled, hide/disable switch to JSON
Entity selector - Parent config property should not be tightly bound to children
Initial Values & placeholders for pagination component

Fixes #12223
Fixes #12349
Fixes #12332
Fixes #11871
Fixes #13538
Type of change

Please delete options that are not relevant.

New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Test A
Test B

Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

Test coverage results :test_tube:
:green_circle: Total coverage has increased
// Code coverage diff between base branch:release and head branch: feat/12223-uqi-imporvements

Status
File
% Stmts
% Branch
% Funcs
% Lines

:green_circle:
total
55.73 (0.04)
37.11 (0.02)
35.3 (0.05)
55.99 (0.04)

:red_circle:
app/client/src/components/editorComponents/form/fields/StyledFormComponents.tsx
63.33 (-4.53)
16.67 (-0.72)
0 (0)
63.33 (-4.53)

:red_circle:
app/client/src/components/formControls/EntitySelectorControl.tsx
47.83 (-4.55)
25 (-1.67)
0 (0)
47.83 (-4.55)

:red_circle:
app/client/src/components/formControls/PaginationControl.tsx
58.82 (0)
33.33 (-16.67)
25 (0)
57.58 (0)

:green_circle:
app/client/src/components/formControls/utils.ts
74.81 (0.57)
61 (0.8)
90 (0.53)
73.39 (0.66)

:red_circle:
app/client/src/pages/Editor/QueryEditor/EditorJSONtoForm.tsx
35.91 (-0.5)
27.62 (-0.47)
0 (0)
37.26 (-0.54)

:red_circle:
app/client/src/pages/Editor/SaaSEditor/ActionForm.tsx
25.77 (-0.99)
0 (0)
0 (0)
28.09 (-1.14)

:red_circle:
app/client/src/sagas/QueryPaneSagas.ts
25.58 (-0.4)
7.94 (-0.39)
18.18 (0)
29.09 (-0.54)

:red_circle:
app/client/src/selectors/commentsSelectors.ts
83.61 (-1.64)
61.76 (-2.95)
73.33 (0)
88.24 (-2.35)

:green_circle:
app/client/src/utils/WorkerUtil.ts
89.76 (0.78)
72.55 (1.96)
100 (0)
93.33 (0.95)

:red_circle:
app/client/src/utils/autocomplete/TernServer.ts
52.71 (-0.23)
40.83 (-0.84)
36.21 (0)
56.74 (-0.25)

:sparkles: :new:
app/client/src/workers/ReplayDSL.ts
91.8
76.47
87.5
91.38

:sparkles: :new:
app/client/src/workers/replayUtils.ts
91.3
75
100
95.12

/ok-to-test sha=6827976

It would be better if you can provide the steps to test each fix separately.

/ok-to-test sha=52ea22a

/ok-to-test sha=4ca9bd4

/ok-to-test sha=378e054

/ok-to-test sha=ef1cda1

/ok-to-test sha=73634a7

/ok-to-test sha=5626d38

/ok-to-test sha=9167a25

/ok-to-test sha=08bd9d0

/ok-to-test sha=f25ebd8

/ok-to-test sha=417afa7

/ok-to-test sha=6a58288

/ok-to-test sha=29b563d

/ok-to-test sha=a78589a

/ok-to-test sha=afcdf8f

/ok-to-test sha=b09ac36


Custom hijack function

thanks for the pull request! could you add a few lines to the readme to explain how this can be used.

Sure. I'll do that monday!

Thanks a lot.


Add a time on published date and last modified date since this is important for SEO

Suggestion: Add a time on published date and last modified date since this is important for SEO
Search engines use the published date and last modified date of a web page to determine how fresh and relevant the content is. This is especially important for news articles and other time-sensitive content.
Currently, the published date and last modified date on Next.JS Starter Blog only display the date, not the time. This can make it difficult for search engines to accurately determine how fresh the content is.
I suggest adding a time to the published date and last modified date. This would help search engines to better understand how fresh and relevant the content is, and could lead to improved SEO performance.
Here are some of the benefits of adding a time to the published date and last modified date on GitHub:

Improved SEO performance: Search engines use the published date and last modified date of a web page to determine how fresh and relevant the content is. Adding a time to these dates would help search engines to more accurately determine how fresh the content is, and could lead to improved SEO performance.
More accurate information for users: The published date and last modified date of a web page can be useful for users to understand how recent the content is. Adding a time to these dates would provide users with more accurate information about the content.
Easier to track changes: Adding a time to the published date and last modified date would make it easier to track changes to content. This could be useful for developers, project managers, and other stakeholders.
More accurate sitemap: The sitemap is a file that lists all of the pages on a website. The sitemap is used by search engines to crawl and index a website. Adding a time to the published date and last modified date in the sitemap would help search engines to more accurately understand how fresh and relevant the content on the website is.
More accurate open graph data: Open graph data is a set of tags that are used to describe a web page on social media. The open graph data is used by social media platforms to display information about the web page when it is shared. Adding a time to the published date and last modified date in the open graph data would help social media platforms to more accurately display information about the web page.

Here is an example of how the published and last modified date with time could be included in the open graph data:
<meta property="og:published_time" content="2023-10-18T13:51:20+08:00">
<meta property="og:modified_time" content="2023-10-18T13:51:20+08:00">
I hope you will consider my suggestion. Thank you for your time.

"og:published_time" and "og:modified_time" are not valid open graph properties. Based on https://ogp.me/, the agreed upon properties are article:published_time and article:modified_time. The current website supports both of them automatically - yes even down to to the time, you just have to specify that in the article markdown via the lastmod property.
See https://tailwind-nextjs-starter-blog.vercel.app/blog/introducing-tailwind-nextjs-starter-blog for example. You can verify that it inserts the date information for both LD+JSON: https://validator.schema.org/#url=https%3A%2F%2Ftailwind-nextjs-starter-blog.vercel.app%2Fblog%2Fintroducing-tailwind-nextjs-starter-blog and OG meta properties

I can verify that it inserts the date information but not the time. The time should be included when it was published or last modified.

More info: https://developers.google.com/search/docs/appearance/publication-dates

You just have to change date or lastmod to a datetime string and it will display it accordingly: https://github.com/timlrx/tailwind-nextjs-starter-blog/blob/main/data/blog/introducing-tailwind-nextjs-starter-blog.mdx#L4
I do not wish to automatically infer from the file itself when it was created or last modified.


adapt sample to oidc-client-ts

[ ] in typescript code
[ ] replace html code (signin-callback.html + silent-callback.html) with routing and typescript modules

@pamapa can you add me to collaboarate and create fix-1 branch

i have the upgrades done/staged ... waiting for write access ... also:
need to:
publish oidc-client-ts.js/oidc-client-ts.min.js to https://cdnjs.com/libraries from authts/oidc-client-ts github action, with integrity hash

The idea is to use instead of signin-callback.html  with <script src="https://cdnjs.cloudflare.com/ajax/libs/oidc-client/1.7.0/oidc-client.js"></script> angular routing support. The main angular application shall take over the redirects...
cdnjs makes sense for none javascript framework based application (none SPA) and when we have 2.0.0.
Please replace that code in the sample with angular routing.

i have now requested https://cdnjs.com support via issue...

@pamapa can you add me to collaboarate and create fix-1 branch

please fork this project, create a branch and create a pull request on this project

fix-1 is in place ... see https://github.com/jeffschulzusc/sample-angular-oidc-client-ts/commits/fix-1 ...
but need:
A. when oidc-client-ts is hosted on cdnjs, i will update silent-callback.html
B. oidc-client seemed to loadUserInfo, oidc-client-ts does not ... is there a difference in ResponseValidator ?
OidcSettings/Store seems to have same defaults ... see below about 'opinionated'
CHANGES:

environment.prod.ts had clientId: 'implicit' ... but this is not an advertised client on the demo identity server 4 ...
and anyways we would want to discourage implicit flow ... https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-04.txt
so i set to clientId: 'interactive.public' same as environment.ts

uninstall oidc-client, install oidc-client-ts ...
auth.service.ts: import from oidc-client-ts

NOTE: after switching to oidc-client-ts, on renewToken->signinSilent [ResponseValidator] _processClaims: not loading user info,
so username,email etc is not brought into the user that is returned in the promise

new app-routing.module.ts, remove assets/signin-callback.html, and
in auth.service.ts: redirect_uri: ${environment.clientRoot}signin-callback,
in app.component.ts: public refresh() called from SigninCallback guard

NOTE: AppComponent.refresh() is hacky ... prefer to have ui in a HomeComponent and app.component have

move silent-callback.html out of assets and into src, load oidc-client-ts, and
add to angular.json build-options-assets so that is put in root of build
(because, do not want to load the whole angular site in iframe)
auth.service.ts: silent_redirect_uri: ${environment.clientRoot}silent-callback.html,

NOTE: temporarily hosted at https://jeffschulzusc.github.io/oidc-client-ts.js until it is available on cdnjs
Q. What is intention of !! here:
this.filterProtocolClaims = !!filterProtocolClaims;
this.loadUserInfo = !!loadUserInfo;
SUGGEST:

make auth.service oidc UserManagerSettings 'opinionated' ? ie:
response_mode: 'query',
loadUserInfo: true,
put in a flag/debounce or other so that auth.service renewToken isnt called while there is current renew active ?
compilerOptions,angularCompilerOptions to strictest settings
clean build, no compiler/lint warnings
 and move ui to a HomeComponent
if we opinionate the UserManager to response_mode: 'query', then silent-callback.html could probably just post message itself
ex. window.parent.postMessge( location.href,location.origin ) and IFrameWindow would get it (or some browsers might not allow?)

The sample shall use the default settings:

filterProtocolClaims is true by default
loadUserInfo  is false by default
...

you most probably only need to configure authority, client_id and redirect_uri.
silent-callback.html should be replace with typescript routing code
there should be one central place to hold the odic configuration (probably environment depended) and the used for all oidc related stuff...

"silent-callback.html should be replace with typescript routing code" ... see above, this exists in root ... because do not want to load the whole angular site in an iframe within the angular site

i see oidc-client-ts is at cdnjs, but can not resolve to a .js that works ... expecting that just oidc-client-ts.js (or minified version) would be there ...
so, i used angular glob to build the oidc-client-ts.js from node_modules into the root of the angular site ...
then silent-callback.html script src="./oidc-client-ts.js" ...
this way, there is no chance for version discrepancy
commit 8e1a9c8

@jeffschulzusc I am ok with the angular glob, can you fork, create a branch, commit and submit a merge request?

will do


Question: How to get dynamic parallelism to work

Hi!
I have been able to get many different static graphs to work with static split/joins, but cannot figure out how to create a dynamically parallelized graph.
In the simplest use case (see code example below) there are three kernels: producer, processor and consumer. The producer and consumer extend raft:parallel_k, and the processor uses the CLONE() macro and is a standard raft::kernel, with a single input and output port. The producer and consumer use  addPortTo<>() to be able to dynamically create output/input ports respectively. I have also tried using the raft::order::out parameter. However, I only run with a single processor kernel with this approach, and can't find any examples where this approach is illustrated. Can someone please tell me what I'm missing?
Best,
Henrik Möller
#include <raft>
#include <raftio>
#include "matrix.h"

class producer : public raft::parallel_k
{
public:
    producer() : raft::parallel_k()
    {
        addPortTo< Matrix >( output );
    }
    virtual ~producer() = default;
    virtual raft::kstatus run()
    {
        for( auto &port : output )
        {
            Matrix matrix = data_input_stream[input++]; //Read data from buffer
            auto out( port.template allocate_s< Matrix >() );
            (*out) = std::move( matrix );
        }
        return( raft::proceed );
    }
};

class processor : public raft::kernel
{
public:
    processor() : raft::kernel()
    {
        input.addPort< Matrix >( "in" );
        output.addPort< Matrix >( "out" );
    }

    processor(const processor &proc)
    {
        input.addPort< Matrix >( "in" );
        output.addPort< Matrix >( "out" );
    }
    virtual ~processor() = default;
    virtual raft::kstatus run()
    {
        Matrix mat = input[ "in" ].peek< Matrix >();
        Matrix result;

        result.matrix_mul(mat, mat);	//Perform matrix multiplication defined in external Matrix class

        input[ "in" ].recycle();

        auto out( output["out"].template allocate_s< Matrix >() );
        (*out) = std::move( result );
        return( raft::proceed );

    }
    CLONE();
};

class consumer : public raft::parallel_k
{
public:
    consumer() : raft::parallel_k()
	{
	    addPortTo< Matrix>( input );
	}
    virtual ~consumer() = default;
    virtual raft::kstatus run()
    {
        for( auto &port : input )
        {
   	    Matrix mat = port.peek< Matrix >(); //Do something here..
            port.recycle();
        }
        return( raft::proceed );
    }
};

int  main()
{
    producer    a;
    processor   b;
    consumer    c;

    raft::map m;
    m += a >> raft::order::out >> b;
    m += b >> raft::order::out >> c;
    m.exe();
    return( EXIT_SUCCESS );
}

Hello,
Did you get any further with this?
I'm fairly ignorant on usage of the framework at this stage, but looking at the documentation here:
https://github.com/RaftLib/RaftLib/wiki/Kernel-Linkage-Modifiers
instead of:
m += a >> raft::order::out >> b;
m += b >> raft::order::out >> c;

have you tried the following:
m += a >> raft::split >> raft::order::out >> b
m += b >> raft::order::out >> raft::reduce >> c;

When I look at the the docs in these two places:
https://github.com/RaftLib/RaftLib/wiki/Kernel-Linkage-Modifiers
https://github.com/RaftLib/RaftLib/wiki/Building-Kernels
I am still a bit confused as to how extending raft::parallel_k interacts with the raft::split,  raft::reduce and raft::order::out stream modifiers.


Supress inline buttons in package.json

I would like to see available scripts only in explorer/sidebar, but not inline when editing package.json

Are you referring to the 'Debug' lense shown in the screen shot below?

This lense is added by the JS Debugger.
//CC @connor4312

This is configurable with the debug.javascript.codelens.npmScripts setting.


[Snyk] Security upgrade sharp from 0.31.3 to 0.32.6

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):

website/package.json
website/package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Heap-based Buffer Overflow SNYK-JS-SHARP-5922108
  889

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

Checkmarx One – Scan Summary & Details – a464ec11-6f36-493e-893a-b4bd1fba4756
New Issues

Severity
Issue
Source File / Package
Checkmarx Insight

CVE-2024-4068
Npm-braces-3.0.2
Vulnerable Package

CVE-2024-28176
Npm-jose-4.11.1
Vulnerable Package

CVE-2024-28849
Npm-follow-redirects-1.15.2
Vulnerable Package

CVE-2024-35195
Python-requests-2.28.1
Vulnerable Package

CVE-2024-4067
Npm-micromatch-4.0.5
Vulnerable Package

Missing_CSP_Header
/website/src/pages/api/new_task/[task_type].ts: 71
Attack Vector

Fixed Issues

Severity
Issue
Source File / Package

CVE-2023-4863
Npm-sharp-0.31.3

Cxab55612e-3a56
Npm-braces-3.0.2

Cxca84a1c2-1f12
Npm-micromatch-4.0.5

Reflected_XSS
/website/src/pages/api/new_task/[task_type].ts: 28

Reflected_XSS
/website/src/pages/api/update_task.ts: 25

Reflected_XSS
/website/src/pages/api/new_task/[task_type].ts: 15

Host Namespace is Shared
/docker-compose.yaml: 11

Host Namespace is Shared
/docker-compose.yaml: 5

Host Namespace is Shared
/docker-compose.yaml: 11

Host Namespace is Shared
/docker-compose.yaml: 50

Host Namespace is Shared
/docker-compose.yaml: 19

Host Namespace is Shared
/docker-compose.yaml: 19

Host Namespace is Shared
/docker-compose.yaml: 18

Host Namespace is Shared
/docker-compose.yaml: 27

Host Namespace is Shared
/docker-compose.yaml: 18

Host Namespace is Shared
/docker-compose.yaml: 26

Host Namespace is Shared
/docker-compose.yaml: 27

Host Namespace is Shared
/docker-compose.yaml: 4

Host Namespace is Shared
/docker-compose.yaml: 5

Networks Not Set
/docker-compose.yaml: 27

Networks Not Set
/docker-compose.yaml: 11

Networks Not Set
/docker-compose.yaml: 5

Networks Not Set
/docker-compose.yaml: 18

Networks Not Set
/docker-compose.yaml: 4

Networks Not Set
/docker-compose.yaml: 19

Networks Not Set
/docker-compose.yaml: 5

Networks Not Set
/docker-compose.yaml: 26

Networks Not Set
/docker-compose.yaml: 27

Networks Not Set
/docker-compose.yaml: 18

Networks Not Set
/docker-compose.yaml: 50

Networks Not Set
/docker-compose.yaml: 11

Networks Not Set
/docker-compose.yaml: 19

Missing_CSP_Header
/website/src/lib/poster.ts: 4


Why huggingface only support relative local path?

System Info
peft: 0.4.0
Who can help?
@pacman100 @younesbelkada @sayakpaul
Information

[X] The official example scripts
[ ] My own modified scripts

Tasks

[X] An officially supported task in the examples folder
[ ] My own task or dataset (give details below)

Reproduction
from peft import PeftModel
model = PeftModel.from_pretrained(model, '/data/yzeng58/micl/results/models')
Here '/data/yzeng58/micl/results/models' is the output directory.
Expected behavior
Load the model from the local path.
However, it can only support the relative path, instead of an absolute path.

Not super helpful ^^ but it should support absolute paths by default.
What error do you get?

HI @yzeng58
As stated by @simon-lund I think it should support both scenarios, can you share a reproducible snippet? Also could you try out with the latest pypi release? pip install -U peft

I could not reproduce the error of loading a local PEFT model with absolute paths (on Linux machine, using the latest PEFT version):
from peft import LoraConfig, get_peft_model, PeftModel
from transformers import AutoModelForCausalLM

config = LoraConfig(task_type="CAUSAL_LM")
model = AutoModelForCausalLM.from_pretrained("bigscience/bloomz-560m")
peft_model = get_peft_model(model, config)
peft_model.save_pretrained("/tmp/peft/issue-1397")

model = AutoModelForCausalLM.from_pretrained("bigscience/bloomz-560m")
loaded = PeftModel.from_pretrained(model, "/tmp/peft/issue-1397")  # works
# contents of /tmp/peft/issue-1397: adapter_config.json  adapter_model.safetensors	README.md


Add configuration file for chain specific metadata

We should have a config file that specifies:

denominations of native assets
types of assets currently supported in the mixer on each chain
types of assets support in each chain on the UI

This should go here along with these configurations: https://github.com/webb-tools/webb-dapp/blob/master/packages/react-environment/src/configs/endpoints.ts


Doesn't reload zone when included files change

When I make a change to a file $INCLUDEd in a zone file, nsd cowardly refuses to reload the zone, claiming that the zone file hasn't been modified on disk. It hasn't, but nsd should be checking included files as well, and reload if any files in the include tree have been modified.

Do you probably look for the reconfig command? From my understanding, NSD differentiates between zone configuration and zone data.
zone configuration needs the reconfig, zone data the reload command in nsd-control.
I use some heavy file inclusion in a setup of mine. When a zone, that is included as a file changes (e.g. gets new configuration for AXFR), I submit a reconfig via nsd-control to make NSD recognize these changes. When the zone file for a primary zone changes, I use the reload command. Works like a charm.

Yes! That's it. reconfig sounds like it is the ticket. The other command only checks the file modification times of the zone file itself.

Actually I made a mistake to close it because the answer is for config files, not zone files.

@wcawijngaards, @wtoorop, is this something we want to implement? We'd need to do dependency checking for zones. I'm thinking this could be implemented via a callback in simdzone when an $INCLUDE is closed and in namedb_check_zonefile we then simply check the mtime for all files in the list? (@madduck, that would alleviate the need for a force-reload, right?)

@k0ekk0ek that sounds like the ticket, and what you suggests with callbacks makes it rather elegant, at least if I picture this right.
The other approach of course might be to simply recompile the zone using the standard path honouring $INCLUDE and compare the checksum & size of the result with what has been loaded previously, and to only reload if there's a difference.
Then again: how would it actually hurt if the zone was just reloaded, even if unchanged?

Yes, I think a callback and checking all files in the list for modification is a good approach. That feature is useful, to reload zones if the included files change. The mtime check is useful, because some set ups have large zone files. It is then useful to only reload the zone files that have changed, instead of everything.

Fixed once PR #377 is merged.


Silent sign-in

Please add support for silent sign-in:
https://github.com/firebase/FirebaseUI-Android/blob/master/auth/README.md#silent-sign-in
That function is useful in some scenarios to avoid displaying sign-in UI unnecessarily.
I don't know why and when it exactly happens but sometimes FirebaseUser returned from FirebaseAuth may be null on app startup even though user has not signed out. In this situation I would like to try silent sign-in first and only launch sign-in UI if really needed.

Hi, I'll take a look into this when I am a bit free from other engagements.


Lower toolbar tooltips flickering

Tested versions

Not reproducible in 4.3 stable
4.4 dev (b3bcb2dc14691f7729984128dca26a844f662fa1)

System information
Windows 11, GTX 4080
Issue description

Steps to reproduce
^^
Minimal reproduction project (MRP)
No need - too easy to reproduce in any project

I can't reproduce this.

Godot v4.4.dev (533c616cb) - Arch Linux #1 SMP PREEMPT_DYNAMIC Sun, 20 Oct 2024 18:20:12 +0000 on X11 - X11 display driver, Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 Ti (nvidia; 560.35.03) - 13th Gen Intel(R) Core(TM) i5-13400F (16 threads)

Bisected to #97961, @timothyqiu

I can't reproduce this.

Maybe is a windows specific regression?
Godot v4.4.dev (eaadb467c) - Windows 10.0.19045 - Multi-window, 2 monitors - Vulkan (Mobile) - dedicated AMD Radeon RX 580 2048SP (Advanced Micro Devices, Inc.; 31.0.21921.1000) - AMD Ryzen 5 3600 6-Core Processor (12 threads)

Yes, seems to affect some other controls, but i didn't find a pattern yet, some tooltips flick, others simple don't appear and others works as expected.
https://github.com/user-attachments/assets/1dfbcda9-41f6-47a6-8690-8c243e9bde49


Simplify policy modelling

This merges the two separate PolicyArea and Programme models into a single Policy model.
The main rational for this was that the two models essentially had identical behaviour, save for the distinction that programmes can be identified as being "part of" a policy area. This resulted in a lot of duplication and forced us to use ActiveSupport::Concerns to mix in the shared behaviour for the two models. It also introduced issues around verifying uniqueness (the validations were per-model, which meant that it was technically possible to create both a PolicyArea and a Programme with the same name and slug.
The UI has been simplified a bit - there is now only a single index that lists all the policies. This makes it easier to find the policy of interest using the filter, rather than having to click through to the appropriate list first.

[x] Product owner acceptance
[ ] Code review acceptance

Trello: https://trello.com/c/7MGf90AG/172-merge-policy-areas-and-programmes-in-policy-publisher

Generally looking great.  Two points aside from the inline comments:

Do we need to have a data migration with this?  Not sure if any of the live apps have useful content in them.
As per our previous conversation I think related_policies might become tricky for identifying programmes against policies as we're likely to get policies related horizontally, but since that's still theoretical I don't see it as a problem now.

Regarding the two asides:

There are no policies on production at present (creating them would generate routes and make the finders live) so I see no reason to have a migration
Yep, theoretical things in the future may mean we need to adjust the modelling. I say we worry about that bridge when we get to it.


Add a keyboard customization system

There is currently support for keyboard with keybindings described here https://jpmonettas.github.io/flow-storm-debugger/user_guide.html#_key_bindings, but making them configurable would be a nice enhancement.
A previous step is to develop some kind of config file, where custom keybindings can be specified.

A somewhat related question here: do you think it would be possible, or perhaps it's already possible (sorry, I'm very new to this project, so I don't know), to have it running in "server mode," where the UI can be controlled directly from the editor? It would be nice to be able to step through things without leaving Emacs/Vim/etc.

@agzam yes! it is currently possible, look at https://github.com/jpmonettas/cider-storm/
I only implemented it for Emacs since it is what I use, but FlowStorm has a nRepl middleware exposing all the stepping functionality, so any editor/ide should be able to do the same.
Let me know if you need help with any of that.

Why though does'n it let me use cider-storm? cider-storm-debug-current-fn complains No recordings found for my-project/my-ns

What is your current setup? Do you have recordings when running cider-storm-debug-current-fn? can you see them with the normal FlowStorm UI?
Please show up in Clojurians slack #flow-storm chan if you want a more dynamic troubleshooting!

https://clojurians.slack.com/archives/C03KZ3XT0CF/p1696560383345659


Not all pages being crawled

Hi @marevol,
Thanks for the help over the last few days - it is really appreciated!
I have managed to get the crawling working across my two sites, however I'm noticing that not all the pages are being crawled, which is quite strange.
There are pages within my primary navigation that are being skipped altogether, even though they appear right beside another that is being crawled?
I have left the crawler to run overnight but it hasn't yet discovered these pages?
I created the crawler (after setting up the other indexes) by:
curl -XPUT 'http://localhost:9200/_river/compassion_web/_meta' -d '
{
    "type" : "web",
    "crawl" : {
        "index" : "compassion_uat",
        "url" : ["https://compassionau.custhelp.com/ci/sitemap/", "http://uat.compassiondev.net.au/"],
        "includeFilter" : ["https://compassionau.custhelp.com/.*", "http://uat.compassiondev.net.au/.*"],
        "maxDepth" : 30,
        "maxAccessCount" : 1000,
        "numOfThread" : 10,
        "interval" : 1000,
				"incremental" : true,
        "overwrite" : true,
				"userAgent" : "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Elasticsearch River Web/1.1.0",
        "target" : [
				  {
            "pattern" : {
              "url" : "https://compassionau.custhelp.com/app/answers/detail/a_id/[0-9]*",
              "mimeType" : "text/html"
            },
            "properties" : {
              "title" : {
                "text" : "h1#rn_Summary"
              },
              "body" : {
                "text" : "div#rn_AnswerText",
                "trimSpaces" : true
              }
            }
          },
					{
            "pattern" : {
              "url" : "http://uat.compassiondev.net.au/.*",
              "mimeType" : "text/html"
            },
            "properties" : {
              "title" : {
                "text" : "h1",
								"trimSpaces": true
              },
              "body" : {
                "text" : "div#main",
                "trimSpaces" : true
              }
            }
          }
        ]
    },
    "schedule" : {
        "cron" : "*/15 * * * * ?"
    }
}

Is there something I could have missed?
I notice that in one of your examples on the main wiki page you add
"menus" : {
                "text" : "ul.nav-list li a",
                "isArray" : true
              }

To the "properties" for one of your sites, could that have something to do with it, or is it unrelated?

Hi,
Did you find a trick ? I got the same issue :-(
Thanks


fez tarfile is including many non-needed files

This is the manifest:
      .aspell.local.pws
       .exrc
       .travis.yml
       .whitesource
       43-1.t
       43-2.t
       43-4.t
       43_binary.t
       88.t
       CONTRIBUTING.md
       csv-julia.jl
       csv-lua.lua
       csv-php.php
       csv-python2.py
       csv-python3.py
       csv-R.R
       csv-ruby.rb
       csv-rust-csvrdr
       csv-rust-libcsv
       csv-rust-qckrdr
       csvJava.java
       doc/Text-CSV.3
       doc/Text-CSV.html
       doc/Text-CSV.man
       doc/Text-CSV.md
       doc/Text-CSV.pdf
       doc/Text-CSV.pod
       lib/Text/CSV.pod6
       lib/Text/CSV.pod6
       lib/Text/CSV.rakumod
       lib/Text/CSV.rakumod
       lib/Text/IO/String.rakumod
       LICENSE
       logotype/logo_32x32.png
       make-dist
       Makefile
       MANIFEST
       META6.json
       NLPW-2015/.exrc
       NLPW-2015/001-cope.txt
       NLPW-2015/005-slang.txt
       NLPW-2015/010-rakudo.txt
       NLPW-2015/015-irc.txt
       NLPW-2015/018-debug.txt
       NLPW-2015/020-bugs.txt
       NLPW-2015/021-bugs.txt
       NLPW-2015/022-bugs.txt
       NLPW-2015/023-bugs.txt
       NLPW-2015/030-state.txt
       NLPW-2015/032-grammar.txt
       NLPW-2015/035-chunks.txt
       NLPW-2015/040-test.txt
       NLPW-2015/041-speed.txt
       NLPW-2015/050-meta.txt
       NLPW-2015/051-meta.txt
       NLPW-2015/060-ref.txt
       NLPW-2015/070-types.txt
       NLPW-2015/071-defaults.txt
       NLPW-2015/072-init.txt
       NLPW-2015/073-check.txt
       NLPW-2015/074-build.txt
       NLPW-2015/080-errors.txt
       NLPW-2015/081-errors.txt
       NLPW-2015/090-hooks.txt
       NLPW-2015/110-multi.txt
       NLPW-2015/111-multi.txt
       NLPW-2015/index
       Notes
       p6
       prove6
       README.md
       README.speed
       reasons.txt
       rust-csvreader/Cargo.lock
       rust-csvreader/Cargo.toml
       rust-csvreader/src/csvreader.rs
       rust-libcsv/Cargo.lock
       rust-libcsv/Cargo.toml
       rust-libcsv/src/main.rs
       rust-quick-reader/Cargo.lock
       rust-quick-reader/Cargo.toml
       rust-quick-reader/src/quick-reader.rs
       t/10_base.t
       t/12_acc.t
       t/15_flags.t
       t/16_methods.t
       t/20_file.t
       t/21_combine.t
       t/22_print.t
       t/30_field.t
       t/31_row.t
       t/32_getline.t
       t/40_misc.t
       t/41_null.t
       t/45_eol.t
       t/46_eol_si.t
       t/47_comment.t
       t/50_utf8.t
       t/55_combi.t
       t/60_samples.t
       t/65_allow.t
       t/66_formula.t
       t/67_emptrow.t
       t/75_hashref.t
       t/77_getall.t
       t/78_fragment.t
       t/79_callbacks.t
       t/80_diag.t
       t/81_subclass.t
       t/82_subclass.t
       t/85_util.t
       t/90_csv.t
       t/91_csv_cb.t
       t/92_csv_encoding.t
       t/99_meta.t
       test.sh
       test.tsv
       TODO

Most of them are probably not needed anyhow.

The files under t/ are probably legit.
For the rest: why are they in this repo at all? Java, Julia, Rust, Python, Ruby... they don't even seem to belong here.

The files under t/ are probably legit.

Not saying they are not. Just listing everything that's included in the bundle.

For the rest: why are they in this repo at all? Java, Julia, Rust, Python, Ruby... they don't even seem to belong here.

It's mainly for benchmarking purposes, but that's beside the point in this issue.

See https://tux.nl/Talks/CSV6/speed4.html and https://tux.nl/Talks/CSV6/speed5.html
These are updated on a rather regular basis
See https://github.com/Tux/CSV/blob/master/README.speed for the background
Once test-t comes close to the speed of csv-xsbc, I will seriously consider using raku in production code

It's mainly for benchmarking purposes, but that's beside the point in this issue.

For what it's worth, don't think it was much beside the point. If this is the repository of a Raku distribution as the repo states, arbitrary benchmarking codes probably shouldn't have lived in it to begin with. Imagine the Rakudo repository being completely overblown by unrelated tech for benchmarking purposes. It would be more idiomatic to have a repo for benchmarking that uses the Raku dist like all the other tech.


Receive bitcoin flickering QR code

QR Code area in receive bitcoin screen is flickering in the area "generating invoice", "copy invoice" "share invoice"
To reproduce flip between onchain and lightning address

Not noticeable, no action needed


wip sort categories (+ motions) in dropdowns etc.

The categories should be sorted now; the code is still full of duplications and workarounds

Only one wrong sorting issue:
sort by name in motion list does not work (the list is always sorted by prefix)

sorting should be correct now


Animated Gif Support

Request
As a user,
I want to utilize .gif files,
so that I can save text into an animated image.
Acceptance Criteria

[ ] A .gif file can be used just like any other static image file

Dependencies
n/a

Under review to ensure that compression will not cause an issue with the loading/saving of .gif images.


New feature: system tray icon

Implements https://github.com/sourcegit-scm/sourcegit/discussions/805
To enable

Open SourceGit's data storage directory from main menu

Close SourceGit
Open file preference.json in any text editor
Add new field "SystemTrayIcon": true

Details
When this feature is enabled, SourceGit does not exit after click on window closing button.
Instead it stays in background, hiding in the system tray, without occupation of a space in the task bar.

Main window can be restored with the left click on the system tray icon.
Right click on the icon opens the menu with the Quit item.
To disable

Open SourceGit's data storage directory from main menu
Close SourceGit with the Quit menu from the system tray icon
Open file preference.json in any text editor
Remove field "SystemTrayIcon" completely or set its value to false

I do NOT like this feature at all.

OK, no problem.
Thank you very much for your work and for opening sources!
I will keep this feature in my fork.


Simpler extraction for Drugs/MedicalActs

Deprecate existing MedicalActs/Diagnosis extractions and create new versions which allow multiple events to be found per source type (per select)

To be renewed after.


chore: add Git revision to ogmios --version

Context
For easier debugging and investigations.
Proposed Solution
❯ docker build --build-arg CARDANO_NODE_VERSION=8.5.0-pre --build-arg OGMIOS_VERSION=6e6dec1f170986ff3fc9f252e4d8732e350946d4 -t ogmios-test .

[…]

Successfully built a69905526b6c
Successfully tagged ogmios-test:latest

❯ docker run -it --rm --entrypoint /bin/bash ogmios-test

68cbdf5c08eb:~# ogmios --version
v6.0.0 (6e6dec1f170986ff3fc9f252e4d8732e350946d4)

Important Changes Introduced
n/a

Building Ogmios in SDK was dropped in favour of prebuilt deliverables.
Can we close this PR @michalrus, @mkazlauskas

@mirceahasegan yes, let's do that


MI300 benchmark: No configs to tune

Torch benchmarks failure, only happening on MI300
Affected models:
TIMM: poolformer_m36

Note to self:  "No configs to tune" really means that an exception was thrown during benchmarking, in insert_compiles() in compile_ops.cpp such that the array named compiles didn't get populated.  Exception messages during the run included
@6Pass: simplify_algebra
x0
, {1}, 0({} -> @00{ -> ]{}, { -> 1, 1, 1, 1, 1{{0half_type}@param@8, x0 -> 0float_type, {()}Exception in fused_reduce: /workspace/pt2_benchmarks/AMDMIGraphX/src/targets/gpu/compile_gen.cpp:393: operator(): Unknown operator: hip::allocate -> half_type, {1}, {0}
@return@3 = mul(@2,@2) -> half_type, {1}, {0}

and
@18 = gpu::code_object[code_object=4920,symbol_name=div_kernel,global=1204224,local=1024,](@13,@17,output) -> half_type, {64, 1, 768, 7, 7}, {37632, 37632, 49, 7, 1}

Exception in fused_reduce: /workspace/pt2_benchmarks/AMDMIGraphX/src/targets/gpu/compile_gen.cpp:393: operator(): Unknown operator: hip::allocate
x2 = @param:x2 -> half_type, {64, 1, 96, 56, 56}, {301056, 301056, 3136, 56, 1}

The "No configs to tune" error message was a red herring.  Further investigation traced the bug to a fused_reduce instruction that was created with an invalid arguments list during fusion of a module that should not have been fused, and later fails a validation assertion if you run it in debug mode.  Not calling set_bypass() in the first place was an oversight.

Seems like we are running into this error for another model in the latest run. I saved it in the nas at /migraphx/models/torch_benchmarks/gmixer_24_224/gmixer_24_224.mxr.
@bpickrel  can you do a quick check if this compiles successfully with your bypass change? If not, I'll create a new issue.

[AMD Official Use Only - AMD Internal Distribution Only]
will do right now.
From: shivadbhavsar @.>
Sent: Thursday, May 23, 2024 9:53 AM
To: ROCm/AMDMIGraphX @.>
Cc: Pickrell, Brian @.>; Mention @.>
Subject: Re: [ROCm/AMDMIGraphX] MI300 benchmark: No configs to tune (Issue #3033)
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Seems like we are running into this error for another model in the latest run. I saved it in the nas at /migraphx/models/torch_benchmarks/gmixer_24_224/gmixer_24_224.mxr.
@bpickrelhttps://github.com/bpickrel can you do a quick check if this compiles successfully with your bypass change? If not, I'll create a new issue.
—
Reply to this email directly, view it on GitHubhttps://github.com/ROCm/AMDMIGraphX/issues/3033#issuecomment-2127634278, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWWXKUREICC2UPQXANGDLOTZDYNF7AVCNFSM6AAAAABHERT4DSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRXGYZTIMRXHA.
You are receiving this because you were mentioned.Message ID: @.***>