Crash: Container.swift line 242 Container.resolve<A, B>(entry:invoker:)

I am getting the following errors. Let me know what am I doing wrong:-
0  libswiftCore.dylib             0x107020d38 specialized _assertionFailure(_:_:file:line:flags:) + 164
1  libswiftCore.dylib             0x106eb808c default argument 1 of precondition(_:_:file:line:) + 38
2  Swinject                       0x106c73d20 Container.resolve<A, B>(entry:invoker:) (Container.swift:242)
3  Swinject                       0x106c72384 Container._resolve<A, B>(name:option:invoker:) (Container.swift:192)
4  Swinject                       0x106c74718 Container.resolve<A>(_:name:) (Container.swift:280)
5  Swinject                       0x106c747d8 protocol witness for Resolver.resolve<A>(_:) in conformance Container (Container.swift)
6  ABC                        0x100fddb94 specialized ReminderClient.unscheduleAllExpiredNotifications() -> Promise<Bool> (ReminderClient.swift:151)
7  ABC                        0x100fcf940 specialized AppDelegate.applicationDidBecomeActive(UIApplication) -> () (ReminderClient.swift:21)
8  ABC                        0x100fc00a8 @objc AppDelegate.applicationDidBecomeActive(UIApplication) -> () (AppDelegate.swift)
9  UIKitCore                      0x227ae6a84 -[UIApplication _stopDeactivatingForReason:] + 1256
10 UIKitCore                      0x2273932a0 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 476
11 UIKitCore                      0x227394100 _performActionsWithDelayForTransitionContext + 112
12 UIKitCore                      0x227393058 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 248
13 UIKitCore                      0x227397d9c -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 368
14 UIKitCore                      0x2276d9118 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 468
15 FrontBoardServices             0x1fd71c5a0 __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke.359 + 228
16 libdispatch.dylib              0x1fa724484 _dispatch_client_callout + 16
17 libdispatch.dylib              0x1fa6c7e58 _dispatch_block_invoke_direct$VARIANT$mp + 224
18 FrontBoardServices             0x1fd75a640 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
19 FrontBoardServices             0x1fd75a2cc -[FBSSerialQueue _performNext] + 416
20 FrontBoardServices             0x1fd75a8e8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
21 CoreFoundation                 0x1fac7a5b8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
22 CoreFoundation                 0x1fac7a538 __CFRunLoopDoSource0 + 88
23 CoreFoundation                 0x1fac79e1c __CFRunLoopDoSources0 + 176
24 CoreFoundation                 0x1fac74ce8 __CFRunLoopRun + 1040
25 CoreFoundation                 0x1fac745b8 CFRunLoopRunSpecific + 436
26 GraphicsServices               0x1fcee8584 GSEventRunModal + 100
27 UIKitCore                      0x227af0bc8 UIApplicationMain + 212
28 ABC                        0x100ef1c54 main (AppDelegate.swift:69)
29 libdyld.dylib                  0x1fa734b94 start + 4

@jakubvano Please help.

@jakubvano Did you check this issue. I am not sure what might have caused it.

It is very little information to go on. My first instinct is that it might be related to unsafe resolution from multiple threads...
Is this a bug in a new project, or it started manifesting after upgrading Swinject / Swift version? What version of Swinject are you using? Are you accessing Container from multiple threads?

@jakubvano  Even we are facing the container related since last update. Yes we too are accessing container from multiple threads. We are getting this crash so frequently. is a new bug?
tag used - > github "Swinject/Swinject" "2.5.0"
Crash :

Crashed: com.apple.main-thread
0  libswiftCore.dylib             0x105474724 _T0s12Zip2SequenceV12makeIterators0aD0Vy0D0QzAFQy_GyF + 38492
1  libswiftCore.dylib             0x1053102a8 T0s17_assertionFailures5NeverOs12StaticStringV_SSAE4fileSu4lines6UInt32V5flagstF + 40
2  Swinject                       0x104b85e98 Container.resolve<A, B>(entry:invoker:) (Container.swift:242)
3  Swinject                       0x104b84150 Container.resolve<A, B>(name:option:invoker:) (Container.swift:192)
4  Swinject                       0x104b8440c Container.resolve(:name:) (Container.swift:280)
5  Swinject                       0x104b86a60 protocol witness for Resolver.resolve(:) in conformance Container (Container.swift)
6  Rooms                          0x104857b14 T08Swinject8Resolver_p7Crystal25HuddleCalendarSourcePrismCIegio_AaB_pAEIegir_TR041_T07Crystal16ServicesAssemblyC014registerd11B0yyFAA0E19efg11C8Swinject8B8_pcfU59_Tf3nnpf_n (ServicesAssembly.swift:279)
7  Swinject                       0x104b88ee8 T08Swinject8Resolver_pxIegir_AaB_pypIegir_lTRTA (Container.swift)
8  Swinject                       0x104b869b0 partial apply for closure #1 in Container.resolve(:name:) (Container.swift:280)
9  Swinject                       0x104b867e0 partial apply for thunk for @callee_guaranteed (@owned @callee_guaranteed (@in B) -> (@out Any)) -> (@out Any) (Container.swift)
10 Swinject                       0x104b858e0 Container.resolve<A, B>(entry:invoker:) (Container.swift:304)
11 Swinject                       0x104b84150 Container.resolve<A, B>(name:option:invoker:) (Container.swift:192)
12 Swinject                       0x104b8440c Container.resolve(:name:) (Container.swift:280)
13 Rooms                          0x104951fc0 DataSource.resumePoll() (DataSource.swift:59)
14 Rooms                          0x10495278c protocol witness for MeetingsDataSource.resumePoll() in conformance DataSource (DataSource.swift)
15 Rooms                          0x104934914 @objc MeeViewController.viewWillAppear(:) (MeeViewController.swift:58)
16 UIKit                          0x18ec1965c -[UIViewController _setViewAppearState:isAnimating:] + 616
17 UIKit                          0x18ee72e6c __52-[UIViewController _setViewAppearState:isAnimating:]_block_invoke + 264
18 CoreFoundation                 0x184e56378 -[__NSArrayI enumerateObjectsWithOptions:usingBlock:] + 144
19 UIKit                          0x18ec198e8 -[UIViewController setViewAppearState:isAnimating:] + 1268
20 UIKit                          0x18ec193cc -[UIViewController __viewWillAppear:] + 140
21 UIKit                          0x18ebe4a64 -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 1144
22 UIKit                          0x18ebe45d8 -[UITabBarController transitionFromViewController:toViewController:] + 68
23 UIKit                          0x18ebe4434 -[UITabBarController setSelectedViewController:] + 400
24 UIKit                          0x18ebe3fdc -[UITabBarController setSelectedIndex:] + 124
25 Rooms                          0x10496a3bc ContentShareViewController.stopSharing() (ViewController.swift:308)
26 Rooms                          0x104969ca0 closure #1 in ContentShareViewController.subscribeToMeetingStateUpdates() (ContentShareViewController.swift:280)
27 Rooms                          0x104973274 T07Crystal9CallStateOIegy_ACIegi_TR (InMeetingViewController.swift)
28 RxSwift                        0x104f384c4 closure #1 in ObservableType.subscribe(onNext:onError:onCompleted:onDisposed:) (ObservableType+Extensions.swift:65)
29 RxSwift                        0x104f38744 partial apply for closure #1 in ObservableType.subscribe(onNext:onError:onCompleted:onDisposed:) (ObservableType+Extensions.swift)
30 RxSwift                        0x104f536a8 AnonymousObserver.onCore(:) (AnonymousObserver.swift:24)
31 RxSwift                        0x104f39794 ObserverBase.on(:) (ObserverBase.swift:25)
32 RxSwift                        0x104f399bc protocol witness for ObserverType.on(:) in conformance ObserverBase (ObserverBase.swift)
33 RxSwift                        0x104fb4004 closure #1 in ObserveOnSerialDispatchQueueSink.init(scheduler:observer:cancel:) (ObserveOn.swift:182)
34 RxSwift                        0x104fb4bc0 T07RxSwift32ObserveOnSerialDispatchQueueSink33_277A93ABA8477198C125F3F26B2D4B62LLCyxGAA5EventOy1EQzGAA10Disposable_pIegxir_AE_AJtAaK_pIegir_AA12ObserverTypeRzlTRTA (ObserveOn.swift)
35 RxSwift                        0x104f2ba18 closure #1 in MainScheduler.scheduleInternal(:action:) (MainScheduler.swift:61)
36 RxSwift                        0x104f1fc10 _T0Ieg_IeyB_TR (DispatchQueueConfiguration.swift)
37 libdispatch.dylib              0x184870aa0 _dispatch_call_block_and_release + 24
38 libdispatch.dylib              0x184870a60 _dispatch_client_callout + 16
39 libdispatch.dylib              0x18487d65c _dispatch_main_queue_callback_4CF$VARIANT$mp + 1012
40 CoreFoundation                 0x184f27070 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12
41 CoreFoundation                 0x184f24bc8 __CFRunLoopRun + 2272
42 CoreFoundation                 0x184e44da8 CFRunLoopRunSpecific + 552
43 GraphicsServices               0x186e2a020 GSEventRunModal + 100
44 UIKit                          0x18ee64758 UIApplicationMain + 236
45 Rooms                          0x1047caa3c main (SamlAuthRequest.swift:16)
46 libdyld.dylib                  0x1848d5fc0 start + 4

@jakubvano I have added the code snippet via which this issue is happening. I hope this might help. Also, let me know what kind of information you specifically need.
Code:
Initiated on App did become active:

 ReminderClient.shared.unscheduleAllExpiredNotifications()
            .done{successful -> Void in Log.info("Expired reminders cleared successfully \(successful)")}
            .catch{error -> Void in Log.error("Error in clearing expired reminders \(error)")}
    }

func unscheduleAllExpiredNotifications() -> Promise<Bool> {
        guard let reminderManagerUseCase = assembler.resolver.resolve(ReminderManagerProtocol.self) else {
            Log.error("Reminder Manager Initialization Falied")
            return Promise<Bool>(error: ReminderClientError.initializationFalied)
        }
        return reminderManagerUseCase.unscheduleAllExpiredNotifications()
    }

Registration code in Assembly:
            return ReminderManager(
                reminderCRUDUseCase: r.resolve(ReminderCRUDUseCaseProtocol.self)!,
                scheduler : r.resolve(SchedulerUseCaseProtocol.self)!)
        }

        container.register(SchedulerUseCaseProtocol.self) { r -> SchedulerUseCaseProtocol in
            SchedulerUseCase(crudUseCase : r.resolve(ReminderCRUDUseCaseProtocol.self)!)
        }

container.register(ReminderCRUDUseCaseProtocol.self) { (r) -> ReminderCRUDUseCaseProtocol in
            let configiration =  r.resolve(PersistantStorageConfiguration.self, name: RemainderAssemblyKey.PersistantStorageConfiguration.rawValue)!
            return ReminderUseCase(storage: r.resolve(StorageContextProtocol.self,
                                                    argument: ConfigurationType.basic(info: configiration))!)
        }

Container.Swift on line 242
fileprivate var maxResolutionDepth: Int { return 200 }

    fileprivate func incrementResolutionDepth() {
        if resolutionDepth == 0 && currentObjectGraph == nil {
            currentObjectGraph = GraphIdentifier()
        }
        guard resolutionDepth < maxResolutionDepth else {
            fatalError("Infinite recursive call for circular dependency has been detected. " +
                "To avoid the infinite call, 'initCompleted' handler should be used to inject circular dependency.")
        }
        resolutionDepth += 1
    }

    fileprivate func decrementResolutionDepth() {
        assert(resolutionDepth > 0, "The depth cannot be negative.")

        resolutionDepth -= 1
        if resolutionDepth == 0 {
            services.values.forEach { $0.storage.graphResolutionCompleted() }
            self.currentObjectGraph = nil
        }
    }

@jakubvano Please tell me when do we get this error:-
guard resolutionDepth < maxResolutionDepth else {
            fatalError("Infinite recursive call for circular dependency has been detected. " +
                "To avoid the infinite call, 'initCompleted' handler should be used to inject circular dependency.")
        }

What all scenario can make this happen?

@jakubvano Please tell me when do we get this error:-
            fatalError("Infinite recursive call for circular dependency has been detected. " +
                "To avoid the infinite call, 'initCompleted' handler should be used to inject circular dependency.")
        }```
What all scenario can make this happen?

@jakubvano Just now able to reproduce this issue:
`Swinject was compiled with optimization - stepping may behave oddly; variables may not be available.

thread #1, queue = 'com.apple.main-thread', stop reason = Fatal error:
frame #0: 0x00000001041258bc libswiftCore.dylib_swift_runtime_on_report   frame #1: 0x000000010416ffc4 libswiftCore.dylib_swift_stdlib_reportFatalErrorInFile + 128
frame #2: 0x0000000103ed2460 libswiftCore.dylibfunction signature specialization <Arg[1] = [Closure Propagated : reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> () to @escaping @callee_guaranteed (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> (@out ()), Argument Types : [@callee_guaranteed (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> ()]> of generic specialization <()> of Swift.StaticString.withUTF8Buffer<A>((Swift.UnsafeBufferPointer<Swift.UInt8>) -> A) -> A + 52   frame #3: 0x0000000104113fe0 libswiftCore.dylibpartial apply forwarder for closure #1 (Swift.UnsafeBufferPointer<Swift.UInt8>) -> () in Swift.assertionFailure(: Swift.StaticString, _: Swift.String, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never + 280
frame #4: 0x0000000103ed2460 libswiftCore.dylibfunction signature specialization <Arg[1] = [Closure Propagated : reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> () to @escaping @callee_guaranteed (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> (@out ()), Argument Types : [@callee_guaranteed (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> ()]> of generic specialization <()> of Swift.StaticString.withUTF8Buffer<A>((Swift.UnsafeBufferPointer<Swift.UInt8>) -> A) -> A + 52   frame #5: 0x000000010406a19c libswiftCore.dylibfunction signature specialization <Arg[1] = Exploded> of Swift.assertionFailure(: Swift.StaticString, _: Swift.String, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never + 156
frame #6: 0x0000000103ed1db8 libswiftCore.dylibSwift._assertionFailure(_: Swift.StaticString, _: Swift.String, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never + 32   frame #7: 0x0000000101ce91b4 SwinjectContainer.resolve<A, B>(entry=0x00000001c40d2bb0, invoker=0x0000000101ce9948 Swinject`partial apply forwarder for reabstraction thunk helper <A, B> from @callee_guaranteed (@guaranteed @escaping @callee_guaranteed (@in_guaranteed B) -> (@out Any)) -> (@out Any) to @escaping @callee_guaranteed (@in_guaranteed @escaping @callee_guaranteed (@in_guaranteed B) -> (@out Any)) -> (@out Any) at , self=0x00000001c40d26e0) at Container.swift:0 [opt]

frame #8: 0x0000000101ce6cc0 SwinjectContainer._resolve<A, B>(name=nil, option=nil, invoker=0x0000000101ce9ad4 Swinjectpartial apply forwarder for closure #1 ((Swinject.Resolver) -> Any) -> Any in Swinject.Container.resolve(_: A.Type, name: Swift.Optional<Swift.String>) -> Swift.Optional at , self=0x00000001c40d26e0) at Container.swift:192 [opt]
frame #9: 0x0000000101ce6f38 SwinjectContainer.resolve<A>(name=nil, self=0x00000001c40d26e0) at Container.swift:280 [opt] frame #10: 0x0000000100c56158 CrystalAssembly.reqresLogger.getter(self=0x00000001c400a770) at Assembly.swift:492
frame #11: 0x0000000100d8358c CrystalLogRequest(request=Foundation.URLRequest @ 0x000000016f2edaa8) at ReqresLogger.swift:19 frame #12: 0x0000000100da00e4 CrystalBaseAPI.asObservable(request=Foundation.URLRequest @ 0x000000016f2edb68, sessionManager=0x00000001c40da1d0, self=0x00000001c02591d0) at BaseAPI.swift:65
frame #13: 0x0000000100da0074 CrystalBaseAPI.asObservable(request=Foundation.URLRequest @ 0x000000016f2edbb8, self=0x00000001c02591d0) at BaseAPI.swift:61 frame #14: 0x0000000100da05b0 CrystalBaseAPI.responseObservable(queue=0x00000001049b1680, request=Foundation.URLRequest @ 0x000000016f2edc50, self=0x00000001c02591d0) at BaseAPI.swift:75
frame #15: 0x0000000100ebe4d0 CrystalPubnubStatusAPI.sendPubnubStatusToPolaris(crystalId="c07251ba-d6", withStatus="CONNECTED", errorMessage="PubNub is reachable", self=0x00000001c02591d0) at PubnubStatusAPI.swift:47 frame #16: 0x0000000100dae81c CrystalPubnubStatusController.sendConnectedPubnubStatusToPolaris(crystalId="c07251ba-d6", self=0x00000001c41191a0) at PubnubStatusController.swift:63
frame #17: 0x0000000100daddd4 CrystalPubnubStatusController.sendPubnubStatusToPolaris(withStatus=Connected, self=0x00000001c41191a0) at PubnubStatusController.swift:45 frame #18: 0x0000000100dadb90 Crystalclosure #1 in PubnubStatusController.observeConnectionStatus(connectivity=Connected, self=0x00000001c41191a0) at PubnubStatusController.swift:38
frame #19: 0x0000000100b6fc78 Crystalthunk for @escaping @callee_guaranteed (@unowned RTConnectionStatus) -> () at <compiler-generated>:0 frame #20: 0x00000001029f8f1c RxSwiftclosure #1 in ObservableType.subscribe(event=, onNext=0x0000000100dae094 Crystalpartial apply forwarder for reabstraction thunk helper from @escaping @callee_guaranteed (@unowned Crystal.RTConnectionStatus) -> () to @escaping @callee_guaranteed (@in_guaranteed Crystal.RTConnectionStatus) -> () at <compiler-generated>, onError=nil, callStack=0 values, disposable=Disposable @ 0x00000001c447e9d0, onCompleted=0x0000000100dae0b0 Crystalpartial apply forwarder for closure #2 () -> () in Crystal.PubnubStatusController.(observeConnectionStatus in FBD2F414816253B6BE52454914D800D7)() -> () at ) at ObservableType+Extensions.swift:65 [opt]
frame #21: 0x00000001029f911c RxSwiftpartial apply for closure #1 in ObservableType.subscribe(onNext:onError:onCompleted:onDisposed:) at <compiler-generated>:0 [opt] frame #22: 0x0000000102a10c9c RxSwiftAnonymousObserver.onCore(event=, self=) at AnonymousObserver.swift:24 [opt]
frame #23: 0x00000001029fa060 RxSwiftObserverBase.on(event=<unavailable>, self=0x00000001c425a940) at ObserverBase.swift:0 [opt] frame #24: 0x00000001029fa1f8 RxSwiftprotocol witness for ObserverType.on(:) in conformance ObserverBase at :0 [opt]
frame #25: 0x0000000102a65818 RxSwiftclosure #1 in ObserveOnSerialDispatchQueueSink.init(pair=(RxSwift.ObserveOnSerialDispatchQueueSink<O>, RxSwift.Event<O.E>) @ scalar) at ObserveOn.swift:182 [opt] frame #26: 0x0000000102a664c0 RxSwiftpartial apply for thunk for @escaping @callee_guaranteed (@guaranteed ObserveOnSerialDispatchQueueSink, @in_guaranteed Event<A.E>) -> (@out Disposable) [inlined] reabstraction thunk helper  from @escaping @callee_guaranteed (@guaranteed RxSwift.(ObserveOnSerialDispatchQueueSink in _277A93ABA8477198C125F3F26B2D4B62), @in_guaranteed RxSwift.Event<A.E>) -> (@out RxSwift.Disposable) to @escaping @callee_guaranteed (@in_guaranteed (RxSwift.(ObserveOnSerialDispatchQueueSink in _277A93ABA8477198C125F3F26B2D4B62), RxSwift.Event<A.E>)) -> (@out RxSwift.Disposable) at :0 [opt]
frame #27: 0x0000000102a66458 RxSwiftpartial apply for thunk for @escaping @callee_guaranteed (@guaranteed ObserveOnSerialDispatchQueueSink<A>, @in_guaranteed Event<A.E>) -> (@out Disposable) at <compiler-generated>:0 [opt] frame #28: 0x00000001029ee6e4 RxSwiftclosure #1 in MainScheduler.scheduleInternal(cancel=0x00000001c428efb0, action=0x0000000102a6642c RxSwiftpartial apply forwarder for reabstraction thunk helper <A where A: RxSwift.ObserverType> from @escaping @callee_guaranteed (@guaranteed RxSwift.(ObserveOnSerialDispatchQueueSink in _277A93ABA8477198C125F3F26B2D4B62)<A>, @in_guaranteed RxSwift.Event<A.E>) -> (@out RxSwift.Disposable) to @escaping @callee_guaranteed (@in_guaranteed (RxSwift.(ObserveOnSerialDispatchQueueSink in _277A93ABA8477198C125F3F26B2D4B62)<A>, RxSwift.Event<A.E>)) -> (@out RxSwift.Disposable) at <compiler-generated>, state=<unavailable>, self=0x00000001c0475600) at MainScheduler.swift:60 [opt] frame #29: 0x00000001029e3b5c RxSwiftthunk for @escaping @callee_guaranteed () -> () at :0 [opt]
frame #30: 0x00000001049791dc libdispatch.dylib_dispatch_call_block_and_release + 24 frame #31: 0x000000010497919c libdispatch.dylib_dispatch_client_callout + 16
frame #32: 0x000000010497dd2c libdispatch.dylib_dispatch_main_queue_callback_4CF + 1180 frame #33: 0x0000000182237070 CoreFoundationCFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12
frame #34: 0x0000000182234bc8 CoreFoundation__CFRunLoopRun + 2272 frame #35: 0x0000000182154da8 CoreFoundationCFRunLoopRunSpecific + 552
frame #36: 0x000000018413a020 GraphicsServicesGSEventRunModal + 100 frame #37: 0x000000018c174758 UIKitUIApplicationMain + 236
frame #38: 0x0000000100c22008 Crystalmain at AppDelegate.swift:16 frame #39: 0x0000000181be5fc0 libdyld.dylibstart + 4
`

Please let me know if I can help with other details.

@jakubvano
Swinject was compiled with optimization - stepping may behave oddly; variables may not be available.

thread #1, queue = 'com.apple.main-thread', stop reason = Fatal error:
frame #0: 0x00000001041258bc libswiftCore.dylib_swift_runtime_on_report   frame #1: 0x000000010416ffc4 libswiftCore.dylib_swift_stdlib_reportFatalErrorInFile + 128
frame #2: 0x0000000103ed2460 libswiftCore.dylibfunction signature specialization <Arg[1] = [Closure Propagated : reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> () to @escaping @callee_guaranteed (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> (@out ()), Argument Types : [@callee_guaranteed (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> ()]> of generic specialization <()> of Swift.StaticString.withUTF8Buffer<A>((Swift.UnsafeBufferPointer<Swift.UInt8>) -> A) -> A + 52   frame #3: 0x0000000104113fe0 libswiftCore.dylibpartial apply forwarder for closure #1 (Swift.UnsafeBufferPointer<Swift.UInt8>) -> () in Swift.assertionFailure(: Swift.StaticString, _: Swift.String, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never + 280
frame #4: 0x0000000103ed2460 libswiftCore.dylibfunction signature specialization <Arg[1] = [Closure Propagated : reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> () to @escaping @callee_guaranteed (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> (@out ()), Argument Types : [@callee_guaranteed (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> ()]> of generic specialization <()> of Swift.StaticString.withUTF8Buffer<A>((Swift.UnsafeBufferPointer<Swift.UInt8>) -> A) -> A + 52   frame #5: 0x000000010406a19c libswiftCore.dylibfunction signature specialization <Arg[1] = Exploded> of Swift.assertionFailure(: Swift.StaticString, _: Swift.String, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never + 156
frame #6: 0x0000000103ed1db8 libswiftCore.dylibSwift._assertionFailure(_: Swift.StaticString, _: Swift.String, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never + 32   frame #7: 0x0000000101ce91b4 SwinjectContainer.resolve<A, B>(entry=0x00000001c40d2bb0, invoker=0x0000000101ce9948 Swinject`partial apply forwarder for reabstraction thunk helper <A, B> from @callee_guaranteed (@guaranteed @escaping @callee_guaranteed (@in_guaranteed B) -> (@out Any)) -> (@out Any) to @escaping @callee_guaranteed (@in_guaranteed @escaping @callee_guaranteed (@in_guaranteed B) -> (@out Any)) -> (@out Any) at , self=0x00000001c40d26e0) at Container.swift:0 [opt]

frame #8: 0x0000000101ce6cc0 SwinjectContainer._resolve<A, B>(name=nil, option=nil, invoker=0x0000000101ce9ad4 Swinjectpartial apply forwarder for closure #1 ((Swinject.Resolver) -> Any) -> Any in Swinject.Container.resolve(_: A.Type, name: Swift.Optional<Swift.String>) -> Swift.Optional at , self=0x00000001c40d26e0) at Container.swift:192 [opt]
frame #9: 0x0000000101ce6f38 SwinjectContainer.resolve<A>(name=nil, self=0x00000001c40d26e0) at Container.swift:280 [opt] frame #10: 0x0000000100c56158 CrystalAssembly.reqresLogger.getter(self=0x00000001c400a770) at Assembly.swift:492
frame #11: 0x0000000100d8358c CrystalLogRequest(request=Foundation.URLRequest @ 0x000000016f2edaa8) at ReqresLogger.swift:19 frame #12: 0x0000000100da00e4 CrystalBaseAPI.asObservable(request=Foundation.URLRequest @ 0x000000016f2edb68, sessionManager=0x00000001c40da1d0, self=0x00000001c02591d0) at BaseAPI.swift:65
frame #13: 0x0000000100da0074 CrystalBaseAPI.asObservable(request=Foundation.URLRequest @ 0x000000016f2edbb8, self=0x00000001c02591d0) at BaseAPI.swift:61 frame #14: 0x0000000100da05b0 CrystalBaseAPI.responseObservable(queue=0x00000001049b1680, request=Foundation.URLRequest @ 0x000000016f2edc50, self=0x00000001c02591d0) at BaseAPI.swift:75
frame #15: 0x0000000100ebe4d0 CrystalStatusAPI.sendStatus(crystalId="c07251ba-d6", withStatus="CONNECTED", errorMessage="PubNub is reachable", self=0x00000001c02591d0) at PubnubStatusAPI.swift:47 frame #16: 0x0000000100dae81c CrystalStatusController.sendConnectedPubnubStatusToPolaris(crystalId="c07251ba-d6", self=0x00000001c41191a0) at StatusController.swift:63
frame #17: 0x0000000100daddd4 CrystalStatusController.sendStatus(withStatus=Connected, self=0x00000001c41191a0) at StatusController.swift:45 frame #18: 0x0000000100dadb90 Crystalclosure #1 in StatusController.observeConnectionStatus(connectivity=Connected, self=0x00000001c41191a0) at StatusController.swift:38
frame #19: 0x0000000100b6fc78 Crystalthunk for @escaping @callee_guaranteed (@unowned RTConnectionStatus) -> () at <compiler-generated>:0 frame #20: 0x00000001029f8f1c RxSwiftclosure #1 in ObservableType.subscribe(event=, onNext=0x0000000100dae094 Crystalpartial apply forwarder for reabstraction thunk helper from @escaping @callee_guaranteed (@unowned Crystal.RTConnectionStatus) -> () to @escaping @callee_guaranteed (@in_guaranteed Crystal.RTConnectionStatus) -> () at <compiler-generated>, onError=nil, callStack=0 values, disposable=Disposable @ 0x00000001c447e9d0, onCompleted=0x0000000100dae0b0 Crystalpartial apply forwarder for closure #2 () -> () in Crystal.StatusController.(observeConnectionStatus in FBD2F414816253B6BE52454914D800D7)() -> () at ) at ObservableType+Extensions.swift:65 [opt]
frame #21: 0x00000001029f911c RxSwiftpartial apply for closure #1 in ObservableType.subscribe(onNext:onError:onCompleted:onDisposed:) at <compiler-generated>:0 [opt] frame #22: 0x0000000102a10c9c RxSwiftAnonymousObserver.onCore(event=, self=) at AnonymousObserver.swift:24 [opt]
frame #23: 0x00000001029fa060 RxSwiftObserverBase.on(event=<unavailable>, self=0x00000001c425a940) at ObserverBase.swift:0 [opt] frame #24: 0x00000001029fa1f8 RxSwiftprotocol witness for ObserverType.on(:) in conformance ObserverBase at :0 [opt]
frame #25: 0x0000000102a65818 RxSwiftclosure #1 in ObserveOnSerialDispatchQueueSink.init(pair=(RxSwift.ObserveOnSerialDispatchQueueSink<O>, RxSwift.Event<O.E>) @ scalar) at ObserveOn.swift:182 [opt] frame #26: 0x0000000102a664c0 RxSwiftpartial apply for thunk for @escaping @callee_guaranteed (@guaranteed ObserveOnSerialDispatchQueueSink, @in_guaranteed Event<A.E>) -> (@out Disposable) [inlined] reabstraction thunk helper  from @escaping @callee_guaranteed (@guaranteed RxSwift.(ObserveOnSerialDispatchQueueSink in _277A93ABA8477198C125F3F26B2D4B62), @in_guaranteed RxSwift.Event<A.E>) -> (@out RxSwift.Disposable) to @escaping @callee_guaranteed (@in_guaranteed (RxSwift.(ObserveOnSerialDispatchQueueSink in _277A93ABA8477198C125F3F26B2D4B62), RxSwift.Event<A.E>)) -> (@out RxSwift.Disposable) at :0 [opt]
frame #27: 0x0000000102a66458 RxSwiftpartial apply for thunk for @escaping @callee_guaranteed (@guaranteed ObserveOnSerialDispatchQueueSink<A>, @in_guaranteed Event<A.E>) -> (@out Disposable) at <compiler-generated>:0 [opt] frame #28: 0x00000001029ee6e4 RxSwiftclosure #1 in MainScheduler.scheduleInternal(cancel=0x00000001c428efb0, action=0x0000000102a6642c RxSwiftpartial apply forwarder for reabstraction thunk helper <A where A: RxSwift.ObserverType> from @escaping @callee_guaranteed (@guaranteed RxSwift.(ObserveOnSerialDispatchQueueSink in _277A93ABA8477198C125F3F26B2D4B62)<A>, @in_guaranteed RxSwift.Event<A.E>) -> (@out RxSwift.Disposable) to @escaping @callee_guaranteed (@in_guaranteed (RxSwift.(ObserveOnSerialDispatchQueueSink in _277A93ABA8477198C125F3F26B2D4B62)<A>, RxSwift.Event<A.E>)) -> (@out RxSwift.Disposable) at <compiler-generated>, state=<unavailable>, self=0x00000001c0475600) at MainScheduler.swift:60 [opt] frame #29: 0x00000001029e3b5c RxSwiftthunk for @escaping @callee_guaranteed () -> () at :0 [opt]
frame #30: 0x00000001049791dc libdispatch.dylib_dispatch_call_block_and_release + 24 frame #31: 0x000000010497919c libdispatch.dylib_dispatch_client_callout + 16
frame #32: 0x000000010497dd2c libdispatch.dylib_dispatch_main_queue_callback_4CF + 1180 frame #33: 0x0000000182237070 CoreFoundationCFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12
frame #34: 0x0000000182234bc8 CoreFoundation__CFRunLoopRun + 2272 frame #35: 0x0000000182154da8 CoreFoundationCFRunLoopRunSpecific + 552
frame #36: 0x000000018413a020 GraphicsServicesGSEventRunModal + 100 frame #37: 0x000000018c174758 UIKitUIApplicationMain + 236
frame #38: 0x0000000100c22008 Crystal`main at AppDelegate.swift:16
frame #39: 0x0000000181be5fc0 libdyld.dylib`start + 4

@jakubvano Please update asap.

Any updates on this thread? @balrajOla @sanoj00b @jakubvano I am seeing a similar crash

This type of a crash is most likely to be caused by multiple threads accessing non-synchronized resolver - if you are accessing swinject from more than one thread, you need to use .syncrhonizedResolver(), see ThreadSafety

@jakubvano Thank you for the quick reply. Can you verify I am using the synchronize() function correctly?
// Assembly class installs at startup on the main thread
class ApplicationAssembly {
    static let container = Container()
    static let synchronizedResolver = container.synchronize()

    class func Install() {
        container.register(ABCServiceProtocol.self) { r in
            ABCService(DEFService: r.resolve(DEFServiceProtocol.self)!)
        }
    }
}

// AnotherClass uses the required service and could potentially access from another thread
class AnotherClass {
    func aNetworkRequest() {
        ....completionBlock {
            let ABCService = ApplicationAssembly.synchronizedResolver.resolve(ABCServiceProtocol.self)
        }
    }

}

This looks OK. However, you need to use synchronised resolver for all resolve calls - even those which are on the main thread - otherwise there is no lock from main thread that resolver from other thread would interact with

@jakubvano After changing all of our resolve calls to use the synchronizedResolver, we are experiencing a lot of deadlock issues. Any advice for best practices that could resolve deadlock issues, or protect against them?

So far I have been able to architecture my apps in a way where I don't need to use Swinject from non-main thread, so I don't have much practical experience in dealing with these issues..
One general advice would be to never (or very rarely) pass resolver from regsiter factories to the created objects, and use some other mechanism to produce new instances there. However, this might require quite extensive redesign of an app.

@dakrawczyk  i faced the same problem but can't figure out how we can get deadlock using NSRecursiveLock as sync mechanism


k8saudit-{eks,gke} upgrade sdk and deps (2/N)

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area plugins

/area registry

/area build

/area documentation

What this PR does / why we need it:
Follow-up #509
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
cc @jasondellaluce
Changelogs will be updated by a follow-up PR

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

Needs approval from an approver in each of these files:

plugins/k8saudit-eks/OWNERS [leogr]
plugins/k8saudit-gke/OWNERS [leogr]

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


Why is ASR model goes to train mode in the training loop

Hey, I saw that the ASR model that is under "model" also transfer to train mode in the beginning of the training loop, why is that?
I tried to leave it in eval mode as it is in the initialisation but I got an error.

It is in eval model all the way long: https://github.com/yl4579/StarGANv2-VC/blob/main/train.py#L85

But if I understood correctly the ASR model is part of the model that comes back from build_model method, and in the training loop goes back to train mode: https://github.com/yl4579/StarGANv2-VC/blob/main/trainer.py#L156

I think you are right. That's probably a mistake. What was the error you got?

i'm not using the same code, i did a lot of changes in order to insert it to my repo and way of work, i'll try to reproduce it on the origin code, but I think it will be the same error which is:
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [9, 256, 96]], which is output 0 of ReluBackward0, is at version 1; expected version 0 instead. Hint: the backtrace further above shows the operation that failed to compute its gradient. The variable in question was changed in there or anywhere later. Good luck!
On the same subject, isn't the F0 model should be on eval mode as well?

I believe there is no difference between the train and eval mode for the ASR model, at least the part we are using here. The part we are using (the CNN part) has no batch norm or dropout. For F0 model, it does make a difference, so does this problem happen as well when you set F0 model to eval mode?

I will run few checks on the F0 model and the ASR model and report the insights that i have.
But the ASR model does use dropout, and also normalization (group norm, not batch norm). the CNN use  ConvBlock which has both of them - https://github.com/yl4579/StarGANv2-VC/blob/main/Utils/ASR/layers.py#L105

I think you are right, though the train/eval mode does not affect group norm. It does affect dropout though, so you can set dropout to 0 without changing the train/eval mode. For the F0 model, it might be more difficult to fix. You will have to set those batch norm layers specifically to eval mode if setting the entire model to eval mode doesn't work. Let me know if it works.

Took me some time but I have some results.
I manged to fix the bug and change the ASR model to eval, i needed to fix small in-place line in the ASR code.
I trained few models for examining the differences between running on eval or not. Mainly there is two things, the first is the change of the dropout/batchnorm (eval mode) and second the compute of the grads.

Changing the F0 and the ASR to eval and no_grads saved me abut 10%~ of running time and cuda memory, that I think mainly because of the no_grads.
Changing the ASR to eval mode caused the loss to converge to ~6 while with no eval it converged to ~10 (!), from listening to the results after 150 epochs i didn't heard any differences but need to explore it on cases that are more on the edge of the model.

here some tensorboard results:

Thanks for letting me know. Can you make a pull request to modify these things for this repo? Or maybe indicate where the problem is, and I can make the fix.

I have created a pull request addressing the issues with the ASR model. Putting the JDC network under eval mode is not so trivial and requires setting each individual to eval mode as mentioned by @yl4579 .

Setting the dropouts to 0 does not have audible changes when working with speech signals (Except for the changes in the loss values) but does indeed have improvements when working with other modalities.


Update plugin-blueocean-executor-info.yml

This plugin got merged into the main blueocean plugin.
I copied most of https://github.com/jenkins-infra/repository-permissions-updater/blob/master/permissions/plugin-blueocean-web.yml
I'm one of the existing maintainers of this plugin.
Trying to fix:
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project blueocean-executor-info: Failed to deploy artifacts: Could not transfer artifact io.jenkins.blueocean:blueocean-executor-info:hpi:1.13.0 from/to maven.jenkins-ci.org (https://repo.jenkins-ci.org/releases/): Access denied to: https://repo.jenkins-ci.org/releases/io/jenkins/blueocean/blueocean-executor-info/1.13.0/blueocean-executor-info-1.13.0.hpi, ReasonPhrase: Forbidden. -> [Help 1]

LGTM

#yolo


build(deps): update to Angular 17.3.2

#342  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @davidlj95 and the rest of your teammates on  Graphite


Fix golint issues in maya/cmd/maya-agent/types/doc.go

File: maya/cmd/maya-agent/types/doc.go
Line 17: warning: package comment should be of the form "Package types ..." (golint)

Resources:
-> Contributors guide: https://github.com/openebs/openebs/blob/master/CONTRIBUTING.md
Complexity: Easy

I would try this

im not doing this

i would like to work on it

cool @AishwaryaVarma go ahead as @bharath-acchu backed of. let me know if you need any help.


Enabling events on undo / redo

From what I've noticed, when it comes to undo and redo actions in version 2.0.2, the ignoreEvents variable is set to true, so for example onchange event is never fired. To avoid this you have to comment out $.fn.jexcel.ignoreEvents = false; on lines 4092 and 4198 and change lines 4178 and 4247 from
$(this).jexcel('loadCells', records);
$(this).jexcel('loadCells', historyRecord.cellChanges);

to, respectively
$(this).jexcel('updateCells', records);
$(this).jexcel('updateCells', historyRecord.cellChanges);

I think it would be very nice to be able to decide whether or not events should fire without the need for this modification. So maybe to preserve compatibility it could be added as an option when creating the spreadsheet?
PS. Incredible work with the plugin, it saved me so much time. Thank you for sharing it.

Actually, in the most recent version we have available onundo & onredo


how does it works?

How is this included on the code? should I do a require/import ?

Yes both would work

On Jun 6, 2017, at 17:59, tania daniela paiva<EMAIL_ADDRESS>wrote:
How is this included on the code? should I do a require/import ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


[scratchpad] fix benchmark

Motivation
The Criterion benchmark was broken and normal build process was not able to detect it.
Also added the fuzz target to the list so it can actually be run.
Have you read the Contributing Guidelines on pull requests?
(Write your answer here.)
Test Plan
cargo bench -p scratchpad --features bench
cargo run -p diem-fuzzer --bin diem-fuzzer -- fuzz SparseMerkleCorrectness
Related PRs
#8388

/land


⚠ AGEG website (prod) has degraded performance

In 8e6935a, AGEG website (prod) (https://www.ageg.ca/) experienced degraded performance:

HTTP code: 200
Response time: 2147 ms

Resolved: AGEG website (prod) performance has improved in 4043084.


Changes for fmi3 refactor in fmi.jl

to get the tests in FMI.jl to work these minor PR has to be merged first.

Please add project.toml version inc (minor change, last digit).
Thanks!

fixed in https://github.com/ThummeTo/FMIImport.jl/pull/70/commits/d44b18dde7be53f4325643f290ced1b8651ca530


missing LICENSE file

Which LICENSE file should we include in this project?

https://github.com/ipfs/community/blob/master/LICENSING_POLICY.md
TLDR; MIT & copyright "Protocol Labs, Inc."


social assets: We should make templates of commonly sized content for major platforms (FB, TW, Insta, Nextdoor) as well as make sure shares of sites on those platforms look great.

For content sharing, we need to add some header meta elements, in specific:
<meta property="og:type" content="website" />
<meta property="og:title" content="The Page Title- usually same as meta title" />
<meta property="og:url" content="full path/url of the page" />
<meta property="og:description" content="usually same as meta desc" />

If provided:

Twitter specific:
 <meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="usually page title, but could be different" />
<meta property="twitter:description" content="card content, usually same as meta desc" />
<meta property="twitter:image" content="full path of the thumbnail image" />

I will check which others might be needed. Most can use the information from the og:, twitter is a bit more picky hence the twitter metas

I added images for FB & Twitter.
https://github.com/Chicago/design-cds-bootstrap/commit/d4f3789a7c1887dcdae4a407831f11de6a6ae416
See it in action:
https://twitter.com/ChiDesignDir/status/1209526605741084672

OK

I added common sizes Social Media Cheat Sheet 2020 to Figma:
https://www.figma.com/file/t1oXrlay6I8WiDnz58vnu8/Chicago-Design-System-Digital-sticker-sheet-v0.9?node-id=8406%3A2575

avatar treatment, shared content, shared on the platform examples


HTML to md extension

Hello,
Is there a way to create extension for HTML to Markdown conversion, pls?
for example:

John Doe

to
userId:john

or I have to create a custom subParser?

I found a solution with turndownjs. https://codepen.io/bebjakub/pen/VoKqZo


FFT values are alway minus infinity (in the console.log).

Describe the bug
This is carrying on from the issues I still have here -
https://github.com/Tonejs/Tone.js/issues/897
To Reproduce
import Sketch from "react-p5";
import p5Types from "p5"; //Import this for typechecking and intellisense
//import "p5/lib/addons/p5.sound";
import { FFT } from "tone";
interface ComponentProps {
	//Your component props
}

const NFT = () => {
	let x = 50;
	const y = 50;
	let fft = new FFT(32).toDestination();

	//See annotations in JS for more information
	const setup = (p5: p5Types, canvasParentRef: Element) => {
		p5.createCanvas(500, 500).parent(canvasParentRef);
		//amp = new p5.constructor.Amplitude();
	};

	const draw = (p5: p5Types) => {
		p5.background(fft.getValue()[0]);
		p5.ellipse(x, y, 70, 70);
		console.log(fft.getValue());
		x++;
	};

	return <Sketch setup={setup} draw={draw} />;
};
export default NFT;

Expected behavior
I want to get values over time that mean I can change the background colour to the pulse of the sine wave oscillators that are playing (they are playing in other classes but assume I have a metronome and an oscillator playing at frequency X).
What I've tried
I've tried to connect to the destination, to the metronome player and to the oscillator
I've tried to output all the params of FFT and also looked at Analyser and Waveform. All I want to do is change colour of background to match the noise being played.
Additional context
This is a react next.js project...

Make sure you have something connected to the input of FFT, otherwise it will just be reading silence which is -Infinity dB

thanks,  I managed to get an output from Waveform using an oscillator. But the numbers seem much smaller than I would expect, I've attached the output of a 5hz Oscillator, this is the 1st element of each 1024 array being outputted by the draw function i.e. every animation frame above -

I would expect the numbers to get much nearer to 1 and minus 1, but they're not moving from 0 very much at all. Is the output tied to the volume I am playing the oscillator at, or some other param?

I'm going to close this since it seems like your original issue is resolved.
Are you lowering the gain of the oscillator? It looks like it peaks at 0.01 which would be around -20db i think.


[ADS]-[Notebook]-connect ECONNREFUSED <IP_ADDRESS>:9288 error causing orphaned Python & Jupyter-notebook process chain

Issue Type: Bug
Hi Team,
I am noticing some variations of python and notebook executables not getting cleaned up correctly post Notebook closure. Intermittently when the Notebook is closed and then opened we get the following error is the starting point of the problem. Has anyone experienced this issue already and is this being looked into.

And for the Notebook Logs we notice the following errors on the Port issues
... Starting Notebook server
> "C:\Users\pradm\azuredatastudio-python\0.0.1\python.exe" -m jupyter notebook --no-browser --notebook-dir "c:\EapWebinar" --port=9288 --NotebookApp.token=8f97da0a6e66bd766a1f437ba2eb09f6b0d35329f62668c5
... Jupyter is running at http://localhost:9288/?token%3D8f97da0a6e66bd766a1f437ba2eb09f6b0d35329f62668c5
> "C:\Users\pradm\azuredatastudio-python\0.0.1\python.exe" -m jupyter notebook stop 9288
stderr: There is currently no server running on port 9288
stderr: Ports currently in use:
stderr:   - 9198
stderr:   - 9571
stderr:
Error stopping Notebook Server: Command failed: "C:\Users\pradm\azuredatastudio-python\0.0.1\python.exe" -m jupyter notebook stop 9288
There is currently no server running on port 9288
Ports currently in use:

9198
9571

Post this if you see the processes you will see an orphaned process chain of python and notebook as below which depicts as if though someone has launched the python and notebook outside ADS from command line.

Regards
Pradeep
Azure Data Studio version: azuredatastudio 1.7.0 (e1280022d69b651cfff04b30e830904575c8acda, 2019-05-08T00:55:40.928Z)
OS version: Windows_NT x64 10.0.18362

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2808)

GPU Status
2d_canvas: disabled_softwarechecker_imaging: disabled_offflash_3d: disabled_softwareflash_stage3d: disabled_softwareflash_stage3d_baseline: disabled_softwaregpu_compositing: disabled_softwaremultiple_raster_threads: disabled_offnative_gpu_memory_buffers: disabled_softwarerasterization: disabled_softwaresurface_synchronization: disabled_offvideo_decode: disabled_softwarewebgl: disabled_offwebgl2: disabled_off

Load (avg)
undefined

Memory (System)
15.83GB (10.72GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions: none

@pradm have you seen this issue happen lately?

@chlafreniere , nope i have not seen this issue in recent repro's. if i encounter it again will reopen. you can archive this for now.
Thank you so much for looking into this.

Thanks @pradm. Will close this then. Feel free to reopen if you see this behavior in the future.


Kontena Lens to 1.5.0

Changelog

Quality of Services (QoS) classes are for pods are displayed on pod list and details
Service's type is now displayed on services list
Rolebindings can be now created when user management is disabled
Search fields are now focused by default, just start typing to find the resource
Path based ingress rules are correctly displayed
Readiness and liveness probes are displayed now in pod details
Helm releases can be edited, rollbacked and upgraded
User can now give a name for a Helm release when installing a chart
Keywords and repository are displayed on Helm chart details
Helm search has been improved and now also keywords are taken into an account
User can enter into a node shell directly from the dashboard
IE users might not see everything as planned. We display nice notification for those users now and hint to switch the browser.
Kontena Pharos license information is displayed on the dashboard and user can easily assign a license to the cluster
Labels column did not spark any joy on configmap list, so it's thrown away
To make it easier to remove orphaned PVCs, dashboard will now show the pods where the volume claim is bound
Some pods can have secrets and configmaps exposed via environment variables. Kontena Lens will show those relations better now
Terminal window has now a better full screen mode

Depends on: https://github.com/kontena/pharos-addon-zipper/pull/2


Abolish rkglChainNamedDraw()

I'd like to abolish rkglChainNamedDraw() since it is not only rkglChain but also any objects that need names for selection. Instead, I'm thinking of defining rkglChainSetName(), which can be combined with rkglChainDraw() to make it available for selection. This idea is implemented in feature/name_for_selection branch. Please check it out.

@zhidao
Thank you for your concern about the selection buffer.
As you said, the selection buffer was currently inaccessible within the library, so it was a bit of a problem that I couldn't draw and select rkChain and FramHandle at the same time.
To deal with this, we managed the selection buffer by dividing the drawing order. But this will become troblesome as the number of objects increases.
So I agree with your suggestion to make the selection buffer a new external data rkglSelectionBuffer.

I've merged the above modification to the latest main branch.


Unable to load <script> when Content Security Policy script-src does not have 'unsafe-inline'

Prerequisites

[X] I have searched for duplicate or closed issues
[X] I have searched for relatived questions
[X] I have read documentations

Describe the issue
While implementing a content security policy for my site, I tried avoiding adding to script-src the policies 'unsafe-inline', data: or https: as suggested by the Mozilla Observatory in order to avoid certain cross-site scripting and clickjacking attacks.
Only previously-hashed <script> tags are allowed and I stumbled upon one that is not. There may be more.
Steps to reproduce
Load a site which does not have script-src: 'unsafe-inline' in its content security policy header (currently https://rubonnek.com as an example):
curl -I https://rubonnek.com
...
content-security-policy: default-src 'none'; script-src 'self' https://analytics.rubonnek.com; style-src 'self' 'unsafe-inline';  img-src 'self' https://*.itch.io https://itch.io data:; base-uri 'none'; form-action 'self'; frame-ancestors 'none'; frame-src 'self' https://*.youtube.com https://platform.twitter.com; connect-src https://analytics.rubonnek.com; manifest-src https://rubonnek.com;
...

and you'll see a message similar to the following:
rubonnek.com/:35 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' https://analytics.rubonnek.com". Either the 'unsafe-inline' keyword, a hash ('sha256-YqMqaqoV9M2pb+94OEHfS4JdT9tyRHnBblS29iGwEZc='), or a nonce ('nonce-...') is required to enable inline execution.

That specific error message refers the following block:
https://github.com/razonyang/hugo-theme-bootstrap/blob/449275fcef2b1ef38900ef9a23d95a947166935e/layouts/partials/assets/service-worker/js.html#L6-L16
But there are other chunks of code that are missing their hashes such as the search functionality which also breaks:
https://github.com/razonyang/hugo-theme-bootstrap/blob/449275fcef2b1ef38900ef9a23d95a947166935e/layouts/_default/search.html#L21-L32
Expected behavior
Website loads fine and scripts executes as expected. Default/basic search functionality works as well.
What operating system(s) are you seeing the problem on?
Linux
What browser(s) are you seeing the problem on?
Chrome, Firefox
What version of theme are you using?
v1.0.0-beta4.3
What version of Hugo are you using?
hugo v0.111.3+extended linux/amd64 BuildDate=unknown
What version of Node.js are you using?
pnpm 8.2.0
What version of Git are you using?
git version 2.40.0
Additional context
Only inline scripts may need to be hashed. Remote sources need to be added to script-src and hashing those should not be needed to fix this issue.
Some developers in Stack Overflow also claim that saving the script to a file and loading it from the same origin works fine as well -- I suppose this is due to the script-src: 'self' entry in the Content Security Policy header.
Workaround
Simply having script-src: 'unsafe-inline' within the content security policy header makes the site work as expected.

Should be fixed by #929, I haven't tested the staticman, since there is something wrong of instance deployed on heroku.
I guess the free tier is expired or was removed.
Btw, <script type="text/html"></script> is marked as text/html, no need to change.


Fab in landscape

Fix FAB of contribution list in landscape orientation
Fixes #2461 Floating add button turns into a spot in landscape mode
What changes did you make and why?
Visibility of fab-camera and fab changed to 'gone' as it doesn't take any space in layout.
Orientation of fab_layout changed to horizontal in landscape mode in order to better fit the open FAB.
Tested betaDebug on Realme 2 pro (Android Version 8.1.0) with API level 27.
Screenshot of the result

Codecov Report

Merging #2559 into master will decrease coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master   #2559      +/-   ##
=========================================
- Coverage     5.9%   5.89%   -0.01%
=========================================
  Files         258     258
  Lines       12300   12306       +6
  Branches     1104    1106       +2
=========================================
  Hits          726     726
- Misses      11515   11521       +6
  Partials       59      59

Impacted Files
Coverage Δ

...mmons/contributions/ContributionsListFragment.java
0% <0%> (ø)
:arrow_up:

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 8022536...5c054ba. Read the comment docs.


File Scanner

Feature request
We propose adding a feature to xGitGuard that allows scanning of a local file system. Currently, xGitGuard supports scanning GitHub repositories, but we aim to extend this capability to local directories.
The solution
The feature would involve specifying a local path as input instead of a GitHub repository. xGitGuard would recursively retrieve a list of all files within the directory. It would then check each file's extension against a predefined list of supported extensions. Files matching these extensions would be logged into a new file (e.g., searchpath.csv). Subsequently, the scanner would be triggered to analyze these files for security issues.
Describe alternatives you've considered
No alternatives have been considered at this stage, but we are open to community suggestions and feedback.
Additional context
Users would initiate the local file system scan via the command-line interface by providing the path to the directory. Upon completion of the scan, users would be able to view any security detections identified by xGitGuard.

Hi, I am interested in working on this issue. Could you please assign to me? Thank you!

Hi @Chadyshack  -> Assigned it to you

Hi @nishabalamurugan, I see you self-assigned this issue and now we both have it. Would you like to collaborate on the additions together?

Hi @nishabalamurugan I just sent you an email from my email<EMAIL_ADDRESS>


[Question] What's the main difference with react-media?

https://github.com/reacttraining/react-media

Doesn't look like anything, other than ours being first and maybe ours having better browser support. Not sure why they made their own - didn't see any tickets from them about issues or features they wanted, maybe they did it for fun.

Also, maybe I didn't look through the code enough but it looks like it doesn't watch for changes?

Hehe, okay. Anyway, i'm glad with yours so, I won't change. :)
Thank you for your time.


[DPP] Adding a new port

Describe the pull request
What does your PR fix?
Adds support for DPP, a lightweight high performance C++ discord library used in multiple large popular Discord bots
Which triplets are supported/not supported? Have you updated the CI baseline?
linux, windows, No

Does your PR follow the maintainer guide?
Yes, lib has vendored depencies which are fetched from vcpkg during a vcpkg build

If you have added/updated a port: Have you run ./vcpkg x-add-version --all and committed the result?
Yes

still draft while i fix some upstream vendor dep issues

@braindigitalis, Thanks for your pr, looks the ci tested on x64-linux triplet and x64-uwp triplet,
could you please take a look:
install-x64-linux-dbg-out.log
install-x64-uwp-dbg-out.log

thanks  it isn't supposed to build on uwp, there's some things id like to address before I mark this pr as ready for review.

going to resubmit a newer fixed verison of this and will close this pr

Duplicate of #25949


Button to copy all of the CSS changes

After changing some of the element styles, it would be great to have an option to export all the changed CSS styles in one go so they can be pasted into a userstyle manager or custom css file.

Add in v1.0.4


Assertion failed:

Godot version
4.0 015dc49
System information
Windows 10 x64
Issue description
When assert() fails and it has no message, it says null.
@tool
extends EditorScript

func _run() -> void:
	assert(false)

gd:5 - Assertion failed: <null>

The message should say simply "Assertion failed.", but for some reason it stringifies null and passes it as message. Might be related to #62695
Steps to reproduce

Run the code above

Minimal reproduction project
N/A

Remember when it was argued that it accepting any Variant was fine in principle? Well, null is a Variant type too...


Update calico k8s versions to match what we test

Update calico supported k8s versions to match what we test
Product Version(s):

Calico master, v3.27
Issue:

Link to docs preview:

SME review:

[ ] An SME has approved this change.

DOCS review:

[ ] A member of the docs team has approved this change.

Additional information:

Merge checklist:

[ ] Deploy preview inspected wherever changes were made
[ ] Build completed successfully
[ ] Test have passed

LGTM, thanks


feat(states): put states in theme

This PR changes the way "states" are handled in xstyled. It solves TypeScript performance issue (#197) and makes the API even more flexible.
Previously states were props, example:
<x.div hoverBg="red" />

The new way will be:
<x.div bg={{ hover: "red" }} />

The good part of it is that you can combine states:
<x.div bg={{ md: { hover: { first: "red" }}}} />

States are now defined in theme, it means it is easy to add your own states!
const theme = {
  states: {
    group: "[role="group"]",
  }
}

<x.div bg={{ group: "red" }} />

Fix #197

@gregberge This is quite beautiful. Would it make sense to release an alpha version for early adopters to try? I noticed stitches is doing something similar with canary tags: https://github.com/modulz/stitches/tags

@gregberge This is quite beautiful. Would it make sense to release an alpha version for early adopters to try? I noticed stitches is doing something similar with canary tags: https://github.com/modulz/stitches/tags

Yeah good idea!


[Snyk] Security upgrade werkzeug from 2.2.3 to 3.0.1

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `pip` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

requirements-dev.txt

⚠ Warning
Markdown 3.4.4 has requirement importlib-metadata>=4.4; python_version < "3.10", but you have importlib-metadata 4.2.0.
ipdb 0.13.13 requires ipython, which is not installed.

Vulnerabilities that will be fixed
By pinning:

Severity
Priority Score (*)
Issue
Upgrade
Breaking Change
Exploit Maturity

611/1000  Why? Recently disclosed, Has a fix available, CVSS 6.5
Inefficient Algorithmic Complexity SNYK-PYTHON-WERKZEUG-6035177
werkzeug:  2.2.3 -> 3.0.1
No
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.
Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.
Check the changes in this PR to ensure they won't cause issues with your project.

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

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

duplicated


Go back to polling for the kafka onramp

Pull request

Description

Do not use the async StreamConsumer and MessageStream for the kafka onramp anymore. It is hanging if there is no message in the kafka queue, hindering the runtime from consuming control-plane and CB events. This PR uses the BaseConsumer and on each pull_event it is polling kafka for a new message.
Make the poll_interval configurable for the kafka onramp. People might want to set it to lower values if they want to be informed faster of incoming messages when their queue has been empty before.
Add the retry_failed_events setting (default true), that if set to false, will not seek back to the offset of the failed event it received, but keep on going. This means those failed events remain uncommitted and will only ever be retried if tremor restarts.
Add the cb offramp that sends back CB events as requested in the event metadata or payload. E.g. {"cb": "ack"} Mostly for testing onramp/operator behaviour with CB events.
Make the kafka onramp fail upon initialization if it couldnt connect to the cluster or couldnt subscribe to all configured topics.

Related

Related docs PR

Checklist

[x] The RFC, if required, has been submitted and approved
[x] Any user-facing impact of the changes is reflected in docs.tremor.rs
[x] The code is tested
[x] Use of unsafe code is reasoned about in a comment
[x] Update CHANGELOG.md appropriately, recording any changes, bug fixes or other observable changes in behavior

Coverage decreased (-0.2%) to 81.274% when pulling 7c56c70ab00f57fdfde2486db0f9402795e5f0a4 on kafka-polling into 05d0d5f07a48866441d97edb0655c9e546f19e89 on main.


ENH: Allow to manually define which pyproject.toml file to use

This adds --pyproject to towncrier, the same way as what exists
for towncrier.check.

This probably needs a few additional things (such as tests)? I tried it locally briefly, and it seems to work (is pretty straight forward after all).

Codecov Report

Merging #156 into master will decrease coverage by 0.28%.
The diff coverage is 66.66%.

@@           Coverage Diff            @@
##           master   #156      +/-   ##
========================================
- Coverage   93.29%    93%   -0.29%
========================================
  Files          15     15
  Lines         626    629       +3
  Branches       65     66       +1
========================================
+ Hits          584    585       +1
- Misses         26     27       +1
- Partials       16     17       +1

Impacted Files
Coverage Δ

src/towncrier/__init__.py
88.23% <66.66%> (-2.54%)
: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 ecd438c...9354e2d. Read the comment docs.

xref gh-157 which solves the same issue (uses --config though).

I merged 157, I prefer the config name over pyproject (since pyproject is python specific).
Thanks!

I agree config is nicer, could change towncrier.check to also accept --config, but low priority.


Add fallback OAuth ID and secret

This commit adds a fallback OAuth ID and secret. This will allow the signon-munging script for development to configure signon for this app locally.
It also renames the file to make it consistent with other apps and allow the munging script to find it.

We could keep it with the underscore but then I'd have to include an exception in the signon script in the dev VM since all the other apps use gds-sso.rb...


AddrIncoming::bind panic if outside tokio context

AddrIncoming::bind calls tokio::net::tcp::listener::TcpListener::from_std, which panics if you're not currently in async context. This is unfortunate because the method is synchronous.

Panic details:
  66: tokio::net::tcp::listener::TcpListener::from_std
             at C:\Users\pim\.cargo\git\checkouts\tokio-377c595163f99a10\98c9a77\tokio\src\net\tcp\listener.rs:200
  67: hyper::server::tcp::AddrIncoming::from_std
             at C:\Users\pim\.cargo\git\checkouts\hyper-817b53a166fc1c58\8ba9a8d\src\server\tcp.rs:34
  68: hyper::server::tcp::AddrIncoming::new
             at C:\Users\pim\.cargo\git\checkouts\hyper-817b53a166fc1c58\8ba9a8d\src\server\tcp.rs:30
  69: hyper::server::tcp::AddrIncoming::bind
             at C:\Users\pim\.cargo\git\checkouts\hyper-817b53a166fc1c58\8ba9a8d\src\server\tcp.rs:48

Good point, while it's not really doing anything "asynchronous", perhaps it should be made an async fn to help catch this earlier?

For my use case this is unfortunate; I was doing this fallible operation in sync context before actually starting the async functions. Right now I'm calling it inside runtime::enter which fixes the issue.

What do you think @carllerche?
The downside to changing to an async fn is this adds another `await in the simple case:
Server::bind(addr).await
    .server(mk_svc).await?;

it also makes it much trickier to call from a poll context.

in theory, if there was a way to get a runtime::Handle at any point (tokio::runtime::current() -> Handle), the handle could be an argument. Right now, there is no way.


Use GitHub Actions for CI

CI in Travis hasn't run in a while. This PR migrates to using GitHub actions for
lints and tests.

@willglynn could you enable GitHub Actions? Right now, CI doesn't run on any PRs.


Add Semantic HTML

Is your feature request related to a problem? Please describe.
Absence of semantic HTML.
Describe the solution you'd like
Addition of semantic syntax for HTML file.
Example:
<input type="button" class="btn" value="All" /> instead of
All

Describe alternatives you've considered
Not applicable
Additional context
Illustrative example mentioned above: (The output doesn't change; since CSS styles of div.btn maintained in input.btn)

Ok go ahead @BinayakBishnu ....add ss and screen recording before making a pr


"it performs"

makes a long sentence into 2 smaller sentences. run on sentences are bad :(

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Closed and Reopened this PR to attempt to resolve a specific Travis build failure.


Verify all APIs allow v7

All API requests should work with either v6 or v7. The queue new recipe (POST to /recipes) does not work with v7. In addition to fixing this particular request, we need to verify all API calls are checking the correct version numbers in the requests.

scale/recipe/views.py line 465 needs to be modified to allow v7
search code for other instances of this check, and verify we don't have this bug elsewhere.
build and deploy to test cluster and verify all changes.

closed via #1904


Add "All Tests" for required status check

Fixes #101
There is an issue with selecting specific jobs as required status checks (e.g. for merging to protected branches) when the name is dynamically generated (e.g. due to matrix). Github seems to want the specific name of each job to be provided for every check. I have therefore created a check called "All Tests and Examples" which passes when both the test and examples job collections pass in their entirety. I have also updated the branch protection rules to require this check to pass.
The results of individual tests on different OS/version/arch are still shown, but the required status is that all of them have passed.

Thanks @raar1 !


Rename development builds to be in the "docker-dev" repo instead of "docker"

See https://github.com/docker-library/docker/issues/2 for some of the context around this; essentially, we're looking to create an official docker image that includes the Docker CLI (and the dependencies necessary for easy Docker-in-Docker), but it makes sense to use the docker namespace for that image.  The docker-dev official image is already builds of Docker's own Dockerfile (but specifically of releases), so this seemed like a good fit. :+1:

LGTM

LGTM


Support cc_import

https://bazel.build/reference/be/c-cpp#cc_import

I'm pretty sure we already support this, and just need an example in the fixtures. Would you like to do that @maxwellE?

Unless someone reports a bug, I assume this works.


Ssingudasu/fixtures invalid bounds in offsets

Description:
kafka-go library conn.ReadOffsets() has following outcomes

no messages in topic
conn.ReadOffsets() -> firstOffset = 0, lastOffset = 0
1 message in topic (before retention.ms)
conn.ReadOffsets() -> firstOffset = 0, lastOffset = 1
2 messages in topic (before retention.ms)
conn.ReadOffsets() -> firstOffset = 0, lastOffset = 2

kafka-go library connector.KafkaClient.ConsumerOffsets()

returns offsets for partitions as -1 for for a consumergroup of a topic with no messages

If we push 10 messages to a new topic, offsets start from 0 to 9. There is a need
to distinguish no messages in topic to a single message in topic

Hence we will return the first and last offset as -1 for topic with no messages

Closing this PR as this behavior is not in sync with the kafka/bin/kafka-consumer-groups.sh


Revert "Build on FreeBSD"

What have you changed? (mandatory)
Reverts tikv/tikv#4456
We meet panic on Mac OSX, so let's revert this PR at first.
What are the type of the changes? (mandatory)

Misc (other changes)

How has this PR been tested? (mandatory)
Run TiKV on MacOS X Manually
Does this PR affect documentation (docs) update? (mandatory)
No
Does this PR affect tidb-ansible update? (mandatory)
No

Reference: PR #4456 uses the following code to retrieve memory info:
system.memory().unwrap().total.as_usize() as u64 * KB;

While.. system.memory() is not supported in MacOS:
https://github.com/myfreeweb/systemstat/blob/11230792edf4cda8fc12f17d304404710262ef0b/src/platform/macos.rs#L59

🙄


Modal won't update its visibility dynamically

Environment

System:
    OS: macOS 11.6
    CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
    Memory: 81.05 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.17.1 - /usr/local/opt/node@14/bin/node
    Yarn: Not Found
    npm: 6.14.13 - /usr/local/opt/node@14/bin/npm
    Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
    Android SDK:
      API Levels: 28, 29, 30
      Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.1, 30.0.2
      System Images: android-24 | Intel x86 Atom_64, android-28 | Intel x86 Atom_64, android-29 | Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.0 AI-193.69<IP_ADDRESS>26763
    Xcode: 12.4/12D4e - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_262 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.65.1 => 0.65.1
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Platforms

This issue is related to both Android and iOS.
Versions

Android: 30
iOS: 14.4
react-native-modal: 13.0.0
react-native: 0.65.1
react: 17.0.2

Description

First of all, great work guys! This package is a nice wrapper around the React Native modal and offers a great API to interact with!
As far as the issue is concerned, after upgrading React Native from version 0.63.4 to version 0.65.1 modal stopped behaving as it was used to. In 0.63.4 version it was working perfectly!
Although react code acts as expected (state updates etc), modal does not seem to correspond when isVisible prop changes dynamically from true to false or vice verca.
I swapped the modal component exported from this library with the one (built-in) exported from React Native, and it works as expected. Thus, the problem seems to be coming from this package itself.
Reproducible Demo

This is a code sample that represents what I want to achieve and does not work as it should based on the examples presented in the home page of the package.
First of all I define a state in a parent component as such:
const [isModalVisisble, setIsModalVisisble] = useState(true);

and then I return:
return (
  <ModalWrapper isVisible={isModalVisible}>
    <Button onPress={() => setModalIsVisible(false)} title="Close modal" /> // This is a React Native button component
    <MyContent /> // This is a custom component, could be a text, a view or anything else
  </ModalWrapper>
);

Somewhere else in the code-base, the modal wrapper is defined as such:
function ModalWrapper({ isVisible, children }) {
  return (
    <Modal
      useNativeDriver
      isVisible={isVisible}
      coverScreen={false}
      hasBackdrop={false}
      animationInTiming={450}
      animationOutTiming={750}
      style={styles.wrapper}>
      {children}
    </Modal>
  );
}

At first render the modal shows up correctly (based on the initial state) and animates-in as defined. But then, when I press the "Close modal" button nothing happens. The modal is supposed to un-mount but does not respond at all.
Any ideas or propositions concerning the cause of this bug would be really appreciated!

For modals, if you use an object with a boolean value instead of a boolean value ( ie one that has other values that change along with the isVisible prop), it will read the object and re-render. It's hack, but if you can't upgrade, it works.
const [showModal, setShowModal] = useState({ show: true , tick: 1 });
setShowModal({ show: false, tick: 2 });
setShowModal({ show: true, tick: 3 });

I ran into this. I think it has something to do with however the component is being memoized because I was able to trigger a correct re-render by stuffing the key attribute
{
 /*
 * HERE BE DRAGONS: For some reason, the change in the
 * `visible` boolean value is not triggering a
 * re-render. Passing a `key` property forces a render
 * when the key changes.
 */
  }
  <StyledModal
       key={`modal-visible-${visible}`}
       visible={visible}
   >
...

In android it's working fine but in ios it's not working as expected


Cleanups and various minor improvements

Here are various things I found while taking an initial look at this code. It's mostly centered around the example_run script, and trying to make things safer and more readable. Feel free to take as many of these commits as you see fit.

Thanks @jherland for the thorough list of comments. Much appreciated. We did a massive rewrite and restructure. I think we managed to incorporate almost all of your suggestions. Thanks for pushing us to write nice Python code.
I'm going to close this for now, but please do have a look at the new version. Feedback welcome.

Ok. Resubmitted a new pull request #17 with some of the stuff left in my branch, as well as some low-hanging fruits.


fix #858 and #383

This change is kind of lame. Probably no one will ever use #858. But it's important to be able to claim the ability to do it.

Might be worth reviewing the config changes and the command syntax?


Added Elasticsearch Cluster not enough resources error

On investigating https://redhat.pagerduty.com/incidents/PZMSWIJ, we found that the customer did not have a big enough cluster to run elastic search.
According to documentation: https://docs.openshift.com/dedicated/4/logging/dedicated-cluster-deploying.html, we recommend running more nodes to resolve this problem.
@mrbarge and I drafted and sent the service log to the customer and have moved here for it to be added as a template for future use.

/assign @c-e-brumm

/lgtm

/approve


show.bs.toast  preventDefault() doesn't work

Firing preventDefault() inside 'show.bs.toast' handler doesn't stop Toast from being shown.
Is it by design?
https://codepen.io/mczac/pen/VOPjdJ

Thanks @mczac ! We totally forgot that 😆


[HELP]:  FreeCodeCamp Site blank then gives Error 4XX - 5XX

Project
Solana-Curriculum
Lesson Number
Unable to start projects at all.
Question
I can't seem to get the projects to show up on my freecodecamp site. The site loads without any projects, then it gives a 4xx-5xx after a few minutes. Any ideas how I could fix this?
Code and Screenshots

Thank you Shaun, I have been able to get it started and running with gitpod rather than my local environment.
I'm excited to begin!

Excellent. I will close this for now, but if you manage to get it running locally, feel free to reply here with your solution to doing so.


IteratorObservable to encapsulate common 'make from an iterator' pattern

Opens up implementing 'range', 'just', 'justn', 'justOnce' without nested lambdas and Observable::create (which does confusing things wrt lifecycle of Subscriptions). Also enables creating an Observable from an arbitrary range (by putting it in a subclass of IteratorObservable and supplying a copy constructor).
Idea for this came from talking from @benjchristensen and @lehecka about a ::fromIterator static method on Flowable and Observable. We wanted to avoid separate "generator" lambdas and holding the initial state of a Flowable in whatever superclass implements fromIterator. This puts the responsibility of maintaining that initial state in the subclass, as we as being a generator for when subscribe is called multiple times.
Subclasses encapsulate state for an iterator, and implement two methods: haveNext and getNext to signal to the superclass if the iterator is empty and to get the next element. Superclass handles cancellation.
Not merge ready, looking for feedback on how the API looks.

this feels like a stale PR. Do we still want to land this?


glum with ray

Using glum and joblib with ray, I ran multiple models and found that threads could use 1 core, and if I set n_jobs=1, I could only use 50% of all the cpu。

Can you share more of your setup and infrastructure? Maybe a minimal working example would also help to see how ray and glum interact. Unfortunately, I never used ray before, so I'm not sure what the intended behavior is.

When using ray, the value of the environment variable OMP_NUM_THREADS is set to 1 by default, and I changed it to 10, which worked fine in parallel. Is there any parameter in glum's package that can control the number of parallel cpus? If so, please tell me.

OMP_NUM_THREADS is not specific to ray. It controls the number of cores used by openmp, which both ray and glum use.   Setting the environment variable to 10 will provide 10 cores to glum. If you use the cross-validated version of GeneralizedLinearRegressor, you can also set n_jobs=X so that the cross-validation will be split across X cores.


Add index_stats_search_scroll_current metric

Greetings!
As I can see, there is a such field in struct, but no metric exposed - https://github.com/justwatchcom/elasticsearch_exporter/blob/c36d0a21ea7e3195297e1de1a77fd1ce93103d30/collector/indices_response.go#L104

Hi @adeesent,
we happily accept PRs, especially if they don't introduce extra calls to ES API endpoints. I probably releasing a new release candidate within the next week, so if you're fast, the PR can make it into the next release. Let me know, if you need help


Fix Black Screen Issue

small delay before chained back navigation

Turns out the iOS NFC modal sets the app in the background. Coming back from the modal triggers the transactions to start loading again. This clears the progress transaction screen and makes it go black.


Code snippets to download datasets with R, Python and curl

[x] add an action in the bottom toolbar to download using your favourite language/tool alongside download as TSV
[ ] use a dialog component to propose snippets
[x] use a tab component navigate between different tools/languages
[x] add a copy button to copy the visible snippet
[x] use a library to render the code neatly (i.e. highlight.js)

Fully implemented and targeted for 0.4.3.


feat: Allow to hide entered text label in autosuggest

Description
Allow the hideEnteredTextLabel to be set for Autosuggest. This will allow to hide the default "Use: user input" option that's displayed when typing into Autosuggest. This is useful when Autosuggest is used to suggest options from a closed set.
The default behavior is the same as the current behavior, i.e. the entered text label is visible.
How has this been tested?

Added unit tests
Added a test page

Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness

Changes include appropriate documentation updates.
Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
Changes do not include unsupported browser features, see CONTRIBUTING.md.
Changes were manually tested for accessibility, see accessibility guidelines.

Security

If the code handles URLs: all URLs are validated through the checkSafeUrl function.

Testing

Changes are covered with new/existing unit tests?
Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Reopening this from the original repository: https://github.com/cloudscape-design/components/pull/2526

Opened to check something. please ignore. I will continue in #2526


Unable to add DynamicConsoleLogger to Console application

Hi,
Unlike the usual web application in ASP.NET core, We have console application (.NET core) hosted in PCF. These application are deployed and stopped. They are either invoked using PCF scheduler or using CF task. Now the problem is, Even after adding the DynamicLoggerConsole, the dynamic logging is not getting enabled in PCF.
We do not need management endpoints for this hence we have not added the management actuators for the same.

Anything logged to Console (stdout) should show up, whether you use Console.WriteLine, or add the Microsoft ConsoleLogger or Steeltoe Dynamic Console Logger to Microsoft Logging. If you're not using the Logging actuator or needing to change log levels while the app is running, you probably don't need to use the Steeltoe logger at all.
Do you see output if your app does straight Console.WriteLine("some text here"); ?

Closing issue.  Reopen if this is still a problem.

@TimHess,
The point is I'm unable to change the logging level using the Pivotal UI inspite of  using actuator. Point to note is that it is not an Long running process. The whole app is invoked using a CF task. In normal condition the app is always in stopped state only.

When running with cf run-task your doesn't get a port assigned (at least as far as I know - the 2.1.1 release of Steeltoe included some alterations to work around the port environment variable not being set, and we've seen issues with port binding failing when running that way), so I don't think there's a way to communicate with that instance of it


Get Current Station ID

Hi,
I am the developer of the ESP Radio App, and I would love to have a option to get the current preset id.
Regards,
Sander

or when you do this:
http://<IP_ADDRESS>/?uppreset=1
that it says current preset is 3 instead of command accepted

Fixed.  Output will look like: "Preset is now 6"

Thanks you so much!
This is very hard needed for the tablet app

I just installed the update, but when you are on preset 0 and go prev I go to -1 and then -2

If the preset is out of range (like -1), the software will detect "no data" and will switch to the next higher preset.
I realize that the selected preset is not reflected to the app automatically.

ok will do, I cleaned it up a bit, and then found out it sends blank values just fine :+1: also changed it so it didn't retain and had QoS of 0 in case those things were causing the connection drop and no luck still dropped the connection.
Here's the  refactored code: GIST


Move Configuration Cache serialization API to internal package

And rename module/package to highlight the isolation aspect.
Reviewing cheatsheet
Before merging the PR, comments starting with

❌ ❓must be fixed
🤔 💅 should be fixed
💭 may be fixed
🎉 celebrate happy things

@bot-gradle test without pts

I've triggered the following builds with parameters: -DenablePredictiveTestSelection=false for you. Click here to see all build failures.

PullRequestFeedback build

Part of #29257

@bot-gradle test AST

I've triggered the following builds for you. Click here to see all build failures.

AllSmokeTestsPullRequestFeedback build


normalize composer.json

add missing dependencies
move phpunit to dev requirements

add missing dependencies
move phpunit to dev requirements

Yes! Thanks Tom.


The implementation of the c# client creates httpclient per request which is wrong

From the Microsoft documentation

HttpClient is intended to be instantiated once and re-used throughout the life of an application. Instantiating an HttpClient class for every request will exhaust the number of sockets available under heavy loads. This will result in SocketException errors.

https://msdn.microsoft.com/en-us/library/system.net.http.httpclient(v=vs.110).aspx

Enable the InjectHttpClient setting (will enable this by default in the next major version).


Cleaning up flyway

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Luke Dutton seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

As per my comment here https://github.com/flyway/flyway/issues/2908#issuecomment-679920924 we wont be accepting this PR.
Even if this was a valid change for the non-community visible sources, a massive auto-format like this would likely not be accepted. Smaller PR's formatting specific pieces of code, with a sensible justification as to why they should happen, would be much better.


Support Google cloud dataproc kafka sink

Kafka dataproc sink is very useful to subscribe from Kafka topic into Google cloud Dataproc (Apache spark) .
Dataproc is a fast, easy-to-use, fully managed cloud service for running Apache Spark and Apache Hadoop clusters in a simpler, more cost-efficient way.
Any ideas of how to create it?

You need to open an issue to general camel project: https://issues.apache.org/jira/projects/CAMEL/issues
A new component for dataproc should be created. After that we can think about the related kamelet.

No problem.

Is there any way of subscribing from Kafka topic into Google cloud Dataproc?

Not with Camel at the moment as far as I know

For a temp solution, using camel-google-pubsub-kafka-sink-connector to subscribe from Kafka topic into Google cloud then use Google pud/sub to Dataproc or any other GCloud.
Is there any way to integrate it into Kamelet?

You're mixing up the projects. Camel-kafka-connector is a separated project, camel-kamelets is a different one, they just share Camel, but they are different.
You can use the google pubsub one, but you'll need to wait for Camel-k 1.5.0 release


Feature/experiment tracking

Description
The purpose of this PR is to add experiment tracking to Healthchain.
Related Issue
#57
Changes Made
A new class ExperimentTracker is created for usage inside the sandbox decorator. This automatically tracks any metadata about experiments run and saves the data to a local sql database.
A few additional bug fixes were made for LLM integration tests which were failing.
Testing
The summarization pipeline example in the cookbook was modified to use the experiment tracker and run locally to confirm that the expected behaviour occurs
Checklist

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

Additional Notes


Run linters in the directory of the file being linted

flake8 looks for project-specific settings in setup.cfg or tox.ini, found in the closest surrounding parent directory of the command line argument.  (If there are multiple arguments, flake8 starts looking in the common shared parent directory.)
This logic does not work when ale runs flake8 - instead of flake8 path/to/file/in/question.py.  In practical terms, this is only painful when the setup.cfg you want to be used resides in a subdirectory of the current working directory.  Example:
- (current working directory)
    - package1/
        - setup.cfg
        - src/
            - file.py
    - package2/
        - setup.cfg
        - src/
            - another_file.py

When I'm editing ./package1/src/file.py, I'd like flake8 to pick up the project-specific settings from ./package1/setup.cfg.
I think the simplest/most generic way of achieving this is to run the flake8 - process with the working directory set to the directory of the file I'm editing, i.e. ./package1/src/ in this case.
I don't see a way to ask vim's job_start() to run the job in a different working directory, so this would have to be done by changing the command itself to run cd <directory> && <original-command>.
I don't know if this should be done only for flake8, or if this is something that would be useful for other linters as well.  Maybe start cautiously and only do this for flake8?
Things to watch out for:

the directory of the file might not exist (if I :e new-subdir/file.py and start typing)
the linter command may be relative to $PWD (e.g. ./node_modules/.bin/eslint or ./.venv/bin/flake8), and blindly prepending cd %:p:h &&  could break that.

The solution is easy. Find the setup.cfg file ourselves, and pass it via the command line. It's easier for eslint, which lets you set a filename in addition to taking input from stdin.

The logic that flake8 uses to find the right config file is a bit convoluted (AFAICT it looks for all setup.cfg, tox.ini and .flake8 files in all parent directories, then merges the options from all of them, in a particular order).  I'm not sure whether it's possible to emulate that with a command line argument...

We can either replicate that behaviour here, or open an issue for flake8 asking for them to add an option like eslint, which lets you set a filename for a file in addition to taking input from stdin. That's the only way to both check for problems in a buffer not yet saved to disk and also get the exact behaviour for if you had run flake8 against a file on disk.

Looks like flow linter also requires to be run in the same directory as the buffer's file resides in. If not — it reports that some of the modules couldn't be resolved.

The flake8 issue here has been resolved. If there are issues with Flow still, they can be resolved separately.

The flake8 issue here has been resolved.

How so? I'm just switching over from syntastic and encountered this issue. The only way I'm aware of to provide the config file is with ale_python_flake8_options, but that of course would be global in my .vimrc, whereas I have separate config files for separate python projects.
For anyone else running into this bump after me, this works around the issue beautifully:
let g:ale_python_flake8_executable='/bin/sh -c "cd $(dirname %) && /path/to/your/flake8"'

But it sure seems like a reasonable thing for ale to be doing by default. What's a more appropriate working directory than the location of the file being linted?

How so?

There is an argument for flake8 for indicating where the filename is.

But it sure seems like a reasonable thing for ale to be doing by default.

It isn't. Some tools need to be run from the directory the file is in, others need to be run from project directories, others from the directory a configuration file is in, and for others it doesn't matter.

EDIT: the story is the same for mypy

Read the mypy linter code. The directory is changed there.

See :help ale-integrations, which describes how to set options differently for different buffers (using flake8 as an example). You don't need to set anything for the flake8 configuration file if you use one of the standard configuration file names. flake8 will find it automatically. Try using it, and see what happens.


issue with request header encoding

user-agent header Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5 (Ergänzendes Update)) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15 is being converted to Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5 (ErgÃ¤nzendes Update)) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15
My app is running on 4.16.4

Unfortunately Express does not do any header decoding; it is all handled by node.js http server. I would recommend opening an issue in the node.js repo 👍


Support static linux libraries

For Go apps and other languages that need static.
We can probably use Frida's injection API. Though it will be tricky in extension

Another idea would be to do a solution similar to SIP patch where we edit the binary.

Also a Go solution might be having a pkg that loads us that compiles only on debug builds.

Frida might not support static, though when @Razz4780 experimented with #1702 and created a shim we crashed on TLS (Thread Local Storage).
We need to figure out how to solve the TLS issue as well - maybe avoiding use of it (might be hard..) or providing our own TLS (without using nativeTLS)


make FunctionModule's avg, max, min & sum functions nullable (consumer opt-in).

These aggregate functions are nullable, in some edge cases.
Current types:
a. are a lie, if some edge cases are possible in consumer's queries / state of database.
b. do not allow our consumers to state null as a possible return type.
Let's help our consumers write robust code, by allowing them to opt-in for the stricter nullable form.
Should fit smooth like 🧈 with recently merged .coalesce(...) function.

[x] implement type changes.
[x] fix typings tests.

Sorry about docs, hope its fine now.. 😅

Thanks!


Grant lambdas access to other project resources for GraphQL API is either broken or very misleading

Describe the bug
The workflow you go through to "update permissions granted to the Lambda function to perform on other resources in your project" does not work - at least not in the way that this piece of documentation implies that it does: https://docs.amplify.aws/cli/function. If you don't choose the create operation, you won't actually be able to access an AppSync api from the lambda.
Amplify CLI Version
4.20.0
To Reproduce

Go through the amplify update function flow as shown in the above image, being sure to choose an operation other than create - read for example.
Also, follow all the other steps outlined in the amplify docs here: https://docs.amplify.aws/cli/function#signing-a-request-from-lambda - except instead of a create mutation, feel free to switch to one that is implied to be available based on the operation you chose (a list query for example).
Then, run the lambda and note that you get back an unauthorized error.
Expected behavior
Lambda's response contains response of the AppSync query.
Desktop (please complete the following information):

OS: Ubuntu
Node Version. 13.14.0

Additional context
When going through the permission grant flow, the outcome is the generation of a CloudFormation template in the lambda's directory. This contains a subtree AmplifyResourcesPolicy.Properties.PolicyDocument.Statement.Action, and this is where the problem is. The actions granted by choosing the read in the permission grant flow are appsync:Get* and appsync:List*; update gets you appsync:Update* and delete gets you appsync:Delete*. create on the other hand gives you appsync:Create*, appsync:StartSchemaCreation, and critically appsync:GraphQL.
An examination of the available Actions under the AppSync category in the IAM Policy Simulator reveals the following:

It looks like all the Create*, Get*, Update*, and Delete* Actions are meta-actions, which would allow your lambda to manipulate AppSync itself - not use it.
I'm not sure if this is technically a bug, because you may well want a lambda to be able to perform meta-actions on your AppSync instance. But that's definitely not the use case advertised in the amplify docs on functions that I've linked twice in here. Those docs technically work because they recommend choosing the create option in the workflow, but the way the article is written, that looks like an arbitrary choice that shouldn't affect the outcome, and/or it is implied that because the author was using a mutation that did creation, that's why create was chosen.
Workaround
Just choose the create option if you want a lambda to be able to access your AppSync API (and optionally go into the cloudformation template and delete the extraneous Create* and StartSchemaCreation Actions).
Suggested Fix
Update the CLI to include some more language about how the create, read, update, and delete choices relate to meta actions on the AppSync api itself; add a new category named access or call GraphQL endpoint or something; move the Action appsync:GraphQL from create to this new category; update the docs at https://docs.amplify.aws/cli/function

@djsmedes thanks for reporting this issue, we'll look into it.

I can confirm this issue through testing.
Thank you @djsmedes for the insight on what the Actions like appsync:Get* were actually doing.
Amplify should generate cloudformation to support the CLI is defined here.
:+1: this if you want me to take a stab at PR'ing for this.


Make a tiny standard library with typed assembly

Exercise the typed assembly strategy
Create an abstract layer above actual assembly with pretty types

(label print (before %rsi String))
... code blocks ...

Error at line 10 in test.s: Type of %rsi is undefined, expected String

Also should cleanup the build artifacts.