Issue while playing Widevine protected content

Hello,
We are trying to use Shaka Player Embedded integrated with Widevine DRM. Compiling CDM into Shaka Player Embedded worked smoothly according to the CDM and Shaka Player Embedded documentation.
Content that is not encrypted works fine, as expected.
When switching to DRM protected content the player just freezes when trying to display encrypted content. Tests were done using Widevine sample provided content and Shaka Packager prepared content. The below content/proxy has problems only on IOS - everything works fine on Exoplayer and Browser.

content: https://storage.googleapis.com/wvmedia/cenc/h264/tears/tears_sd.mpd
proxy: https://proxy.staging.widevine.com/proxy

Same results on iPhone 5s iPhone X.
According to proxy logs, license was issued corectly. Widevine team sugested I submit this issue; below is the code used to start player and logs. Any thoughts on this problem?
How the payer framework was used:
#import "ViewController.h"
#import <ShakaPlayerEmbedded/ShakaPlayerEmbedded.h>
@implementation ViewController
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    // Make a Shaka Player view.

    ShakaPlayerView *player = [[ShakaPlayerView alloc] init];
    player.frame = self.view.bounds;
    [self.view addSubview:player];
    [player setClient:NULL];
    // Load and play an asset.

    // all ok - clear
    //[player load:@"https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd" withBlock:^(ShakaPlayerError *error){if (error) {NSLog(@"###error");} else {NSLog(@"###ok");}}];

    // not working - encrypted
    [player load:@"https://storage.googleapis.com/wvmedia/cenc/h264/tears/tears_sd.mpd" withBlock:^(ShakaPlayerError *error){if (error) {NSLog(@"###error");} else {NSLog(@"###ok");}}];
    [player<EMAIL_ADDRESS>withString:@"https://proxy.staging.widevine.com/proxy"];

    [player play];

}
@end

Application log for iPhone 5s is below:
[Info]: "Starting attach..."
[Info]: "Starting load of https://storage.googleapis.com/wvmedia/cenc/h264/tears/tears_sd.mpd..."
[Log]: "Found variant with audio and video content, so filtering out audio-only content in all periods."
[Info]: "Created MediaKeys object for key system"	"com.widevine.alpha"
[Log]: "codecs"	"avc1-mp4a"	"avg bandwidth"	1409174
[Log]: "onChooseStreams_"	{startTime:0, textStreams:[...], variants:[...]}
[Log]: "Choosing new streams after period changed"
[Log]: "init: completed initial Stream setup"
[Log]: "Ignoring duplicate init data."
[Log]: "Ignoring duplicate init data."
[Log]: "Ignoring duplicate init data."
[Log]: "Ignoring duplicate init data."
[Warn]: "No preferred audio language set.  We will choose an arbitrary language initially"
2019-10-09 18:14:59.461739+0300 testShaka[8314:7569067] ###ok
[Log]: "(audio:1)"	"looking up segment:"	"presentationTime=0"	"currentPeriod.startTime=0"
[Log]: "(video:2)"	"looking up segment:"	"presentationTime=0"	"currentPeriod.startTime=0"
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(120):OpenSession] CdmEngine::OpenSession
[DEBUG:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/crypto_session.cpp(644):Open] CryptoSession::Open: requested_security_level: Default
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/usage_table_header.cpp(38):Init] UsageTableHeader::Init: security level: 3
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/usage_table_header.cpp(70):Init] UsageTableHeader::Init: number of usage entries: 0
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/device_files.cpp(155):ExtractDeviceInfo] ExtractDeviceInfo Entry
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(156):OpenSession] CdmEngine::OpenSession: ksidA149B344
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(529):QueryStatus] CdmEngine::QueryStatus
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(242):GenerateKeyRequest] CdmEngine::GenerateKeyRequest: ksidA149B344
[DEBUG:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/license.cpp(336):PrepareKeyRequest] PrepareKeyRequest: nonce=2502408683
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(691):generateRequest] A license request has been generated.
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(120):OpenSession] CdmEngine::OpenSession
[DEBUG:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/crypto_session.cpp(644):Open] CryptoSession::Open: requested_security_level: Default
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/device_files.cpp(155):ExtractDeviceInfo] ExtractDeviceInfo Entry
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(156):OpenSession] CdmEngine::OpenSession: ksidDF5BE7F3
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(529):QueryStatus] CdmEngine::QueryStatus
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(242):GenerateKeyRequest] CdmEngine::GenerateKeyRequest: ksidDF5BE7F3
[DEBUG:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/license.cpp(336):PrepareKeyRequest] PrepareKeyRequest: nonce=2818731362
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(691):generateRequest] A license request has been generated.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x10401fc00] Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
WARNING: Logging before InitGoogleLogging() is written to STDERR
I1009 18:15:00.359156<PHONE_NUMBER> media_processor.cc:456] No hardware-accelerators available, using decoder: aac_at
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x10402d800] Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[h264 @ 0x103060c00] Reinit context to 320x144, pix_fmt: yuv420p
I1009 18:15:00.475390<PHONE_NUMBER> media_processor.cc:462] Using decoder: h264, with hardware accelerator: videotoolbox
[Log]: "(video:2)"	"startup complete"
[Log]: "(all) setting up Period 0"
[Log]: "(all) Stream 2 is being or has been set up"
[Log]: "(all) Stream 1 is being or has been set up"
[Log]: "(all) Period 0 is being or has been set up"
[h264 @ 0x1040a7800] Reinit context to 320x144, pix_fmt: videotoolbox_vld
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(331):AddKey] CdmEngine::AddKey: ksidDF5BE7F3
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(759):IsReleaseSession] CdmEngine::IsReleaseSession: ksidDF5BE7F3
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(331):AddKey] CdmEngine::AddKey: ksidA149B344
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(759):IsReleaseSession] CdmEngine::IsReleaseSession: ksidA149B344
[Log]: "canSwitch_"
[Log]: "Calling switch_(), bandwidth=2987 kbps"
[Log]: "switch_"
[Log]: "switch: switching to Stream (video:3)"
[Log]: "switch: Stream (audio:1) already active"
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x10401fc00] Failed to seek for auxiliary info, will only parse senc atoms for encryption info
[Log]: "Choosing new streams after key status changed"
[Log]: "(video:3)"	"looking up segment:"	"presentationTime=12"	"currentPeriod.startTime=0"
I1009 18:15:03.058017 11381696 video_controller.cc:163] Dropped 1 frames.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x10402d800] Found duplicated MOOV Atom. Stopping.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x10402d800] Failed to seek for auxiliary info, will only parse senc atoms for encryption info
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x10402d800] Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[h264 @ 0x103060c00] Reinit context to 864x384, pix_fmt: yuv420p
[h264 @ 0x103060c00] left block unavailable for requested intra4x4 mode -1
[h264 @ 0x103060c00] error while decoding MB 0 0, bytestream 43889
[h264 @ 0x103060c00] concealing 1296 DC, 1296 AC, 1296 MV errors in I frame
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
[Log]: "Calling switch_(), bandwidth=12272 kbps"
[Log]: "switch_"
[Log]: "switch: Stream (video:3) already active"
[Log]: "switch: Stream (audio:1) already active"
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x10401fc00] Failed to seek for auxiliary info, will only parse senc atoms for encryption info
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
[Log]: "Stall detected at 10.018999999999949 for 1.005000114440918 seconds. Seeking forward 0.1 seconds."
I1009 18:15:11.669751<PHONE_NUMBER> media_processor.cc:462] Using decoder: h264, with hardware accelerator: videotoolbox
[Log]: "(all): seeked: buffered seek: presentationTime=10.118999999999948"
I1009 18:15:11.682724<PHONE_NUMBER> media_processor.cc:456] No hardware-accelerators available, using decoder: aac_at
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
[h264 @ 0x1040b3800] Reinit context to 320x144, pix_fmt: videotoolbox_vld
I1009 18:15:11.784584<PHONE_NUMBER> media_processor.cc:456] No hardware-accelerators available, using decoder: aac_at
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
I1009 18:15:11.890714<PHONE_NUMBER> media_processor.cc:456] No hardware-accelerators available, using decoder: aac_at
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
I1009 18:15:11.993680<PHONE_NUMBER> media_processor.cc:456] No hardware-accelerators available, using decoder: aac_at
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
I1009 18:15:12.099826<PHONE_NUMBER> media_processor.cc:456] No hardware-accelerators available, using decoder: aac_at
[Log]: "Stall detected at 10.118999999999948 for 1.0209999084472656 seconds. Seeking forward 0.1 seconds."
[Log]: "(all): seeked: buffered seek: presentationTime=10.218999999999948"
I1009 18:15:12.962056<PHONE_NUMBER> media_processor.cc:462] Using decoder: h264, with hardware accelerator: videotoolbox
[h264 @ 0x103090e00] Reinit context to 320x144, pix_fmt: videotoolbox_vld
I1009 18:15:13.041841<PHONE_NUMBER> media_processor.cc:456] No hardware-accelerators available, using decoder: aac_at
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
I1009 18:15:13.147902<PHONE_NUMBER> media_processor.cc:456] No hardware-accelerators available, using decoder: aac_at
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
I1009 18:15:13.252373<PHONE_NUMBER> media_processor.cc:456] No hardware-accelerators available, using decoder: aac_at
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
I1009 18:15:13.359730<PHONE_NUMBER> media_processor.cc:456] No hardware-accelerators available, using decoder: aac_at
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.

[....]

[Log]: "Stall detected at 11.618999999999943 for 1.0049998760223389 seconds. Seeking forward 0.1 seconds."
[Log]: "(all): seeked: buffered seek: presentationTime=11.718999999999943"
I1009 18:15:32.081878<PHONE_NUMBER> media_processor.cc:462] Using decoder: h264, with hardware accelerator: videotoolbox
I1009 18:15:32.090919<PHONE_NUMBER> media_processor.cc:456] No hardware-accelerators available, using decoder: aac_at
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
[h264 @ 0x10307f600] Reinit context to 320x144, pix_fmt: videotoolbox_vld
I1009 18:15:32.195667<PHONE_NUMBER> media_processor.cc:456] No hardware-accelerators available, using decoder: aac_at
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
I1009 18:15:32.302528<PHONE_NUMBER> media_processor.cc:456] No hardware-accelerators available, using decoder: aac_at
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
I1009 18:15:32.409524<PHONE_NUMBER> media_processor.cc:456] No hardware-accelerators available, using decoder: aac_at
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
I1009 18:15:32.490700<PHONE_NUMBER> media_processor.cc:462] Using decoder: h264, with hardware accelerator: videotoolbox
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
I1009 18:15:32.512061<PHONE_NUMBER> media_processor.cc:456] No hardware-accelerators available, using decoder: aac_at
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
I1009 18:15:32.617478<PHONE_NUMBER> media_processor.cc:456] No hardware-accelerators available, using decoder: aac_at
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
I1009 18:15:32.720180<PHONE_NUMBER> media_processor.cc:456] No hardware-accelerators available, using decoder: aac_at
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(1699):Decrypt] CdmEngine::Decrypt: session not found: Empty session ID
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1193):decrypt] Key not available.

[....]

It works fine for me on both an armv7 and arm64 device.  What version of the CDM and Shaka Player Embedded are you using?  What are the flags you passed to ./configure?
Steps I performed:

Built the Embedded framework manually

../configure --ios --cpu arm64 --eme-impl ~/prebuilt_cdm/shaka_plugin/dev_cdm.json

Copied framework to sample_xcode_project
Edited sample_xcode_project/build.sh to do nothing
Edited sample_xcode_project/sample_xcode_project/assets.plist to include your new asset
Launched sample project and selected from list

If you define a client, do you get any error logs?
@interface ViewController () <ShakaPlayerClient>
@end

@implementation ViewController
- (void)onPlayerError:(ShakaPlayerError *)error {
  NSLog(@"Async error: %@", [error message]);
}
...
@end

[player setClient:self];

To help debug, you could edit this part of the decrypt operation to log the requested key ID and the existing key IDs (using cdm->GetKeyStatuses).  You could also log here for when we get the license back.  The Widevine CDM synchronously loads the session, so after it returns we should have the keys.

CDM version used is 15.2.1. Shaka Player Embedded downloaded from GitHub.

Embedded framewark was built running configure --ios --eme-impl ~/shaka/prebuilt_cdm/shaka_plugin/dev_cdm.json
No changes to assets.plist and build.sh .

Just passed the asset as seen in the code.
Will try the way you suggested, adding more logs, and get back to you with an answer.

Retrying what you suggested and doing everything mentioned above did not work.
Reinstalling MacOS (back to Mojave), XCode and recompiling everything made things work flawless. The versions of Shaka Player Embedded and CDM used were the latest from repositories.
Sorry for the troubles and thanks for involvement.


Need to create a combo chart

I need a combo chart which has both line and column plot like the picture showing above
Based on the official website, it looks like it's impossible on API level
So I was trying to add a child node in the plotarea node
my code is:
prs = Presentation()
slide = prs.slides.add_slide(prs.slide_layouts[6])
chart_data = ChartData()
chart_data.categories = ['East', 'West', 'Midwest']
chart_data.add_series('Q1 Sales', (19.2, 21.4, 16.7))
chart_data.add_series('Q2 Sales', (22.3, 28.6, 15.2))
chart_data.add_series('Q3 Sales', (20.4, 26.3, 14.2))

x, y, cx, cy = Inches(2), Inches(2), Inches(6), Inches(4.5)
columnc = slide.shapes.add_chart(
    XL_CHART_TYPE.COLUMN_CLUSTERED, x, y, cx, cy, chart_data
)

prs1 = Presentation()
slide1 = prs1.slides.add_slide(prs1.slide_layouts[6])
chart_data1 = ChartData()
chart_data1.categories = ['East', 'West', 'Midwest']
chart_data1.add_series('Q1 Sales', (5, 5, 5))

linec = slide1.shapes.add_chart(
    XL_CHART_TYPE.LINE, x, y, cx, cy, chart_data1
)
chartb = columnc.chart
chartl = linec.chart

a=chartl.plots._plotArea
b=chartb.plots._plotArea
#print a.xml
#dir(a)
k=a.getchildren()[0]
#print b.xml
b.insert(1,k)
#print b.xml
prs.save('test.pptx')

But when I open test.pptx, it shows it needed repairing, and it can't repair, so I got a blank slide.
What's wrong with my code or is there any other way to do this? Thank you!
A similar question has been posted on stackoverflow. (if click doesn't work, you can copy the link and manually go there)
https://stackoverflow.com/questions/47564031/add-a-ref-line-in-a-column-chart-but-presentation-is-broken

What does the XML you need look like and how is the XML this code generates different?

I also badly need combined charts.  Can't find the right way to implement that in the library.  Any hint @scanny ?

I added a Chart.add_subchart() method and it works for me, see https://github.com/jbq/python-pptx/commit/ddffc2839e3f909b3bf8acdc8fe80ecfe63492a6
It's very hackish though, the current API does not provide means to deal with the subtleties of the MS Chart API.
Example calling code:
    chart_data = ...

    # add chart to slide --------------------
    x, y, cx, cy = Cm(4.85), Cm(6), Cm(20), Cm(11)
    graphic_frame = slide.shapes.add_chart(
        XL_CHART_TYPE.COLUMN_CLUSTERED, x, y, cx, cy, chart_data
    )

    chart = graphic_frame.chart

    subchart_data = ...

    # add chart to slide --------------------
    subchart = chart.add_subchart(
        XL_CHART_TYPE.XY_SCATTER,
        subchart_data,
        [
            chart._chartSpace.plotArea.xpath("c:catAx/c:axId/@val")[0],
            chart._chartSpace.plotArea.xpath("c:valAx/c:axId/@val")[0]
        ]
    )

The last two lines are meant for the second chart to reuse the axis from the first chart.

What would be format of subchart_data . I am passing a touple and getting error .
File "C:\Python27\lib\site-packages\pptx\chart\xmlwriter.py", line 1222, in _ser_xml
'ser_idx':    series.index,
AttributeError: 'int' object has no attribute 'index'

@masterofdestiny see example at https://python-pptx.readthedocs.io/en/latest/user/charts.html

Hi I saw it and based on that here is my entire code,
                    for k,v in smdt.items():

                          chart_data.add_series(k, v)
                      graphic_frame = discoverable.shapes.add_chart(
                          XL_CHART_TYPE.COLUMN_CLUSTERED, x, y, cx, cy, chart_data
                      )

                      chart = graphic_frame.chart
                      #self.chart_style(chart, title,  6, self.report_format)

                      chart_data = ChartData()
                      chart_data.categories = cat
                      chart_data.add_series('', GVS )
                      x, y, cx, cy = Inches(1.5), Inches(2), Inches(9), Inches(4)
                      chart1 = discoverable.shapes.add_chart(
                          XL_CHART_TYPE.LINE, x, y, cx, cy, chart_data
                      ).chart

                      category_axis = chart1.category_axis
                      category_axis.has_major_gridlines = False
                      category_axis.minor_tick_mark = XL_TICK_MARK.OUTSIDE
                      category_axis.tick_labels.font.size = Pt(10)
                      value_axis = chart1.value_axis
                      value_axis.has_minor_gridlines = False
                      value_axis.has_major_gridlines = False
                      value_axis.visible = False
                      chart1.chart_title.text_frame.text=''

                      chart1.has_title = False
                      value_axis.tick_label_position = None
                      chart1.has_legend = False
                      value_axis.major_tick_mark = XL_TICK_MARK.NONE

                      subchart_data = chart1
                      #add chart to slide --------------------
                      chart.add_subchart(
                          XL_CHART_TYPE.XY_SCATTER,
                          subchart_data
                          [
                              chart._chartSpace.plotArea.xpath("c:catAx/c:axId/@val"),
                              chart._chartSpace.plotArea.xpath("c:valAx/c:axId/@val")
                          ]
                     )
#

Still I am getting the error.
chart._chartSpace.plotArea.xpath("c:valAx/c:axId/@val")
TypeError: 'Chart' object has no attribute 'getitem'

Can you provide a minimal test GIST as example?
I get NameError: name 'smdt' is not defined with your code

Please check the above full code I have updated. Please take any local ppt code.

Sorry the example doesn't work at all:
NameError: name 'Presentation' is not defined
Than after fixing:
NameError: name 'x' is not defined
Seems like you are not actually executing the code to verify your testcase...

I am sorry since my code was into the big file so I could not copy it however I just ran everything seperately and updated code exactly you should be able to get this running

There are several mistakes:

there is a missing comma after subchart_data on line 62
subchart_data is of type Chart instead of ChartData

I did below but getting another issue  TypeError: 'Chart' object is not
iterable.
subchart_data = chart
#add chart to slide --------------------
chart.add_subchart(
XL_CHART_TYPE.XY_SCATTER,
subchart_data,
[
chart._chartSpace.plotArea.xpath("c:catAx/c:axId/@val"),
chart._chartSpace.plotArea.xpath("c:valAx/c:axId/@val")
]
)
On Fri, Jul 20, 2018 at 6:37 PM Jean-Baptiste Quenot <
<EMAIL_ADDRESS>wrote:

There are several mistakes:

there is a missing comma after subchart_data on line 62
subchart_data is of type Chart instead of ChartData

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/scanny/python-pptx/issues/338#issuecomment-406595272,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABADDF5FMHBTEiUSJznpZrwyRbbddZS5ks5uIdX4gaJpZM4QxRi5
.

@masterofdestiny : please type @val inside backquotes or block of code.

I'm getting the same issue here.

Note: the work I did with add_subchart() has a drawback: it is impossible to modify the chart data in Excel, doing so screws up the chart and cannot be undone.  I have to find a way to have global chart data for all subcharts.

I figured out why data is not editable: one ChartData instance is used for each chart, and that is not compatible with the way python-pptx works.  The same ChartData instance has to be used for all charts.

No it's the opposite, we need a single ChartData object to be used for all charts.  I have done this research but not implemented a solution ATM.

Hi @jbq I keep getting the below error. I have modified the python-pptx.py file inside jupyter files.
AttributeError: 'CategoryWorkbookWriter' object has no attribute 'x_values_ref'

@arpit0515 without a fully working testcase I can't tell you where the error comes from
Please bear in mind that there is currently no official support for combo charts.  My combo chart hack is a half-baked hack that only works if the first plot has category and values axis, and breaks if you try to modify the data in PowerPoint/Excel.
I'd love to improve the quality of my contribution, but unfortunately, combo charts require a major overhaul of a significant part of the python-pptx library related to how charts are created and how chart data is referenced.  Requires @scanny's help, is it possible to provide funding for this?

Inspired by the discussion here and @jbq 's add_subchart function, I created a simple boxplot and hope you find it useful.
The general idea behind this boxplot is a stacked bar plot combined with a line-plot. The barplot are consisted of three parts: 25 percentile, 50%-25%, and 75%-50%, while the first bar is set to transparent. On the other plot, the lineplot, I hid the line and added a high-low line to it. Following is the full code I've used.
from pptx import Presentation
from pptx.chart.data import CategoryChartData
from pptx.util import Inches, Pt
from pptx.enum.chart import XL_CHART_TYPE

from pptx.oxml import parse_xml
from pptx.oxml.ns import nsdecls

from pptx.chart.xmlwriter import SeriesXmlRewriterFactory, ChartXmlWriter
from lxml import etree
from io import BytesIO
from pptx.oxml.ns import _nsmap as namespaces

data = {
    '5%': [370, 381],
    '25%':[435, 458],
    '50%-25%': [71, 89],
    '75%-50%': [68, 79],
    '95%': [673, 724]
}

# XMLs used to set the properties
# 1. set serie fill to transparent
xml_nf = '''<c:spPr %s><a:noFill/></c:spPr>'''% nsdecls("c", "a")
# 2. set line fill to none
lnf_xml = '''<c:spPr %s>
    <a:ln w="25400">
        <a:noFill/>
    </a:ln>
    <a:effectLst/>
</c:spPr>''' %  nsdecls("c", "a")
# 3. Add a hihe-low line
hi_low_xml = "<c:hiLowLines %s/>" % nsdecls("c")

prs = Presentation()
slide = prs.slides.add_slide(prs.slide_layouts[6])
chart_data = CategoryChartData()
chart_data.categories = ['One', 'Two']
for d in ['25%', '50%-25%', '75%-50%']:
    chart_data.add_series(d, data[d])

x, y, cx, cy = Inches(2), Inches(2), Inches(6), Inches(4.5)
column_bars = slide.shapes.add_chart(
    XL_CHART_TYPE.COLUMN_STACKED, x, y, cx, cy, chart_data
)

# Hide the bar in the bottom showing 25 percentile
ser_one_no_fill = parse_xml(xml_nf)
column_bars.chart._chartSpace.plotArea.xpath("*/c:ser")[0].insert(0, ser_one_no_fill)

# Add a line plot in chartspace/plotarea
line_data = CategoryChartData()
line_data.categories = ['One', 'Two']
for d in ['5%', '95%']:
    line_data.add_series(d, data[d])

xml_bytes = ChartXmlWriter(XL_CHART_TYPE.LINE, line_data).xml
root_el = etree.parse(BytesIO(xml_bytes.encode('utf-8')))

val_axis = column_bars.chart._chartSpace.plotArea.xpath("c:valAx/c:axId/@val")
cat_axis = column_bars.chart._chartSpace.plotArea.xpath("c:catAx/c:axId/@val")
series_count = len(column_bars.chart._chartSpace.plotArea.xpath("*/c:ser"))

for el in root_el.xpath("/c:chartSpace/c:chart/c:plotArea/*", namespaces=namespaces):
    if el.tag.endswith("Chart"):
        # Since the two charts share the same axies, the axId should be the same
        existing_axis_ref = el.xpath("c:axId", namespaces=namespaces)
        for x in existing_axis_ref:
            el.remove(x)
        for x in cat_axis + val_axis:   # Order is important
            el.append(etree.Element("{%s}axId" % namespaces['c'], val=x))

        # Need to increment series index to make PP happy
        for i, x in enumerate(el.xpath("c:ser/c:idx", namespaces=namespaces)):
            x.set("val", str(series_count + i))
        for i, x in enumerate(el.xpath("c:ser/c:order", namespaces=namespaces)):
            x.set("val", str(series_count + i))

        # Show a short dash at 5 and 95 percentiles
        markers = el.xpath("c:ser/c:marker/c:symbol", namespaces=namespaces)
        for marker in markers:
            marker.set('val', 'dash')

        # Hide the line
        for s in  el.xpath("c:ser", namespaces = namespaces):
            lnf = parse_xml(lnf_xml)
            s.append(lnf)

        # Add a high-low line
        el.append(parse_xml(hi_low_xml))
        column_bars.chart._chartSpace.plotArea.insert(1, el)

prs.save('test.pptx')

@Wolfever , great workaround.  How would you go about replacing data in these bars if you loaded it in from an already created PPTX?

@scanny As I understand, the second chart is created using the ChartXmlWriter function which does no have all of the formatting capabilities of the Chart class, including changing the bar chart color and adding data labels . How would you suggest I edit the xml code to change the second chart color and adding data labels?

COMBO....    gpt result?

can anybody suggest a combined chart code for column + line ?


preprocessing error

Hi ，
when do preprocessing use pre_CT.py and my own dataset, it returns
0it [00:00, ?it/s]
0it [00:00, ?it/s]
What is the problem?
不知道是什么问题，需要您的帮助，能加您的QQ或微信沟通一下吗，谢谢！

Please check te video tutorial.

BTW, please use English on the issue page. thx.

OK, English as you wish~I thought we might have a chance to further cooperate since you're chinese. But anyway appreciate that.

Hi @JunMa11, thank you for getting the fine-tuning up and running so quickly, this is amazing. I wanted to follow-up on this issue. Following the readme and the video tutorial, I am trying to run the fine-tuning for my data. The data is in the medical segmentation decathlon format, ie,
imagesTr
| --- training images
labelsTr
| --- training labels (ground truth)
imagesTs
| --- test images
lablesTs
| --- testing labels (ground truth)
The above dataset contains MRI images and therefore I am using the pre_MR.py script. It has a single class and the class label is 1.0, so I just made the change in this line to accept a float instead of int. My whole command looks like the below:
python pre_MR.py -i ./data/Dataset002_spinefmri/imagesTr -gt ./data/Dataset002_spinefmri/labelsTr -o ./data/Dataset002_spinefmri/preprocessed_data --modality fMRI --prefix fMRI_spinal_cord --label_id 1.0
And I am getting the following as mentioned above:

0it [00:00, ?it/s]
0it [00:00, ?it/s]

Any pointers on this?
TIA :)

The above issue is now solved. It was due to a blank ground truth file.


feat: try to cancel in progress concurrent tasks if one fails for DefaultExecutor

Need to come up with a cohesive solution for both threads and tasks.
Anyio kinda already does this automatically w/ cancel scopes, we need to do it manually for the ThreadPool

We got rid of ConcurrentSyncExecutor, so this is no longer relevant


fix: default email used instead of throwing error on timetable submission

Ticket: https://pins-ds.atlassian.net/browse/ASB-2327
Changes missing email to use config.pinsContactDetails.enquiriesEmailAddress instead of throwing error on exam timetable submission.
Type of change 🧩

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
[ ] Other (please explain in the description section above)

Checklist before requesting a review

[x] I have performed a self-review of my own code
[x] I have double checked this work does not include any hardcoded secrets or passwords
[x] I have made corresponding changes to the documentation
[x] I have provided details on how I have tested my code
[x] I have referenced the ticket number above
[x] I have provided a description of the ticket
[x] I have included unit tests to cover any testable code changes

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

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

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


Enhance old macros

Some old macros are going to be enhanced here.

The timing macro is better placed in benchmark section.


Filtering system for packets in PacketListViewer

The basic foundation for this is (commented out) in ProperSort.go. It might be best to consider alternatives to the approach I took in that file. The viewer should implement packet filtering or highlighting or both.

This should use #34.

The filtering system has been implemented a while ago. The Lua API still needs some tinkering, though.


Add an All method to AuthLookup

This extends AuthLookup to be used for the builder, that takes a map of all possible AuthConfig values.
/cc @ibuildthecloud @joshwget
🐸
Signed-off-by: Vincent Demeester<EMAIL_ADDRESS>

LGTM


fix: panic on malicious len when decoding Vec

Re #2763
I'm sure that at some point in the past in the CI I've seen panics due to trying to allocate block of unsanitized length in decoding, but I was never able to figure out what caused it.
This is so far my best guess, but I wasn't able to reproduce the problem for some reason, even thought tracing the code I'm quite sure it's there. stdlib is using non trivial generic trait specializations, so I might have missed something. One way or another, at least in theory I think the current problem is not safe.

How is Vec::push() better than preallocating?

How is Vec::push() better than preallocating?

It isn't. Not sure what you mean. :)

I don't understand how this change is an improvement.

I don't understand how this change is an improvement.

Before:
        (0..len).map(|_| T::consensus_decode(d, modules)).collect()

if the message encoded len 0xfff..ff (or some other large value) would make it attempt to allocate tons of memory and either panic the whole process, or have it swap/slow down/OOM.
Now:
        (0..cap_len).map(|_| T::consensus_decode(d, modules)).collect()

the same message will make it allocate up to a capped size, and attempt to append extra elements one by one, hitting end of a message faster than exhausting memory.
We still need to make sure we enforce some limits on the size of messages, but that usually happens quite naturally, and I'll probably just back-port the same mechanism as rust-bitcoin is using: https://docs.rs/bitcoin/latest/bitcoin/consensus/encode/trait.Decodable.html#method.consensus_decode_from_finite_reader

Thanks!
I finally understand. It is likely that T::consensus_decode stopping us from allocating more memory.

I finally understand. It is likely that T::consensus_decode stopping us from allocating more memory.

Now I'm confused. :D

Now I'm confused. :D

edited to make it more clear

Ah. Yes. The fact that the input can't possibly go on into gigabytes is what guarantees termination before using too much memory.

Should we also limit what we can encode to catch errors early if we ever hit that limit with a legitimate use case?


bug: Error: user rejected transaction (unhandled)

Is there an existing issue for this?

[X] I have searched the existing issues

Package Version
0.6.8
Current Behavior
Using wagmi with next js on chrome + metamask chrome extension.
When calling any contract call that uses gas (sendTransaction) via useContractWrite's writeAsync, if we reject this transaction on metamask will cause this error to occur:

Uncaught (in promise) Error: user rejected transaction (action="sendTransaction", transaction=....... code=ACTION_REJECTED

This error still occurs even if I have onError set in useContractWrite.
Note: I have usePrepareContractWrite before and useWaitForTransaction after useContractWrite.

Expected Behavior
onError should handle this error so that it not show up, i.e error handled.
Steps To Reproduce
No response
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response

same here, at first, I didn't set up onError and I got this unhandled error, and then after looking up the doc, I thought it would be working after setting up the onError handler, but turned out the error still remains.

same here, at first, I didn't set up onError and I got this unhandled error, and then after looking up the doc, I thought it would be working after setting up the onError handler, but turned out the error still remains.

okay, I got a workaround, so what I did is I wrapped the write or writeAsync  in a trycatch block which is in an outer function, and then you call that outer function instead of calling the write or writeAsync :
const outerFunction = async()=>{
  try {
    await writeAsync()
  } catch (error) {
    console.log(error)
  }
}

Hopefully this could work out in your case

writeAsync throws so you need to catch the error like @MyNameIsTakenOMG mentioned.
write is safe so no need to catch errors there (sometimes browser extension wallets, like MetaMask, will throw there own errors that show up in the console).


Update projectlibre to v1.6.2

Thank you for the contribution. It was merged directly as 2a8108f8367b5eb9211f3c55e6b8b792f7fecd6e to keep commit history cleaner. Your contribution is still credited to you.


Implement Series.aggregate and agg

Like pandas Series.aggregate (https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.aggregate.html)
I implemented aggregate function for series.
Example:
>>> s = ks.Series([1, 2, 3, 4])
>>> s
0    1
1    2
2    3
3    4
Name: 0, dtype: int64

>>> s.agg('min')
1

>>> s.agg(['min', 'max'])
min    1
max    4
Name: 0, dtype: int64

(above example is using pandas one)

Codecov Report

Merging #816 into master will decrease coverage by 1.88%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #816      +/-   ##
==========================================
- Coverage   94.33%   92.44%   -1.89%
==========================================
  Files          32       32
  Lines        5844     5852       +8
==========================================
- Hits         5513     5410     -103
- Misses        331      442     +111

Impacted Files
Coverage Δ

databricks/koalas/missing/series.py
100% <ø> (ø)
:arrow_up:

databricks/koalas/frame.py
96.12% <ø> (-0.7%)
:arrow_down:

databricks/koalas/series.py
95.25% <100%> (+0.08%)
:arrow_up:

databricks/koalas/usage_logging/__init__.py
23.14% <0%> (-74.08%)
:arrow_down:

databricks/koalas/usage_logging/usage_logger.py
50% <0%> (-50%)
:arrow_down:

databricks/koalas/__init__.py
75% <0%> (-10%)
:arrow_down:

databricks/conftest.py
90.69% <0%> (-6.98%)
:arrow_down:

databricks/koalas/generic.py
95.4% <0%> (-0.52%)
:arrow_down:

databricks/koalas/plot.py
94.06% <0%> (-0.24%)
: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 1b00e3d...656f10d. Read the comment docs.

oops.. maybe python3.5 sequence order issue raised again. i'm going to fix them ASAP.

Thanks! merging.


Country locales

Some tiny changes to explicitly talk about the difference between fr-FR.json and fr.json in our translations mechanisms.

Merged in ce15062bc57494c12547f44f99be37bb8594eb31


Merge dev to master

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

18 of 23 (78.26%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+2.7%) to 5.287%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/renderer_factory_registry.cpp
0
2
0.0%

src/renderer.cpp
0
3
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
2.7%

Covered Lines:
46

Relevant Lines:
867

💛  - Coveralls


The table of return codes seems to wrong.

In a sub-directory with no files, run xcopy *.txt .. followed by echo %errorlevel% and the result is 0, not 1. Run xcopy somefile.txt ..` and the resulting errorlevel is 4.  This is horribly inconsistent behavior and this document is just wrong.

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

ID: 544925b9-8587-3e0e-9d49-44b77dbd290d
Version Independent ID: e9969211-1085-ca1f-afb5-b619edbbfab3
Content: xcopy
Content Source: WindowsServerDocs/administration/windows-commands/xcopy.md
Service: unspecified
GitHub Login: @coreyp-at-msft
Microsoft Alias: coreyp

That particular example is not so bothersome:   when you say *.txt and it matches nothing, you have given it an empty set of files to transfer on the command line, so it has nothing to do; thus a 0 exit code.  But if you give it something to transfer, as with 'somefile.txt', but it does not exist, that is a mis-usage and thus an error.
Going beyond all that, however, it seems that -1 is not used as an exit code when this description suggests it would be.  Based on this description, I would expect the exit code of 1 when copying contents from an existing directory wherein it ends up finding no files that need to be transferred, perhaps due to some of the options causing existing files to not be included in the transfer.  Yet after trying multiple experiments to see when XCOPY might actually exit with a 1 exit code, I have not been able to make this happen.  Instead, if no files are transferred, but with no error, I always get exit code of 0.
Thus, I can agree that something is amiss here.

If were 'xcopyifexist', then maybe zero files copied would be acceptable. In this case, I am telling xcopy, there's files with this extension here, copy them. If they don't exist that should be some kind of error in my opinion.

hey, i want to past the input of a variable in the command xcopy
like this:-
@echo off
set /p sr=source?
set /p lo=location?
xcopy " pasting the entered value of variable sr  "  " pasting the entered value of variable lo"
echo %username%
pause
but i don't know how to do it.

Wow!  Closed with no description of why.  I'm surprised that's even allowed by the system.  Certainly, that behavior is not helpful.  There was no argument even presented here to suggest that the original submission was in error, or that the problem is not really a problem, or even to say that there is a reason for not doing anything about it.  I find that rather disturbing.

Hello @kwbskf, thanks for the follow-up.  We will create a backlog item for this issue.  I will reopen so that it can be tracked.  Thanks!

@huypub's pull request seems to have erroneously linked to this issue thread.


Upgrade to ruby 3.1.2

Updates to ruby 3
Some notable things:

Removed mini_racer.  It was not being implemented anywhere, so I'm assuming it wasn't used.  It's system packages were difficult to maintain
Net-smtp, net-imap, and net-pop must be specified in the Gemfile for ruby3 to work with Rails 6.   Also, strscan should be set at 3.0.1 to work with bundler 2.3.8
<EMAIL_ADDRESS>is needed for capistrano to work
Switched from unmaintained fast_jsonapi to jsonapi-serializer for ruby Object serialization
Updated apivore to work with ruby 3: https://github.com/psu-libraries/apivore/pull/1
Updated the chef code to configure server properly: https://github.com/psu-libraries/researcher-metadata-chef/pull/4

Deploy notes:

Run at a time when the chef cron won't interfere (run at the 18th minute of every hour)
Run the chef code first to get the proper ruby version installed
It will likely fail when it gets to the delayed job stage since it won't have the proper gems installed
Then deploy with capistrano
Finally, run the chef code again just to check that there are not errors


MethodError: no method matching SLab.Operation(::Int64, ::Int64, ::Int64, ::Int64, ::InlineStrings.String1), possibly due to unmaintained dependency.

Hello,
I've tried to run the provided examples and keep running into MethodError: no method matching SLab.Operation(::Int64, ::Int64, ::Int64, ::Int64, ::InlineStrings.String1)
I'm new to Julia and its a fresh install on windows according to the "How to run" section of the readme.
Pasted below is the sumary of the package installation and directly thereafter trying to run the examle.
Help would be greatly appreciated.
Precompiling project...
185 dependencies successfully precompiled in 84 seconds. 8 already precompiled.
1 dependency had output during precompilation:
┌ Formatting
│  ┌ Warning: DEPRECATION NOTICE
│  │
│  │ Formatting.jl has been unmaintained for a while, with some serious
│  │ correctness bugs compromising the original purpose of the package. As a result,
│  │ it has been deprecated - consider using an alternative, such as
│  │ Format.jl (https://github.com/JuliaString/Format.jl) or the Printf stdlib directly.
│  │
│  │ If you are not using Formatting.jl as a direct dependency, please consider
│  │ opening an issue on any packages you are using that do use it as a dependency.
│  │ From Julia 1.9 onwards, you can query ]why Formatting to figure out which
│  │ package originally brings it in as a dependency.
│  └ @ Formatting C:\Users\Lennard.julia\packages\Formatting\3VxOt\src\Formatting.jl:12
└
julia> exit()
(base) PS F:\SLab.jl-main> julia --project=. bin/run.jl examples/case_1/case_1_A
ERROR: LoadError: MethodError: no method matching SLab.Operation(::Int64, ::Int64, ::Int64, ::Int64, ::InlineStrings.String1)
Closest candidates are:
SLab.Operation(::Int64, ::Int64, ::Int64, ::Int64, ::String)
@ SLab F:\SLab.jl-main\src\types.jl:47
Stacktrace:
[1] load_case(case_path::String)
@ SLab F:\SLab.jl-main\src\load.jl:24
[2] main(case_name::String, case_path::String)
@ SLab F:\SLab.jl-main\src\SLab.jl:18
[3] top-level scope
@ F:\SLab.jl-main\bin\run.jl:15
in expression starting at F:\SLab.jl-main\bin\run.jl:15
(base) PS F:\SLab.jl-main>

@NatNat666 Thank you for bringing the error to our attention!
We've identified that the issue stems from the stringtype option in CSV.read(). It seems that after we made this repository public, stringtype=InlineString became the default (https://csv.juliadata.org/stable/reading.html#stringtype), which likely caused the type error.
To resolve this error, we've updated the code to specify stringtype=String in CSV.read() (https://github.com/labauto/SLab.jl/commit/f836b0bee406aa7cbbf18f2ce282ebf8de77ea63).
Could you please delete your local repository and start over from "1. Get the source code."?
We appreciate your cooperation and patience!
Additionally, our team has published a paper on an accelerated scheduling algorithm. Feel free to check it out for reference:

Paper: https://doi.org/10.1016/j.slast.2023.03.001
GitHub repo: https://github.com/bioinfo-tsukuba/SAGAS

Thank you @yuifu  for the quick reply and fix.
I tried again and the examples now work.
I also thank you for bringing your new paper to my attention, I'll have a look at that too.


Wrong canvas width calculation

I want to integrate a terminal in a fixed width element and have xterm.js figure out how many columns fit in this space.  I think that the calculation of the number of columns (and therefore the canvas width) has a problem, resulting in less columns than there should be, and therefore some wasted space on the right.
First, a screenshot:

The red portion represents the canvas elements, the black is the viewport element.
What happens is the following:

In fit.js::proposeGeometry, the parent element is 983px wide and term.charMeasure.width is 7.8125px.  proposeGeometry therefore returns 125 columns.
In Renderer.ts::onResize the character width is floored, which makes it 7px.  The total canvas size is then computed as the number of columns times the character width, which is 7 px * 125 cols = 875 px.
The canvas is drawn 875 px wide, even though the available area is of 983 px.

I suppose the solution would be include using the same character width in both computation.
Details

Browser and browser version: Chromium Version 61.0.3163.100
OS version: Ubuntu 16.04
xterm.js version: v3 (c2b3853aa7aace1353844c844a09c6a4fce8c1cd)

Steps to reproduce

Check out the following branch: https://github.com/simark/xterm.js/tree/repro-canvas-size
Build and run the xterm.js demo

It's possible for the character width to vary between platforms, and therefore you might see something a bit different than me.  For me, the default font gives a character width of ~9.01 px, so you don't really notice the bug since it doesn't make a big difference when it gets rounded to 9 px.  With a font size of 13 px, the width is 7.8125 px, which makes quite a big difference between when it gets rounded to 7.

Is this the v3 branch we're talking about?

Don't mind my last comment, it's v3 😀. I'll take a look.

Great thanks!  I have gotten reports from colleagues that for them the canvas was larger than the viewport (for example, this screenshot: https://github.com/theia-ide/theia/issues/735#issuecomment-339134620 ).  I haven't been able to reproduce it myself though, so I couldn't debug it.

@simark I think you are right. It would be better if the fit addon would use the term.renderer.dimensions.actualCellWidth and term.renderer.dimensions.actualCellHeight for its calculation, as these seem to be more accurate. I'll try to create a PR to address this.

It makes sense, but I was not certain about the order of operations.  When the fit addon is executing, have we computed the actual cell dimensions yet?

Yeah it's become a little complicated to get the actual size of the cell as each character cell can be measured in CSS pixels (potentially floating point) and actual pixels (always an integer). To verify please make sure that it works on multiple scales levels.

Short update: I haven't had any time to implement this yet, but I plan some time next week to implement a PR for this. I'd like to combine it with an implementation for the idea I've brought up in #946


Add the -principal flag to the build rules.

Coverage remained the same at 87.922% when pulling a695911ae47f4e21062ae4d54add9a60bced3035 on yallop:principal into 472481bd86afa4fb3edbe876198a06c02af52384 on ocamllabs:master.


Blank page when accessing Locust Web UI via reverse proxy with subpath

Prerequisites

[X] I am using the latest version of Locust
[X] I am reporting a bug, not asking a question

Description
Similar to https://github.com/locustio/locust/issues/149 - the webui code has changed since then and the same problem arises, this time with the /assets/ path, which is absolute instead of relative. The result is that an nginx location directive such as this one:
location /locust/mybackend {
    rewrite ^/locust/mybackend/(.*) /$1 break;
    proxy_pass http://locust_mybackend:8089;
}

...results in a blank page because the webpage is trying to load http://myserver/assets/blabla.js instead of http://myserver/locust/mybackend/assets/blabla.js
Command line
irrelevant
Locustfile contents
irrelevant

Python version
irrelevant (but 3.12)
Locust version
2.23.1
Operating system
irrelevant

I'm trying to push my branch but I'm not allowed, do you guys need to add me before I can?
❯ git push --set-upstream origin 2614-fix-absolute-assets-references
ERROR: Permission to locustio/locust.git denied to skyanth.
fatal: Could not read from remote repository.

Hi! You should make a fork (push the fork button in github ui), push to that and then make a pull request from that to locustio project.

Yes. I read that bit, just not well enough. Sorry, will do!

You can use

You can use command below, to start locust, if your web-ui is blank
locust --legacy-ui

You can use command below, to start locust, if your web-ui is blank
locust --legacy-ui

Legacy UI is deprecated and will be removed soon though.

You can use command below, to start locust, if your web-ui is blank
locust --legacy-ui

Legacy UI is deprecated and will be removed soon though.

Ok, but how I can solve that problem with blank locust web-gui?

If your GUI is just blank and you havent done anything in particular, then please file a separate ticket with all your details. This issue was specifically about when you run an nginx in front of Locust.


Flowing grouped data

When calling .flow() on grouped data when values are also being pushed off the chart causes an error. Here's an example: http://jsfiddle.net/zavy2cwu/
It also causes some interesting looking results when using a bar chart: http://jsfiddle.net/3jhLau3u/
If flow doesn't push any data off the chart (length: 0), everything seems to be fine: http://jsfiddle.net/aL0sjLkz/
If the data isn't grouped, there aren't any errors, but with bar chart the animation compresses the bars and they expand out again: http://jsfiddle.net/fu41zeg8/

I struggle with the same issue. If the data are not grouped the problem doesn't occur -
http://jsfiddle.net/z2erLqgx/24/
While grouping after calling the .flow() method the chart is not rendered properly -
http://jsfiddle.net/z2erLqgx/23/
Console error is:
Uncaught TypeError: Cannot read property 'value' of undefined - c3.js 2736

Hi.  I encountered this problem and spent some time yesterday trying to find a proper fix on my own.  While looking into this problem I discovered that the targets' values arrays become misaligned even while calling chart.flow() with grouped data of equal lengths.  I think this is due to some sort of problem with older values being added or dropping off (with d3 enter/update/exit pattern).
To me it seems that new values are updated onto some targets but not all when grouping is used.  Then, before all targets are updated, generateGetBarPoints() triggers getShapeOffset() with the misaligned target value arrays.  I'm not familiar with the codebase to make an accurate call here though.
A while into this attempt I discovered issue #1065.  It does indeed fix the problem for us here too.  Very thankful for that from craigsoules!!
I just wanted to let you two know and get a bit more information on this problem out there, in case anyone else encounters it.   Hopefully this can get fixed in the project properly for an upcoming release.

I merged https://github.com/masayuki0812/c3/pull/1275 and this will be released in 0.4.11 shortly!

Is this issue not solved? In jsfiddle it looks work well. But actually it still has a same error.

I think this is not fixed yet.
When x axis is added, then bar is fall down.
http://jsfiddle.net/say8425/h7a8q6r9/8/


Facebook Video Downloader

Script Title -
Brief - Script should able to download FB video by url
Instructions

Create a new folder for your script and file/folder name should be appropriate.
Create a README.md in your folder for program Instructions
add requirements.txt if needed

Programming Language

[x] Python

Happy Coding

I'm interested. Can I have this issue?

Sure @samkap333

oh! sorry i didn't see it earlier, that it was meant for those who are assigned to.....

how do I cancel my pull request?

Can i work on this issue?


[zgui] Fix glfw-wgpu backend. Sry :)

Seems to work fine with it calling the wrong thing. Weird. Anyway, thanks for following up with a fix.


[WIP] Enable collections by removing ROX_OBJECT_COLLECTIONS and gate it behind postgres flag

Description
A detailed explanation of the changes in your PR.
Feel free to remove this section if it is overkill for your PR, and the title of your PR is sufficiently descriptive.
Checklist

[ ] Investigated and inspected CI test results
[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why
you did not do so. Valid reasons include, for example, "CI is sufficient",
"No testable changes". Feel free to attach JSON snippets, curl commands,
screenshots.
In addition to reviewing your code, reviewers must also review your testing
instructions and make sure they are sufficient.

/test openshift-newest-operator-e2e-tests openshift-newest-qa-e2e-tests openshift-oldest-operator-e2e-tests openshift-oldest-qa-e2e-testsb openshift-penultimate-qa-e2e-tests gke-ui-e2e-tests gke-postgres-ui-e2e-tests gke-postgres-nongroovy-e2e-tests

/test openshift-newest-operator-e2e-tests openshift-newest-qa-e2e-tests openshift-oldest-operator-e2e-tests openshift-oldest-qa-e2e-testsb openshift-penultimate-qa-e2e-tests gke-ui-e2e-tests gke-postgres-ui-e2e-tests gke-postgres-nongroovy-e2e-tests

On the FE the flag is always used in a straightforward way that can be searched via direct string search. LGTM too from a FE perspective.


Ali/fix event sending disabled feature

build

Coverage remained the same at 100.0% when pulling 256a085ebb03bcaab72ed42d00ad40f6dba8d0d9 on ali/fix_event_sending_disabled_feature into c948863e5b7d0a2b0affedc8767105dd596c3c9f on master.


Scope of this package

This package is kickstarting the plan outlined in https://github.com/JuliaML/LearnBase.jl/issues/49

For the moment we can add both definitions and implementations here, at some point we will move the basic definition to a LearnAPI.jl package (to be created).
We can gradually move here the functionality from MLLabelUtils and MLDataPattern. We mainly want to add the functionality that is effectively in use in the ecosystem (e.g. FastAI.jl and MLJ.jl) and leave the rest out to avoid extra maintenance complexity.

@darsnack @johnnychen94

It's already have a package called MLBase.jl
https://github.com/JuliaStats/MLBase.jl

Ouch! I will rename to MLUtils then

It would be nice if you could coordinate the name of all these packages to simplify and unite the pieces. I know out of my head that the list includes MLBase.jl MLJBase.jl LearnBase.jl ML*Utils.jl ...
The name MLUtils.jl doesn't help improve this situation. Are you aiming for a base package or a utils package? These are very different AFAICT. Can we change the name to something more "final" and spread the words with the current maintainers of the other packages so that they can join efforts in a single place?

I'd like to have here functionality mostly from

LearnBase
MLDataPattern
MLLabelUtils
Those packages have been into a maintenance hell for years.
We could also have stuff from
PenaltyFunctions
LossFunctions
ObjectiveFunctions
MLMetrics
that all seem not well maintained but also quite lean and stable, maybe only some cruft to be removed.

I'm not sure what would be the most appropriate name, you have suggestions? We could archive LearnBase, MLDataPattern, MLLabelUtils after we have done the port.

I love the idea of joining these "util" packages into a single hub with
core functionality and also support the idea of deprecating these packages
afterwards. This will potentially solve the premature modularization
problem in JuliaML. As for the name we could pick a name that reflects this
"Base" or "Core" nature of the effort.
The packages I'm maintaining in this org are LossFunctions.jl
TableTransforms.jl and TableDistances.jl. I'm going on vacation now but
will back in January to try help.
On Sun, Dec 26, 2021, 07:13 Carlo Lucibello @.***>
wrote:

I'd like to have here functionality mostly from

LearnBase
MLDataPattern
MLLabelUtils
Those packages have been into a maintenance hell for years.
We could also have stuff from
PenaltyFunctions
LossFunctions
ObjectiveFunctions
MLMetrics
that all seem not well maintained but also quite lean and stable,
maybe only some cruft to be removed.

I'm not sure what would be the most appropriate name, you have
suggestions? We could archive LearnBase, MLDataPattern, MLLabelUtils after
we have done the port.
—
Reply to this email directly, view it on GitHub
https://github.com/JuliaML/MLUtils.jl/issues/2#issuecomment-1001145974,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZQW3MO575BPTNK6YSUT4DUS3TGNANCNFSM5KYVRNKA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: <JuliaML/MLUtils.
@.***>

Is the plan to make changes here directly instead of "fixing" the existing packages? What's the timeline here?
I would suggest MLDataUtilities as a name. Let's make it explicitly about working with data. There's no reason the release cycle/maturity of the package should be the same for data vs. losses, etc.

Are there any communication channels open between JuliaML and JuliaStats? MLBase has essentially seen 0 development since 2018, so it would be good to know if anyone still has plans for that package.

But wait, there's more! https://github.com/JuliaAI/StatisticalTraits.jl exists as well. We should try to get folks from each org on an ML call at some point to work all this out...

I would suggest MLDataUtilities as a name. Let's make it explicitly about working with data. There's no reason the release cycle/maturity of the package should be the same for data vs. losses, etc.

So the plan could be to finish the port in this repo where I'm gradually reviewing and modernizing the whole codebase, then push the whole thing into https://github.com/JuliaML/MLDataUtils.jl, tag a breaking release, archive MLDataPattern and MLLabelUtils. What do you think?

Are there any communication channels open between JuliaML and JuliaStats? MLBase has essentially seen 0 development since 2018, so it would be good to know if anyone still has plans for that package.

Not that I know. From what I've seen these kinds of coordination efforts are complicated given the general lack of interest, original authors moving away etc... We can try though

So the plan could be to finish the port in this repo where I'm gradually reviewing and modernizing the whole codebase, then push the whole thing into https://github.com/JuliaML/MLDataUtils.jl, tag a breaking release, archive MLDataPattern and MLLabelUtils. What do you think?

This sounds good to me. So this repo is mostly for testing things out away from the main repo. In fact, I can help port stuff here...it will be much easier than updating MLDataPattern.jl. In fact, I just wasted a day's worth of work updating DataSubset only to find out something in shuffleobs broke related to obsdim. I would much rather spend my time working on a package that doesn't have these corner cases weaved through.
My suggestion would be then that I revert our recent changes to LearnBase.jl and drop the PRs to MLDataPattern.jl and MLLabelUtils.jl. We can then have a release of the three that restore the old status. Right now LearnBase.jl and MLDataPattern.jl are in conflict. Once this is done, I can help port stuff over here. Does this sound good?

@johnnychen94 do you have any thoughts on this plan?

If our goal here is to support Flux with JuliaML utilities, starting a new repo like this is a smoother plan than upgrading MLDataPatterns and LearnBase in a compatible way, since the latter has shown to be over-difficult to do in the past year (sorry that I didn't help with any of the PRs). It doesn't necessarily need to be here; it can be hosted in FluxML if that attracts more attention.
For myself, because I'm in the last 1.5 years of my Ph.D. career I need to focus more on my thesis, thus I don't really have much free time to contribute to Julia. I think I'll limit myself to JuliaImages development but I'll be very happy to give feedback whenever requested.

If you feel like the name MLBase is the best one we could probably transfer it from JuliaStats to JuliaML. AFAICT that package is almost dead for years.

If you feel like the name MLBase is the best one we could probably transfer it from JuliaStats to JuliaML. AFAICT that package is almost dead for years.

what is the plan status now?

Functionality from LearnBase and MLDataPattern has been absorbed. MLLabelUtils and MLDataUtils are still to be imported.
When done, I think the current plan is to replace in MLDataUtils the content of this repo. I would also be ok with just tagging this package (even right now)

What about the suggestion above of moving MLBase to this org and tagging a
major release? Wouldn't it be a better way forward?
On Sun, Jan 30, 2022, 06:08 Carlo Lucibello @.***>
wrote:

Functionality from LearnBase and MLDataPattern has been absorbed.
MLLabelUtils and MLDataUtils are still to be imported.
When done, I think the current plan is to replace in MLDataUtils the
content of this repo. I would also be ok with just tagging this package
(even right now)
—
Reply to this email directly, view it on GitHub
https://github.com/JuliaML/MLUtils.jl/issues/2#issuecomment-1025100894,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZQW3NIUQ4EDXDAKM64L5LUYT5YBANCNFSM5KYVRNKA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: <JuliaML/MLUtils.
@.***>

Also fine, unless we think that MLBase feels too "basic" for something containing also e.g a DataLoader. Or that we want some name containing "data", and we limit the scope to data manipulation utilities (e.g. no loss functions and no metrics).
I think I lean toward having only one beefy (but not too beefy) package,  MLBase. I think also StatsBase is not so lean.

Yes my personal opinion is that a single package is the best option. It is
super hard to advance with features when multiple packages are developed in
parallel with tiny set of features. In the future if the package becomes
too heavy in terms of dependencies then it makes sense to split.
On Sun, Jan 30, 2022, 07:13 Carlo Lucibello @.***>
wrote:

Also fine, unless we think that MLBase feels too "basic" for something
containing also e.g a DataLoader. Or that we want some name containing
"data", and we limit the scope to data manipulation utilities (e.g. no loss
functions and no metrics).
I think I lean toward having only one beefy (but not too beefy) package,
MLBase. I think also StatsBase is not so lean.
—
Reply to this email directly, view it on GitHub
https://github.com/JuliaML/MLUtils.jl/issues/2#issuecomment-1025110866,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZQW3IAABZQJXIPF25B3GTUYUFNLANCNFSM5KYVRNKA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: <JuliaML/MLUtils.
@.***>


Presentation.getManager().getContent() hangs backend after db edit operations

Describe the bug
Sometimes after create/update operations Presentation.getManager().getContent() call starts responding very slowly or hangs completely. As a result application becomes unusable (no properties can be loaded or no other further edit operations can be started).
To Reproduce
Steps to reproduce the behavior:
Reproducing this issue is very difficult. For normal use it appears seemingly randomly and not on every imodel.
In our application we have a sample tool that would try to force this issue by looping these operations for a few times on specific imodel:
-createElements, saveChanges
-Presentation.getManager().getContent()
-updateElements, saveChanges
-Presentation.getManager().getContent()
-deleteElements, saveChagnes
Every call to getContent() might take multiple minutes or never complete at all.
saveChanges call is very important because without it the issue never happens.
Will provide dumps/steps to build the app and reproduce as needed.
Expected behavior
PresentationManager always responds in a reasonable amount of time.
Screenshots

Properties widget timed out and crashed.
Desktop (please complete the applicable information):

OS: windows11
Electron
Version 25.8.1
iTwin.js Version 4.3.3

Additional context
Interesting observation:
I noticed that during this hang the whole electron backend becomes not responsive.
For example if you have:
const timeout () => new Promise(resolve => setTimeout(() => resolve("timed-out"), 1000 * 60 * 1));
await Promise.race([Presentation.getManager().getContent(), timeout()]);

The Promise.race will never resolve. Indicating that native does not even give back control to node/electron somehow?

Deadlock call stack:

The fix was released with itwinjs-core packages @4.6.1

@grigasp We're still able to reproduce this issue with Core 4.6.1

@grigasp We're still able to reproduce this issue with Core 4.6.1

Are you seeing a hang or a slowdown with this version?

We got a hang for 10 min for the whole app. After that, properties grid stopped loading properties and we started to get BackendTimeout continuously

We got a hang for 10 min for the whole app. After that, properties grid stopped loading properties and we started to get BackendTimeout continuously

Any chance you could take a memory dump while its hung?

Something like this would help?
https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/task-manager-live-dump

Something like this would help? But on our app process, not system as mentioned in the link
https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/task-manager-live-dump

Not sure if the ones created through task manager will work. I need a user-mode dump, generally created using Visual studio or WinDbg.

Another fix was released with 4.6.2, closing the issue for now - please re-open if you can still reproduce the problem after consuming the new version.

Thanks for the fixes! Hopefully this will be the last 😃


Feature/usercode vcs

A VCS for JavaScript objects. Best used for usecode.

Closing in favor of https://github.com/codecombat/codecombat/pull/2526


Geohax doesn't seem to implement the Geohash algorithm??

The example shows this:
iex> Geohax.encode(-132.83, -38.1033, 6)
"311x1r"
But checking here
http://www.movable-type.co.uk/scripts/geohash.html
shows that the answer should be:
50hbhb
I tested this also with another geohash library...
The same problem appears in the tests:
https://github.com/evuez/geohax/blob/ac7ddfb1b03404b16e5c9d73557f653a540032fd/test/geohax_test.exs#L6
Don't have a problem with a different algorithm, but I think you should clearly explain that it's different? (or is it a bug?)

It's actually the same algorithm, but Geohax.encode/3 excepts the longitude first, not the latitude. I should try to emphasize that in the README!
Keeping this open until I update the README.

@ewildgoose updated the README to make this clearer :slightly_smiling_face:


SVG export has a wrong viewbox when devicePixelRatio !== 1

Bug Report
When calling signaturePad.toDataURL("image/svg+xml") SignaturePad is using the window.devicePixelRatio, resulting in the exported image being clipped on high DPI devices.
Stackblitz Repro
https://jsfiddle.net/HugeHugh/6kameu5z/
I tried this 2 ways, with the resize/scale code for devicePixelRatio, and without.  Each has different problems.
When I do not use devicePixelRatio to resize the canvas, the exported image is clipped.
When I do use devicePixelRatio, I can't reliably draw on the canvas (see #514)

UPDATE: this appears to be user error.
Instead of setting the width/height attributes of the canvas, I must set the width/height with CSS, and all works fine.
I created a Fiddle with this change:
https://jsfiddle.net/HugeHugh/0mz319pc/


Add support for GPG commit signing

Add support for GPG commit signing. Currently anytime any of the cherry-picking happens inside of git-ps-rs it is dropping the signatures of the commits.

I am closing this as it is been added to mainline.


Topology spread or antiAffinity rules for calico controllers and typha

Have so far I have only found nodeAffinity  for Typha but found no other option to configure custom affinity (or antiAffinity) rules for either Typha or calico kubernetes controllers.
Expected Behavior

Have an option to supply custom affinity rules.
This is important for high availability, e.g.:

In order to make use of multiple availability zones or racks,
host antiAffinity.

Current Behavior

No possibility to configure custom affinity or pod topology spread constraints.
Possible Solution

Add configuration fields to be able to configure k8s spec affinity rules and/or  pod topology spread constraints.
Steps to Reproduce (for bugs)

N/A
Context

Running on a public cloud, e.g. AWS (EKS) having multiple availability zones. In order to make sure that replicas larger than 1 have the pods spread across the zones for better availability.
Your Environment

Calico v3.22.0
Orchestrator Kubernetes 1.20
Operating System and version: Linux AWS AMI v1.20.11-eks-f17b81

Yeah you're right, I'm not sure what I was thinking could be done to spread the pods using typhaAffinity.
Thanks for clarifying things for me.
Probably the hardest part of adding this will be figuring out what we want the API for this would be.
My 1st thought is adding this as a field under typhaAffinity. But I think I'd want to consider this addition for other components like the APIServer and how we might want to use a common pattern for both.
@caseydavenport @Brian-McM  WDYT?

Cross referencing this because I think they are (just barely) related: https://github.com/tigera/operator/issues/1653#issuecomment-1011385697

In order to make use of multiple availability zones or racks,

Yep this one sounds very legit.
As for API, @tmjd maybe I'm missing something but wouldn't it be a straightforward extension to https://github.com/tigera/operator/blob/master/api/v1/installation_types.go#L151-L156
e.g.
type TyphaAffinity struct {
	// NodeAffinity describes node affinity scheduling rules for typha.
	// +optional
	NodeAffinity *NodeAffinity `json:"nodeAffinity,omitempty"`

	// Used to ensuring Typha is reasonably spread throughout the cluster
        PodAntiAffinity *PodAffinity `json:"podAffinity,omitempty"`
}

If we added TopologyConstraints would there be a need for PodAntiAffinity?

@tmjd one reason that comes to mind, afaik, is that Pod Topology Spread Constraints is available since K8S version 1.19 and clusters older than that should still have a way of achieving a similar topology via podAntiAffinity. In addition, most users are probably used to the podAffinity/antiAffinity syntax (if its kept in the original k8s spec format).
In any case, I wanted to ask: why is it needed to abstract default K8S Pod configurations (e.g. TyphaAffinity) vs. letting users customize k8s pod specs in native k8s format should they choose to do so? That would probably mean less code and less maintenance.
Why not allow configuration of the entire pod.spec.affinity? (kubectl explain pod.spec.affinity)
Same for topology constraints etc.
Just as an example, taking a project such as Confluent: they define their own CRDs for "kafka", the pod spec is generated by the CRD. Nevertheless, the CRD allows to configure/override additional specs, for example:
tolerations, topologySpreadConstraints, priorityClassName, affinity.
See the CRD spec example: the podTemplate allows configuration of pod settings in native k8s spec format (in this case its pod spec of statefulSet, but the idea should be the same for a deployment)
kubectl explain kafka.spec.podTemplate
KIND:     Kafka
VERSION:  platform.confluent.io/v1beta1

RESOURCE: podTemplate <Object>

DESCRIPTION:
     podTemplate specifies the statefulset pod template configuration.

FIELDS:
   affinity     <Object>
     affinity specifies a group of affinity scheduling rules. More info:
     https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity.

   annotations  <map[string]string>
     annotations are unstructured key value maps stored with the resource and
     may be set by external tools to store and retrieve arbitrary metadata. They
     are not queryable and should be preserved when modifying objects. More
     info: http://kubernetes.io/docs/user-guide/annotations.

   envVars      <[]Object>
     envVars contain environment variables to be injected into containers. More
     info:
     https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container.

   labels       <map[string]string>
     labels are maps of string keys and values that can be used to organize and
     categorize (scope and select) objects. More info:
     http://kubernetes.io/docs/user-guide/labels.

   podSecurityContext   <Object>
     PodSecurityContext holds pod-level security attributes and common container
     settings. Some fields are also present in container.securityContext. Field
     values of container.securityContext take precedence over field values of
     PodSecurityContext.

   priorityClassName    <string>
     priorityClassName specifies the priority class for the pod (if any).

   probe        <Object>
     probe contains the fields for standard Kubernetes readiness/liveness probe
     configuration.

   resources    <Object>
     resources describe the compute resource requirements.

   serviceAccountName   <string>
     ServiceAccountName is the name of the service account used to run this pod.
     More info:
     https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account.

   terminationGracePeriodSeconds        <integer>
     terminationGracePeriodSeconds is the grace period before the pod is
     deleted.

   tolerations  <[]Object>
     tolerations specify the pods to schedule onto the nodes with matching
     taints, using the triple `<key,value,effect>` and the matching operator
     `<operator>`.

   topologySpreadConstraints    <[]Object>
     topologySpreadConstraints describe how a group of pods ought to spread
     across topology domains. Scheduler will schedule pods based on the
     constraints. All topologySpreadConstraints are ANDed.

I think I'd want to consider this addition for other components like the APIServer and how we might want to use a common pattern for both.

This would be a must for us as we have alerting set up to tell us when anything on the cluster is not properly balanced across nodes/zones!

Hey @nuriel77 @bcbrockway
We've put up an outline of proposed changes to operator component configuration. Among other things, this will include allow overriding node affinity/selectors for the core Calico components. Please take a look. We'd appreciate your input on the proposed changes: https://github.com/tigera/operator/issues/1990

With #2063 merged it is now possible to add a custom nodeSelector/affinity to the core Calico components.


[Guest OS Support] [Boot] Error code 0005 when booting SWT_PE.ISO

when trying to boot the SWT_PE.iso from https://archive.org/details/windows-7-pe I get the error

Try installing real 32-bit Windows 7 in a QEMU virtual machine with a raw hard drive image (.img), and run it in v86.

the other iso provided works just fine, and I don't think I have the ability to do that, as replit kinda breaks when trying to download anything larger than 1 GB

Do not use replit to create a QEMU hard drive image, use a real linux environment on bare metal or VPS.

In addition to what @spetterman66 said, SWT_PE.iso isn't a bootable disk image, so let's close this.

Do I need to add it to the first iso then? If do, where do I put it?


Release Event Hubs Track 2 Library Preview 6 for Python

Customer reported issues:

[ ] #8404 eventhub: the program crashes if producer not use with with

Optimize for customers

[x] #8585 Early release a partition from an EventHubConsumerClient if there is an exception
[x] #8587 Set owner_level default value 0 instead of None
[x] #8650 Change BlobPartitionManager constructor to prevent users rely on ContainerClient

Internal code refactor:

[x] #8472 [EventHubs] Pull-model refactor
[x] #8603 [EventHubs] Consolidate credentials object

Tests

[x] #8476 [EventHubs] Increate test coverage and code testability
[x] #8477 Event Hubs Stress/Long running/Perf Test for Track 2 GA
[x] #8649 Migrate old pull model live tests to new customer-facing push model

API review and cross lang sync

[x] #8535 Use small cases for path and blob meta data keys in checkpointstoreblob and -aio
[x] #8536 Change for API review

Released 5.0.0b6 on 12/03/2019


[$250] Tweak camera flash control to make it more obvious

Problem
When scanning a receipt it's hard to know when the camera flash is on or off as the icon only changes color. This isn't good for usability or accessibility.
Solution
Instead of relying on color, let's use two icons to signal whether flash is on or off:

cc @Expensify/design
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~021863898613066197496
Upwork Job ID:<PHONE_NUMBER>066197496
Last Price Increase: 2024-12-03

Issue OwnerCurrent Issue Owner: @allgandalf

Proposal
Please re-state the problem that we are trying to solve in this issue.
Tweak camera flash control to make it more obvious
What is the root cause of that problem?
We are using only 1 icon for both cases flash on and off
What changes do you think we should make in order to solve the problem?

We can replace the icon here with another icon in case isFlashLightOn is false
  <Icon
        height={32}
        width={32}
        src={isFlashLightOn ? Expensicons.Bolt : <new-icon>}
        fill={theme.iconHovered}
    />

What alternative solutions did you explore? (Optional)

Proposal
Please re-state the problem that we are trying to solve in this issue.
Tweak camera flash control to make it more obvious
What is the root cause of that problem?
When scanning a receipt, it’s difficult to distinguish whether the camera flash is on or off since the current indicator only changes color. This lacks clear usability and accessibility, especially for colorblind users.
Proposed Solution
1. Icon Differentiation:
Use distinct icons for the "flash on" and "flash off" states:
Flash On: A lightning bolt with a glow effect or rays around it.
Flash Off: A lightning bolt crossed out or dimmed.
2. Text Label (Optional but recommended for accessibility):
Add a small tooltip or label beneath the icon that says "Flash On" or "Flash Off." This ensures clarity for all users, including those with vision impairments.
3. State Feedback:
When toggled, show a brief confirmation (e.g., "Flash turned on") using a toast notification or subtle animation.

Accessibility Improvements:

Ensure that the new icons are paired with appropriate ARIA labels (e.g., aria-label="Flash On").
Use high-contrast colors and shapes for the icons to enhance visibility in different lighting conditions.
import React, { useState } from 'react';

// FlashToggle Component
function FlashToggle({ isFlashOn, onToggle }) {
  return (
    <button
      className="flash-toggle"
      onClick={onToggle}
      aria-label={isFlashOn ? "Turn flash off" : "Turn flash on"}
    >
      {isFlashOn ? (
         // Flash on icon
      ) : (
         // Flash off icon
      )}
    </button>
  );
}

// Parent Component Example
function CameraControl() {
  const [isFlashOn, setIsFlashOn] = useState(false);

  const handleFlashToggle = () => {
    setIsFlashOn((prevState) => !prevState);
    // Add additional logic for hardware interaction here if needed
    console.log(`Flash is now ${!isFlashOn ? 'ON' : 'OFF'}`);
  };

  return (

Camera Control

      <FlashToggle isFlashOn={isFlashOn} onToggle={handleFlashToggle} />
      {/* Additional camera controls go here */}

  );
}

export default CameraControl;

To integrate the FlashToggle functionality into your existing mobileCameraView component, you'll need to modify the code to include a state for flash control, manage the toggle logic, and update the UI accordingly.
Updated mobileCameraView Code
import React, { useState } from 'react';
import { View, ActivityIndicator } from 'react-native';
import { Icon, Text, Button, PressableWithFeedback, Shutter } from 'components'; // Replace with actual imports
import { FlashToggle } from './FlashToggle'; // Adjust path to FlashToggle component
import CONST from 'constants'; // Replace with actual constants
import styles from './styles'; // Adjust path to styles

const mobileCameraView = () => {
    const [isFlashLightOn, setIsFlashLightOn] = useState(false);
    const [isTorchAvailable, setIsTorchAvailable] = useState(true); // Simulating torch availability, adjust accordingly

    const toggleFlashlight = () => {
        setIsFlashLightOn(prevState => !prevState);
        // Add actual flashlight toggle logic here (e.g., using device APIs)
        console.log(`Flashlight toggled: ${!isFlashLightOn ? 'ON' : 'OFF'}`);
    };

    return (
        <>
            <View style={[styles.cameraView]}>
                {PDFThumbnailView}
                {((cameraPermissionState === 'prompt' && !isQueriedPermissionState) ||
                  (cameraPermissionState === 'granted' && isEmptyObject(videoConstraints))) && (
                    <ActivityIndicator
                        size={CONST.ACTIVITY_INDICATOR_SIZE.LARGE}
                        style={[styles.flex1]}
                        color={theme.textSupporting}
                    />
                )}
                {cameraPermissionState !== 'granted' && isQueriedPermissionState && (
                    <View style={[styles.flex1, styles.permissionView, styles.userSelectNone]}>
                        <Icon
                            src={Hand}
                            width={CONST.RECEIPT.HAND_ICON_WIDTH}
                            height={CONST.RECEIPT.HAND_ICON_HEIGHT}
                            additionalStyles={[styles.pb5]}
                        />
                        <Text style={[styles.textReceiptUpload]}>{translate('receipt.takePhoto')}</Text>
                        <Text style={[styles.subTextReceiptUpload]}>{translate('receipt.cameraAccess')}</Text>
                        <Button
                            medium
                            success
                            text={translate('common.continue')}
                            accessibilityLabel={translate('common.continue')}
                            style={[styles.p9, styles.pt5]}
                            onPress={capturePhoto}
                        />
                    </View>
                )}
                {cameraPermissionState === 'granted' && !isEmptyObject(videoConstraints) && (
                    <NavigationAwareCamera
                        onUserMedia={setupCameraPermissionsAndCapabilities}
                        onUserMediaError={() => setCameraPermissionState('denied')}
                        style={{ ...styles.videoContainer, display: cameraPermissionState !== 'granted' ? 'none' : 'block' }}
                        ref={cameraRef}
                        screenshotFormat="image/png"
                        videoConstraints={videoConstraints}
                        forceScreenshotSourceSize
                        cameraTabIndex={tabIndex}
                        audio={false}
                        disablePictureInPicture={false}
                        imageSmoothing={false}
                        mirrored={false}
                        screenshotQuality={0}
                    />
                )}
            </View>

            <View style={[styles.flexRow, styles.justifyContentAround, styles.alignItemsCenter, styles.pv3]}>
                <AttachmentPicker acceptedFileTypes={[...CONST.API_ATTACHMENT_VALIDATIONS.ALLOWED_RECEIPT_EXTENSIONS]}>
                    {({ openPicker }) => (
                        <PressableWithFeedback
                            accessibilityLabel={translate('receipt.chooseFile')}
                            role={CONST.ACCESSIBILITY_ROLE.BUTTON}
                            onPress={() => {
                                openPicker({
                                    onPicked: setReceiptAndNavigate,
                                });
                            }}
                        >
                            <Icon
                                height={32}
                                width={32}
                                src={Expensicons.Gallery}
                                fill={theme.textSupporting}
                            />
                        </PressableWithFeedback>
                    )}
                </AttachmentPicker>
                <PressableWithFeedback
                    role={CONST.ACCESSIBILITY_ROLE.BUTTON}
                    accessibilityLabel={translate('receipt.shutter')}
                    style={[styles.alignItemsCenter]}
                    onPress={capturePhoto}
                >
                    <Shutter
                        width={CONST.RECEIPT.SHUTTER_SIZE}
                        height={CONST.RECEIPT.SHUTTER_SIZE}
                    />
                </PressableWithFeedback>

                {/* FlashToggle Component */}
                <FlashToggle
                    isFlashOn={isFlashLightOn}
                    onToggle={toggleFlashlight}
                />
            </View>
        </>
    );
};

export default mobileCameraView;

Key Changes:
State Management:
Added isFlashLightOn state for flash control.
Added a placeholder isTorchAvailable state for torch availability.
FlashToggle Integration:
Replaced the existing flashlight toggle UI with the FlashToggle component.
Passed isFlashLightOn and toggleFlashlight to FlashToggle for dynamic behavior.
Custom Logic:
Included a placeholder toggleFlashlight function to handle flashlight toggling.
UI Update:
FlashToggle renders the appropriate icon and handles toggling state seamlessly.

@dubielzyk-expensify is that icon in the App already. If not, do you have svg of it by any chance?

@allgandalf it flashes when I take the picture, it should not turn on as a torch

Job added to Upwork: https://www.upwork.com/jobs/~021863898613066197496

invite please Upwork job https://www.upwork.com/freelancers/saifurrehman

@allgandalf @mountiny

The implementation is just an example, the color style can be changed easily when asking the design team in PR as I mention in my proposal
This bug is in the scan screen and both the native file and the index file have this, so updating the native file is the default behavior

Your proposal was missing details @nkdengineer

@allgandalf What details that I'm missing? I only see the difference between my proposal and @twilight2294's proposal is this proposal mentioned the change in the native file.

also please mind that we updated the proposal template and same has been posted on slack as well, so please post proposals in latest format

Thanks, I noted.

Here's the SVG file
bolt-slash.svg.zip

invite please Upwork job https://www.upwork.com/freelancers/saifurrehman

@saifelance welcome 👋 , you are hired to a job once C+ and internal engineer approves your proposal, please go through the contributors guidelines here and know more about the process.
Hope to see you around 😄

Thanks

Great 👍

Yeah I dont think we need, but lets complete the checklist

Payment summary:

Contributor: @twilight2294 $250 paid via Upwork
Reviewer: @allgandalf $250 paid via Upwork