blue.getDevices() not working on Mac Chrome browser

await blue.getDevices();
throws Error
TypeError: Cannot read properties of undefined (reading 'apply')
on GoogleChrome (Mac os M1)
Tried With your Example App too , but Same error
Complete Error :-
TypeError: Cannot read properties of undefined (reading 'apply')
at Object.callMethod$ [as callMethod] (http://localhost:55502/dart_sdk.js:62467:22)
at web_blue.Blue..callMethod (http://localhost:55502/packages/web_blue/src/js_facade.dart.lib.js:30:24)
at web_blue.Blue..getDevices (http://localhost:55502/packages/web_blue/web_blue.dart.lib.js:54:26)
at PairedDevices (http://localhost:55502/packages/nerbio_d/app/modules/scan_device/scan_device_controller.dart.lib.js:31:47)
at PairedDevices.next ()
at runBody (http://localhost:55502/dart_sdk.js:40590:34)
at Object._async [as async] (http://localhost:55502/dart_sdk.js:40621:7)
at scan_device_controller.ScanDeviceController.new.PairedDevices (http://localhost:55502/packages/nerbio_d/app/modules/scan_device/scan_device_controller.dart.lib.js:29:20)
at http://localhost:55502/packages/nerbio_d/app/modules/scan_device/scan_device_view.dart.lib.js:333:801
at ink_well._InkResponseState.new.[_handleTap] (http://localhost:55502/packages/flutter/src/material/icon_button.dart.lib.js:40468:31)
at tap.TapGestureRecognizer.new.invokeCallback (http://localhost:55502/packages/flutter/src/gestures/recognizer.dart.lib.js:190:18)
at tap.TapGestureRecognizer.new.handleTapUp (http://localhost:55502/packages/flutter/src/gestures/tap.dart.lib.js:409:40)
at tap.TapGestureRecognizer.new.[_checkUp] (http://localhost:55502/packages/flutter/src/gestures/tap.dart.lib.js:217:12)
at tap.TapGestureRecognizer.new.handlePrimaryPointer (http://localhost:55502/packages/flutter/src/gestures/tap.dart.lib.js:166:23)
at tap.TapGestureRecognizer.new.handleEvent (http://localhost:55502/packages/flutter/src/gestures/recognizer.dart.lib.js:426:16)
at pointer_router.PointerRouter.new.[_dispatch] (http://localhost:55502/packages/flutter/src/gestures/pointer_router.dart.lib.js:86:9)
at http://localhost:55502/packages/flutter/src/gestures/pointer_router.dart.lib.js:112:26
at LinkedMap.new.forEach (http://localhost:55502/dart_sdk.js:27679:11)
at pointer_router.PointerRouter.new.[_dispatchEventToRoutes] (http://localhost:55502/packages/flutter/src/gestures/pointer_router.dart.lib.js:110:29)
at pointer_router.PointerRouter.new.route (http://localhost:55502/packages/flutter/src/gestures/pointer_router.dart.lib.js:105:37)
at binding$5.WidgetsFlutterBinding.new.handleEvent (http://localhost:55502/packages/flutter/src/gestures/binding.dart.lib.js:364:26)
at binding$5.WidgetsFlutterBinding.new.dispatchEvent (http://localhost:55502/packages/flutter/src/gestures/binding.dart.lib.js:352:24)
at binding$5.WidgetsFlutterBinding.new.dispatchEvent (http://localhost:55502/packages/flutter/src/rendering/layer.dart.lib.js:5427:13)
at binding$5.WidgetsFlutterBinding.new.[_handlePointerEventImmediately] (http://localhost:55502/packages/flutter/src/gestures/binding.dart.lib.js:328:14)
at binding$5.WidgetsFlutterBinding.new.handlePointerEvent (http://localhost:55502/packages/flutter/src/gestures/binding.dart.lib.js:302:43)
at binding$5.WidgetsFlutterBinding.new.[_flushPointerEventQueue] (http://localhost:55502/packages/flutter/src/gestures/binding.dart.lib.js:292:14)
at binding$5.WidgetsFlutterBinding.new.[_handlePointerDataPacket] (http://localhost:55502/packages/flutter/src/gestures/binding.dart.lib.js:283:54)
at Object.invoke1 (http://localhost:55502/dart_sdk.js:190405:7)
at _engine.EnginePlatformDispatcher..invokeOnPointerDataPacket (http://localhost:55502/dart_sdk.js:171081:15)
at _engine.PointerBinding..[_onPointerData] (http://localhost:55502/dart_sdk.js:171963:49)
at http://localhost:55502/dart_sdk.js:172401:28
at http://localhost:55502/dart_sdk.js:172357:16
at loggedHandler (http://localhost:55502/dart_sdk.js:172062:11)

Could you post you flutter doctor -v?

@Sunbreak here it is
[✓] Flutter (Channel stable, 2.10.2, on macOS 12.2.1 21D62 darwin-arm, locale en-IN)
• Flutter version 2.10.2 at /Users/rohitsangwan/fvm/versions/stable
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 097d3313d8 (2 weeks ago), 2022-02-18 19:33:08 -0600
• Engine revision a83ed0e5e3
• Dart version 2.16.1
• DevTools version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/rohitsangwan/Library/Android/sdk
• Platform android-32, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
[✓] VS Code (version 1.65.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.36.0
[✓] Connected device (2 available)
• macOS (desktop) • macos  • darwin-arm64   • macOS 12.2.1 21D62 darwin-arm
• Chrome (web)    • chrome • web-javascript • Google Chrome 99.0.4844.51
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!

TypeError: Cannot read properties of undefined (reading 'apply')

It probably indicates that navigator.blue is unavailable.

What is the result of canUseBlue() and blue.getAvailability()?
Did you call blue.requestDevice() before blue.getDevices()

@Sunbreak  both are true , canUseBlue() and getAvailability , and yes i tried both ways ,
tried to call request device after getDevice and viceVersa

@Sunbreak both are true , canUseBlue() and getAvailability , and yes i tried both ways , tried to call request device after getDevice and viceVersa

Then something inside Dart-JS interop breaks, you could file issue on Flutter repo, i.e. https://github.com/flutter/flutter/issues/97357

and bro how to get Device Id and Name from BlueDevice ??

You could PR like this: https://github.com/woodemi/web_blue.dart/commit/0e6601ba10232e9a701fe7639344ab52fbad79ea, according to https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice#properties,

@Sunbreak okk Thanks , will try


exception __get_data() session get response is not OK204

Dear Yo-ha!
Thank you for your work!
I have a little issue.
The new integration (2024.3.1) working fine, but no data is received.
I tried to write the optional PatientID, too.
The oldiest integration (2024.1.0) brought the informations.
The debug log:
2024-04-25 18:04:04.135 WARNING (SyncWorker_6) [homeassistant.loader] We found a custom integration carelink which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-04-25 18:04:20.299 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __execute_init_procedure()
2024-04-25 18:04:20.299 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: _process_token_file()
2024-04-25 18:04:20.302 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: _get_access_token_payload()
2024-04-25 18:04:20.302 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __get_config_settings()
2024-04-25 18:04:21.377 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: User region: EU
2024-04-25 18:04:21.466 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __get_my_user()
2024-04-25 18:04:21.467 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __get_data()
2024-04-25 18:04:21.467 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __handle_authorization_token()
2024-04-25 18:04:21.467 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: _get_access_token_payload()
2024-04-25 18:04:21.586 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __getPatients()
2024-04-25 18:04:21.586 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __get_data()
2024-04-25 18:04:21.586 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __handle_authorization_token()
2024-04-25 18:04:21.586 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: _get_access_token_payload()
2024-04-25 18:04:21.637 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: Found patient **redacted** (**redacted**)
2024-04-25 18:04:21.637 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __handle_authorization_token()
2024-04-25 18:04:21.637 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: _get_access_token_payload()
2024-04-25 18:04:21.637 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __get_connect_display_message()
2024-04-25 18:04:21.637 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __get_data()
2024-04-25 18:04:21.637 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __handle_authorization_token()
2024-04-25 18:04:21.637 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: _get_access_token_payload()
2024-04-25 18:04:21.740 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __get_data() failed: exception __get_data() session get response is not OK204
2024-04-25 18:04:21.741 DEBUG (MainThread) [custom_components.carelink] Using timezone Europe/Budapest
2024-04-25 18:04:21.742 DEBUG (MainThread) [custom_components.carelink] Using timezone Europe/Budapest
2024-04-25 18:04:21.742 DEBUG (MainThread) [custom_components.carelink] the marker with type 'MEAL' could not be tracked correctly. Check if your Carelink data contains a key with the name list index out of range, it seems to be missing.
2024-04-25 18:04:21.742 DEBUG (MainThread) [custom_components.carelink] the marker with type 'INSULIN' could not be tracked correctly. Check if your Carelink data contains a key with the name list index out of range, it seems to be missing.
2024-04-25 18:04:21.742 DEBUG (MainThread) [custom_components.carelink] the marker with type 'AUTO_BASAL_DELIVERY' could not be tracked correctly. Check if your Carelink data contains a key with the name list index out of range, it seems to be missing.
2024-04-25 18:04:21.742 DEBUG (MainThread) [custom_components.carelink] the marker with type 'AUTO_MODE_STATUS' could not be tracked correctly. Check if your Carelink data contains a key with the name list index out of range, it seems to be missing.
2024-04-25 18:04:21.742 DEBUG (MainThread) [custom_components.carelink] the marker with type 'LOW_GLUCOSE_SUSPENDED' could not be tracked correctly. Check if your Carelink data contains a key with the name list index out of range, it seems to be missing.
2024-04-25 18:04:21.742 DEBUG (MainThread) [custom_components.carelink] _async_update_data: {'client_timezone': zoneinfo.ZoneInfo(key='Europe/Budapest'), 'pump_battery_level': None, 'conduit_battery_status': None, 'sensor_battery_level': None, 'sensor_duration_hours': None, 'sensor_duration_minutes': None, 'reservoir_level': None, 'reservoir_amount': None, 'reservoir_remaining_units': None, 'last_sg_trend': None, 'time_to_next_calib_hours': None, 'active_insulin': None, 'active_insulin_attributes': {}, 'last_alarm': None, 'last_alarm_attributes': {}, 'active_basal_pattern': None, 'average_glucose_level_mgdl': None, 'below_hypo_limit': None, 'above_hyper_limit': None, 'time_in_range': None, 'max_auto_basal_rate': None, 'sg_below_limit': None, 'last_marker_meal': None, 'last_marker_insulin': None, 'last_marker_auto_basal_delivery': None, 'last_marker_auto_mode_status': None, 'last_marker_low_glucose_suspend': None, 'binary_sensor_pump_comm_state': None, 'binary_sensor_sensor_comm_state': None, 'binary_sensor_conduit_in_range': None, 'binary_sensor_conduit_pump_in_range': None, 'binary_sensor_conduit_sensor_in_range': None, 'pump serial': None, 'pump name': 'Name Unvailable', 'pump model': None, 'app_model_type': None}
2024-04-25 18:04:21.742 DEBUG (MainThread) [custom_components.carelink] Finished fetching carelink data in 1.443 seconds (success: True)

What could be the problem?
Thank you for your help!

Hey,
I'm getting the same error - maybe slightly different area of code?  I added 3 extra debug lines to try and figure it out on my own.  I'll do some more digging later and maybe get new tokens and go from there..
What's odd is the refresh token is a guid?  maybe that's ok, in the past refresh tokens have been token looking
2024-06-22 16:45:04.386 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: _get_access_token_payload()
2024-06-22 16:45:04.387 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __get_config_settings()
2024-06-22 16:45:04.691 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: User region: US
2024-06-22 16:45:05.575 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __get_my_user()
2024-06-22 16:45:05.575 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __get_data()
2024-06-22 16:45:05.575 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __handle_authorization_token()
2024-06-22 16:45:05.575 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: _get_access_token_payload()
2024-06-22 16:45:05.576 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: Current token is valid until Sat Jun 22 00:21:22 UTC 2024
2024-06-22 16:45:05.576 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __refreshToken
2024-06-22 16:45:05.576 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: Trying to refresh token
2024-06-22 16:45:05.576 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: https://mdtlogin.medtronic.com:443/mmcl/auth/oauth/v2/token
2024-06-22 16:45:05.577 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: {'mag-identifier': 'redacted=='}
2024-06-22 16:45:05.577 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: {'refresh_token': 'guid'-redacted, 'client_id': 'guid-redacted', 'client_secret': 'redacted', 'grant_type': 'refresh_token'}
2024-06-22 16:45:05.890 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: {'error': 'invalid_client', 'error_description': 'The given client credentials were not valid'}
2024-06-22 16:45:05.890 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: Failed to refresh token (401)
2024-06-22 16:45:05.972 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __get_data() failed: exception __get_data() session get response is not OK401
2024-06-22 16:45:05.973 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __execute_init_procedure() failed: exception 'NoneType' object is not subscriptable

Hi, did you solve the problem?


Timeout for conversations

Currently, the same conversation_id is used for a user unless the server is restarted. We would like to implement a timeout mechanism so that a new conversation_id is issued after a certain period of inactivity.
Benefits:

Prevents the unnecessary growth of conversation context size.
Conserves server resources by limiting the duration of active conversation sessions.

#2 👍


Bug with TaxBrain file-upload logic

In TaxBrain version 0.7.9 the file-upload page is completely broken.
When I chose a reform file to upload and click on the "Show me the results!" button, I get this:
Sorry! Your calculation failed. Please re-enter parameters and try again :(.

Error: invalid literal for int() with base 10: 'assumptions'

In the prior version of TaxBrain it was possible to specify no assumption file.
I don't understand how we can go backward from one release to another.  Sounds like there is insufficient testing of TaxBrain.
@PeterDSteinberg @brittainhard @MattHJensen

@MattHJensen,  I would appreciate it if resolving issue #508 was given a high priority.

When you try with TaxBrain 0.7.9 to upload both a reform file and an assumptions file, the same error message as described in #508 is generated.  So the bug is even more fundamental then I initially thought.  Essentially, the TaxBrain file-upload capability does not work at all.

Moving this to milestone b2.

@brittainhard, is this resolved?

@MattHJensen closing this. The fix in the deploy PR has been merged.

@brittainhard, I'm reopening because I'm still getting errors for reform files that should work:
This is with the Trump2016.json file from the taxcalc/reforms

Ahh, i'll take another look, then.

Here's the file I used: https://github.com/open-source-economics/Tax-Calculator/blob/master/taxcalc/reforms/Trump2016.json

TaxBrain file-upload capability is now working in the 0.8.1 version.
Thanks for the fix.  Closing issue #508.


Combined drawing system(s) and camera

The current drawing systems are separated from each other and the camera. Might be easier to combine them all:

Draw method to do all the drawing during the game draw phase, with just the screen as input.
Resize method to handle layout
Access camera in update phase, to update position to match player

Resolved in v0.5.0


Rollback buffers for sorting and filtering back to local variables

https://jenkins.arangodb.biz/view/PR/job/arangodb-matrix-pr/4838/
Usage of thread_local variables with non-trivial constructors may lead to crash on Windows  in certain circumstances. To fix the issue thread_local variables were rollbacked to local.

@Dronplane I am curious if you have more details about why/when non-trivial constructors may cause a crash on Windows? I have never experience anything like that...

Could this https://docs.microsoft.com/en-us/windows/desktop/dlls/using-thread-local-storage-in-a-dynamic-link-library be the real issue here?

@ObiWahn we have no access to DllMain of 3rd-party library

But you use LoadLibrary or what is the dll injection about? Could you provide more context on what you are doing exactly? Afaik DllMain is optional.

though I personaly thing its quiet absurt, it seems vpack is parts of lib/ - https://github.com/arangodb/arangodb/blob/devel/lib/CMakeLists.txt#L67 so I don't think that its loaded as a DLL, similar to lib/Basics?

@ObiWahn @dothebart I think you didn't get me, customer uses third party DLL that injects itself into arangod.exe process

so, wouldn't the dll-main() just need to create the TLS for ready existing threads to fix this? (According to Obis link?)

@dothebart with thread_local specifier compiler is responsible for that, but anyway that's dll provided by a third party vendor and nobody here has control on their code base.

don't they create it after our example we provide to them? So just have the proper example that does it right, and if they fail to cut'n'paste, crash, POP - Propblem of Other People

This seems related: https://developercommunity.visualstudio.com/content/problem/124121/thread-local-variables-fail-to-be-initialized-when.html
BUT: this bug report is about a dynamically loaded DLL that accesses a thread-local variable. The changes in this PR are part of arangod.exe and not some DLL that is dynamically loaded at some later time.

@dothebart they are only users of this third party dll, that's all I know. If you need more details on that it would be better to ask @fceller :-)

@mpoeter I think that inside the DLL you allso want to work with velocypack values, create new ones, return, etc.

I am confused... 😕 are you talking about a particular DLL? AFAIK ArangoDB does not dynamically load any DLLs (at least not directly)...

ArangoDB 3.5 will be able to dynamically load analyzers for arangosearch if I get that correctly.

Ah.. that makes sense then! 🙂

@gnusi  quoting @fceller : "No DLLs will be loaded into arangodb at the time being"

let's not merge this then until Jan comes back and we discussed this

Same issue showed up on C14.  Do you have a minidump you could share?

its' been a statically linked arangobench.exe - which has no V8 - one execution failed with the above error, other 8 succeeded. We're trying to go to working with a shared pointer around it.

Replaced by https://github.com/arangodb/arangodb/pull/9321

@dothebart was so nice to provide the dump + exe + pdb, so I could analyze it in WinDbg. Here are my findings:
The process contains 4 threads of which 3 belong to the default thread pool, so nothing suspicious here. The first crash occurred in the main thread in RtlAllocateHeap, but the exception handling code itself again caused an exception, resulting in an infinite loop of exceptions until the stack limit was reached. Obviously I was interested what caused the inital crash.
Some background information: when an exception occurs on Windows, the kernel stores two structures on the stack, which are later passed to RtlDispatchException - an EXCEPTION_RECORD and a CONTEXT. Based on the first stackframe of KiUserExceptionDispatch it is possible to identify the addresses of these structures. This is the EXCEPTION_RECORD:
0:000> .exr 0x000000bcddefeb00 + 0x4f0
ExceptionAddress: 00007ff85e1bd030 (ntdll!RtlAllocateHeap+0x0000000000000020)
   ExceptionCode: c0000005 (Access violation)
  ExceptionFlags: 00000000
NumberParameters: 2
   Parameter[0]:<PHONE_NUMBER>000000
   Parameter[1]:<PHONE_NUMBER>000010
Attempt to read from address<PHONE_NUMBER>000010

We can see that this was an access violation (0xc0000005), and that it was caused by the instruction at address 0x00007ff85e1bd030 which tried to read from address 0x10.
This is the code for this address:
ntdll!RtlAllocateHeap:
00007ff8`5e1bd010 48895c2408      mov     qword ptr [rsp+8],rbx
00007ff8`5e1bd015<PHONE_NUMBER>      mov     qword ptr [rsp+10h],rsi
00007ff8`5e1bd01a 57              push    rdi
00007ff8`5e1bd01b 4883ec30        sub     rsp,30h
00007ff8`5e1bd01f 498bf8          mov     rdi,r8
00007ff8`5e1bd022 8bf2            mov     esi,edx
00007ff8`5e1bd024 488bd9          mov     rbx,rcx
00007ff8`5e1bd027 4885c9          test    rcx,rcx
00007ff8`5e1bd02a 0f84dcf30900    je      ntdll!RtlAllocateHeap+0x9f3fc (00007ff8`5e25c40c)
00007ff8`5e1bd030 817b10eeddeedd  cmp     dword ptr [rbx+10h],0DDEEDDEEh     <----- CRASH
00007ff8`5e1bd037 448bc6          mov     r8d,esi

We see that in the line that caused the crashed, we try to read from [rbx+10h]. Since the AV was caused by a read from 0x10, we can conclude that rbx was zero.
Let's check the CONTEXT:
0:000> dt _CONTEXT 0x000000bcddefeb00
arangobench!_CONTEXT
   +0x000 P1Home           : 0
   +0x008 P2Home           : 0
   +0x010 P3Home           : 0
   +0x018 P4Home           : 0
   +0x020 P5Home           : 0
   +0x028 P6Home           : 0
   +0x030 ContextFlags     : 0x10005f
   +0x034 MxCsr            : 0x1f80
   +0x038 SegCs            : 0x33
   +0x03a SegDs            : 0x2b
   +0x03c SegEs            : 0x2b
   +0x03e SegFs            : 0x53
   +0x040 SegGs            : 0x2b
   +0x042 SegSs            : 0x2b
   +0x044 EFlags           : 0x10202
   +0x048 Dr0              : 0
   +0x050 Dr1              : 0
   +0x058 Dr2              : 0
   +0x060 Dr3              : 0
   +0x068 Dr6              : 0
   +0x070 Dr7              : 0
   +0x078 Rax              : 0
   +0x080 Rcx              : 0x13
   +0x088 Rdx              : 0
   +0x090 Rbx              : 0
   +0x098 Rsp              : 0x000000bc`ddeff2b0
   +0x0a0 Rbp              : 0
   +0x0a8 Rsi              : 0
   +0x0b0 Rdi              : 0x20
   +0x0b8 R8               : 0
   +0x0c0 R9               : 0
   +0x0c8 R10              : 0
   +0x0d0 R11              : 0x000000bc`ddeff4d0
   +0x0d8 R12              : 0x00007ff7`2e9d5b82
   +0x0e0 R13              : 0x000000bc`ddeff700
   +0x0e8 R14              : 0x00007ff7`2e9d0000
   +0x0f0 R15              : 0
   +0x0f8 Rip              : 0x00007ff8`5e1bd030
   +0x100 FltSave          : _XSAVE_FORMAT
   +0x100 Header           : [2] _M128A
   +0x120 Legacy           : [8] _M128A
   +0x1a0 Xmm0             : _M128A
   +0x1b0 Xmm1             : _M128A
   +0x1c0 Xmm2             : _M128A
   +0x1d0 Xmm3             : _M128A
   +0x1e0 Xmm4             : _M128A
   +0x1f0 Xmm5             : _M128A
   +0x200 Xmm6             : _M128A
   +0x210 Xmm7             : _M128A
   +0x220 Xmm8             : _M128A
   +0x230 Xmm9             : _M128A
   +0x240 Xmm10            : _M128A
   +0x250 Xmm11            : _M128A
   +0x260 Xmm12            : _M128A
   +0x270 Xmm13            : _M128A
   +0x280 Xmm14            : _M128A
   +0x290 Xmm15            : _M128A
   +0x300 VectorRegister   : [26] _M128A
   +0x4a0 VectorControl    : 0
   +0x4a8 DebugControl     : 0x000000bc`ddefefb0
   +0x4b0 LastBranchToRip  : 0
   +0x4b8 LastBranchFromRip : 0
   +0x4c0 LastExceptionToRip : 0
   +0x4c8 LastExceptionFromRip : 0

rip contains the same address as the ExceptionAddress, rsp contains the correct stack address and the segment registers are also correct - these are strong indications, that this is indeed a correct dump of the CPU context from the time the exception occurred. And as expected, rbx is indeed zero.
But this is were things get really weird! If we take another look at the RtlAllocateHeap code, we see that the previous instructions contain two essential moves:
00007ff8`5e1bd01f 498bf8          mov     rdi,r8
00007ff8`5e1bd024 488bd9          mov     rbx,rcx

Since these registers are not modified between the mov and the crash, their values in the CONTEXT should match - but this is not the case!
   +0x080 Rcx              : 0x13
   +0x090 Rbx              : 0

   +0x0b0 Rdi              : 0x20
   +0x0b8 R8               : 0

Apparently these registers have been altered during the execution, because if rcx would have been zero before it was copied into rbx, then we would have taken the jump before the faulty instruction, i.e., the load operation would have never been executed.
This indicates to me, that there is something very strange going on! My best guess would be a faulty CPU or a bug in the virtualizer (AFAIK this has been running in a VMware ESXi). But from this dump, I would most definitely rule out a bug in arangodb or the VCRT.

@mpoeter: thanks a lot for the investigations you did! :+1:
Yes, it indeed looks like an issue with the virtualization... No matter how to go on from here. It seems that some other PRs we merged have fixed this issue as a side-effect. At least I was told it doesn't occur anymore. :man_shrugging:


HtmlImage.toByteData has surprising behavior

It seems like we should be throwing an exception instead of returning null at https://github.com/flutter/engine/blob/e3444d895545b629370fcf0ddd43f84b361ed306/lib/web_ui/lib/src/engine/html_image_codec.dart#L137
We also ignore the format parameter. It's not really clear to me right now what format we actually return, but I suspect it's the original encoded format of the image rather than the format the caller is requesting. The caller can request raw RGBA array or request PNG data, or "rawUnmodified," which should probably be the same as rawRgba on web.

From yegor:

Raw pixels: https://developer.mozilla.org/en-US/docs/Web/API/ImageData/data
PNG: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL


Set status with StatusCode (Unset, Ok, Error)

Our current status code is gRPC code
https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/api.md#set-status
Update compliance matrix after fix

Hi @dyladan, I am trying to address this in #1644. I would appreciate your review.

@lonewolf3739 yes I saw thank you


Crash in taskIdentifier.get

Check List
Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

[x] I have read the wiki page and cheat sheet, but there is no information I need.
[x] I have searched in existing issues, but did not find a same one.
[x] I want to report a problem instead of asking a question. It'd better to use kingfisher tag in Stack Overflow to ask a question.

Issue Description
We receive a crash after upgrade to 6.0.1, this never happened before 6.0.0 version.
Here is the trace:
Hardware Model:     iPhone9,2
Process:            shopping
Identifier:         com.lativ.iShopping.CN
Version:            2.2.4
Role:               Foreground
OS Version:         iOS 11.2.6
Exception Type:     EXC_BAD_ACCESS

EXC_BAD_ACCESS: Attempted to dereference garbage pointer 0xa6d09bec8.

0  libobjc.A.dylib         _objc_retain
1  Kingfisher              merged generic specialization <Kingfisher.Box<Kingfisher.Indicator>> of Kingfisher.getAssociatedObject<A>(Any, Swift.UnsafeRawPointer) -> A?
2  shopping                taskIdentifier.get (ImageView+Kingfisher.swift:436:54)
3  shopping                onDataReceived (KingfisherOptionsInfo.swift:382:20)
4  shopping                Kingfisher.SessionDelegate.urlSession(_: __C.NSURLSession, dataTask: __C.NSURLSessionDataTask, didReceive: Foundation.Data) -> () (SessionDelegate.swift:184:28)
5  <compiler-generated>    urlSession
6  CFNetwork               ___67-[NSURLSession delegate_dataTask:didReceiveData:completionHandler:]_block_invoke.264
7  Foundation              ___NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__
8  Foundation              -[NSBlockOperation main]
9  Foundation              -[__NSOperationInternal _start:]
10 libdispatch.dylib       __dispatch_client_callout
11 libdispatch.dylib       __dispatch_block_invoke_direct$VARIANT$mp
12 libdispatch.dylib       __dispatch_client_callout
13 libdispatch.dylib       __dispatch_block_invoke_direct$VARIANT$mp
14 libdispatch.dylib       _dispatch_block_perform$VARIANT$mp
15 Foundation              ___NSOQSchedule_f
16 libdispatch.dylib       __dispatch_client_callout
17 libdispatch.dylib       __dispatch_continuation_pop$VARIANT$mp
18 libdispatch.dylib       __dispatch_async_redirect_invoke$VARIANT$mp
19 libdispatch.dylib       __dispatch_root_queue_drain
20 libdispatch.dylib       __dispatch_worker_thread3
21 libsystem_pthread.dylib __pthread_wqthread

There was no change recently on this. Not sure what is going on.

this never happened before 6.0.0 version.

Is that containing 6.0.0 or only versions 5.x?
I'd wait for more information/report or reproducible steps before we can dig into and fix it. :(

There was no change recently on this. Not sure what is going on.

this never happened before 6.0.0 version.

Is that containing 6.0.0 or only versions 5.x?
I'd wait for more information/report or reproducible steps before we can dig into and fix it. :(

@onevcat We just upgrade from 5.0 version to 6.0.1 this week, the app have launched for 3 months and never happened this crash before.

@onevcat We just upgrade from 5.0 version to 6.0.1 this week, the app have launched for 3 months and never happened this crash before.

@onevcat @hijamoya  I can confirm this error as well. Last week I updated from Kingfisher 5.14 to 6.1.0.  We are using the Swift package manager.  100% SwiftUI App.  We began seeing this error this Monday during our internal testing.  Happens in the KFImage file line 173.

@onevcat @hijamoya FYI when I revert back to version 6.0.1 the error does not appear.

@dominiquemiller
Thanks for reporting this.
Do you have a way to reproduce it in a predictable way?
The crash happened in an unbelievable location. Is it possible for you to also paste the full stack (the truncated part of the second image)?

6.0.1 does not use this implementation. The local state setting is from 6.1.0. So I guess it is some internal SwiftUI thing, which failed when managing the view state in this way. But I myself have never seen this crash so it is hard to say.
I need a sample or a way to reproduce it first.

@dominiquemiller
Thanks for reporting this.
Do you have a way to reproduce it in a predictable way?
The crash happened in an unbelievable location. Is it possible for you to also paste the full stack (the truncated part of the second image)?

Here is the whole stack trace from TestFlight:

This is the how we are using Kingfisher:

I ended up reverting back to 6.0.1 and so far the error has not happened.  Its very weird so I agree with you that it's something internal with SwiftUI.

@onevcat Going thru the other crash reports this one is better formatted.

@dominiquemiller
Thanks for the detailed stack. It indeed relates to some state management. Although the root reason for this is still mysterious, there are already quite a few critical fixes around the internal state management and maybe they can fix it.
I think currently the new state implementation introduced from 6.1.0 is quite stable on the master branch. If you'd like, it worths trying the master branch and see how it works. I will keep an eye on this and also see if I can reproduce it locally!

I am also seeing this exact issue on 6.1.0 and 6.1.1. Reverting to 6.0.1 seems to be working though

We've experienced this also; upgrading from 6.0.1 to 6.1.1 resulted in tons of crashes like the one posted by @dominiquemiller. Downgrading back made the crashes disappear. Trying to find a repro.

@windom Thanks for the reporting! I am also digging into it (but without luck of reproducing it in any of my samples). Please let me know if you can reproduce it in any way!

I guess I found a potential problem with it and here is a fix in the branch fix/unexpected-ref. Since I cannot reproduce this crash myself, I need your help to try if it is a valid fix. It would be a great help if you can try that branch and let me know how it is working. If everything goes fine, I will merge it and tag a new release.

For me the code below on 14.4, SE2, after a bit of scrolling reproduces the crash reliably on 6.1.1.
On 6.0.1 and fix/unexpected-ref the crash does not happen 👍
import Kingfisher

let urls = [
    "https://www.amazon.com/favicon.ico",
    "https://s.ytimg.com/yts/img/favicon_96-vflW9Ec0w.png",
    "https://www.wikipedia.org/static/apple-touch/wikipedia.png",
    "https://github.githubassets.com/favicons/favicon.svg",
    "https://github.githubassets.com/apple-touch-icon-180x180.png",
]

struct ContentView: View {
    var body: some View {
        List {
            ForEach(1..<200) { id in
                KFImage(URL(string: urls[id%urls.count]))
                    .renderingMode(.original)
                    .resizable()
                    .frame(width: 24, height: 24)
            }
        }
    }
}

I am closing this since the fixes should be contained in 6.2.0 and I am going to tag it now.


Missing invalidate the Property Pane capability for custom property pane controls

Category

[x] Question
[ ] Typo
[ ] Bug
[ ] Additional article idea

Expected or Desired Behavior
For the @pnp/spfx-property-pane controls when using custom validation, I want to be able to let the property pane know of any custom invalid control inputs. At the moment, this only works for the first party controls like the PropertyPaneTextField. When you specify the onGetErrorMessage property and return a string, the apply button of the property pane gets disabled.
It would be great if this could work the same way for the custom property pane fields.
Observed Behavior
I went on a journey through the property pane its code, and saw that that for instance of the PropertyPaneTextField an onNotifyValidationResult property is set:
case PropertyPaneFieldType.TextField:
    var textFieldValue = propValue || groupField.properties.value || '';
    groupFieldElement = React.createElement(TextField, tslib_1.__assign({}, groupField.properties, { componentRef: setRef, value: textFieldValue, onChanged: function (value) {
            if (!groupField.properties.onGetErrorMessage) {
                _this._onChange(groupField, value);
            }
        }, onNotifyValidationResult: function (errorMessage, value) {
            return _this._onNotifyValidationResult(errorMessage, value, groupField, _this.props.setEntryState);
        }, onFocus: function (ev) { return _this._onFocusTextFieldPropertyPane(ev, groupField.properties); }, onBlur: function (ev) { return _this._onBlurTextFieldPropertyPane(ev, groupField.properties); } }));
    break;

This is not the case for custom fields. More importantly, is the setEntryState method. This one is used for letting the property pane know a field input is invalid. For the custom fields, the state is always set to true:
case PropertyPaneFieldType.Custom:
    groupFieldElement = React.createElement(PropertyPaneCustomFieldHost, tslib_1.__assign({}, groupField.properties, { onChanged: function (targetProperty, value) {
            if (_this.props.setEntryState) {
                _this.props.setEntryState(targetProperty, true);
            }
            if (_this.props.onChange) {
                _this.props.onChange(targetProperty, value);
            }
        } }));
    break;

This means that a custom control cannot invalidate the property pane it seems. It would be great if the same implementation as the text field could be implemented here.

@estruyf - Thanks for raising the concern. This looks like a new feature. Could you please raise the concern here in the SharePoint Dev user voice? so that it would be easier for us to understand the importance of the issue and also keep track of it.


Adding bio tab

Code for the bio tab

Ignore this! I'm fixing it.

Scratch this. Not what we need updated.


'TypeError: Foundation.GetYoDigits is not a function' when interchange is not given an ID - 6.4

When you don't explicitly give an interchange element an ID, it doesn't work and gives the following error: TypeError: Foundation.GetYoDigits is not a function

Good catch! Will fix


retry 3 times if xml export fails

Seems to fail sometimes for a problem I can't figure out, so should try 3 times
Can force quit the chromedriver, re-request the function to create a new one and then try again

fixed in b1ffa3b0fb522afa90d5645f395a3df3da362d14


why two GPUs  memory allocate differently?

Hello, sir. I use cascade rcnn to train my dataset and use dist_train.sh with two gpu, but I found that the memory used in two gpus is different,

how can I solve this? Very appreciate for your reply!!!

Different GPU contains different images during training, and those images have different sizes. So this is normal.

thanks for your reply!!


zeno results seem Unauthorized

Unauthorized
The resource you requested cannot be accessed from your account. Please contact the owner to share this resource with you.

+1 Same problem here

I just updated it, pls check it out


npx create-email requires Node 18

Describe the Bug
I tried setting up the project, but it failed using Node 16, I tried again using Node 18 and it worked.
The failure was the following error:
> node -v
v16.14.2
> npx create-email@latest
Need to install the following packages:
  create-email@latest
Ok to proceed? (y)
node:internal/errors:464
    ErrorCaptureStackTrace(err);
    ^

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".json" for /Users/mathis/.npm/_npx/5e64a2f331305744/node_modules/create-email/package.json
    at new NodeError (node:internal/errors:371:5)
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:87:11)
    at defaultGetFormat (node:internal/modules/esm/get_format:102:38)
    at defaultLoad (node:internal/modules/esm/load:21:14)
    at ESMLoader.load (node:internal/modules/esm/loader:359:26)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:280:58)
    at new ModuleJob (node:internal/modules/esm/module_job:66:26)
    at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:297:17)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:261:34)
    at async ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:81:21) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}

This is likely due to this like: https://github.com/resendlabs/react-email/blob/main/packages/create-email/src/index.js#L10
Which package is affected (leave empty if unsure)
create-email
Link to the code that reproduces this issue
uncessary
To Reproduce
I used node version manager (nvm) to change the node version: https://github.com/nvm-sh/nvm
nvm use 16
then run
npx create-email@latest
observe the error
Try again with
nvm use 18
npx create-email@latest
(node:93600) ExperimentalWarning: Importing JSON modules is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
⠋ Preparing files...
react-email-starter
├── emails
│   ├── notion-magic-link.tsx
│   ├── plaid-verify-identity.tsx
│   ├── static
│   │   ├── notion-logo.png
│   │   ├── plaid-logo.png
│   │   ├── plaid.png
│   │   ├── stripe-logo.png
│   │   ├── vercel-arrow.png
│   │   ├── vercel-logo.png
│   │   ├── vercel-team.png
│   │   └── vercel-user.png
│   ├── stripe-welcome.tsx
│   └── vercel-invite-user.tsx
├── package.json
├── readme.md
✔ React Email Starter files ready

Expected Behavior
Should work with older version of Node.js or should document the requirement on the website.
What's your node version? (if relevant)
16.14.2/v18.12.1

I faced the same issue today.
I don't think it's too hard to make it run on v16 and it looks like a better solution than just setting the minimum compatible version of node to v18 in the documentation.
Maybe the intention of the authors for some reason is to not support projects before v18 of Node, but I don't think that's the case because the majority of the other packages require the minimum node version to be v16 like this one:
https://github.com/resendlabs/react-email/blob/main/packages/text/package.json#L33
The packages that I notice don't even mention the required Node version are the following:

"Docs" (that I'm not sure we can call a package)

I faced the same issue today.
I don't think it's too hard to make it run on v16 and it looks like a better solution than just setting the minimum compatible version of Node to v18 in the documentation.
Maybe the authors only intend to support Node v18 and later, but I don't think that's the case since the majority of the other packages require the minimum node version to be v16, like this one:
https://github.com/resendlabs/react-email/blob/main/packages/text/package.json#L33
The packages that don't even mention the required Node version are the following:

"Docs" (that I'm not sure we can call a package)
body

We should definitely support node 16 > as other packages. Let's fix this 🙏

Still getting this when just trying to install the main package:
yarn add v1.22.19
[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
warning Resolution field<EMAIL_ADDRESS>is incompatible with requested version<EMAIL_ADDRESS>[3/5] 🚚  Fetching packages...
error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version ">=18.0.0". Got "16.20.2"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.


building failed "Unable to resolve module util

I am trying use this in my project but after i finished installing using this command npm install mongojs then i  code in this in the app var mongojs=require('mongojs'); etc... i ran the app i got this error
bundling failed: "Unable to resolve module util from C:\\Users\\Barry\\Desktop\\TaxiMoto\\node_modules\\mongojs\\lib\\database.js: Module does not exist in the module map\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n  1. Clear watchman watches: watchman watch-del-all.\n  2. Delete the node_modules folder: rm -rf node_modules && npm install.\n  3. Reset packager cache: rm -fr $TMPDIR/react-* or npm start -- --reset-cache."
so if you seem to know what is wrong please help
for you information
envireoment
node:v6.11.2
react-native: 0.47.2
react: 16.0.0-alpha.12
android api 23
Os: windows 10

Have you tried the steps outlined in your error message to fix this issue? This should be a react-native and no mongojs issue.

I did follow but no fix
I thought mongojs is going to work but it didn't and I have no idea why it didn't work with this react-native.
I want to use it to save and retrieved data using the mlab cloud. since it is not working would you suggest me some other ways to get this done. Thank you

Hey,
I tried to use npm install util
After I tried to run I had install events
After I tried again to run I had to install crypto and that didn't work out...
How about taking a look at
http://docs.mlab.com
Maybe that will help out


Improve handling of token refresh while offline

Issue Type: Bug
Currently, the built in account extension will attempt to refresh the access token before it expires. If it fails, it deletes the stored refresh token and sends a change event to core that no sessions are available.
If the user goes offline after signing in, then refresh will fail due to the lack of connection. (Or in @sbatten's case, changing networks also seems to cause refresh to fail). When this happens, it's confusing to show a badge on the gear to sign in again. One way we could handle this is for the extension to still remove the session that now has an expired token, but keep the refresh token if the error may be temporary, and retry again a bit later. In the sessions change event, the core could test to see if the user is online before updating the UI, and would need to tell the sync service to stop.
@sandy081 Thoughts?
VS Code version: Code - Insiders 1.42.0-insider (c4d53a19df8799f5d49a4f49a6900c499e6fa27c, 2020-01-23T05:38:55.065Z)
OS version: Darwin x64 18.7.0

OK, I've just made a change to add an "Unavailable" status for auth in the userDataSync workbench contribution. Now, when refresh fails due to a network error, it will retain the refresh token, but remove the access token from the session and send a change event. This sets the "Unavailable" status while the extension continues retrying up to 3 times to refresh.
Still pending:

What do we show in the gear menu when auth status is "Unavailable"?
Need to add another long timeout to the extension to check for reconnection

Added a 30 minute poll when refreshing fails to check if the network is available again. https://github.com/microsoft/vscode/commit/b98f647ec997bd8b86157f6dce6443571c933fb1
Since https://github.com/microsoft/vscode/issues/89538 tracks the offline UX, this is complete


SSR?

Hi,
This package looks really great!
Does it support SSR (Server Side Rendering) like Apollo? Apollo is able to find all the requests in the view and fetch them server side.
Thank you for your work,
Lucas Willems

It will support pre-cache warming for SSR soon. Not until after react SSR supports async export and suspense will it be native.
Tanner Linsley
On Nov 6, 2019, 3:45 AM -0700, Lucas Willems<EMAIL_ADDRESS>wrote:

Hi,
This package looks really great!
Does it support SSR like Apollo?
Thank you for your work,
Lucas Willems
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Thank you for your answer!
If you have some time,

Could you give me a link about "react SSR and async support"? What is this? A search gave me nothing.
Why do you want to wait for Suspense? The SWR team also wait for it, but I don't see the link between your package or SWR and Suspense.

SSR and suspense are not the same thing. To support suspense in an SSR m environment, the render to string methods of react Dom must be asynchronous. These features are on the roadmap for the react core team and hopefully will be released later this year.
Until then, we can get around this by using pre-cache warming to ensure that there is data synchronously available in a query before you use the render to string SSR method
Tanner Linsley
On Nov 6, 2019, 5:55 AM -0700, Lucas Willems<EMAIL_ADDRESS>wrote:

Thank you for your answer!
If you have some time,
• Could you give me a link about "react SSR and async support"? What is this? A search gave me nothing.
• Why do you want to wait for Suspense? The SWR team also wait for it, but I don't see the link between your package or SWR and Suspense.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

I am driving in my car right now, else I would give you a link to the roadmap
Tanner Linsley
On Nov 6, 2019, 5:55 AM -0700, Lucas Willems<EMAIL_ADDRESS>wrote:

Thank you for your answer!
If you have some time,
• Could you give me a link about "react SSR and async support"? What is this? A search gave me nothing.
• Why do you want to wait for Suspense? The SWR team also wait for it, but I don't see the link between your package or SWR and Suspense.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

This explanation helped me to have a better understanding of what's behind the render to string methods of react Dom must be asynchronous, hope it helps

Thank you for the link!! This is very clear

Pre-Seeding a Query will be available in the next major version
Prefetching and thus "Render While Fetching" Suspense will also be possible in the next release


Exports Types

Hi!
I have a project where I'm creating a wrapper function around nanoquery(), createFetcherStore, and createMutatorStore and having this props import-able would make my life a lot easier so that I don't have to re-define them myself

@martinmckenna Sure, why not. Thanks!

@martinmckenna Published in 0.2.9

wow quick with it thank you!


Add bluesign and bjartek as codeowners

Add @bluesign and @bjartek as codeowners to the Flow CLI codebase.
cc @SeanRobb

Codecov Report

Merging #1173 (2d451e0) into master (3ccf883) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1173   +/-   ##
=======================================
  Coverage   38.43%   38.43%
=======================================
  Files          38       38
  Lines        1941     1941
=======================================
  Hits          746      746
  Misses       1107     1107
  Partials       88       88

Flag
Coverage Δ

unittests
38.43% <ø> (ø)

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


File validation wont work for the first upload

Versions

vee-validate: 2.2.7
vue: 2.6.10

Describe the bug
When adding the first file(s) the validation wont notice it and produce an error.
I have built a fairly complexed form engine where this file component is a small part. Im using validation observer and providers. I cant find an example in the documentation to do this setup.

I will upgrade to v3 as soon as possible, not now though.
To reproduce
Steps to reproduce the behavior:

Add a file
I get error msg: The {field} field is required.
If I add more files or remove the first one is works as expected.

Expected behavior
No validation error should appear when there are files in the list
Demo link
https://codesandbox.io/s/file-upload-oylln
Additional context
Thanks for a great product!

This is weird, I will investigate tonight and report back.

Any ideas?

Sorry it took me a while to address this, this is not a bug because in your handler you are doing this:
e.target.value = "";

So you either should fire the validation first, or wait for it to finish in your handler by using refs and manual validation.


Notification never properly cleared after it was set as a result of a subscription request

please reopen if this still is broken


lightning rods

@RavinMaddHatter Lightning rods are defined as a "cube" shape in block_definition.json.  The default dimensions in block_shapes.json defines a full block or (1,1,1).  Should I be looking to define a cube variant in block_shapes .  Does Structura reference the variants by name ie lightning_rod?  Thanks

The string that is in block definitions is used to look up the data in
rotations, block shapes, and UI. So you can define a new "lightning" rod
string in the block definitions then make new objects in the other 3 files
that are specific to lighting rods.
On Wed, Oct 11, 2023, 8:25 PM Machbar24 @.***> wrote:

@RavinMaddHatter https://github.com/RavinMaddHatter Lightning rods are
defined as a "cube" shape in block_definition.json. The default dimensions
in block_shapes.json defines a full block or (1,1,1). Should I be looking
to define a cube variant in block_shapes . Does Structura reference the
variants by name ie lightning_rod? Thanks
—
Reply to this email directly, view it on GitHub
https://github.com/RavinMaddHatter/Structura/issues/129#issuecomment-1758853490,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABBUC5AC6GFJVV77DPJDWOLX65PJLANCNFSM6AAAAAAQMM3LKM
.
You are receiving this because you were mentioned.Message ID:
@.***>

Complete in Decorative Block Update


i64 snowflake ID may going to negative value

The document mention i64 uses 41 bits for the timestamp. So I expecting it should wrap when 41 bits timestamp overflowed, but the following code panic.
    #[test]
    fn should_not_get_neg_value_when_using_i64() {
        use std::time::{Duration, UNIX_EPOCH};

        let epoch = UNIX_EPOCH - Duration::from_secs(60 * 60 * 24 * 365 * 20);
        let generator: Generator = Generator::builder().epoch(epoch).build();

        assert!(generator.generate::<i64>() >= 0);
    }

See also: https://github.com/twitter-archive/snowflake/tree/b3f6a3c6ca8e1b6847baa6ff42bf72201e2c2231#solution

Thanks for reporting this, fixed in 854ac25b19439df9bb1fbd4e1885fff5c7a5aad5.

The fix is released in 1.0.1.


Multiple maps support

I managed to run the project with one map and it works properly.
But It does not seems to be possible to make it work with several contiguous maps.
I get the same result than in your server example:
http://routeplanner.develar.org/
One map overlaps the other.
This problem is fixed in the more recent releases of mapsforge, but I dit not manage to link it properly as there was to much changes in the rendering model.
Is there any plan to make it work ?

+1.  This needs to be fixed.


test error after installation: too many resources requested for launch

hi, when i ran the test.py after installation following:
cd models/dino/ops
python setup.py build install
# unit test (should see all checking is True)
python test.py
cd ../../..

it raised that:
error in ms_deformable_col2im_cuda: too many resources requested for launch
error in ms_deformable_col2im_cuda: too many resources requested for launch
error in ms_deformable_col2im_cuda: too many resources requested for launch
File "/data/jilichuan/database/code/DINO-UW/models/dino/ops/test.py", line 76, in check_gradient_numerical
gradok = gradcheck(func, (value.double(), shapes, level_start_index, sampling_locations.double(), attention_weights.double(), im2col_step))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/anaconda3/envs/dino/lib/python3.11/site-packages/torch/autograd/gradcheck.py", line 2052, in gradcheck
return _gradcheck_helper(**args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/anaconda3/envs/dino/lib/python3.11/site-packages/torch/autograd/gradcheck.py", line 2081, in _gradcheck_helper
_gradcheck_real_imag(
File "/data/anaconda3/envs/dino/lib/python3.11/site-packages/torch/autograd/gradcheck.py", line 1491, in _gradcheck_real_imag
gradcheck_fn(
File "/data/anaconda3/envs/dino/lib/python3.11/site-packages/torch/autograd/gradcheck.py", line 1632, in _slow_gradcheck
raise GradcheckError(
torch.autograd.gradcheck.GradcheckError: Jacobian mismatch for output 0 with respect to input 0,
did anyone encounter this error?
Then i skiped this error and ran the fine-tuning process, its ok and can ran well.

my environment:
cuda: 11.8
torch: 2.5.0+cu118
os: ubuntu

i fixed this error following https://github.com/chengdazhi/Deformable-Convolution-V2-PyTorch/issues/15#issuecomment-488551372
it seemed like my gpu is a litte out-date?


Give ability to define Status bar color

Give ability to define Status bar color

CustomTabsIntent does not support changing the color of the status bar, so this module can not provide functionality.


Enhance clickhouse connector documentation

[x] Table for parameters
[x] Headers for examples
[x] Expand secrets example to have three panels describing each possible kind of secret. Copy from the spark documentation

Page should have:

[x] Connector description
[x] Configuration section
[x] Secrets section / Authentication section
[x] Examples section
[x] Parameters table
[x] File format support (if applicable)

Replaced by #582


feat: add basic CLI flags to the run command

Description
This adds some CLI flags for the run command to wire up basic options that you can provide at the command-line. The changes herein wire up the cobra command flags with the config being managed by viper.
References
Part of #91

Design inspired by the spf13/cobra User Guide

Review Checklist

[ ] I have added documentation for new/changed functionality in this PR or in openfga.dev
[X] The correct base branch is being used, if not main

I wouldn't consider the CLI flags complete yet, not until we call #91 officially complete. So, for now, I believe we should leave this functionality undocumented to the public. But if we can merge this work ahead of #91 official completion, then that will help unblock some test functionality in https://github.com/openfga/openfga/pull/83.

Codecov Report

Merging #92 (b5e84af) into main (7cbd9aa) will decrease coverage by 0.65%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main      #92      +/-   ##
==========================================
- Coverage   77.18%   76.52%   -0.66%
==========================================
  Files          75       76       +1
  Lines        8266     8329      +63
==========================================
- Hits         6380     6374       -6
- Misses       1503     1570      +67
- Partials      383      385       +2

Impacted Files
Coverage Δ

cmd/openfga/openfga.go
0.00% <0.00%> (ø)

pkg/cmd/run.go
0.00% <0.00%> (ø)

pkg/cmd/util/util.go
0.00% <0.00%> (ø)

server/commands/check.go
84.08% <0.00%> (-1.51%)
:arrow_down:

storage/postgres/utils.go
83.43% <0.00%> (-0.64%)
:arrow_down:

Continue to review full report at Codecov.

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


django_site does not exist

Please enter as much information as possible, otherwise we can't provide support. If possible upgrade to the latest release or dev version and try again.
Bug description
Upon starting the django container and running oc logs <pod_name> -c uwsgi I see the following error logs:
Internal Server Error: /login
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "django_site" does not exist
LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...
                                                             ^
The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/utils/decorators.py", line 45, in _wrapper
    return bound_method(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
    return view(request, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/utils/decorators.py", line 45, in _wrapper
    return bound_method(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/utils/decorators.py", line 142, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/utils/decorators.py", line 45, in _wrapper
    return bound_method(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/views.py", line 61, in dispatch
    return super().dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py", line 97, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/views/generic/edit.py", line 133, in get
    return self.render_to_response(self.get_context_data())
  File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/views.py", line 95, in get_context_data
    current_site = get_current_site(self.request)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/sites/shortcuts.py", line 13, in get_current_site
    return Site.objects.get_current(request)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/sites/models.py", line 58, in get_current
    return self._get_site_by_id(site_id)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/sites/models.py", line 30, in _get_site_by_id
    site = self.get(pk=site_id)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 402, in get
    num = len(clone)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 256, in __len__
    self._fetch_all()
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 1242, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 55, in __iter__
    results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1142, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "django_site" does not exist
LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...

Steps to reproduce
Steps to reproduce the behavior:

Install via Helm chart
perform kubectl or oc logs command on django pod -c uwsgi
See error

Expected behavior
I presume no error?
Deployment method (select with an X)

[X] Kubernetes (OpenShift
[ ] Docker
[ ] setup.bash / legacy-setup.bash

Environment information

Operating System: [RHEL on IBM Cloud]
DefectDojo v1.9.3

did you wait long enought for the initializer to complete before making any requests?

please come to slack if you're still experiencing errors


What is the listening port of the master node used for? The captured packets show that the port does not exchange data when the workflow is started.

**For better global communication, Please describe it in English. If you feel the description in English is not clear, then you can append description in Chinese(just for Mandarin(CN)), thx! **
Describe the question
A clear and concise description of what the question is.
master监听的端口是做什么用的？我们抓包看工作流启动的时候该端口没有数据交互
What is the listening port of the master node used for? The captured packets show that the port does not exchange data when the workflow is started.
Which version of DolphinScheduler:
1.3.3
Requirement or improvement

Please describe about your requirements or improvement suggestions.

@keepmeup The listening port of the master node used for netty port to communicate with workers


Testing whether "shaping information is available for a character"

Servo would like to implement CSS on top of font-kit. This includes:
https://drafts.csswg.org/css-fonts/#font-matching-algorithm

A font is considered to support a given character if (1) the character is contained in the font's character map and (2) if required by the containing script, shaping information is available for that character.
Some legacy fonts may include a given character in the character map but lack the shaping information (e.g. OpenType layout tables or Graphite tables) necessary for correctly rendering text runs containing that character.

I think font.glyph_for_char(c).is_some() implements (1). But how can (2) be achieved? I’m not quite sure what it means excatly, and I don’t see an obvious API in HarfBuzz either.

Alright, sounds ok to me to only look at the cmap and see later what webcompat issues occur if any.


cargo can't update the registry if git-alias available

Testing Rust on Haiku got this error:
/P/T/ripgrep-0.6.0  cargo --version
cargo 0.23.0-dev
/P/T/ripgrep-0.6.0  ls -la /system/packages/*rust*
-rw-r--r-- 1 user root 29584801 M09 22 08:59 /system/packages/rust_runtime-1.22~dev-1-x86_64.hpkg
-rw-r--r-- 1 user root 66276111 M09 22 09:00 /system/packages/rust-1.22~dev-1-x86_64.hpkg
/P/T/ripgrep-0.6.0  cargo build --release
    Updating registry `https://github.com/rust-lang/crates.io-index`
error: failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  [23/-1] Failed to start SSH session: Failed getting banner
/P/T/ripgrep-0.6.0

The culpriont was my git config file, better to say the aliases. I got this in my git config:
[user]
	email =<EMAIL_ADDRESS>	name = Itsme
[pack]
	threads = 4
[url "git@github.com:"]
	insteadOf = https://github.com/
[url "git://github.com/ghc/packages-"]
	insteadOf = git://github.com/ghc/packages/
[url "http://github.com/ghc/packages-"]
	insteadOf = http://github.com/ghc/packages/
[url "https://github.com/ghc/packages-"]
	insteadOf = https://github.com/ghc/packages/
[url<EMAIL_ADDRESS>	insteadOf =<EMAIL_ADDRESS>[url "git@github.com:/ghc/packages-"]
	insteadOf = git@github.com:/ghc/packages/
[cola]
	fontdiff = Noto Mono,10,-1,5,50,0,0,0,0,0
	blameviewer = lpe
[gui]
	editor = lpe
	historybrowser = lpe

If i delete the aliases cargo starts to working. My working git config:
[user]
	email =<EMAIL_ADDRESS>	name = Itsme
[pack]
	threads = 4
[gui]
	editor = lpe
	historybrowser = lpe

And now cargo fetches everything happily.

Thanks for the report! I think this is a duplicate of https://github.com/rust-lang/cargo/issues/2078, however


Fragment masking over React Client & Server Components

Describe the bug
Using the following stack:

next 14.2.1
@apollo/experimental-nextjs-app-support 0.10.0

With fragment masking over react client & server components:
page.tsx (Server Component)
import { graphql } from "gql.tada";
import { apollo } from "@/graphql/server";
import Character, { CharacterFragment } from "./Character";

const query = graphql(
  `
    query Character {
      character(id: "1") {
        ...Character
      }
    }
  `,
  [CharacterFragment],
);

export default function Character() {
  const client = apollo();
  const {
    data: { character },
  } = await client.query({ query });

  return <Character character={character} />;
}

Character.tsx (client component)
"use client";

import { useCallback } from "react";
import { graphql, FragmentOf, readFragment } from "gql.tada";

export const CharacterFragment = graphql(`
  fragment Character on Character {
    name
  }
`);

export default function Character({
  character,
}: {
  character: FragmentOf<typeof CharacterFragment> | null;
}) {
  const { name } = readFragment(character);

  const onClick = useCallback(() => {
    console.log(`Hi, my name is ${name}`);
  }, [name]);

  return <button onClick={onClick}>{name}</button>;
}

The following error is thrown:
Error: Cannot access definitions.Symbol(Symbol.iterator) on the server. You cannot dot into a client module from a server component. You can only pass the imported name through.
    at Object.get (node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:253976)
    at graphql (webpack-internal:///(rsc)/./node_modules/gql.tada/dist/gql-tada.mjs:20:23)
    at eval (webpack-internal:///(rsc)/./src/app/page.tsx:14:64)
    at (rsc)/./src/app/page.tsx (.next/server/app/page.js:248:1)
    at Function.__webpack_require__ (.next/server/webpack-runtime.js:33:42)
    at async e5 (node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:396551)
    at async tv (node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:400209)
    at async tb (node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:400770)
    at async tb (node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:400901)
    at async tj (node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:36:2130)
    at async node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:36:2722

Is there some way to make this pattern work?
Reproduction
https://github.com/hrougier/gql.tada
gql.tada version
gql.tada v1.5.1
Validations

[X] I can confirm that this is a bug report, and not a feature request, RFC, question, or discussion, for which GitHub Discussions should be used
[X] Read the docs.
[X] Follow our Code of Conduct

This is because CharacterFragment is considered part of the client-module, hence when we try to merge the definitions (fragments) of said client export in the main operation we are dis-allowed. I don't really understand this limitation but it seems like one that Next chose conciously, not much we can do about that though.

Closing due to inactivity and since — seemingly — at least, we can't do much about this. My hope is that the React/Next teams support shared exports from client-component modules in the future to support colocated exports.

I've opened an issue about this with Next at https://github.com/vercel/next.js/issues/71369. From what I've seen previously (and referenced in the issue) there should have been a fix for this, which has potentially regressed?


.git directory is not found

When running the command ./mvnw test it gives the following error
[ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:4.0.5:revision (default) on project trino-storage: .git directory is not found! Please specify a valid [dotGitDirectory] in your pom.xml -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Please use git clone instead of downloading only source code.

Build was successful. How to use it with Trino? Where to copy the jar files in trino-storage/target as mentioned in Deploy section?


Python 3.10 support + package updates + more

Software upgrades:

Now supports Python 3.8+ (testing against 3.8 - 3.10). Dropped support for 3.6 (EOL) and 3.7 (EOL in June 2023).
Dockerfile works at Ubuntu 22.04 (from 18.04) and Python 3.10 (from 3.6), including Caffe installation.
Pillow >=4.2.0 to >=9.0.1 (Dockerfile on 9.4.0).
numpy >=1.17.5 to >=1.19 (Dockerfile on 1.24.1).
scikit-learn: ==0.22.1 to ==1.1.3. Loading models from older PySpacer versions should still work.
torch ==1.4.0 to ==1.13.1
torchvision ==0.5.0 to ==0.14.1
Removed wget; replaced by urllib.request usage
Removed scikit-image; wasn't being used anymore
Updated awscli, boto3, coverage, fire, tqdm (now a dev-only requirement)

More changes:

Started a CHANGELOG.md like coralnet (this PR bumps the version from 0.3.1 to 0.4.0)
Previously, config variables could be specified by a secrets.json file or by environment variables. Now a third way is available: a SPACER setting in a Django project. This makes it slightly cleaner for coralnet to configure spacer (no os.environ calls needed in coralnet settings). Also, the secrets.json method no longer uses SPACER_ prefixes for each variable name.
The LOCAL_MODELS_PATH setting is now explicitly required. It was previously not required upfront, but its absence would make some tests fail (I think this was only observable if AWS access was configured and models path was not).
PySpacer now only configures logging for fire / AWS Batch. When used as a pluggable app, it leaves the existing logging config (e.g. from coralnet) alone. This change was made by moving logging configuration statements from config.py to mailman.py.
Removed remnants of Amazon SQS interfacing, since we always use AWS Batch now, and it's a hassle to regression-test something like SQS when we don't use it ourselves anymore.
Added legacy-format tests for pyspacer 0.3.1 alongside the legacy-format tests for CoralNet beta, and renamed test_beta_regression.py to test_legacy.py
Replaced setup.py with pyproject.toml
Moved Amazon-ECR-related shell script(s) from this repo to the coralnet-system repo

At this point I think I understand how PySpacer connects to AWS Batch/ECR, how to update the version on PyPI, and in general how to maintain it as a package.

Merged, and bumped version on PyPI to 0.4.0.
Meanwhile, I added as many git tags as I could for past releases of pyspacer, double-checking against the source distributions on PyPI. I only added a tag when there seemed to be a direct match between the corresponding PyPI release and a particular commit-history point on GitHub (only checked by inspection, nothing rigorous like a checksum).
Also deleted the 1.0 tag, since it did not correspond to any PyPI release of pyspacer. It was on PR #3 I believe (preceding the first release).


JWT test failures in Istio

I have built Proxy and Istio from source on a big endian system.
While running tests, I am facing below failures:
Proxy:

//src/envoy/http/authn:authenticator_base_test
//src/envoy/http/authn:authn_utils_test
//src/envoy/http/authn:http_filter_integration_test

Istio:

mixer/test/client/istio_authn_origin_jwt_bound_origin
mixer/test/client/istio_authn_origin_jwt_bound_peer
mixer/test/client/istio_authn_peer_jwt_bound_peer

Already an issue has been raised regarding Proxy TC failures https://github.com/istio/proxy/issues/1841 , got a reply that the failures are not critical https://github.com/istio/proxy/issues/1841#issuecomment-403924482. These proxy TCs can be ignored as long as we do not use JWT for istio end-user authentication, Just want to make sure that same applicable for JWT TC failures on Istio.
Can some one please comment about the significance of these TCS, any critical functionality would be affected if these are neglected?
Is mTLS reliable for authentication if we do not use JWT?
Version
proxy version: 1.0.5
istioctl version: 1.0.5
kubectl version: 1.11.5

mTLS should be reliable enough, (JWT provides more flexibility though)
Do you know why these test fail? Is it related to the big endian system?
/cc @diemtvu

@yangminzhu Thanks for the info.
we could fix //src/istio/mixerclient/referenced.cc TC by making endianness related changes,
debugging is in progress for remaining TC faiures.

Closing as I think @chakravarthy392 has found the way to fix it. Feel free to reopen if necessary.


Update "Shader compilation" in README

The example was a bit outdated:

Used the "package" terminology which has been replaced by "module"
The import didn't work for me
Missing parameter from ShaderCompileStep.create()

Side note: I don't really understand the purpose of the output flag parameter. What else can it be other than "-o"?
Side note 2: I'm new to Zig, and for some reason the alignment stuff doesn't work for me. I have to use the compiled shaders with @ptrCast(@alignCast(&my_shader)); the @as([*]const u32, @ptrCast(&my_shader)) approach doesn't work. If I knew the right way to do this, I would have included it in the example snippet.

Thanks


What is the actual signature for string.Split() in APIM policy code?

I'm attempting to use String.Split in a policy fragment, but I do not understand that is the actual signature of the method, and/or what are the available overloads, since nothing appears to match to any .NET SDK reference.
For example, this appears to be valid (why are all those parameters accepted? what do they do?):
<fragment>
    <set-header name="x-whatever" exists-action="override">
        <value>@{
            string s = "randomstring";
            s.Split(',', '1', '2', '3', '4', '5', '6', '7', '8');
            return "";
        }</value>
    </set-header>
</fragment>

But this is not:
<fragment>
    <set-header name="x-whatever" exists-action="override">
        <value>@{
            string s = "randomstring";
            s.Split(',', 2);
            return "";
        }</value>
    </set-header>
</fragment>

The error given is
One or more fields contain incorrect values:
Details

    Error in element 'set-header' on line 2, column 6: Argument 2: cannot convert from 'int' to 'char'

Looking at various versions of the .NET SDK, I do not see a single signature/overload that accepts char for infinite amount as params.
But I do see a Split(Char, Int32, StringSplitOptions) which is what I actually want, but apparently it's not available in the APIM policy version of the sdk?
As a sidenote, which SDK is the APIM policy version based on anyway? I couldn't find such information anywhere, but for example StringSplitOptions.TrimEntries seems to also be unavailable, which seems to indicate some older version.

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

ID: 8fb2baf1-dc39-74ac-67db-0416acc67810
Version Independent ID: 448a8302-6799-d291-16a9-06bfa7654080
Content: String.Split Method (System)
Content Source: xml/System/String.xml
Service: dotnet-api
Sub-service: system
GitHub Login: @dotnet-bot
Microsoft Alias: dotnetcontent

@linas-ipxo
Thanks for your feedback! We will investigate and update as appropriate.

@linas-ipxo
Thank you for bringing this to our attention.
I've delegated this to content author, who will review it and offer their insightful opinions.

@tpavanbalaji This needs to be assigned to the owner of the https://learn.microsoft.com/en-us/azure/api-management/api-management-policy-expressions doc. That looks like @dlepow.

@dlepow
Please review.

Thanks for raising this issue. We have a backlog work item to update the guidance in this article to clarify the .NET SDK version that the policy expressions are based on. I have added your feedback to the work item to consider for updates in an upcoming doc sprint. According to our usual process, I'll now proceed to close this issue.
#please-close


windows_package does not perform remote install of exe on Windows 2012 R2

windows_package does not perform remote windows install on Windows of a exe  on windows 2012 R2
Error Message:
<IP_ADDRESS> [2017-08-30T15:19:32+00:00] FATAL: Mixlib::ShellOut::CommandTimeout: windows_package[dyna] (dyna::agent-windows line 21) had an error: Mixlib::ShellOut::CommandTimeout: command timed out:
<IP_ADDRESS> ---- Begin output of start "" /wait "c:\dyna.exe"   /q /n & exit %%%%ERRORLEVEL%%%% ----
<IP_ADDRESS> STDOUT:
<IP_ADDRESS> STDERR:
<IP_ADDRESS> ---- End output of start "" /wait "c:\dyna.exe"   /q /n & exit %%%%ERRORLEVEL%%%% ----
<IP_ADDRESS>
<IP_ADDRESS> ProcessId: 5108
<IP_ADDRESS> app_name: C:\Windows\system32\cmd.exe
<IP_ADDRESS> command_line: cmd /c "start "" /wait "c:\dyna.exe"   /q /n & exit %%%%ERRORLEVEL%%%%"
<IP_ADDRESS> timeout: 600
ERROR: Failed to execute command on <IP_ADDRESS> return code 1
This is below configuration of my chef environment:
Chef Development Kit Version: 1.4.3
chef-client version: 12.19.36
delivery version: master (41b94ffb5efd33723cf72a89bf4d273c8151c9dc)
berks version: 5.6.4
kitchen version: 1.16.0
inspec version: 1.25.1
I have installed winrm-elevated -v 1.1.0 gem as well
Below is the command I am trying to execute
knife winrm --winrm-shell elevated name:client2012 -a ipaddress -x admin -P password@123 --config C:\Users\admin\starter_kit\chef-repo.chef\knife.rb chef-client
could you please advice

@akramkm the error message here was Mixlib::ShellOut::CommandTimeout. When running this installer manually did it take around 10 minutes or more? The default timeout is 600 seconds. You can set a longer timeout using the timeout property of the windows_package resource.
https://docs.chef.io/resource_windows_package.html#properties

Closing this issue due to age.
@akramkm Feel free to drop by our Chef Community Slack to discuss this issue if you still encounter it.


Added http method filter to request handlers

RequestHandler can now filter for specific HTTP methods that it is handling.
Add a migration to set a default filter that doesn't filter at all to preserve existing semantics.
Added test case for checking if the handler filters correctly.

Hi, @coolya! Thank you for PR!
I've looked on it and got few questions:

Do we need explicit any filtering node? Introducing this makes language model more complex and migration required. I think we can make validMethod child optional and generate any predicate if a child is absent.
Do you expect something else except HttpMethod.SOMETHING expressions in SpecificMethodsFilter array? If not, it's better to avoid netty stuff in http-support DSL since it's undiscoverable and exposes dependency on netty lib. I think it's better to replace an expression with some concept that contains enum property with GET, POST and other options.

Hi,
I also have a use case for this. Regarding your questions I think for 1) an explicit any is not required but would be nice. For 2) I think there should be a way to get to the low-level netty.
I currently have a use case where I have to register additional servlets (e.g. to do server sent event or websockets). In mbeddr I created an extension point for that as a temporary workaround but it would be nice if we could get rid of our httpsupport and just use yours.

Hi, @bkolb!
Regarding "any", we can just show in the editor the "any" keyword (that can be set as the empty text for the cell) having no "any" node under the hood. I think it covers your wishes, isn't it?
Talking about access to low-level netty, by "avoid netty stuff in http-support DSL" I didn't mean that we are going to get rid of all possibilities to access to the netty lib. Actually, I meant that a DSL user doesn't require to know the netty lib to work with http-support DSL. And this contradicts that a user editing SpecificMethodsFilter concept has to specify expressions of the HttpMethod type that is right from the netty lib. So the perfect scenario is when a user just writes GET, POST and it is generated to proper expressions. I hope you got my idea.

OK. Sounds good.
Just to re-emphasize what we want to achieve:

get rid of the mbeddr http support. This means that we have to be able to write a migration script from our language to yours. In this sense yours should be a superset of ours (or at least on the same level)
Have an extension point (or other means) where I can register my own servlets, knowing that I have to deal with low level api of some sort.

@bkolb IDEA platform already has an extension point where you can register your servlets. To do so you should implement org.jetbrains.ide.HttpRequestHandler class and register your implementation in com.intellij.httpRequestHandler EP. Also, you might be interested in implementing org.jetbrains.ide.RestService class. Does this extension point satisfy your wishes?
@coolya Are you going to introduce / operator on a request parameter on canHandle/handle queries? If so, it might be a good solution if it covers all your needs.

Hi, @coolya, @bkolb!
Can I ask you to reply yto @qradimir? This request is open for quite a long time and we should probably resolve it.

Hi,
Sorry for the delay.
I think that should do for my use case.
Best,
Bernd

@qradimir what should we do with this pull-request?

I think we can abandon it. We will try to migrate the mbeddr http support to the current MPS http integration. If we should encounter particular blockers we will get back with specific requests.

Closing this pull request as "rejected" based on comment from @coolya


platform_check.php triggers error on php 7.3.  Requirement in composer.json says 7.3

After running composer install in the plugin folder, the error goes away, but the file platform_check.php didn't change.
I read that that is an composer v2 feature. So I downloaded composer v2 and ran the release instructions https://github.com/spatie/wordpress-ray#release-instructions-for-maintainers which again did not change platform_check.php (which I think would / should change, right?)
https://github.com/spatie/wordpress-ray/blob/master/vendor/composer/platform_check.php
https://github.com/spatie/wordpress-ray/blob/master/composer.json#L21
For now just reporting this, because I have an release of a project to do, but will come back at this at this next week if it's not fixed by then.
Kind regards,
Jaime

I am running into this issue as well. After installing Ray as a must-use WordPress plugin via Composer (v2), I get the PHP error
Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.20-1+ubuntu18.04.1+deb.sury.org+1. in /file/path/here/platform_check.php on line 24

However, the requirements say PHP 7.3+ should work.
I tried reinstalling Ray as a regular plugin with the same result. I also tried manually altering line 7 in platform_check.php from if (!(PHP_VERSION_ID >= 70400)) to if (!(PHP_VERSION_ID >= 70300)) just to see what would happen. The Composer error went away, but then running a simple Ray call ray('test'); resulted in a new error:
Parse error: syntax error, unexpected 'bool' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /file/path/here/mu-plugins/spatie-ray/vendor/spatie/backtrace/src/Backtrace.php on line 10.
Are the published requirements incorrect, or is something else not right here?

Thanks for reporting!
This problem should be solved in v1.2.4 which was just released.

Thank you for the swift fix!


#5 Extend with Buld action and Image generator

#5

Could you check this output of GitHub Actions ? It looks not good, it has extra slash(/).
Everything else looks good. Especially, It is very good to add test 👍

I looked at it, but it needs a bit more complexity to the input validation. I tried to avoid that and just tested it with too many slashes in every input.  But I agree the output would look better.
I have a look tomorrow

@flat35hd99 , sorry I lied ;) i looked at it today 🎉

Hi, could you have a look at the Pr

Hey I just wanted to comment and hopefully help. I think @flat35hd99 is saying when you do a basic request for png file depending on your file it doesn't look good, not that there are extra /'s in the file name. This is because by default openscad when trying to render pngs using the command line just does a "preview mode(F5)" render. If you add the option into the command line --render it will actually do it as if you did a full render(F6) like what you do when you want to export the actual stl. I have tested this in my repo with some surfaces that were "differenced" away right at the surface they look bad. currently I'm using the work around of adding the --render option manually but if you added it automatically in entrypoint.sh in your if "$target_format_for_bulk" == "png" code block into the $options then they would always come out better looking

Before:

After: (with --render defined in the options in my action)


[Azure IoT Python SDK V2] Availability feature Cloud-to-device messaging

Hi,
I plan to use version V2 of "Azure IoT Python SDK".
Following Git Hub page :
https://github.com/Azure/azure-iot-sdk-python
feature "Cloud-to-device messaging" is currently in status "feature planned but not yet supported".
When this feature will be supported ?
Regards,
Damien KLOTZ

@damienklotz77 We are working on being a resolution to this issue.  There are a few technical hurdles that we need to solve for this.  I will keep this issue up to date on when this feature is available.

@jebrando Is there any rough timeline when it will be available?

@HoLue I have a PR to add this now.  This will have to go through our check in process, but I envision that by next week this will be in and then a release will happen shortly after that.  If any issues arise I will report back on this thread.

Thank you for the information. I'm looking forward to it.

Cloud-to-device messaging is now supported in the SDK.  You can view the sample here.  If you have any question please open an issue.

@HoLue, @damienklotz77, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey


Room members in edition mode : the Add button should be hidden

https://github.com/vector-im/vector-android/commit/ff204cb91c52199051365e7cf9c57748e05df751


Feature: Support initial values for form

Environment

OS: Ubuntu 16.04
Node: 10.4.1
NPM: 6.1.0
react-advanaced-form: 1.3.2

What
RAF should provide feature to enable setting initial data for whole form (not just for field).
Why
It is a common use case to use forms for data instance management / editing already existing data.
How
How to reproduce the issue? / How do you see the implementation of the feature?
I would like to propose a new prop "initialData" (to be consistent with field initialData), where developer can provide object for the form with matching values. After some changes to form, the reset function should bring the initial data back.
Keynotes
It's a common scenario to get some data from server and then fulfill a form with it to let user put some changes.

Thank you for submitting the feature request, @Filson14.
This is a good suggestion, and I think we should bring it in the upcoming releases.
We still need to think more about the spec, but at the moment I would suggest the following:
API
const initialValues = {
  [fieldPath]: initialValue,
  firstName: 'foo',
  lastName: 'bar',
  billingData: {
    address: 'Baker st.'
  },
}

<Form initialValues={initialValues}>
  <Input name="firstName" /> // "foo"
  <Input name="lastName" initialValue="custom" /> // "custom"
  <Field.Group name="billingData">
    <Input name="address" /> // "Baker st."
  </Field.Group>
</Form>

General statements

Initial values is an object of the { [fieldPath: string]: value } shape that is provided as a value to initialValues prop of the Form component.
Initial values object applies the values via deep merge into the fields Map of the Form, that implies that field groups must be provided explicitly.
When field component has its own initialValue prop specified, it takes the higher priority over the initial value from the initialValues prop of the form.

Open questions

[ ] Does initialValues implies that the fields are uncontrolled? Put differently: how to provide initial values an state that the fields must be controlled? Having alternate Form.props.values?

Right now I am working on the #250 pull request, which introduces major changes to the internals of the library. I wouldn't recommend to start any feature unless those changes are merged into master branch, to prevent merge conflicts.

Not sure if I understand correctly the Open Question. I'm pretty new in react so it could be lack of knowledge. How form's initialValues could make fields be uncontrolled? It may just be the mechanism to set first value and the later synchronisation could be handled as is now. Although I have not dive deep into the source code, so it's just a consideration.

@Filson14 What I meant is that initialValue prop on inputs in React implies the input is uncontrolled. value, on the other hand, means that the input is controlled.
That is why I'm cautious regarding the expectations how the prop is intended to work. Probably, it's safe to start from initialValues and uncontrolled inputs. Making an input controlled is an explicit behavior, thus I wouldn't assume it by introducing something like values prop on the form.

This feature will be included in the next minor release 1.5.0. Looking forward to see it running.

1.5.0 has been published! Update and use this, and a few other new features. Refer to the documentation on the API and usage examples.

@Filson14 I would be very thankful if you had some time to test this functionality, as well as the newest release. Please let me know if anything. Thanks.

For sure! Unfortunately I won't be able to do this right now, sorry (higher priorities :wink:).

Hi, I have been using the initial values and it works great. Is there any way to re-initialize the form with newer initial values? e.g. I navigated to the form page, having a loading screen with ongoing fetch. Form gets rendered with outdated values (passed down from store). Store gets updated, component re-rendered, new initialValues come down, but nothing happens. I also tried triggering form reset after new initialValues come down. Seems they are really initial. I could change my approach to only navigate to the form after loading the data to get around this. Did I miss something? Thanks for the great library! Loving it so far!

Hi, @h0wXD. Thanks for the feedback.
What you have described is a controlled input pattern. That is not designed to be solved with update of initial values. Although it is tempting, do not try to force controlled behavior for initialValues, this violates how data flows in your form.
Instead, you can make all fields controlled, while each value for a field is stored in Redux store, for example.
import React from 'react'
import { connect } from 'react-redux'
import { Form } from 'react-advanced-form'
import { Input, Checkbox } from './your-fields'
import { updateFieldValue } from './reducer/actions'

class MyExample extends React.Component {
  handleFieldChange = ({ nextValue, fieldProps }) => {
    this.props.updateFieldValue({ [fieldProps.name]: nextValue })
  }

  render() {
    const { values } = this.props // field values bind via Redux connector

    return (
      <Form>
        <Input name="username" value={values.username} onChange={this.handleFieldChange} />
        <Checkbox name="foo" checked={values.foo} onChange={this.handleFieldChange} />
      </Form>
    )
  }
}

export default connect(state => ({
  values: state.values,
}), { updateFieldValue })(MyExample)

Making fields values controlled also means you need to handle their updates (see this.handleFieldChange method). You can still use initialValue/initialValues with controlled fields.
Hope this helps.

Hi @kettanaito thanks for the quick update and code example.
You are right with the controlled behavior. Somehow I was expecting the form to reset entirely if a new instance of initialValues was passed down (a new 'initial' render, not really controlled behavior, because all form/validation state would be gone). Thanks for clarifying.
I like react-advanced-forms because for it's simplicity and not having to manage the form data / state. The solution I went with is not rendering the form before initialValues being loaded, and show a loading screen. With this is approach everything is working as expected. Thanks!

@h0wXD I am glad you have manage it!


The texture of Cole from example project is not shown

Hi.
I tried to run the example projects.  The actions work well, also Cole is just a rectangle, there are no sprites and no animation is visible. See the screenshot attached.
I tried to play around with the Sprite3D options, reimport the spritesheet.png, it did not help.
I would really appreciate if you suggest how to make it visible.

Hi @o-fedorov, thanks for getting interested in the project. I downloaded and tested importing all the examples now in Godot 3.2.2 and everything worked fine. Could you give me more information from your system?
Particularly:

Operative System
GODOT version you are using
The URL to one of the repos that do not work (thought I think you are getting problems with all of them, no?)

Thanks!

OS: macOS Big Sur v11.6 (Intel).
Godot Engine v3.3.3.stable.official [b973f997f]
The URL for the repos: all from the QuickStart documentation:

https://github.com/gagdiez/PACgd/archive/main.zip
https://github.com/gagdiez/PACgd_examples/archive/main.zip

I suppose the main difference is the version of Godot Engine. Let me try another one to figure this out.

I just checked. It does work in Godot 3.2.2, but starting from the next version (Godot 3.2.3) Cole becomes just a rectangle.

Indeed, I checked and the problem is in the "materials" property of the Sprite. If you disable it, it goes back to normal. I guess they changed how the materials behave for 2d images. I will take a closer look later and fix all the examples. Thanks for finding the error!


pull request for e2e test at 12/07/2016 05:45:01

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.