GoogleSignin.signIn() never returns/resolves

No promise is resolved (neither rejected) after picking user from the user list.
Steps to Reproduce

Click Google Sign in button
User picker comes up (or doesn't come up after the second try)
Pick a user

Link to a GitHub repository with code that reproduces the bug: https://github.com/zbettenbuk/jitsi-meet/tree/google-auth
(The code is in react/features/recording/components/LiveStream/GoogleSignInForm.native.js, webClientId and google-services.json are excluded)
Documentation is here: https://github.com/zbettenbuk/jitsi-meet/tree/google-auth/doc
Accessing the Google Sign in feature: Start a conference (enter any name in the top field), then "..." menu -> Start live stream
Expected Behavior
Currently only logging of the successful sign in is expected
Actual Behavior
User picker screen disappears and the GoogleSignin.signIn() promise never gets resolved (neither rejected). If I click the Sign in button again, the promise gets rejected with Error: cannot set promise - some async operation is still in progress
There is an exception in the log though:
Could not set socket write timeout: java.lang.reflect.InvocationTargetException
	at java.lang.reflect.Method.invoke(Native Method)
	at com.google.android.gms.org.conscrypt.Platform.setSocketWriteTimeout(:com.google.android.gms<EMAIL_ADDRESS>(040700-189987672):13)
Caused by: android.system.ErrnoException: setsockopt failed: EBADF (Bad file descriptor)
	at libcore.io.Linux.setsockoptTimeval(Native Method)
	at libcore.io.ForwardingOs.setsockoptTimeval(ForwardingOs.java:175)
Could not set socket write timeout: java.lang.reflect.InvocationTargetException
	at java.lang.reflect.Method.invoke(Native Method)
	at com.google.android.gms.org.conscrypt.Platform.setSocketWriteTimeout(:com.google.android.gms<EMAIL_ADDRESS>(040700-189987672):13)
Caused by: android.system.ErrnoException: setsockopt failed: EBADF (Bad file descriptor)
	at libcore.io.Linux.setsockoptTimeval(Native Method)
	at libcore.io.ForwardingOs.setsockoptTimeval(ForwardingOs.java:175)

Environment
Please provide the version of your

react-native 0.55.4
react-native-google-signin 1.0.0-rc2
react 16.3.1
cocoapods and GoogleSignIn pod version (if applicable)
gradle 4.4, android plugin for gradle 3.1.2, and play-services-auth version (if applicable)

Could you paste the output of react-native log-android from the start of the app up until you press the login button again? Check the logs that yourself before hand that there is secrets you wouldn't want to expose.

@jozan There you go! Thanks for getting back!
jitsi.log

What scopes are you trying to request? I would try passing only webClientId and see how it goes. Everything else seems to be alright.
You could also try to inspect what happens inside the react-native-google-signin native module in Android Studio by setting breakpoints. I would check what happens inside configure() and signIn().

My only scope is this:
export const GOOGLE_API_SCOPES = [
    'https://www.googleapis.com/auth/youtube.readonly'
];

I try your suggestion and get back shortly

I'm encountering the same problem since moving to rc2. I may need to back down to an earlier version, although I'm not looking forward to that given that the APIs have changed. Any chance there will be a fix for this soon?

@gchallen the fastest way to fix this is if someone who experiences the issue finds the fix and opens a PR. That being said, I plan to take a quick look today but I'm afraid I don't have the time to fix this soon.

Of course. I don't have time to dig into this carefully, but FWIW I have identical login flows working rock solid on RC1. I just backed down to it and they are working again.
I also see this frequently after a bundle reload and rarely after a full Android app reinstall. I noticed that configure used to return a promise in RC1 and no longer does on RC2. Is it possible that this broke something and something is trying to complete the log in before the component is fully initialized? Just a hunch.
Thanks for all of your hard work on this.

identical login flows

@gchallen do you have some code that you can share? At least a snippet with the used scopes and ect.

@zbettenbuk I did not try reproducing this with the repo you provided since I have no idea how to set the whole thing up. However, I tried using the youtube scope you provided with our example app and the outcome is that it works for me. After I tap sign in, a modal is shown and after I confirm, I see my profile information.
I'd like to ask you to try to create a minimal reproduction - can you try reproducing this with the example app? It's also possible that this is a device-specific issue.

Sure:
GoogleSignin.configure({
    iosClientId: '<HIDDEN>,
    webClientId: '<HIDDEN>',
    hostedDomain: 'illinois.edu'
  }).then(() => {
    store.dispatch(authInitializationCompleted())
    return GoogleSignin.currentUserAsync()
  }).then(user => {
    if (user !== null && Platform.OS === 'android') {
      return NativeModules.RNGoogleSignin.getAccessToken(user).then(accessToken => {
        return { ...user, accessToken, accessTokenExpirationDate: ANDROID_TOKEN_EXPIRATION }
      })
    } else {
      return user
    }
  }).then(user => {
    store.dispatch(authUserUpdated(user))
  })

What changed in RC2 is that configure stopped returning a promise, currentUserAsync seemed to be renamed, and also returned the accessToken by default, removing the need for the called directly through NativeModules.

Turned out the issue was on our side. We didn't have the Activity.onActivityResult method properly implemented on Android.
@gchallen you may want to check that too.

I'm glad you found the fix @zbettenbuk! :)

We didn't have the Activity.onActivityResult method properly implemented

can you expand on that @zbettenbuk ? Thanks!

Yes, thanks for the help and sorry for the waste of time @jozan !

Glad to hear that someone got this resolved! But I'm a bit confused—this sounds like a change to the native code. Maybe the docs are out-of-date, but I wasn't aware that there was changes we needed to make to the native code other than the usual RN linkage...?

@vonovak: You can see Activity.onActivityResult stuff implemented here.
@gchallen In pure React Native projects no additional setup is required. All the necessary steps are documented. In @zbettenbuk case he has so called brownfield project where React Native is only used in some parts of the app and the rest is implemented in native Android. I am also unable to reproduce this particular problem. Could you create a reproducible demo of the behaviour you're seeing?

@gchallen @jozan yes, absolutely, our project is somewhat special, hence the problem.
If anyone hasn't found it yet, here is the link to the commit that we needed to do: https://github.com/zbettenbuk/jitsi-meet/commit/9f164e3574be14319f5d1dfa5fa048ea343edcd3
If for some reason the commit disappears (e.g. force pushed), you can still find it in the branch or the upstream repo.

I'm closing this since the original issue is resolved. @gchallen kindly open a new issue with a minimal reproduction if the problem persists. Thanks everyone.

FWIW I think that what I'm seeing is caused by this bug in appcompat-v7 27.1.0: https://stackoverflow.com/questions/49629621/appcompatdelegate-failed-to-instantiate-custom-view-inflater-android-support-v7. That prevents the login dialog from opening and at that point the sign-in process is wedged. I've confirmed this by inspecting the Android logs. I'm using 27.1.1 but the fix doesn't seem to have made it in yet.
This doesn't seem like a problem with this module so I opted to not open a new issue. But it could be worth a mention in the docs for those targeting SDK version 27.

@gchallen: you didn't attach the exception you refer to, but if it's saying that AppCompatViewInflator (or something similar) is not found, we have the same error in the log and doesn't seem to cause any issues. It also says that it falls back to some default value.

I see the fallback message but in my case nothing is drawn on the screen. I see a waiting indicator (drawn by my app) but nothing else. Here's the relevant log messages, which show that at least it looks like the library does think that a user account chooser is visible:
08-10 14:49:48.560   896  1623 I ActivityManager: START u0 {act=com.google.android.gms.common.account.CHOOSE_ACCOUNT_USERTILE pkg=com.google.android.gms cmp=com.google.android.gms/.common.account.AccountChipAccountPickerActivity (has extras)} from uid 10018
08-10 14:49:48.561   670   670 D QCOM PowerHAL: LAUNCH HINT: ON
08-10 14:49:48.728 18814 18814 I AppCompatDelegate: Failed to instantiate custom view inflater androidx.appcompat.app.AppCompatViewInflater. Falling back to default.
08-10 14:49:48.728 18814 18814 I AppCompatDelegate: java.lang.ClassNotFoundException: androidx.appcompat.app.AppCompatViewInflater
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at java.lang.Class.classForName(Native Method)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at java.lang.Class.forName(Class.java:453)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at java.lang.Class.forName(Class.java:378)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.support.v7.app.AppCompatDelegateImpl.a(:com.google.android.gms<EMAIL_ADDRESS>(090400-204998136):1)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.support.v7.app.AppCompatDelegateImpl.onCreateView(:com.google.android.gms<EMAIL_ADDRESS>(090400-204998136):1)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:772)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at com.android.internal.policy.DecorView.onResourcesLoaded(DecorView.java:1933)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at com.android.internal.policy.PhoneWindow.generateLayout(PhoneWindow.java:2586)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at com.android.internal.policy.PhoneWindow.installDecor(PhoneWindow.java:2659)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at com.android.internal.policy.PhoneWindow.getDecorView(PhoneWindow.java:2067)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.app.ActivityTransitionState.setEnterActivityOptions(ActivityTransitionState.java:160)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.app.Activity.performCreate(Activity.java:7016)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.app.Activity.performCreate(Activity.java:7000)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.app.ActivityThread.-wrap11(Unknown Source:0)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.os.Handler.dispatchMessage(Handler.java:106)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.os.Looper.loop(Looper.java:164)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at android.app.ActivityThread.main(ActivityThread.java:6494)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at java.lang.reflect.Method.invoke(Native Method)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate: Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.appcompat.app.AppCompatViewInflater" on path: DexPathList[[zip file "/system/framework/com.android.media.remotedisplay.jar", zip file "/system/fra$
ework/com.android.location.provider.jar", zip file "/data/app/com.google.android.gms-xEEI2q7ViKf2_2xmpgWgDQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.google.android.gms-xEEI2q7ViKf2_2xmpgWgDQ==/lib/arm64, /data/app/com.google.android.gms-xEEI2q7ViKf2_2xmpgWgDQ$
=/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
08-10 14:49:48.728 18814 18814 I AppCompatDelegate:     ... 28 more
08-10 14:49:48.862   670   670 D QCOM PowerHAL: LAUNCH HINT: OFF
08-10 14:49:48.869   896   955 I ActivityManager: Displayed com.google.android.gms/.common.account.AccountChipAccountPickerActivity: +166ms (total +367ms)

My assumption is that you are already logged in, that's why you don't see the dialog. But i may be wrong. Try to invoke a signOut first (e.g. put in in the componentDidMount until you're testing) and see if you get a signIn window afterwards (or see some other related messages in the logs)

It's possible that this was caused by having two versions of the app-compat library installed. I've fixed that in my build.grade and now I don't seem to be having this issue.
Anyway—thanks for your patience, and apologies for the red herring.

@stonecold123: those describe my symptoms exactly. But again, this has not been an issue since I resolved having multiple play services libraries installed. Check your Gradle build output to see if there's a warning about this... or maybe it actually showed up in Android Studio when viewing build.gradle. I also think I added something to force all of my native module to use the same version of the play services libraries.
That said, I also did a fair amount of cleanup around the time the problem went away. I had added a bunch of native modules and things had gotten to be a bit of a mess. So who knows what actually (seems to have) fixed it for me.

@gchallen Did you use react-native-firebase ?
It may have something to do with it. I just created a test app without react-native-firebase. It had no problems at all signing in after a lot of reloads.
I followed this instruction (https://rnfirebase.io/docs/v4.3.x/installation/android) to install react-native firebase and rebuilt the test app. the same issue came up again.

For future reference:
I had a similar issue when started using google-signin.
Posted bellow is the stack trace of the error that happened when the sign in button was clicked. Close to the end of the exception is possible to see that the issue was related to the signing of the APK. I looked up for UNREGISTERED_ON_API_CONSOLE to find the solution.
The issue was that the SHA-1 of the release variant wasn't in the google-services.json file, only the debug variant SHA-1 was there.
I followed these steps and that fixed the issue for me.
I am currently using com.android.support:appcompat-v7:27.0.2, some people reported errors with the version 27.1.0. I'm not sure if this is related to the problem.
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: Failed to instantiate custom view inflater androidx.appcompat.app.AppCompatViewInflater. Falling back to default.
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: java.lang.ClassNotFoundException: androidx.appcompat.app.AppCompatViewInflater
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at java.lang.Class.classForName(Native Method)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at java.lang.Class.forName(Class.java:453)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at java.lang.Class.forName(Class.java:378)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.support.v7.app.AppCompatDelegateImpl.a(:com.google.android.gms<EMAIL_ADDRESS>(100400-204998136):1)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.support.v7.app.AppCompatDelegateImpl.onCreateView(:com.google.android.gms<EMAIL_ADDRESS>(100400-204998136):1)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:772)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at com.android.internal.policy.DecorView.onResourcesLoaded(DecorView.java:1885)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at com.android.internal.policy.PhoneWindow.generateLayout(PhoneWindow.java:2599)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at com.android.internal.policy.PhoneWindow.installDecor(PhoneWindow.java:2672)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at com.android.internal.policy.PhoneWindow.getDecorView(PhoneWindow.java:2071)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.app.ActivityTransitionState.setEnterActivityOptions(ActivityTransitionState.java:160)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.app.Activity.performCreate(Activity.java:7144)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.app.Activity.performCreate(Activity.java:7127)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.os.Handler.dispatchMessage(Handler.java:106)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.os.Looper.loop(Looper.java:193)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at android.app.ActivityThread.main(ActivityThread.java:6669)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at java.lang.reflect.Method.invoke(Native Method)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.appcompat.app.AppCompatViewInflater" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/system/framework/com.android.media.remotedisplay.jar", zip file "/system/framework/com.android.location.provider.jar", zip file "/data/app/com.google.android.gms-Up8WbwBAKxYByb82WLd6VQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.google.android.gms-Up8WbwBAKxYByb82WLd6VQ==/lib/arm64, /data/app/com.google.android.gms-Up8WbwBAKxYByb82WLd6VQ==/base.apk!/lib/arm64-v8a, /system/lib64]]
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
08-25 13:35:10.928 23811 23811 I AppCompatDelegate: 	... 30 more
08-25 13:35:10.990   761   761 D<EMAIL_ADDRESS>LAUNCH OFF
08-25 13:35:10.999  1174  1219 I ActivityManager: Displayed com.google.android.gms/.common.account.AccountChipAccountPickerActivity: +103ms (total +171ms)
08-25 13:35:12.028 23811 23832 D OpenGLRenderer: endAllActiveAnimators on 0x7213aaea00 (ListView) with handle 0x7213bde120
08-25 13:35:12.127 16788 17101 W Conscrypt: Could not set socket write timeout: java.lang.reflect.InvocationTargetException
08-25 13:35:12.140 16788 16803 I .gms.persisten: Background concurrent copying GC freed 333349(25MB) AllocSpace objects, 15(700KB) LOS objects, 41% free, 33MB/57MB, paused 79us total 155.722ms
08-25 13:35:12.147 16788 17101 W Conscrypt: 	at java.lang.reflect.Method.invoke(Native Method)
08-25 13:35:12.147 16788 17101 W Conscrypt: 	at com.google.android.gms.org.conscrypt.Platform.setSocketWriteTimeout(:com.google.android.gms<EMAIL_ADDRESS>(100400-204998136):13)
08-25 13:35:12.147 16788 17101 W Conscrypt: Caused by: android.system.ErrnoException: setsockopt failed: EBADF (Bad file descriptor)
08-25 13:35:12.147 16788 17101 W Conscrypt: 	at libcore.io.Linux.setsockoptTimeval(Native Method)
08-25 13:35:12.147 16788 17101 W Conscrypt: 	at libcore.io.ForwardingOs.setsockoptTimeval(ForwardingOs.java:174)
08-25 13:35:12.157 16788 17101 W Conscrypt: Could not set socket write timeout: java.lang.reflect.InvocationTargetException
08-25 13:35:12.157 16788 17101 W Conscrypt: 	at java.lang.reflect.Method.invoke(Native Method)
08-25 13:35:12.157 16788 17101 W Conscrypt: 	at com.google.android.gms.org.conscrypt.Platform.setSocketWriteTimeout(:com.google.android.gms<EMAIL_ADDRESS>(100400-204998136):13)
08-25 13:35:12.157 16788 17101 W Conscrypt: Caused by: android.system.ErrnoException: setsockopt failed: EBADF (Bad file descriptor)
08-25 13:35:12.157 16788 17101 W Conscrypt: 	at libcore.io.Linux.setsockoptTimeval(Native Method)
08-25 13:35:12.157 16788 17101 W Conscrypt: 	at libcore.io.ForwardingOs.setsockoptTimeval(ForwardingOs.java:174)
08-25 13:35:12.168   608  1224 W SurfaceFlinger: Attempting to set client state on removed layer: com.google.android.gms/com.google.android.gms.common.account.AccountChipAccountPickerActivity#0
08-25 13:35:12.169   608  1224 W SurfaceFlinger: Attempting to destroy on removed layer: com.google.android.gms/com.google.android.gms.common.account.AccountChipAccountPickerActivity#0
08-25 13:35:12.317 23811 23811 W AccountChipsFragment: Recording consent failed.
08-25 13:35:12.326 16788 16788 W ChimeraUtils: Non Chimera context
08-25 13:35:12.340  1174  1213 I ActivityManager: Start proc 28167:com.google.android.gms.learning/u0a22 for service com.google.android.gms/.learning.training.background.TrainingGcmTaskService
08-25 13:35:12.326 16788 16788 W ChimeraUtils: Non Chimera context
08-25 13:35:12.353 28167 28167 E id.gms.learnin: Not starting debugger since process cannot load the jdwp agent.
08-25 13:35:12.384 28167 28167 I id.gms.learnin: The ClassLoaderContext is a special shared library.
08-25 13:35:12.387 28167 28167 I chatty  : uid=10022 com.google.android.gms.learning identical 1 line
08-25 13:35:12.390 28167 28167 I id.gms.learnin: The ClassLoaderContext is a special shared library.
08-25 13:35:12.398 16788 17101 W Auth    : [GetToken] GetToken failed with status code: UNREGISTERED_ON_API_CONSOLE
08-25 13:35:12.400 22824 22915 E TokenRequestor: You have wrong OAuth2 related configurations, please check. Detailed error: UNREGISTERED_ON_API_CONSOLE
08-25 13:35:12.427 23811 23811 W AutoManageHelper: Unresolved error while connecting client.


section address always 0 when using elf-write

It seems like the section address will always become 0 when writing ELF files?
Eg using the objcopy example:
infile:
section              size        addr
.header              1024   134234112
.vector_table<PHONE_NUMBER>36
.text              190556   134235528
.rodata             25920   134426084
.data                  48   536870912
.bss<PHONE_NUMBER>60
.uninit             13836   536871320
.ram2               25316   268435456
.defmt                123           0
.debug_loc         453147           0
.debug_abbrev        4619           0
.debug_info       1185116           0
.debug_aranges      10208           0
.debug_ranges      155888           0
.debug_str        2304168           0
.debug_pubnames   1017607           0
.debug_pubtypes    865282           0
.ARM.attributes        56           0
.debug_frame        25936           0
.debug_line        222339           0
.comment              147           0
Total             6502084

outfile:
section              size   addr
.header              1024      0
.vector_table         392      0
.text              190556      0
.rodata             25920      0
.data                  48      0
.bss                  356      0
.uninit             13836      0
.ram2               25316      0
.defmt                123      0
.debug_loc         453147      0
.debug_abbrev        4619      0
.debug_info       1185116      0
.debug_aranges      10208      0
.debug_ranges      155888      0
.debug_str        2304168      0
.debug_pubnames   1017607      0
.debug_pubtypes    865282      0
.ARM.attributes        56      0
.debug_frame        25936      0
.debug_line        222339      0
.comment              147      0
Total             6502084

As far as I am aware object can only write object files and not executables or shared libraries. Object files don't have section addresses.

As far as I am aware object can only write object files and not executables or shared libraries. Object files don't have section addresses.

Aha.. That would make sense.
In that case i might get some recommendations here. I am looking for a rust crate, that will allow me to read an ELF firmware file (infile above), and replace the data contents of the .header section.
Essentially equavalent to arm-none-eabi-objcopy --update-section ".header=header.bin" infile outfile but in rust?

Aha.. That would make sense.
In that case i might get some recommendations here. I am looking for a rust crate, that will allow me to read an ELF firmware file (infile above), and replace the data contents of the .header section.
Essentially equavalent to arm-none-eabi-objcopy --update-section ".header=header.bin" infile outfile but in rust?

I'm not aware of any crates that can do that. The ELF write support in this crate might be a useful starting point (you'll need to extend it to handle segments). I would make it specific to ELF though, so don't use the objcopy example as a basis.
Other crates that can read/write ELF, but still can't do what you want: goblin (and faerie which uses goblin), elfkit (unmaintained).

I'm not aware of any crates that can do that. The ELF write support in this crate might be a useful starting point (you'll need to extend it to handle segments). I would make it specific to ELF though, so don't use the objcopy example as a basis.
Other crates that can read/write ELF, but still can't do what you want: goblin (and faerie which uses goblin), elfkit (unmaintained).

Added objcopy check for supported file type in #352.
Added write::elf::Writer and elfcopy example in #350. Still no high level support for operations such as --update-section.


Replace deprecated util.isString with typeof

util.isString comes from handlebars-utils and is not deprecated.


The loss for contrastive learning over domains

Thanks for your very interesting research.
I have some questions about the code of L402 in trainers/dapl.py
https://github.com/LeapLabTHU/DAPrompt/blob/f24b0c16c06b585104ba97615f89cd5df4def872/trainers/dapl.py#L402
The original paper states that contrastive learning helps transfer learning.
But, to my understanding, in the above code, this operation does not perform contrastive learning over multi-domain and it seems to simply perform contrastive learning over single-domain.
To perform contrastive learning over multi-domain, I think I need to change the code in the following, right?
loss_x = F.cross_entropy(output_x[:, :-self.n_cls], label)

I have same thought. Seem like code is different from what is talked in the paper

We find different implementations do not hamper performances. This may be because of the training dataset.


rewards withdrawal

https://github.com/input-output-hk/cardano-node/blob/2c74060d02ec03c8b5a92a53447ca58c582d988c/doc/stake-pool-operations/withdraw-rewards.md#build-the-raw-transaction

https://github.com/input-output-hk/cardano-node-tests/blob/c199d629daf66d4540f4feff04f5f52b330e0462/cardano_node_tests/tests/test_staking.py#L379
https://github.com/input-output-hk/cardano-node-tests/blob/c199d629daf66d4540f4feff04f5f52b330e0462/cardano_node_tests/tests/test_staking.py#L169


text assets is not working

Hello
Please I would like to know how you would include text assets into this application
All Attempt to reference the full path or the partial path did not work for me.
Please I need help, perhaps  an example.
import "semantic-ui-css/semantic.css";
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

All the above is not working for me.

You need the appropriate loaders for Webpack and configuring Webpack is not in the scope of this project. I'm closing this issue, because it has nothing to do with Webpacker.


Simplify Command API and added docs.

Simplified command implementations to rely on params only. context is only needed if the user wants to access some app-specific objects and led to confusions, so I dropped it where it’s not needed.
@oliver---- pls review.
Fixes #825.

Also merging this, after some more tweaks.


Upgrade deps

I'm working on just a bit of housekeeping for Gestalt - seeing if I can upgrade a few packages that are out of sync.
TODO

[ ] Tests

Warnings

:warning:

:memo: CHANGELOG - Please add a CHANGELOG.md entry for your changes

  Generated by :no_entry_sign: dangerJS


Allow building in Builder

I just wanted to try and build the app locally in Builder, but looks like there's no Flatpak manifest in the repo. It'd be great to have that to make drive-by contributions and QA easier.

Would dropping the following manifest in ./extra/ work? From my attempts, I couldn't get Builder to not use the Makefile.
extra/dev.geopjr.Hashbrown.yaml

app-id: dev.geopjr.Hashbrown
runtime: org.gnome.Platform
runtime-version: '41'
sdk: org.gnome.Sdk
command: hashbrown
finish-args:
  - --socket=wayland
  - --socket=fallback-x11
  - --share=ipc
  - --device=dri

cleanup:
  - /include
  - /lib/pkgconfig
  - /share/doc
  - /share/man
  - '*.a'
  - '*.la'

modules:
  # Required by Crystal
  - name: livevent
    sources:
      - type: git
        url: https://github.com/libevent/libevent.git
        tag: release-2.1.12-stable
  # Required by Crystal for yaml parsing (/translations during compile-time)
  - name: libyaml
    sources:
      - type: archive
        url: https://github.com/yaml/libyaml/releases/download/0.2.5/yaml-0.2.5.tar.gz
        sha256: c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4
  # Required by libadwaita
  - name: libsass
    buildsystem: meson
    sources:
      - type: git
        url: https://github.com/lazka/libsass.git
        branch: meson
        commit: 302397c0c8ae2d7ab02f45ea461c2c3d768f248e
  # Required by libadwaita
  - name: sassc
    buildsystem: meson
    sources:
      - type: git
        url: https://github.com/lazka/sassc.git
        branch: meson
        commit: 82803377c33247265d779af034eceb5949e78354
  # Required by Hashbrown
  - name: libadwaita
    buildsystem: meson
    config-opts:
      - -Dexamples=false
      - -Dtests=false
    sources:
      - type: git
        url: https://gitlab.gnome.org/GNOME/libadwaita.git
        tag: 1.0.0.alpha.4
  # Hashbrown
  - name: hashbrown
    buildsystem: simple
    build-commands:
      - $(pwd)/crystal/bin/crystal build ./src/hashbrown.cr --no-debug --release
      - install -D -m 0755 hashbrown /app/bin/hashbrown
      - install -D -m 0644 extra/Hashbrown.desktop /app/share/applications/dev.geopjr.Hashbrown.desktop
      - install -D -m 0644 extra/icons/logo.svg /app/share/icons/hicolor/scalable/apps/dev.geopjr.Hashbrown.svg
      - install -D -m 0644 extra/icons/symbolic.svg /app/share/icons/hicolor/symbolic/apps/dev.geopjr.Hashbrown-symbolic.svg
    post-install:
      - install -D -m 0644 extra/dev.geopjr.Hashbrown.metainfo.xml /app/share/metainfo/dev.geopjr.Hashbrown.metainfo.xml
    sources:
      - type: dir
        path: ..
      - type: archive
        dest: crystal/
        url: https://github.com/crystal-lang/crystal/releases/download/1.2.1/crystal-1.2.1-1-linux-x86_64.tar.gz
        sha256: 66e51bd2e72363858b5a41755396158d6aaf76b177a51741e4ab2df3323f0ff4
      - type: git
        url: https://github.com/GeopJr/libadwaita.cr.git
        commit: 75bb4affac8350698eaba9fe39d6936e3cff8d7e
        dest: lib/libadwaita
      - type: git
        url: https://github.com/elorest/compiled_license.git
        tag: v1.0.0
        commit: ba052e31f8203c1db9997be3aba9dae62dc5f832
        dest: lib/compiled_license

IIRC the manifest needs to be json for it to work in Builder, so that might be the issue.

Worked! Thanks for raising this issue.
It should be fixed as of c10ca4dcdd991dbfb302a14a414dd82b0d6fca3d.


ghost lines

I have almost got the app configured. Have one question;
When I print I am getting lines, gridlines if you will. Like the outline of the cell. How do I get rid of them? I can not figure out where to eliminate them. I have attached a pdf of my 2 templates
DemcoShort.pdf
DemcoTall.pdf
Would appreciate any assistance to get over my last hurdle.
Thanks
mck

Hi @mck1777 & @MaggieMcGee . We just released a new version which supports disabling gridlines in the print labels screen.
Let us know how that works for you.

Josh
That is perfect, now to get my horizontal alignment. Awesome thanks for the quick fix.
mck


Get correct pagesize instead of hardcoding

Fixes https://github.com/prometheus/procfs/issues/23

@grobie

Thanks! I think we should first fix the CI tests. As I wrote in another PR, it's probably easiest to just remove the old go versions from the travis config.

Ok, it's just the linter it seems.


Setting QS as scope does not work for triggers

Basically looking for a way to specify a trigger to only work when the QS command window is active. I have tried enabling both the Menu & Dock items however the only way i have been able to get this to work is if i have the QS prefs dialog in the bg so that Quicksilver is shown as the active application.
10.6.6
3841

This will be fixed in ß61 - merged into master with 'Triggers' branch


Is it possbile to make the data available for download for users outside of china?

Refer to issue title. I'm interested in running the project myself because it seems like an interesting upgrade over OpenMMD, but the files seem to be available only through baidu, which is unacessible to users outside of China.
Thank you.

https://drive.google.com/file/d/1dD47ASwAFdv60BNV0GKxGnKz8sDH7uHN/view?usp=sharing
https://drive.google.com/file/d/11MV8rgoHe4h0LDFNk1vIKT5NAp1czLm5/view?usp=sharing

https://drive.google.com/file/d/1dD47ASwAFdv60BNV0GKxGnKz8sDH7uHN/view?usp=sharing
https://drive.google.com/file/d/11MV8rgoHe4h0LDFNk1vIKT5NAp1czLm5/view?usp=sharing
you can download them on google drive.


bump package versions

Bumping versions of all preview/GA packages that were released this week

@Azure/azure-sdk-eng @ramya-rao-a

@KarishmaGhiya, Your changes from #6021 and #6018 have bled into this PR. Was that intentional?

@KarishmaGhiya, Your changes from #6021 and #6018 have bled into this PR. Was that intentional?
@ramya-rao-a From #6021 yes, I need that change in this PR for it to work. i haven't used any changes from #6018 .That PR is specifically for updating the versions for rush and pnpm unrelated to any of these changes

@danieljurek Updated versions of the remianing packages that were released this week too - app-configuration, eventhubs, event-hubs-checkpoint-blob, keyvault-certificates

@KarishmaGhiya After the latest force-push, the current state of the PR is that it has only 2 files in it, neither of them update actual package versions. If the PR is still a work in progress, can you please prefix the title with WIP and then remove it once the PR is ready for review?

@KarishmaGhiya: Please do restore the missing newlines.  We don't want to be flipping back and forth in PRs.

Approved pending validaton build results


[mod_cgi] send 500 if CGI ends and empty response

reference:
"Race leads to incorrect output in some circumstances"
https://redmine.lighttpd.net/issues/2542
(Thx, anomie, who identified and explained problem in above ticket)

Thanks! Applied in 94647804cfa89b8e4c5fcb986c7337fbe33d0a33.


Update postcss-next to postcss-preset-env.

More info can be found here: https://github.com/csstools/postcss-preset-env

Fixed but needs testing: https://github.com/floydchenchen/react-atlas/commit/af26dcfba9016de7f3fc5aed7a24c75786b794f7


Update k2hr3_utils-0.9.1 and k2hr3_osnl-0.9.1

Relevant Issue (if applicable)
No issue
Details
Updates submodules(k2hr3_utils-0.9.1 and k2hr3_osnl-0.9.1).

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


fix: calculate the batches per sessions correctly to achieve fault tolerance

you can validate it using https://github.com/Maan2003/fedimint/commits/consensus-test-old
./scripts/tests/consensus-fix.sh /path/to/old-fedimintd

How are we going to test this change works as intended? I would like to see a test where a 3/4 federation with 1 guardian offline produces a session. https://github.com/fedimint/fedimint/pull/4198 may help with this.

We really need to fix CI :sob:

Successfully created backport PR for releases/v0.2:

#4212


Fail in dp900-02-storage-lab

There are only 2 options in choice and I used the one is by default.
The provided location 'eastus2euap' is not available for resource group. List of available regions is 'eastasia,southeastasia,australiaeast,australiasoutheast,brazilsouth,canadacentral,canadaeast,switzerlandnorth,germanywestcentral,eastus2,eastus,centralus,northcentralus,francecentral,uksouth,ukwest,centralindia,southindia,jioindiawest,italynorth,japaneast,japanwest,koreacentral,koreasouth,mexicocentral,northeurope,norwayeast,polandcentral,qatarcentral,spaincentral,swedencentral,uaenorth,westcentralus,westeurope,westus2,westus,southcentralus,westus3,southafricanorth,australiacentral,australiacentral2,israelcentral,westindia'. (Code: LocationNotAvailableForResourceGroup)
Troubleshooting Options

the same with the second one. it was the second and last option
ERROR TYPE
The provided location 'centraluseuap' is not available for resource group. List of available regions is 'eastasia,southeastasia,australiaeast,australiasoutheast,brazilsouth,canadacentral,canadaeast,switzerlandnorth,germanywestcentral,eastus2,eastus,centralus,northcentralus,francecentral,uksouth,ukwest,centralindia,southindia,jioindiawest,italynorth,japaneast,japanwest,koreacentral,koreasouth,mexicocentral,northeurope,norwayeast,polandcentral,qatarcentral,spaincentral,swedencentral,uaenorth,westcentralus,westeurope,westus2,westus,southcentralus,westus3,southafricanorth,australiacentral,australiacentral2,israelcentral,westindia'. (Code: LocationNotAvailableForResourceGroup)
Troubleshooting Options

Explore Azure Data Lake Storage Gen2
Azure Data Lake Store Gen2 support enables you to use hierarchical folders to organize and manage access to blobs. It also enables you to use Azure blob storage to host distributed file systems for common big data analytics platforms.
Download the product2.json JSON file from https://aka.ms/product2.json and save it on your computer in the same folder where you downloaded product1.json previously - you’ll upload it to blob storage later).
In the Azure portal page for your storage account, on the left side, scroll down to the Settings section, and select Data Lake Gen2 upgrade.
In the Data Lake Gen2 upgrade page, expand and complete each step to upgrade your storage account to enable hierarchical namespace and support Azure Data Lake Storage Gen 2. This may take some time.
When the upgrade is complete, in the pane on the left side, in the top section, select Storage browser and navigate back to the root of your data blob container, which still contains the product_data folder.
And what can I see on the Storage Browser now:
Network request failed - cannot access storage endpoint

"message": "Network request failed - cannot access storage endpoint",    "code": 0,    "details": {      "htmlTemplate": "

 <span style=\"word-break: break-word;\" data-bind=\"wi

again at hte step
Explore Azure Tables
Azure Tables provide a key/value store for applications that need to store data values, but don’t need the full functionality and structure of a relational database.
In the Azure portal page for your storage container, on the left side, in the Data storage section, select Tables.
On the Tables page, select ＋ Table and create a new table named products.
After the products table has been created, in the pane on the left side, in the top section, select Storage browser.

@afelix-95 will review this issue, thank you @loglux.

I was able to complete the lab without any issues. It might have been a temporary connection problem. Closing it as not reproducible.


Update

Where is new version 2.4 EW?

Version 2.3 don't connect to server. Internet connection complete.
What do you sink about

Version 2.3 don't connect to server. Internet connection complete.
What do you sink about

Hi! Sorry about the issue with the connection. You can download the latest version 2.4.1 at https://emerald.cash/download/

Hi! Sorry about the issue with the connection. You can download the latest version 2.4.1 at https://emerald.cash/download/


UIRS-90 - update default width of ListPane

Purpose
4th pane appearing when nothing is selected in 3rd
Issue: https://issues.folio.org/browse/UIRS-90

Approach
Settings the Default width of the third pane as 'fill'

Pre-Merge Checklist
Before merging this PR, please go through the following list and take appropriate actions.

[x] I've added appropriate record to the CHANGELOG.md
Does this PR meet or exceed the expected quality standards?

[ ] Code coverage on new code is 80% or greater
[ ] Duplications on new code is 3% or less
[ ] There are no major code smells or security issues

Does this introduce breaking changes?

[ ] If any API-related changes - okapi interfaces and permissions are reviewed/changed correspondingly
[ ] There are no breaking changes in this PR.

If there are breaking changes, please STOP and consider the following:

What other modules will these changes impact?
Do JIRAs exist to update the impacted modules?

[ ] If not, please create them
[ ] Do they contain the appropriate level of detail?  Which endpoints/schemas changed, etc.
[ ] Do they have all they appropriate links to blocked/related issues?

Are the JIRAs under active development?

[ ] If not, contact the project's PO and make sure they're aware of the urgency.

Do PRs exist for these changes?

[ ] If so, have they been approved?

Ideally all of the PRs involved in breaking changes would be merged in the same day to avoid breaking the folio-testing environment.  Communication is paramount if that is to be achieved, especially as the number of intermodule and inter-team dependencies increase.
While it's helpful for reviewers to help identify potential problems, ensuring that it's safe to merge is ultimately the responsibility of the PR assignee.

@folio-org/fe-tl-reviewers please take some time to review the changes


Show a warning message when a page definition that is used by a test case(s) and/or a test routine(s) is being deleted

Show the message "This page definition is being used by the following test cases and test routines. Do you want to remove it? [list the test cases and routines that are using this page definition]" when deleting a page definition that is referenced by one or more test cases and/or test routines.
Currently the page definition is deleted without a warning, and the page references are simply removed from the test case:

Which in turn causes a codegen error that is very difficult to troubleshoot:

The message is good:

but you should still be able to delete the page, i.e. ask "Do you want to remove it?" with [Yes]  [No] buttons.  Right now you can only cancel and never delete the page.

I think user should delete page/page element out of test case/test routine manually. That is our design
It is different from confirmation and auto delete test case our of test suite <-- because this one does not affect to anything
However, deleting page/page element out of test case automatically (via YES button of confirmation message) would affect strongly to whole test case/test routine. User cannot undo it, and it's good to let them go back to review and delete page/page element manually
It looks like when you drop columns or tables which are being referenced by the other (example foreign key). You must manually solve that issue first then run delete statement again


Create colostate.txt

Colorado State University
https://www.colostate.edu/
https://cmb.colostate.edu/qcmb/
https://admissions.colostate.edu/apply/student-id-university-email/#:~:text=When you activate your NetID,followed by %40colostate.edu.

@saflatfish508 I am sorry, the domain colostate.edu is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Program. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).


Initial locale argument was not passed into serverSideTranslations

Describe the bug
It works locally.
However, it will make nextServer internal error once I deployed it on firebase.
Occurs in next-i18next version
8.1.3 must provide a clear and concise description of what you expected to happen.
Config
module.exports = {
  i18n: {
    defaultLocale: 'en',
    locales: ['en', 'ko'],
  },
};

Screenshots

Hi @klimazarin – unfortunately I'm unable to provide support for platform-specific issues. Can you provide any more details?

Thanks for your quick response.
You can see my app here: https://app.wedeo.io
However, it doesn't work at all :)
The problem is why the error appears on a production mode.
I just followed the sample code, if you want to see.
// _app.tsx
import { appWithTranslation } from 'next-i18next';

const App = ({ Component, pageProps }: AppProps): JSX.Element => {
  return (
    <Provider store={store}>
      <MainWrapper>
        <Component {...pageProps} />
      </MainWrapper>
    </Provider>
  );
};

export default appWithTranslation(App);

// code snippets regarding serverSideRendering

export const getStaticProps: any = async ({ locale }) => ({
  props: {
    ...(await serverSideTranslations(locale, [])),
  },
});
// or
export const getServerSideProps: GetServerSideProps = async (context) => {
  const { teamId, email } = context.query;
  let teamName;

  if (!teamId) {
    return { props: {} };
  }

  if (teamId) {
    teamName = await getTeamName(teamId as string);
  }

  return {
    props: {
      teamId,
      teamName,
      email: email || '',
      ...(await serverSideTranslations(context.locale, [])),
    },
  };
};

export default withTranslation('auth')(SignUpPage);

Is the error reproducible if you run the app in prod mode locally? Eg yarn build && yarn start?

App works in prod mode locally.
The error only occurs on cloud server.

Then unfortunately I'm unable to help, as whatever error you are experiencing is specific to the platform.

@uniquesolution29 Just a heads up I was running into this issue when building my next,js app in a docker container, which not exactly similar I thought to pass on how I resolved this.
I was copying the output of next build - i.e. .next - into my final build location, but was not copying over the next.config.js not next-i18n.config.js. By manually copying those files over into the final build location I was able to run the next app with translations without issue.
Again, not certain if this is directly relevant to your build issue but perhaps it provides you some avenue in to debugging it.

That could be a solution.
Thank you!


How to save sysrepo startup configuration

Hi @michalvasko ,
Can you give me an insight on how we can save the sysrepo running or startup configuration locally to a file in .XML format where netopeer sever and sysrepo permission.

Have a look at the output of sysrepocfg --help.

ok thanks I got the same.
sudo sysrepocfg --export=/home/abey/Documents/Abey.xml -d startup
this I can give by terminal. Hope I should use the same command in sysrepo session connected applications or is there better alternatives as in apis for the same.

All sysrepocfg does is calls some sysrepo API functions, so everything it does can be done by any application. In this case you want to call sr_get_data() and then you can do what you want with the result including print it into a file by libyang API functions.


css url() assets in html not handled in build process

Describe the bug
writing css style in html entry file with followings:
<style>
	#app {
        background-image: url("./bg-texture.jpeg");
    }
</style>

Only works in dev mode.
The bg-texture.jpg won't be hashed and copied to the build output dir. Run yarn serve then you can see a 404 error complaining about can't find bg-texture.jpeg.

Reproduction
https://github.com/zoubingwu/vite-css-url-bug-repro
System Info
System:
    OS: macOS 11.4
    CPU: (8) arm64 Apple M1
    Memory: 109.94 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 15.12.0 - /opt/homebrew/bin/node
    Yarn: 1.22.10 - /opt/homebrew/bin/yarn
    npm: 7.6.3 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 91.0.4472.114
    Safari: 14.1.1
  npmPackages:
    vite: ^2.3.8 => 2.3.8

Used Package Manager
yarn
Logs
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.

You can place  bg-texture.jpeg in <root>/public dir.  It will be served at root path / during dev, and copied to the root of the dist directory as-is. Here is a detailed explanation https://vitejs.dev/guide/assets.html#the-public-directory .
<style>
	#app {
        background-image: url("/bg-texture.jpeg");
    }
</style>

Yeah writing this in a separated css file and import it in js could workaround it, thought it's still a bug should be fixed so I opened a new issue here.

+1 for this issue. The current workaround requires manually import the file from .js file or writing this in a separated CSS file. It can be redundance for a vanilla site or for a site using TailwindCSS that suggested to use style="background-image: url(...)" inline CSS for background image.
It could be useful if CSS url() inside HTML can be handled by default or configurable by editing vite.config.js or somewhere else.

Looks like this is fixed now in Vite 2.8.6, and I believe it was fixed by https://github.com/vitejs/vite/pull/6321


Directly return field value without appending typeName when field value is qualified.

Fix issue: https://github.com/typetools/annotation-tools/issues/124
This issue cause me failed to add testing framework for Ontology, as the insertion result cannot compile.

PR moved to typetools:
https://github.com/typetools/annotation-tools/pull/137


feat: implement predict_linear function in promql

I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
Implement predict_linear function in promql and add some unit test. Extract linear_regression from deriv.rs to functions.rs for reuse it in predict_linear.
Checklist

[x]  I have written the necessary rustdoc comments.
[x]  I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)
#1349

Thanks @haohuaijin, and @sunng87 for reviewing


Added the Products Service into the parrallel workflow, added at the …

…bottom of the file
JIRA: link to jira ticket
Context:
What is the ticket about and why are we doing this change.
Changes
What are the various changes and what other modules do those changes effect.
This can be bullet point or sentence format.
Before and After UI (Required for UI-impacting PRs)
If this is a change to the UI, include before and after screenshots to show the differences.
If this is a new UI feature, include screenshots to show reviewers what it looks like.
Dev notes (Optional)

Specific technical changes that should be noted

Linked pull requests (Optional)

pull request link

Can you please add items requested in the PR template? You haven't mentioned anything.


detox test fails to install apk

What happened?

I've setup Github Action to run detox tests.

sdk manager
platform tools
emulator
butler
adb
...

Running detox test fails to install an apk. The pm install command fails every time after 45 seconds. Local tests are working.

13:14:19.683 detox[4431] DEBUG: [SPAWN_CMD, #25, cpid=4643] /Users/runner/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Application.apk
13:15:04.686 detox[4431] DEBUG: [SPAWN_END, #25, cpid=4643] /Users/runner/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Application.apk terminated with SIGTERM
13:15:04.818 detox[4431] TRACE: [SPAWN_TRY_FAIL, #25]
13:15:04.828 detox[4431] DEBUG: [SPAWN_CMD, #25, cpid=4677] (Retry #1) /Users/runner/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Application.apk
13:15:49.975 detox[4431] DEBUG: [SPAWN_END, #25, cpid=4677] /Users/runner/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Application.apk terminated with SIGTERM
13:15:50.213 detox[4431] TRACE: [SPAWN_TRY_FAIL, #25]
13:15:50.225 detox[4431] DEBUG: [SPAWN_CMD, #25, cpid=4[774](https://github.com/houserion/universage/runs/7212318253?check_suite_focus=true#step:21:778)] (Retry #2) /Users/runner/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Application.apk
13:16:35.268 detox[4431] DEBUG: [SPAWN_END, #25, cpid=4774] /Users/runner/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Application.apk terminated with SIGTERM
13:16:35.570 detox[4431] TRACE: [SPAWN_TRY_FAIL, #25]
13:16:35.578 detox[4431] DEBUG: [SPAWN_CMD, #25, cpid=4904] (Retry #3) /Users/runner/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Application.apk
13:17:20.699 detox[4431] DEBUG: [SPAWN_END, #25, cpid=4904] /Users/runner/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Application.apk terminated with SIGTERM
13:17:20.706 detox[4431] ERROR: ChildProcessError: `/Users/runner/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Application.apk` failed with code null
    at ChildProcess.<anonymous> (/Users/runner/work/universage/universage/node_modules/child-process-promise/lib/index.js:132:23)
    at ChildProcess.emit (node:events:390:28)
    at maybeClose (node:internal/child_process:1064:16)
    at Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:390:28)
    at Pipe.<anonymous> (node:net:687:12)

What was the expected behaviour?
I expect detox test to install Application.apk and launch tests.
Was it tested on latest Detox?

[X] I have tested this issue on the latest Detox release and it still reproduces.

Did your test throw out a timeout?

[X] I have followed the instructions under Identifying which synchronization mechanism causes us to wait too much.

Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 19.7.1
React Native version: 0.64.3
Node version: 16.13.1
Device model: Pixel XL
Android version: 12
Test-runner (select one): jest-circus
Detox logs
Detox logs
/bin/sh -c npx detox test --configuration houserion.android.e2e --loglevel trace --record-logs failing --record-videos failing
INFO    | boot completed
INFO    | boot time 25248 ms
INFO    | Increasing screen off timeout, logcat buffer size to 2M.
INFO    | Revoking microphone permissions for Google App.
13:13:01.583 detox[4428] INFO:  [test.js] DETOX_CONFIGURATION="houserion.android.e2e" DETOX_LOGLEVEL="trace" DETOX_RECORD_LOGS="failing" DETOX_RECORD_VIDEOS="failing" DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1657102381569 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' e2e
13:13:05.524 detox[4431] TRACE: [DETOX_CREATE] created a Detox instance with config:
{
  appsConfig: {
    default: {
      type: 'android.apk',
      binaryPath: 'android/app/build/outputs/apk/houserion/e2e/app-houserion-e2e.apk',
      build: 'cd ./android && RN_SRC_EXT=e2e.js,e2e.ts,e2e.tsx APP=houserion BUILD_TYPE=e2e GENERATE_SOURCEMAP=false ./gradlew assembleHouserionE2e assembleHouserionE2eAndroidTest -DtestBuildType=e2e && cd ..'
    }
  },
  artifactsConfig: {
    rootDir: '.artifacts/houserion.android.e2e.2022-07-06 10-13-01Z',
    plugins: {
      log: {
        enabled: true,
        keepOnlyFailedTestsArtifacts: true
      },
      screenshot: {
        enabled: true,
  ● Deep Link, Guest › should work
    Environment setup failed. See the detailed error below.
  ● Deep Link, Guest › should work
    Environment setup failed. See the detailed error below.
  ● Deep Link, Authorized › should onboard
    Environment setup failed. See the detailed error below.
  ● Deep Link, Authorized › should work
    Environment setup failed. See the detailed error below.
  ● Deep Link, Broken › should work
    Environment setup failed. See the detailed error below.
  ● Test suite failed to run
    ChildProcessError: `/Users/runner/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Application.apk` failed with code null
      at ChildProcess.<anonymous> (../node_modules/child-process-promise/lib/index.js:[132](https://github.com/houserion/universage/runs/7212318253?check_suite_focus=true#step:21:136):23)
13:17:49.456 detox[4431] TRACE: [SESSION_TORN] tester exited session 695db362-0f12-2db8-f69f-fe39da698771
13:17:49.961 detox[4428] ERROR: [cli.js] Command failed: jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' e2e

Device logs
Device logs
paste logs here!

More data, please!
No response

@RohovDmytro do you see anything relevant in adb logcat that could help debug this? Does this still occur after restarting your emulator and restarting adb (adb kill-server, adb start-server)?

Try to install the .apk manually with the same command to see if it works. I had the issue of not having enough disk space on my android emulator.

I have the exactly same issue, but using Bitrise CI.
I can find the device via
adb -s emulator-5554 emu avd name
But when running the
detox test -c android.emu.release

I have the issue:
detox[8453] INFO:  [test.js] DETOX_CLEANUP=true DETOX_CONFIGURATION="android.emu.release" DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1657707517233 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' e2e

detox[8465] ERROR: ChildProcessError: `/opt/android-sdk-linux/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Application.apk` failed with code null
    at ChildProcess.<anonymous> (/bitrise/src/app/node_modules/child-process-promise/lib/index.js:132:23)
    at ChildProcess.emit (node:events:527:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)

I have the exact same issue as @ErickMaeda - spent days trying to find a workaround but just can't get Bitrise and Detox to play ball.

@ErickMaeda @Arron-Gill Can you try to install the apk manually from the commandline and check whether that works for you? Also, if you run the tests locally, and not through bitrise, do they work as expected? Do you see any relevant messages in the adb logcat when the problem occurs?

Exact same issue for Github Actions here

@jonathanmos I have same issue and flag didn't help me

Everyone facing this issue - please follow the suggestion of bundling the installation of the apk (or any other APK) in your buildscripts, prior to Detox, and see whether that works.
@RohovDmytro since in your case the command terminates with a SIGTERM, I postulate that github-actions doesn't approve of something happening in your environment, and therefore terminates the command prematurely. Since you mentioned 45 seconds, I would guess an enforcement of a timeout of some sort.

I tried with the flag forceAdbInstall but it didn't result,
I also I tried installing manually both apk's generated from build

android/app/build/outputs/apk/release/app-release.apk
android/app/build/outputs/apk/androidTest/release/app-release-androidTest.apk

The installation was successfull as you'll see on logs, however it fails when trying to run the detox test -c android.emu.release
Performing Streamed Install
Success
Performing Streamed Install
Success
00:10:29.053 detox[8892] INFO:  [test.js] DETOX_CONFIGURATION="android.emu.release" DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1660176629017 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' e2e
00:13:43.968 detox[8904] ERROR: ChildProcessError: `/opt/android-sdk-linux/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Application.apk` failed with code null
    at ChildProcess.<anonymous> (/bitrise/src/app/node_modules/child-process-promise/lib/index.js:132:23)
    at ChildProcess.emit (node:events:527:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)

@ErickMaeda as a workaround, try keeping the pre-install sequence and run Detox with the --reuse argument.

@d4vidi Could you please give more info regarding this

try keeping the pre-install sequence

I have exact same issue on Bitrise

@professorkolik largely suggesting to launch the emulators in advance, build your apps (e.g. using detox build) and run adb install manually before running detox test (which, in turn, should be run with the --reuse argument).

@d4vidi thank you for suggestion, we do that everything except running adb install manually
We'll try it out and update you

This is because you need to build and adb-install the test APK, in the same way as you do with the main (app) APK.

Everyone facing this issue - please follow the suggestion of bundling the installation of the apk (or any other APK) in your buildscripts, prior to Detox, and see whether that works.
@RohovDmytro since in your case the command terminates with a SIGTERM, I postulate that github-actions doesn't approve of something happening in your environment, and therefore terminates the command prematurely. Since you mentioned 45 seconds, I would guess an enforcement of a timeout of some sort.

Hey @d4vidi, just wanted to comment specifically on this, since I think this is intended? The install timeout is specified as 45 seconds here: https://github.com/wix/Detox/blob/1144d13d7eafcb8527f4b9a08fcf9eb79f9344ef/detox/src/devices/common/drivers/android/exec/ADB.js#L11.
I wonder if that should be bumped up a little bit? At the very least it'd be nice to have a specific error message logged when an install is getting SIGTERM'd due to the timeout.
We're hitting this on GH actions as well where these operations seem to really drag, though seemingly not as much with just a simple adb install run manually before detox actually runs.
I'll try experimenting with a higher install timeout and report back if it helps.

With a few tests it seems like bumping this timeout up to 90s did resolve our issues here, though it's hard to say with certainty since these were always a bit flakey overall... not sure what's the root cause of the slow install times.
Logging the timeouts doesn't seem possible actually since the timeout argument is just being passed down into node's child_process.exec command which will just SIGTERM a command on timeout without a specific message [source]

I'm going to try upping the install timeout on my side too. Is it worth having this as an env variable we can pass in if we want to override the value for those of us that experience the issue? (slow build servers, etc)

This is because you need to build and adb-install the test APK, in the same way as you do with the main (app) APK.
@d4vidi Is this in addition to the main app APK or we just install the test APK onto the emulator?

FWIW on our end the other biggest thing that helped with Detox + Bitrise was to swap to their Linux machines. Runs got way more stable and we haven't seen install timeouts since then. For other performance issues, we also had some luck giving more memory to the emulator and tweaking the heap size of the JVM.

Diving into our Github Actions logs a bit more, it looks very much like the install is failing due to the 45 second timeout:
14:00:46.615 detox[14630] DEBUG: [SPAWN_CMD, #19, cpid=17258] /Users/runner/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Application.apk
14:01:31.638 detox[14630] DEBUG: [SPAWN_END, #19, cpid=17258] /Users/runner/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Application.apk terminated with SIGTERM

@d4vidi would Detox consider changing the INSTALL_TIMEOUT value that @david-alza found, given that it appears to be affecting others?

largely suggesting to launch the emulators in advance, build your apps (e.g. using detox build) and run adb install manually before running detox test (which, in turn, should be run with the --reuse argument)

If the timeout will not be changed and these installation steps should be indeed reused maybe it would be good to get a guide on which commands with which flags are implied here for CI users...

Interesting, for GitHub Actions, upgrading to the new macOS 12 runner using runs-on: macos-12 seems to have made this run through without failures (without any other changes):
upleveled/hotline-bling-codealong@4fdc7b0 (#95)
But the timeout is indeed an intermittent issue, so maybe it was just luck.

largely suggesting to launch the emulators in advance, build your apps (e.g. using detox build) and run adb install manually before running detox test (which, in turn, should be run with the --reuse argument)

If the timeout will not be changed and these installation steps should be indeed reused maybe it would be good to get a guide on which commands with which flags are implied here for CI users...

@d4vidi just looking for an example to document this now, would this example workflow by @mikehardy contain any of what you're talking about?
https://github.com/ankidroid/Anki-Android/blob/2c29fa9b13a442a7f94f16b6bb48d8957d8c508a/.github/workflows/tests_emulator.yml

Why is this closed? :(

For anyone who is facing this problem, here is the solution that worked for me.
A little description of my problem:
I run tests every time a new PR is created.
It took me a long time to figure out what the cause was,
but eventually I realized that the problem is in the signature of my APK files.
I'm building release versions that require a signature.
I deployed via Github Actions, and this is what I did:
Be notice that i have not basic flavors! It is release and staging flavors, change it accordingly to yours.
      - name: Encode the keystore to base64
        id: encode_keystore
        run: |
          echo "SIGNINGKEYBASE64=$(openssl base64 < $RUNNER_TEMP/my_production.keystore | tr -d '\n')" >> $GITHUB_ENV

      - name: Sign APK
        id: sign_apk
        uses: r0adkll/sign-android-release@v1
        with:
          releaseDirectory: android/app/build/outputs/apk/production/release
          signingKeyBase64: ${{ env.SIGNINGKEYBASE64 }}
          alias: ${{ secrets.KEY_ALIAS }}
          keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
          keyPassword: ${{ secrets.KEY_PASSWORD }}

      - name: Sign AndroidTest APK for Detox
        id: sign_androidTest_apk
        uses: r0adkll/sign-android-release@v1
        with:
          releaseDirectory: android/app/build/outputs/apk/androidTest/production/release/
          signingKeyBase64: ${{ env.SIGNINGKEYBASE64 }}
          alias: ${{ secrets.KEY_ALIAS }}
          keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
          keyPassword: ${{ secrets.KEY_PASSWORD }}

Main issue was that we also need to sign-up androidTest APK.
And im also provide more careful way to my apks, because detox do wrong thing with my folders.
    'production.android.release': {
      type: 'android.apk',
      binaryPath:
          'android/app/build/outputs/apk/production/release/app-production-release-signed.apk',
      testBinaryPath:
          'android/app/build/outputs/apk/androidTest/production/release/app-production-release-androidTest-signed.apk',
      build: 'cd android && ./gradlew assembleProductionRelease assembleProductionReleaseAndroidTest -DtestBuildType=release && cd ..'
    }

For careful deployment im suggest to install brew install tree and check the paths on your virtual machine.
If you have any questions, I'm happy to help :)

yeah, please stop wasting time on this
you just need to sign the app
https://reactnative.dev/docs/signed-apk-android

@estiventhneira my apps have signingConfigs inside app/build.gradle but still having this issue, any recommendations?

did you sign the Test apk as he @bataevvlad says?


Update atom to 1.11.2

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

#25613 beat you to it!


Not really an issue..

Here is the link to the ottawa u equivalent of the CSSS: http://www.ssaaes.com
If you see anything that we dont have that you like, you can try to implement it into our website!

The twitter box in the bottom right corner of this page drives me nuts, it looks like it's perma-highlighted.
I'll see if I can get some inspiration from their page though

I'm gonna go ahead and close this one


Client: Support machine-readable output

Currently the client only has a REPL mode, or a mode that detects piped in commands, and runs them and quits. But the output is always the same: a human readable table of information.
We should support different machine readable output formats like CSV and JSON. This would be very helpful when trying to generate a graph of data or a report or the like.

Good idea, should be pretty easy with a flag and the std pkgs.


local-provider: recociling permissions for local backup directory

How to categorize this PR?

/area dev-productivity
/kind bug
What this PR does / why we need it:
Ensures the correct set of permissions (0775) for the host-mounted bucket-directory during backup bucket reconciliation in the local-provider (local-setup).
This is important if the filesystem permissions are changed externally (this happened to multiple people, including me, and is not obvious to debug).
Please see the attached issue for a more detailed description.
Which issue(s) this PR fixes:
Fixes #7236
Special notes for your reviewer:
Release note:

Ensures the correct set of permissions (0775) for the host-mounted bucket-directory during backup bucket reconciliation in the local-provider

/lgtm
/approve

/test pull-gardener-e2e-kind-ha-multi-zone


Are there any plans to allow use as a library?

I'm currently building a cargo subcommand for deploying Rust WASM apps to a specific domain, and I'm currently calling cargo-web manually via std::process::Command. I'm wondering if there is any possibility in the future of inlining the functionality, so someone installing the binary I'm building wouldn't have to install cargo-web separately.
It'd be nice even if the interface was a single public function run(args: &[OsString]). Of course, more granularity / manual control would be appreciated, but anything allowing it to be included as the same binary at all would be nice.
Not a high-priority concern at the moment, I'm mostly wondering if there are any existing plans. Thanks!

Well, I haven't been planning anything like that, but I certainly wouldn't be against it per-se if someone needed it!

Cool! I can work on a PR to submit which would involve moving main.rs into lib.rs and then creating a shim main.rs which just calls into the library, if that sounds alright.
My use case is for a hobby project and thus not too important, but I could imagine it being useful to anyone wanting to bundle and/or deploy cargo web generated binaries in a domain too specific to include in cargo web itself.

+1 on this idea - i'll take a look at implementing it. i want to build my front-end in a build script for my back-end, then embed the files in the binary. it would be cool to be able to use cargo install for a full stack application, rather than needing a makefile or dockerfile to orchestrate the steps.

@koute this should be fixed by #172 ?

Yep.
On July 16, 2019 4:26:33 PM GMT+02:00, Adam Salvail<EMAIL_ADDRESS>wrote:

@koute this should be fixed by #172 ?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/koute/cargo-web/issues/74#issuecomment-511839781

Thanks @g-s-k!


Addition of Skill Passport

@rohitsamagra can you link Architecture of Skill passport as a sub-page of Value of Skill passport. Having them as two different pages might not work. Is the solution based on RC 1.0? Can you point to Skill Passport documentation for further information on this reference solution.

Moved Architecture of Skill passport within Value of skill passport
Yes it is based on RC 1.0
This is the Github repo at our end of Skill passport: https://github.com/COMPASS-DPG/passbook

Please let me know if I can provide any more information. Thanks


Crashes/green screen when enable hardware acceleration on Amlogic devices

Describe the bug
When trying to enable hardware acceleration with the following regirestion parameter app crashes on MediaCodec_loop loop
  registerWith(options: {
    'video.decoders': ['FFmpeg:codec=h264_mediacodec:hwaccel=mediacodec:hwcontext=mediacodec'],
    'global':{
      'logLevel': 'All',
      'profiler.gpu': 1,
      'ffmpeg.log': 'verbose'
    }
  },);

Expected behavior
A clear and concise description of what you expected to happen.
Log
I/flutter (31094): mdk.INFO: 01:34:51.333: [FFmpeg:h264_mediacodec] Output crop parameters top=0 bottom=1079 left=0 right=1919, resulting dimensions width=1920 height=1080
I/flutter (31094): mdk.INFO: 01:34:51.334: [FFmpeg:h264_mediacodec] MediaCodec started successfully: codec = OMX.amlogic.avc.decoder.awesome2, ret = 0
I/flutter (31094): mdk.INFO: 01:34:51.335: AVCodec.Video[h264_mediacodec.] decoder: 1 Single threads
I/flutter (31094): mdk.INFO: 01:34:51.335: unsupported avcodec options:  codec=h264_mediacodec hwaccel=mediacodec hwcontext=mediacodec
I/flutter (31094): mdk.INFO: 01:34:51.336: h264 unknown, bpc:0, bpp:0(), channels:(), map: 0 0 0 0 1920x1080
I/flutter (31094): mdk.INFO: 01:34:51.336: decode stored recovery packets: 0
D(31094): PlayerBase::stop() from IPlayer
D/AudioTrack(31094): stop(57): called with 3712 frames delivered
D/(31094): PlayerBase::stop() from IPlayer
D/AudioTrack(31094): stop(57): called with 128 frames delivered
I/flutter (31094): mdk.INFO: 01:34:51.383: >334 14:00:13.5/00:00:00 cache 1.9s/3417KB 909KB/s
D/(31094): PlayerBase::stop() from IPlayer
D/AudioTrack(31094): stop(57): called with 256 frames delivered
D/SurfaceUtils(31094): set up nativeWindow 0xe417bd38 for 1920x1080, color 0x11, rotation 0, usage 0xc02b00
W/ACodec  (31094): [OMX.amlogic.avc.decoder.awesome2] setting nBufferCountActual to 17 failed: -1010
D/(31094): PlayerBase::stop() from IPlayer
D/AudioTrack(31094): stop(57): called with 3712 frames delivered
D/(31094): PlayerBase::stop() from IPlayer
D/AudioTrack(31094): stop(57): called with 256 frames delivered
D/(31094): PlayerBase::stop() from IPlayer
D/AudioTrack(31094): stop(57): called with 3712 frames delivered
D/(31094): PlayerBase::stop() from IPlayer
D/AudioTrack(31094): stop(57): called with 128 frames delivered
I/flutter (31094): mdk.INFO: 01:34:51.544: >502 14:00:13.6/00:00:00 cache 2.1s/3790KB 9189KB/s
I/flutter (31094): mdk.INFO: 01:34:51.549: [FFmpeg:h264_mediacodec] Output MediaFormat changed to {crop-right=1919, color-format=17, slice-height=1080, mime=video/raw, hdr-static-info=java.nio.HeapByteBuffer[pos=0 lim=25 cap=25], stride=1920, color-standard=1, color-transfer=3, crop-bottom=1079, crop-left=0, width=1920, color-range=2, crop-top=0, height=1080}
I/flutter (31094): mdk.INFO: 01:34:51.555: [FFmpeg:h264_mediacodec] Output crop parameters top=0 bottom=1079 left=0 right=1919, resulting dimensions width=1920 height=1080
F/libc    (31094): Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 31341 (MediaCodec_loop), pid 31094

Build fingerprint: 'Droidlogic/oppen/oppen:11/RD2A.211001.002/eng.frank.20231019.105840:user/release-keys'
Revision: '0'
ABI: 'arm'
Timestamp: 2023-12-10 01:34:51-0600

pid: 31094, tid: 31341, name: MediaCodec_loop
uid: 10152
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
    r0  00000000  r1  00007a6d  r2  00000006  r3  acef5df8
    r4  acef5e0c  r5  acef5df0  r6  00007976  r7  0000016b
    r8  acef5df8  r9  acef5e08  r10 acef5e28  r11 acef5e18
    ip  00007a6d  sp  acef5dc8  lr  e573e8ad  pc  e573e8c0
backtrace:

the backtrace is missing. I need your full log. What about removing video.decoders line?

@wang-bin Removing video.decoders it will work but some hls streams will be slow especially the ones with full hd

the log looks good. what do you mean about slow, low fps? What about using official implementation by removing registerWith()? I guess the bottleneck is opengl rendering, if it's true, I have to add an option to let the decoder output frames directly to surface.

@wang-bin The issue on android device using amlogic cpu s905y4 the picture is slow and when enabling hardware acceleration the image will be green if you can give me your contact info I will give you all details about this issue

answer my questions in my previous comment, otherwise i can't help. i can add an option to decode in tunnel mode, the performance should be better

the log looks good. what do you mean about slow, low fps? What about using official implementation by removing registerWith()? I guess the bottleneck is opengl rendering, if it's true, I have to add an option to let the decoder output frames directly to surface.

Without registerWith  I'm getting the same issue, I have tried registerWith  in order to try another decoders.
Meanwhile can you stop opengl rendering?

Use the latest code in master branch and add 'tunnel': true
registerWith(options: {
    'tunnel': true,
    'global':{
      'logLevel': 'All',
      'profiler.gpu': 1,
      'ffmpeg.log': 'verbose'
    }
  },);

@wang-bin I'm getting this after sitting tunnel: true
I/flutter ( 9534): mdk.FINEST: 06:23:07.103: no video renderer
I/flutter ( 9534): mdk.FINEST: 06:23:07.103: no video renderer
I/flutter ( 9534): mdk.FINEST: 06:23:07.117: no video renderer
I/flutter ( 9534): mdk.FINEST: 06:23:07.173: no video renderer

@wang-bin I'm getting this after sitting tunnel: true
I/flutter ( 9534): mdk.FINEST: 06:23:07.103: no video renderer
I/flutter ( 9534): mdk.FINEST: 06:23:07.103: no video renderer
I/flutter ( 9534): mdk.FINEST: 06:23:07.117: no video renderer
I/flutter ( 9534): mdk.FINEST: 06:23:07.173: no video renderer

ignore this log, it's expected

@wang-bin nothing rendered on the screen that's why, it seems to be issue on the amlogic s905y4 chipset

there is a bug in my dart code, I create decoder too early, sometimes tunnel mode is not applied, I don't have a good solution right now. can you try this example https://github.com/wang-bin/mdk-android with the latest library https://sourceforge.net/projects/mdk-sdk/files/nightly/mdk-sdk-android.7z/download ? also change this line https://github.com/wang-bin/mdk-android/blob/master/sdk/src/main/cpp/MDKPlayerJNI.cpp#L13  to #define  DECODE_TO_SURFACEVIEW 1

@wang-bin Do you mean to compile it under the flutter application?

no, it's a minimal android example without flutter which can decode to SurfaceView directly. fvp plugin can not perform better than this example. i guess there is bottleneck in flutter render engine, so default flutter video player(exoplayer) result is poor. you can set your video url at this line https://github.com/wang-bin/mdk-android/blob/master/app/src/main/java/com/mediadevkit/mdkplayer/MainActivity.java#L64


updated docs on how to use selectors to select multiple services

I appreciate the contribution. Thank you!


Updated all npm dependencies

Codecov Report

Merging #44 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #44   +/-   ##
=======================================
  Coverage   99.48%   99.48%
=======================================
  Files           6        6
  Lines         196      196
  Branches       49       49
=======================================
  Hits          195      195
  Misses          1        1

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 f0a3621...6cccfce. Read the comment docs.


No mention of On-Prem only

There is no mention made in the article that this applies to On-Prem only. Of course, the poor developer that tries to use it will find out soon enough when their code won't compile. Every topic pertaining to File Management should contain a fairly prominent note about this topic only applies to On-Prem.

Where are the topics about how to display and interact with the File Chooser that the SaaS solution uses (e.g. when Downloading a custom report layout)? I have searched multiple times and all I find are many references to the File Management codeunit which is not available in SaaS.

Thanks

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

ID: 200d72e3-3134-b81a-44bf-8e8050aa8b4f
Version Independent ID: d0003d57-5e71-5e5b-fef3-117b78e406c0
Content: File.DownloadFromStream Method - Business Central
Content Source: dev-itpro/developer/methods-auto/file/file-downloadfromstream-method.md
Service: dynamics365-business-central
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

Thanks for the feedback and sorry for the hassle - most of the other methods under the File Data Type are marked with a note about on-prem, this one for example: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/file/file-download-method - so this must be a bug, we will look into how this topic was missed.
As for your second question, I will try to find out. Keeping this issue open.

I appreciate your helpfulness and look forward to the answer to #2 above.

Hello, thanks for your patience, I think we now have a solution that you can hopefully use. 1) the method is available for SaaS, but not all parameters are supported, so it's correct that the topic itself doesn't have a note about on-prem only. 2) we have refreshed the content of that topic to contain a valid example for cloud, you can see that here: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/file/file-downloadfromstream-method.
When downloading in the cloud, the browser will display a Download dialog in the corner typically - it's not possible to write to a path. I hope this helps. Thanks!

Docs are live with new example. Closing this issue. Thanks.


Update Brocade fonts

This PR adds an empty apps/extensions.js file that can be overwritten to include additional apps in st2web.

https://github.com/StackStorm/discussions/issues/223

I say that you don't even need extensions.js, you can just override apps/index.js file. The applications are mostly self-contained. If you as a suite developer decide that user should not have an access to some default applications, you need a way to disable them too.
From my point of view, suite developer should be the one deciding what should be delivered to his users. He surely know them better than we do. At the same time, he should also be made responsible for compatibility between new version of st2web and the suite. We can't do it for him.

@enykeev the problem I couldn't solve (that will still stand with overriding apps/index.js) is the inclusion of several suites, since suites would be developed independently, but can be installed together: that would be two packages overriding the same file, and the suite you install last would "win". :) extensions.js is just easier to change than apps/index.js when it becomes a problem.
Ideally, we would do something like require('st2-*').name, but wildcard requires aren't supported for obvious reasons.

That's exactly the problem I want us to make obvious by editing apps/index.js. "For now, there is no magic so you have to cooperate". Extensions.js has the same problem, but it's more vague.

:+1: I'll get back to using index.js then.

@enykeev removed the extensions file, so now all this PR does is updates Brocade fonts. :) I'll modify the one in bwc-ui as well.

👍


spin templates list is returning an error

I have a bunch of Spin templates added from both Git and local directories. When I run spin templates list, I get the following:
$ spin templates list
Error: Failed to list templates

Caused by:
    0: Failed to read template from /Users/technosophos/Library/Application Support/spin/templates/target/metadata
    1: Failed to read template manifest file /Users/technosophos/Library/Application Support/spin/templates/target/metadata/spin-template.toml
    2: No such file or directory (os error 2)

If I look in the indicated location, I don't see a metadata file, either:
$ ls ~/Library/Application\ Support/spin/templates
http-c_c328011daf311449f512a99cc0e60bbcae479c2b9d0792609b69834a0aec067f
http-go_542a3fc5dc9e0b05d458dfc9bf5b41d8e6a2a4c5e4c511c2ec00857cef32a60d
http-grain_1ef84acf426b8c0289ce9752020d3dbaf1557ceedcd088e5245a745038297642
http-rust_0e3cdf0278c98f7b80e4615a3c7918514619850f1f557ea8d7de7f9f26080c0e
http-swift_223fcdcf4254bfb6da2e008f9def1bd63b705cb343eff62555092af7ff07dab8
http-zig_2ce7dec1c50ca2a2f88375512cae18bb990c78538943575f51e504488ec2ef74
redis-go_f683d8322a04d723fbb1c04ff38f985330eb1a158e4c75db7cc890c665747431
redis-rust_2eaa9f1af54cf8452806b2a88fbd209fe0ee1d93921db19e3664aa4bf7e3b83d
target
$ ls ~/Library/Application\ Support/spin/templates/target
# This space intentionally left blank

I wonder if your local source contained a /templates/target directory which was a build output but got blindly copied by the installer, though I think that would result in a decorated name (but maybe not if there was no template manifest?).  We should:

Add some checks at install time and copy only directories that contain valid-ish templates.
Not fail on non-template-ish directories in the template store (e.g. warn and move on).
Provide a way to clean up the template store if it does get into a woeful state.

Seems like it should be decorating all names; I wonder if something got built in the /templates dir somehow and created target that way.

I just discovered that the target/ directory was created automatically by another tool, running a command that should have been a no-op.

Awesome, thanks.  I've want to prevent installing a bad template (besides I've already written the code for it); the work to pass airily or glibly over a bad directory is in progress.


Double check all imports between the different post-compile scripts

Release prep stuff.
Need to ensure there aren't any sneaky import statements pulling code into a script that it shouldn't be in (content_script stuff in background, etc). If there is, we'll have a huge amount of unused code in each script.
Also need to be aware of pulling in named exports using wildcard *; our build system isn't very smart.

Went through the bundles earlier this morning (disc is a nice tool that works on our prod builds without source maps) and everything looks ok 👍  Was initially worried as our background and content scripts are unusually big (1.6 and 2.4MB respectively), however most of this is from pdfjs module, which is required for our PDF processing.


Add highlighting for elixir files

here is a comparison with and without colors https://imgur.com/a/KBL7ndB

Pretty great I think!


MB-12307 Convert supportapi tests to run within a transaction

Jira ticket for this change
Summary
Converts all remaining tests in /pkg/handlers/supportapi to use transactions.
Pattern for server tests conversion explains more about the approach used.
Setup to Run Your Code
A clean run of make server_test is sufficient.
Verification Steps

[x] No subtests are run with suite.T().Run(...) - they all use suite.Run(...)
[x] There is no unjustified usage of Truncate in the tests
[x] There is no unjustified usage of suite.AppContextForTest().DB() - instead suite.DB() is used directly
[x] Fatalf is deprecated in favor of other assertions/checks
[x] Go's testing package is only imported in the setup test file

Messages

:book:
:link: MB-12307

  Generated by :no_entry_sign: dangerJS against 6abc77b790b3c93b6c9457f4b4515fe17d1aa683


Added L4 IT MOp

Fixes #884

Requires some input on what goes in/stays out, see ticket #884 for details.
Not sure if morphological description is useful in this case too (given diverse morphologies)

migrated to https://github.com/obophenotype/brain_data_standards_ontologies/issues/226


Accordion

Introduce the Accordion.
Design folder: https://drive.google.com/open?id=1gjPaUaHsdgflDP1vAYGohGPvnrK7-w3N

There are two variations of accordions in PatternFly 3, a standard accordion and a fixed height accordion. Both should be supported.

ps. I will also be coming up with a design for the fixed height version that was in @mcarrano 's mocks too... stay tuned :)

Quick Updates:

modified the interaction to more closely align with that of vertical navigation (on hover the text color goes to Blue-400 and on selected it stays Blue-400 and font-weight becomes semi-bold)
I've mocked up fixed height as well

Both the fluid and fixed height flows can be seen in this prototype: https://redhat.invisionapp.com/share/4DOQCKDENBK
Here are the specs that I have for right now:
Fluid Content Height:

Fixed Content Height:

** text content area has a height of 128px (or two dark purple spacers)
@mcarrano any concerns/ thoughts?

Looks good to me @maryshak1996

@andresgalante what are your thoughts from the dev side?

@michael-coker can review this from a CSS perspective!

Looks great to me @maryshak1996! 👍

Thanks for the review @mcoker.
@maryshak1996 @kybaker I assume this is good to proceed to css dev?

@LHinson Looks good!

@mcarrano I know this is pretty straight forward but do we want to add this one to the agenda for review with stakeholders?


fix: add user agent to fetch request

Please ensure your pull request adheres to the following guidelines:

[ ] make sure to link the related issues in this description. Or if there's no issue created, make sure you
describe here the problem you're solving.
[ ] when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

If the PR is changing the API specification:

[ ] make sure you add a "Not implemented yet" note the endpoint description, if the implementation is not ready
yet. Ideally, return a 501 status code with a message explaining the feature is not implemented yet.
[ ] make sure you add at least one example of the request and response.

If the PR is changing the API implementation or an entity exposed through the API:

[ ] make sure you update the API specification and the examples to reflect the changes.

If the PR is introducing a new audit type:

[ ] make sure you update the API specification with the type, schema of the audit result and an example

Related Issues
Thanks for contributing!

:tada: This issue has been resolved in version 1.65.3 :tada:
The release is available on:

v1.65.3
GitHub release

Your semantic-release bot :package::rocket:


[FEATURE] Orderbook: Get orderbook for a currency pair (WIP) (RLJS-115)

Don't merge yet

Updated the response body with a few comments from Bob. Format of the response is now:
{
  "success": true,
  "order_book": "BTC+rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B/USD+rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
  "ledger": "10966606",
  "validated": true,
  "bids": [{
    "price": {
      "currency": "USD",
      "counterparty": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
      "value": "274.9254595836"
    },
    "funded_amount": {
      "currency": "USD",
      "counterparty": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
      "value": "274.9254595836153"
    },
    "total_amount": {
      "currency": "USD",
      "counterparty": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
      "value": "274.9254595836153"
    },
    "order_maker": "rQE5Z3FgVnRMbVfS6xiVQFgB4J3X162FVD",
    "sequence": 112024,
    "passive": false,
    "sell": false,
    "fill_or_kill": false,
    "immediate_or_cancel": false
  }],
  "asks": [{
    "price": {
      "currency": "USD",
      "counterparty": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
      "value": "282.5913152374"
    },
    "funded_amount": {
      "currency": "USD",
      "counterparty": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
      "value": "282.5913152374043"
    },
    "total_amount": {
      "currency": "USD",
      "counterparty": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
      "value": "282.5913152374043"
    },
    "order_maker": "rQE5Z3FgVnRMbVfS6xiVQFgB4J3X162FVD",
    "sequence": 112026,
    "passive": false,
    "sell": false,
    "fill_or_kill": false,
    "immediate_or_cancel": false
  }]
}

Updated above comment, rebased, and changed response body

Request for comments on response body, as well as some of the implementation. More tests are forthcoming. An open question on how to properly handle demurrage currencies.

I don't like order_maker, I understand it's the account that created the order and I have trouble coming up with a better name besides just account, so unless anyone else can come up with a better name it's fine with me, it just feels foreign to the rest of our namings.
Other than that response body looks good to me.

order_maker based on talking with Bob. It is parallel to the taker language. Bob argued that account would be too vague, and counterparty would be confusing

Coverage increased (+0.34%) when pulling 66f40948401f3fb0a8a79dbab572b3ea0fed496a on lumberj:feature/get_orderbook into ea2a731dd4fe445a36a64e1f99f72633fce4e8bf on ripple:develop.

This should be ready for review

Here is an example:
GET http://localhost:5990/v1/accounts/rQE5Z3FgVnRMbVfS6xiVQFgB4J3X162FVD/order_book/BTC+rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B/USD+rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B
{
  "success": true,
  "order_book": "BTC+rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B/USD+rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
  "ledger": "11006436",
  "validated": true,
  "bids": [{
    "price": {
      "currency": "USD",
      "counterparty": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
      "value": "275"
    },
    "taker_gets_funded": {
      "currency": "USD",
      "counterparty": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
      "value": "825"
    },
    "taker_gets_total": {
      "currency": "USD",
      "counterparty": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
      "value": "825"
    },
    "taker_pays_funded": {
      "currency": "BTC",
      "counterparty": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
      "value": "3"
    },
    "taker_pays_total": {
      "currency": "BTC",
      "counterparty": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
      "value": "3"
    },
    "order_maker": "r49y2xKuKVG2dPkNHgWQAV61cjxk8gryjQ",
    "sequence": 526,
    "passive": false,
    "sell": false
  }],
  "asks": [{
    "price": {
      "currency": "USD",
      "counterparty": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
      "value": "282.5593787103502"
    },
    "taker_gets_funded": {
      "currency": "BTC",
      "counterparty": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
      "value": "1"
    },
    "taker_gets_total": {
      "currency": "BTC",
      "counterparty": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
      "value": "1"
    },
    "taker_pays_funded": {
      "currency": "USD",
      "counterparty": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
      "value": "282.5593787103502"
    },
    "taker_pays_total": {
      "currency": "USD",
      "counterparty": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
      "value": "282.5593787103502"
    },
    "order_maker": "rQE5Z3FgVnRMbVfS6xiVQFgB4J3X162FVD",
    "sequence": 113092,
    "passive": false,
    "sell": false
  }]
}

LGTM

Rebased