java.lang.SecurityException: Permission Denial crash at launch

I was trying to confirm if https://github.com/flutter/flutter/issues/35734 is still reproducible on master and ran into this crash. Didn't even need to change the default flutter create app as it turns out. Just running flutter create and flutter run is enough to crash on my SM G950F.

flutter doctor -v
[√] Flutter (Channel master, 2.5.0-7.0.pre.211, on Microsoft Windows [Version 10.0.19043.1165], locale en-GB)
    • Flutter version 2.5.0-7.0.pre.211 at C:\Development\flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 56b681247d (6 hours ago), 2021-08-23 20:44:05 -0400
    • Engine revision 926ce0d855
    • Dart version 2.15.0 (build 2.15.0-43.0.dev)

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\marku\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\203.7621141\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

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

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\203.7621141
    • Flutter plugin version 59.0.2
    • Dart plugin version 203.8292
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] Connected device (3 available)
    • SM G950F (mobile) • ce12171c51cc001c03 • android-arm64  • Android 9 (API 28)
    • Chrome (web)      • chrome             • web-javascript • Google Chrome 92.0.4515.131
    • Edge (web)        • edge               • web-javascript • Microsoft Edge 92.0.902.78

• No issues found!

Logs
Syncing files to device SM G950F...
D/vndksupport( 8582): Loading<EMAIL_ADDRESS>from current namespace instead of sphal namespace.
E/flutter ( 8582): [ERROR:flutter/fml/platform/android/jni_util.cc(182)] java.lang.SecurityException: Permission Denial: broadcast from android asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS
E/flutter ( 8582): 	at android.os.Parcel.createException(Parcel.java:1966)
E/flutter ( 8582): 	at android.os.Parcel.readException(Parcel.java:1934)
E/flutter ( 8582): 	at android.os.Parcel.readException(Parcel.java:1884)
E/flutter ( 8582): 	at android.app.IActivityManager$Stub$Proxy.reportActivityFullyDrawn(IActivityManager.java:7318)
E/flutter ( 8582): 	at android.app.Activity.reportFullyDrawn(Activity.java:2092)
E/flutter ( 8582): 	at io.flutter.embedding.android.FlutterActivity.onFlutterUiDisplayed(FlutterActivity.java:1100)
E/flutter ( 8582): 	at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$1.onFlutterUiDisplayed(FlutterActivityAndFragmentDelegate.java:88)
E/flutter ( 8582): 	at io.flutter.embedding.android.FlutterView$2.onFlutterUiDisplayed(FlutterView.java:133)
E/flutter ( 8582): 	at io.flutter.embedding.engine.FlutterJNI.onFirstFrame(FlutterJNI.java:462)
E/flutter ( 8582): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter ( 8582): 	at android.os.MessageQueue.next(MessageQueue.java:326)
E/flutter ( 8582): 	at android.os.Looper.loop(Looper.java:181)
E/flutter ( 8582): 	at android.app.ActivityThread.main(ActivityThread.java:7050)
E/flutter ( 8582): 	at java.lang.reflect.Method.invoke(Native Method)
E/flutter ( 8582): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
E/flutter ( 8582): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
E/flutter ( 8582): Caused by: android.os.RemoteException: Remote stack trace:
E/flutter ( 8582): 	at com.android.server.am.UserController.handleIncomingUser(UserController.java:1818)
E/flutter ( 8582): 	at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:25752)
E/flutter ( 8582): 	at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:25683)
E/flutter ( 8582): 	at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:26553)
E/flutter ( 8582): 	at android.app.ContextImpl.sendBroadcastAsUser(ContextImpl.java:1264)
E/flutter ( 8582):
E/flutter ( 8582):
F/flutter ( 8582): [FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1220)] Check failed: fml::jni::CheckException(env).
F/libc    ( 8582): Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 8582 (.example.master), pid 8582 (.example.master)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/dreamltexx/dreamlte:9/PPR1.180610.011/G950FXXUCDUD1:user/release-keys'
Revision: '10'
ABI: 'arm64'
pid: 8582, tid: 8582, name: .example.master  >>> com.example.master <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1220)] Check failed: fml::jni::CheckException(env).
'
    x0<PHONE_NUMBER>000000  x1<PHONE_NUMBER>002186  x2<PHONE_NUMBER>000006  x3<PHONE_NUMBER>000008
    x4<PHONE_NUMBER>000000  x5<PHONE_NUMBER>000000  x6<PHONE_NUMBER>000000  x7<PHONE_NUMBER>000080
    x8<PHONE_NUMBER>000083  x9  0000007e66b38838  x10 fffffff87ffffbdf  x11<PHONE_NUMBER>000001
    x12 0000007dbe0b2080  x13<PHONE_NUMBER>000003  x14 ffffffffffffffff  x15<PHONE_NUMBER>000000
    x16 0000007e66b6f2a0  x17 0000007e66aae920  x18 0000007fe7576b6a  x19<PHONE_NUMBER>002186
    x20<PHONE_NUMBER>002186  x21<PHONE_NUMBER>000083  x22<PHONE_NUMBER>000033  x23 0000007ddb019e30
    x24 0000007ddb019e18  x25<PHONE_NUMBER>000000  x26 0000007e685d55f8  x27<PHONE_NUMBER>000033
    x28<PHONE_NUMBER>000001  x29 0000007fe7577420
    sp  0000007fe75773e0  lr  0000007e66aa1d68  pc  0000007e66aa1d94
backtrace:
    #00 pc<PHONE_NUMBER>021d94  /system/lib64/libc.so (abort+124)
    #01 pc<PHONE_NUMBER>46c35c  /data/app/com.example.master-lN5-K3x1G7AcykrCx1DHGA==/lib/arm64/libflutter.so (offset 0x146a000)
    #02 pc<PHONE_NUMBER>497ce4  /data/app/com.example.master-lN5-K3x1G7AcykrCx1DHGA==/lib/arm64/libflutter.so (offset 0x146a000)
    #03 pc<PHONE_NUMBER>474d44  /data/app/com.example.master-lN5-K3x1G7AcykrCx1DHGA==/lib/arm64/libflutter.so (offset 0x146a000)
    #04 pc<PHONE_NUMBER>000020  <unknown>
Lost connection to device.

Only found one related issue but it got closed due to timeout https://github.com/flutter/flutter/issues/71638.

@flutter-symbolizer-bot https://github.com/flutter/flutter/issues/88767#issue-977757416 engine#926ce0d855

@flutter-symbolizer-bot https://github.com/flutter/flutter/issues/88767#issue-977757416 engine#926ce0d855

@flutter-symbolizer-bot #88767 (comment) engine#926ce0d855 debug

@flutter-symbolizer-bot https://github.com/flutter/flutter/issues/88767#issue-977757416 engine#926ce0d855 debug

Hi @markusaksli-nc
Unable to reproduce on Android 11 Samsung device following the steps. Your device is running API 28
Is the issue reproducible on another device or emulator?

Didn't see any crash on API 28 or API 30 emulator. Don't have any other physical devices to test with atm. The crash still just reproduces on my SM G950F

This is also happening here..
users are reporting they can't even open the app.
We are downgrading hoping to find a flutter version without this issue.
Tried latest dev and latest beta.

2021-09-02 23:08:56.778 16218-16218/? E/flutter: [ERROR:flutter/fml/platform/android/jni_util.cc(182)] java.lang.SecurityException: Permission Denial: broadcast from android asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS
        at android.os.Parcel.readException(Parcel.java:2029)
        at android.os.Parcel.readException(Parcel.java:1975)
        at android.app.IActivityManager$Stub$Proxy.reportActivityFullyDrawn(IActivityManager.java:8518)
        at android.app.Activity.reportFullyDrawn(Activity.java:2054)
        at io.flutter.embedding.android.FlutterActivity.onFlutterUiDisplayed(Unknown Source:6)
        at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$1.onFlutterUiDisplayed(Unknown Source:6)
        at io.flutter.embedding.android.FlutterView$2.onFlutterUiDisplayed(Unknown Source:28)
        at io.flutter.embedding.engine.FlutterJNI.onFirstFrame(Unknown Source:21)
        at android.os.MessageQueue.nativePollOnce(Native Method)
        at android.os.MessageQueue.next(MessageQueue.java:325)
        at android.os.Looper.loop(Looper.java:142)
        at android.app.ActivityThread.main(ActivityThread.java:7000)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
2021-09-02 23:08:56.779 16218-16218/? A/flutter: [FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1201)] Check failed: fml::jni::CheckException(env).
2021-09-02 23:08:56.932 16218-16218/? A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 16218 (ca.suamusicaapp), pid 16218 (ca.suamusicaapp)
2021-09-02 23:08:57.075 16464-16464/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2021-09-02 23:08:57.075 16464-16464/? A/DEBUG: Build fingerprint: 'samsung/on7xelteub/on7xelte:8.1.0/M1AJQ/G610MUBS8CTG1:user/release-keys'
2021-09-02 23:08:57.075 16464-16464/? A/DEBUG: Revision: '4'
2021-09-02 23:08:57.075 16464-16464/? A/DEBUG: ABI: 'arm'
2021-09-02 23:08:57.075 16464-16464/? A/DEBUG: pid: 16218, tid: 16218, name: ca.suamusicaapp  >>> suamusica.suamusicaapp <<<
2021-09-02 23:08:57.075 16464-16464/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
2021-09-02 23:08:57.084 16464-16464/? A/DEBUG: Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1201)] Check failed: fml::jni::CheckException(env).
    '
2021-09-02 23:08:57.084 16464-16464/? A/DEBUG:     r0 00000000  r1 00003f5a  r2 00000006  r3 00000008
2021-09-02 23:08:57.084 16464-16464/? A/DEBUG:     r4 00003f5a  r5 00003f5a  r6 ffba3844  r7 0000010c
2021-09-02 23:08:57.084 16464-16464/? A/DEBUG:     r8 00000000  r9 c7b6e8e0  sl c77ad5fc  fp ffba39d0
2021-09-02 23:08:57.084 16464-16464/? A/DEBUG:     ip 00000002  sp ffba3830  lr e9e37e6f  pc e9e31528  cpsr 200d0030
2021-09-02 23:08:57.085 16464-16464/? A/DEBUG: backtrace:
2021-09-02 23:08:57.085 16464-16464/? A/DEBUG:     #00 pc 0001a528  /system/lib/libc.so (abort+63)
2021-09-02 23:08:57.085 16464-16464/? A/DEBUG:     #01 pc 00011a5f  /data/app/suamusica.suamusicaapp-RiJDJjUmx0pXscOaNPYRig==/lib/arm/libflutter.so (offset 0x13d000)

I Can now confirm that it happens in any flutter version 2.5+
Downgrading to 2.4.0-4.2.pre works.

This lools like a regession in 2.5
cc: @stuartmorgan

A Few more data..
Mostly happens on Samsung Devices.
Android 8/8.1 is the worst followed by 7/7.1.
Also seen on Android 6,9,10
Let me know if i can provide more data.
Thanks

/cc @blasten

I was unable to repro this issue on "SM G981B • android-arm64  • Android 10 (API 29)". still investigating

I'm also unable to reproduce flutter create && flutter run in "SM N960U1 (mobile) • android-arm64  • Android 9 (API 28)".
@atrope are you able to reproduce this issue by just running flutter create app && cd app && flutter run?

I'm also unable to reproduce the issue in "SM N960U1 (mobile) • android-arm64  • Android 9 (API 28)".
@atrope are you able to reproduce this issue by just running flutter create app && cd app && flutter run?

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel unknown, 2.6.0-1.0.pre.175, on macOS 11.5.2 20G95 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 12.5)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.59.0)
[✓] Connected device (3 available)

• No issues found!

@blasten will try it now and bring you the results

Hi @blasten ,
With mine SM G610M 8.1 is not happening with default create app. i will try to achieve a minimum example trying to copy parts of the project that is happening.

Sounds good. I suggest to start by importing the same plugins.

I have older projects that work on master and the flutter create project still crashes for me. I could try to diff the android directory but since you can't repro it I'm not sure it would help.

This diff makes the project crash for me
https://github.com/markusaksli-nc/android-crash-diff/commit/a154fb75211e09f83fb09f83e3bc41e47bace42e

I Still don't know how it happens.
With default app and @markusaksli-nc  android dir(latest commit), it does not crash in my phone..
with my actual app release it crash more often when i reboot the phone and install again the app in release mode (but not always...)
I Tried to put all my plugins in a fresh create app and it does not happens every time..

What i do know is that it happens in versions 2.5+ (I Deployed version 2.4 again to production and it does not happen anymore)..
@markusaksli-nc are you using any plugins?

No like I said, for me, it crashes with just the template flutter create app for likely any flutter version with https://github.com/flutter/flutter/pull/87619

cc: @escamoteur
From https://github.com/flutter/flutter/issues/88767#issuecomment-913820549,
"are you using any plugins?"

I just tested it. I can't reproduce it only with the default template. My Project uses a whole bunch of plugins and it also uses a splash screen if that could be a reason.

Try this work-around that worked for me
when the app builds and you get that white screen just before it craches lock your phone then reopen it   after that u can rebuild and hot reload with no problem  try it multiple time till it works

@blasten my read on this is that it's not common enough to warrant cherrypicking a fix (once we identify the fix) into the 2.5 release.  Once we root-cause this, please escalate to me if you think I was wrong and the fix should be cherrypicked.

@tvolkert sg.
@atrope are you still able to reproduce the issue locally when you run the app you have in the Play Store using Flutter 2.5+? If this is the case, I would suggest to start there. Try to remove any private code, and once you have something that you could share, please send it to us, so we can analyze it.

I have the same problem . And my flutter version is 1.20.4.
`
[✓] Flutter (Channel stable, 1.20.4, on Mac OS X 10.15.7 19H2, locale
zh-Hans-CN)
• Flutter version 1.20.4 at /Users/didi/.taco/flutter/master/flutter
• Framework revision fba99f6cf9 (12 months ago), 2020-09-14 15:32:52 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/didi/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• ANDROID_HOME = /Users/didi/Library/Android/sdk
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
! Some Android licenses not accepted.  To resolve this, run: flutter doctor
--android-licenses
`

I dos not had time this week  tô this issue.. maybe tomorrow i Will bê able to!
Now with 2.5 stable i think this issue Will get more and more popular as apps Will be updated and crashes Will Go through the roof..
(Only from downgrading to 2.4 i had 98.7% less crashes on play store metrics)

@blasten, Ok I got somewhere.. as @markusaksli-nc said it appears to be related to the splash screen..
With Flutter's default create of 2.5 stable it is creating with
<meta-data android:name="io.flutter.embedding.android.SplashScreenDrawable" android:resource="@drawable/launch_background"/>
When trying to run default app in testlab it pass all tests.
When i Removed this meta-data and tried to run, it crashed in some devices..

Ok now i am pretty confident that adding
<meta-data android:name="io.flutter.embedding.android.SplashScreenDrawable" android:resource="@drawable/launch_background" /> back to manifest is a valid workaround and makes the app not break.
We should remove the recommendation for users to remove it from Manifest (this is why i removed in first place) as it may lead to unexpeted crashes

Nice find!
In my project, I'm (still) only using "LaunchTheme "(not even "NormalTheme", the Android S way, or io.flutter.embedding.android.SplashScreenDrawable).
https://flutter.dev/docs/development/ui/advanced/splash-screen?tab=android-splash-alignment-java-tab#set-up-the-flutteractivity-in-androidmanifestxml
I'm still getting the same exception on some (Samsung) devices.
Interestingly, I don't get the exception on some of the devices you're getting them on:

I have also encountered similar problems, there is no permission (java.lang.SecurityException) at startup, and android:exported="true" may be required.
If you do not fill in this field, Android Studio 2021 will have a warning,
i can debug the Flutter program normally after adding android:exported="true".

@blasten, Ok I got somewhere.. as @markusaksli-nc said it appears to be related to the splash screen..
With Flutter's default create of 2.5 stable it is creating with
<meta-data android:name="io.flutter.embedding.android.SplashScreenDrawable" android:resource="@drawable/launch_background"/>
When trying to run default app in testlab it pass all tests.
When i Removed this meta-data and tried to run, it crashed in some devices With our crash here..

Adding <meta-data android:name="io.flutter.embedding.android.SplashScreenDrawable" android:resource="@drawable/launch_background"/> fixed the issue for me!

<meta-data android:name="io.flutter.embedding.android.SplashScreenDrawable" android:resource="@drawable/launch_background" />
Doesnt work for me

@Klazyo do you have android/app/src/main/res/drawable/launch_background.xml? And if you do the bitmap is there also?
Can you put the error here?

@atrope
I have launch_background.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@android:color/white" />

    <!-- You can insert your own image assets here -->
    <!-- <item>
        <bitmap
            android:gravity="center"
            android:src="@mipmap/launch_image" />
    </item> -->
</layer-list>

The crash error
Launching lib\main.dart on SM G930F in debug mode...
Running Gradle task 'assembleDebug'...
√  Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk...
Debug service listening on ws://<IP_ADDRESS>:8704/D2dokbnex3Y=/ws
Syncing files to device SM G930F...
I/zygote64( 1409): Compiler allocated 8MB to compile void android.view.ViewRootImpl.performTraversals()
D/libGLESv2( 1409): STS_GLApi : DTS, ODTC are not allowed for Package : com.example.sparter
I/zygote64( 1409): find the special shared library, skip check
I/zygote64( 1409): find the special shared library, skip check
I/DynamiteModule( 1409): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:212104400
I/DynamiteModule( 1409): Selected remote version of com.google.android.gms.ads.dynamite, version >= 212104400
D/DynamitePackage( 1409): Instantiated singleton DynamitePackage.
D/DynamitePackage( 1409): Instantiating com.google.android.gms.ads.ChimeraMobileAdsSettingManagerCreatorImpl
D/ConnectivityManager( 1409): requestNetwork; CallingUid : 10846, CallingPid : 1409
I/Ads     ( 1409): Updating ad debug logging enablement.
W/ConnectionStatusConfig( 1409): Dynamic lookup for intent failed for action: com.google.android.gms.leibniz.events.service.START
E/GmsClient( 1409): unable to connect to service: com.google.android.gms.leibniz.events.service.START on com.google.android.gms
I/zygote64( 1409): no shared libraies, dex_files: 1
I/zygote64( 1409): Background concurrent copying GC freed 32075(2MB) AllocSpace objects, 15(704KB) LOS objects, 49% free, 2MB/5MB, paused 5.339ms total 63.582ms
I/WebViewFactory( 1409): Loading com.android.chrome version 93.0.4577.62 (code 457706223)
I/cr_WVCFactoryProvider( 1409): Loaded version=93.0.4577.62 minSdkVersion=24 isBundle=true multiprocess=true packageId=2
I/cr_LibraryLoader( 1409): Successfully loaded native library
I/cr_CachingUmaRecorder( 1409): Flushed 7 samples from 7 histograms.
W/ResourceType( 1409): Failure getting entry for 0x7f1307bc (t=18 e=1980) (error -2147483647)
W/chromium( 1409): [WARNING:dns_config_service_android.cc(153)] Failed to read DnsConfig.
D/ConnectivityManager( 1409): requestNetwork; CallingUid : 10846, CallingPid : 1409
W/cr_media( 1409): Requires BLUETOOTH permission
I/Choreographer( 1409): Skipped 55 frames!  The application may be doing too much work on its main thread.
W/Ads     ( 1409): Update ad debug logging enablement as false
W/System  ( 1409): Ignoring header X-Firebase-Locale because its value was null.
I/System.out( 1409): (HTTPLog)-Static: isSBSettingEnabled false
I/System.out( 1409): (HTTPLog)-Static: isSBSettingEnabled false
W/DynamiteModule( 1409): Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found.
D/ConnectivityManager( 1409): requestNetwork; CallingUid : 10846, CallingPid : 1409
I/DynamiteModule( 1409): Considering local module com.google.android.gms.providerinstaller.dynamite:0 and remote module com.google.android.gms.providerinstaller.dynamite:0
W/ProviderInstaller( 1409): Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
I/flutter ( 1409): 0          .....it set the build
V/NativeCrypto( 1409): Registering com/google/android/gms/org/conscrypt/NativeCrypto's 294 native methods...
I/ProviderInstaller( 1409): Installed default security provider GmsCore_OpenSSL
D/ConnectivityManager( 1409): requestNetwork; CallingUid : 10846, CallingPid : 1409
W/ManagedChannelImpl( 1409): [{0}] Failed to resolve name. status={1}
W/Firestore( 1409): (23.0.3) [WatchStream]: (e82c094) Stream closed with status: Status{code=UNAVAILABLE, description=Unable to resolve host firestore.googleapis.com, cause=java.lang.RuntimeException: java.net.UnknownHostException: Unable to resolve host "firestore.googleapis.com": No address associated with hostname
W/Firestore( 1409): 	at io.grpc.internal.DnsNameResolver.resolveAll(DnsNameResolver.java:436)
W/Firestore( 1409): 	at io.grpc.internal.DnsNameResolver$Resolve.resolveInternal(DnsNameResolver.java:272)
W/Firestore( 1409): 	at io.grpc.internal.DnsNameResolver$Resolve.run(DnsNameResolver.java:228)
W/Firestore( 1409): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
W/Firestore( 1409): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
W/Firestore( 1409): 	at java.lang.Thread.run(Thread.java:764)
W/Firestore( 1409): Caused by: java.net.UnknownHostException: Unable to resolve host "firestore.googleapis.com": No address associated with hostname
W/Firestore( 1409): 	at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:141)
W/Firestore( 1409): 	at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:90)
W/Firestore( 1409): 	at java.net.InetAddress.getAllByName(InetAddress.java:787)
W/Firestore( 1409): 	at io.grpc.internal.DnsNameResolver$JdkAddressResolver.resolveAddress(DnsNameResolver.java:646)
W/Firestore( 1409): 	at io.grpc.internal.DnsNameResolver.resolveAll(DnsNameResolver.java:404)
W/Firestore( 1409): 	... 5 more
W/Firestore( 1409): Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
W/Firestore( 1409): 	at libcore.io.Linux.android_getaddrinfo(Native Method)
W/Firestore( 1409): 	at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:58)
W/Firestore( 1409): 	at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:122)
W/Firestore( 1409): 	... 9 more
W/Firestore( 1409): }.
W/Firestore( 1409): (23.0.3) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Connection failed 1 times. Most recent error: Status{code=UNAVAILABLE, description=Unable to resolve host firestore.googleapis.com, cause=java.lang.RuntimeException: java.net.UnknownHostException: Unable to resolve host "firestore.googleapis.com": No address associated with hostname
W/Firestore( 1409): 	at io.grpc.internal.DnsNameResolver.resolveAll(DnsNameResolver.java:436)
W/Firestore( 1409): 	at io.grpc.internal.DnsNameResolver$Resolve.resolveInternal(DnsNameResolver.java:272)
W/Firestore( 1409): 	at io.grpc.internal.DnsNameResolver$Resolve.run(DnsNameResolver.java:228)
W/Firestore( 1409): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
W/Firestore( 1409): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
W/Firestore( 1409): 	at java.lang.Thread.run(Thread.java:764)
W/Firestore( 1409): Caused by: java.net.UnknownHostException: Unable to resolve host "firestore.googleapis.com": No address associated with hostname
W/Firestore( 1409): 	at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:141)
W/Firestore( 1409): 	at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:90)
W/Firestore( 1409): 	at java.net.InetAddress.getAllByName(InetAddress.java:787)
W/Firestore( 1409): 	at io.grpc.internal.DnsNameResolver$JdkAddressResolver.resolveAddress(DnsNameResolver.java:646)
W/Firestore( 1409): 	at io.grpc.internal.DnsNameResolver.resolveAll(DnsNameResolver.java:404)
W/Firestore( 1409): 	... 5 more
W/Firestore( 1409): Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
W/Firestore( 1409): 	at libcore.io.Linux.android_getaddrinfo(Native Method)
W/Firestore( 1409): 	at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:58)
W/Firestore( 1409): 	at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:122)
W/Firestore( 1409): 	... 9 more
W/Firestore( 1409): }
W/Firestore( 1409): This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
I/zygote64( 1409): Do full code cache collection, code=248KB, data=170KB
I/zygote64( 1409): After code cache collection, code=231KB, data=142KB
W/Firestore( 1409): (23.0.3) [WatchStream]: (e82c094) Stream closed with status: Status{code=UNAVAILABLE, description=Unable to resolve host firestore.googleapis.com, cause=java.lang.RuntimeException: java.net.UnknownHostException: Unable to resolve host "firestore.googleapis.com": No address associated with hostname
W/Firestore( 1409): 	at io.grpc.internal.DnsNameResolver.resolveAll(DnsNameResolver.java:436)
W/Firestore( 1409): 	at io.grpc.internal.DnsNameResolver$Resolve.resolveInternal(DnsNameResolver.java:272)
W/Firestore( 1409): 	at io.grpc.internal.DnsNameResolver$Resolve.run(DnsNameResolver.java:228)
W/Firestore( 1409): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
W/Firestore( 1409): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
W/Firestore( 1409): 	at java.lang.Thread.run(Thread.java:764)
W/Firestore( 1409): Caused by: java.net.UnknownHostException: Unable to resolve host "firestore.googleapis.com": No address associated with hostname
W/Firestore( 1409): 	at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:141)
W/Firestore( 1409): 	at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:90)
W/Firestore( 1409): 	at java.net.InetAddress.getAllByName(InetAddress.java:787)
W/Firestore( 1409): 	at io.grpc.internal.DnsNameResolver$JdkAddressResolver.resolveAddress(DnsNameResolver.java:646)
W/Firestore( 1409): 	at io.grpc.internal.DnsNameResolver.resolveAll(DnsNameResolver.java:404)
W/Firestore( 1409): 	... 5 more
W/Firestore( 1409): Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
W/Firestore( 1409): 	at libcore.io.Linux.android_getaddrinfo(Native Method)
W/Firestore( 1409): 	at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:58)
W/Firestore( 1409): 	at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:122)
W/Firestore( 1409): 	... 9 more
W/Firestore( 1409): }.
W/ManagedChannelImpl( 1409): [{0}] Failed to resolve name. status={1}
E/flutter ( 1409): [ERROR:flutter/fml/platform/android/jni_util.cc(182)] java.lang.SecurityException: Permission Denial: broadcast from android asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS
E/flutter ( 1409): 	at android.os.Parcel.readException(Parcel.java:1967)
E/flutter ( 1409): 	at android.os.Parcel.readException(Parcel.java:1913)
E/flutter ( 1409): 	at android.app.IActivityManager$Stub$Proxy.reportActivityFullyDrawn(IActivityManager.java:8587)
E/flutter ( 1409): 	at android.app.Activity.reportFullyDrawn(Activity.java:2015)
E/flutter ( 1409): 	at io.flutter.embedding.android.FlutterActivity.onFlutterUiDisplayed(FlutterActivity.java:1061)
E/flutter ( 1409): 	at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$1.onFlutterUiDisplayed(FlutterActivityAndFragmentDelegate.java:88)
E/flutter ( 1409): 	at io.flutter.embedding.android.FlutterView$2.onFlutterUiDisplayed(FlutterView.java:133)
E/flutter ( 1409): 	at io.flutter.embedding.engine.FlutterJNI.onFirstFrame(FlutterJNI.java:461)
E/flutter ( 1409): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter ( 1409): 	at android.os.MessageQueue.next(MessageQueue.java:325)
E/flutter ( 1409): 	at android.os.Looper.loop(Looper.java:142)
E/flutter ( 1409): 	at android.app.ActivityThread.main(ActivityThread.java:6944)
E/flutter ( 1409): 	at java.lang.reflect.Method.invoke(Native Method)
E/flutter ( 1409): 	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
E/flutter ( 1409): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
E/flutter ( 1409):
F/flutter ( 1409): [FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1201)] Check failed: fml::jni::CheckException(env).
E/flutter ( 1409): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: SocketException: Failed host lookup: 'ip-api.com' (OS Error: No address associated with hostname, errno = 7)
E/flutter ( 1409): #0      _NativeSocket.startConnect (dart:io-patch/socket_patch.dart:677:35)
E/flutter ( 1409): #1      _RawSocket.startConnect (dart:io-patch/socket_patch.dart:1680:26)
E/flutter ( 1409): #2      RawSocket.startConnect (dart:io-patch/socket_patch.dart:27:23)
E/flutter ( 1409): #3      Socket._startConnect (dart:io-patch/socket_patch.dart:1891:22)
E/flutter ( 1409): #4      Socket.startConnect (dart:io/socket.dart:738:21)
E/flutter ( 1409): #5      _ConnectionTarget.connect (dart:_http/http_impl.dart:2439:18)
E/flutter ( 1409): #6      _HttpClient._getConnection.connect (dart:_http/http_impl.dart:2805:12)
E/flutter ( 1409): #7      _HttpClient._getConnection (dart:_http/http_impl.dart:2810:12)
E/flutter ( 1409): #8      _HttpClient._openUrl (dart:_http/http_impl.dart:2694:12)
E/flutter ( 1409): #9      _HttpClient.openUrl (dart:_http/http_impl.dart:2568:7)
E/flutter ( 1409): #10     IOClient.send (package:http/src/io_client.dart:30:38)
E/flutter ( 1409): #11     BaseClient._sendUnstreamed (package:http/src/base_client.dart:93:38)
E/flutter ( 1409): #12     BaseClient.get (package:http/src/base_client.dart:27:7)
E/flutter ( 1409): #13     get.<anonymous closure> (package:http/http.dart:46:36)
E/flutter ( 1409): #14     _withClient (package:http/http.dart:164:20)
E/flutter ( 1409): #15     get (package:http/http.dart:46:5)
E/flutter ( 1409): #16     _HomeState.initState (package:sparter/wraper/Home.dart:201:7)
E/flutter ( 1409): #17     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4805:57)
E/flutter ( 1409): #18     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4638:5)
E/flutter ( 1409): #19     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3673:14)
E/flutter ( 1409): #20     Element.updateChild (package:flutter/src/widgets/framework.dart:3425:18)
E/flutter ( 1409): #21     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
E/flutter ( 1409): #22     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
E/flutter ( 1409): #23     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4643:5)
E/flutter ( 1409): #24     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4638:5)
E/flutter ( 1409): #25     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3673:14)
E/flutter ( 1409): #26     Element.updateChild (package:flutter/src/widgets/framework.dart:3425:18)
E/flutter ( 1409): #27     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
E/flutter ( 1409): #28     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
E/flutter ( 1409): #29     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
E/flutter ( 1409): #30     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4643:5)
E/flutter ( 1409): #31     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4831:11)
E/flutter ( 1409): #32     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4638:5)
E/flutter ( 1409): #33     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3673:14)
E/flutter ( 1409): #34     Element.updateChild (package:flutter/src/widgets/framework.dart:3422:20)
E/flutter ( 1409): #35     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
E/flutter ( 1409): #36     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
E/flutter ( 1409): #37     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2620:33)
E/flutter ( 1409): #38     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:882:21)
E/flutter ( 1409): #39     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:319:5)
E/flutter ( 1409): #40     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143:15)
E/flutter ( 1409): #41     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1080:9)
E/flutter ( 1409): #42     SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:863:7)
E/flutter ( 1409): #43     _rootRun (dart:async/zone.dart:1420:47)
E/flutter ( 1409): #44     _CustomZone.run (dart:async/zone.dart:1328:19)
E/flutter ( 1409): #45     _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
E/flutter ( 1409): #46     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1276:23)
E/flutter ( 1409): #47     _rootRun (dart:async/zone.dart:1428:13)
E/flutter ( 1409): #48     _CustomZone.run (dart:async/zone.dart:1328:19)
E/flutter ( 1409): #49     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1260:23)
E/flutter ( 1409): #50     Timer._createTimer.<anonymous
F/libc    ( 1409): Fatal signal 6 (SIGABRT), code -6 in tid 1409 (example.sparter)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/heroltexx/herolte:8.0.0/R16NW/G930FXXS8ETCA:user/release-keys'
Revision: '8'
ABI: 'arm64'
pid: 1409, tid: 1409, name: example.sparter  >>> com.example.sparter <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1201)] Check failed: fml::jni::CheckException(env).
'
    x0<PHONE_NUMBER>000000  x1<PHONE_NUMBER>000581  x2<PHONE_NUMBER>000006  x3<PHONE_NUMBER>000008
    x4<PHONE_NUMBER>000000  x5<PHONE_NUMBER>000000  x6<PHONE_NUMBER>000000  x7<PHONE_NUMBER>800000
    x8<PHONE_NUMBER>000083  x9   bac918b43fc58c49  x10<PHONE_NUMBER>000000  x11<PHONE_NUMBER>000001
    x12  ffffffffffffffff  x13<PHONE_NUMBER>000028  x14  ffffffffffffffff  x15  000084ee7fafa2b6
    x16  0000007fb20f42f8  x17  0000007fb2095408  x18<PHONE_NUMBER>97f930  x19<PHONE_NUMBER>000581
    x20<PHONE_NUMBER>000581  x21  0000007ff70d7848  x22  0000007f89557970  x23  0000007f89557958
    x24<PHONE_NUMBER>00003d  x25  0000007ff70d7ab8  x26<PHONE_NUMBER>000000  x27<PHONE_NUMBER>000001
    x28<PHONE_NUMBER>00003d  x29  0000007ff70d7820  x30  0000007fb2047bd4
    sp   0000007ff70d77e0  pc   0000007fb2095410  pstate<PHONE_NUMBER>000000
backtrace:
    #00 pc<PHONE_NUMBER>06b410  /system/lib64/libc.so (tgkill+8)
    #01 pc<PHONE_NUMBER>01dbd0  /system/lib64/libc.so (abort+88)
    #02 pc<PHONE_NUMBER>00205c  /data/app/com.example.sparter-dbtrM5ICj_rLntvRGWT3dw==/lib/arm64/libflutter.so (offset 0x1453000)
Lost connection to device.

But like i said if i lock my phone while it builds then reopen it  the app works and i can debug without problem

Yes, this is related to recent changes. I will update the thread once I've found the reason

To summarize the problem, we made a recent change that removed the need of a custom Android layout used to replicate the Android splash screen while the user was waiting for the Flutter first frame. This was achieved by using a predraw listener that allows Android to suspend rendering of any native Android view.
However, when reportFullyDrawn() is called, it triggers this exception on Samsung devices for reasons I wasn't able to find. There have been some related issues in the past that suggests unclear behavior in some configurations that Flutter supports.
I wonder if we need to call reportFullyDrawn after using the predraw listener. Presumably, using the predraw listener means that Android doesn't need another call to know when the first frame was drawn.
cc @xster do you know who from the Android team can confirm this?

Any update guys , This is now happening in all channels , stable was working for me for sometime , also the bug created by me is closed here https://github.com/flutter/flutter/issues/89307

I have the same problem . And my flutter version is 1.20.4.
Mostly happens on Samsung Devices. Android os version is in 7 to 9.
[✓] Flutter (Channel stable, 1.20.4, on Mac OS X 10.15.7 19H2, locale
    zh-Hans-CN)
    • Flutter version 1.20.4 at /Users/didi/.taco/flutter/master/flutter
    • Framework revision fba99f6cf9 (12 months ago), 2020-09-14 15:32:52 -0700
    • Engine revision d1bc06f032
    • Dart version 2.9.2
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/didi/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/didi/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor
      --android-licenses

@blasten my version is 1.20.4

/cc @christopherfujino for cherrypick

@blasten shouldn't we also remove the warning
"A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps."
It would also create a crash wouldn't?

No, it shouldn't crash. The splash screen wasn't the reason of the crash. We refactored the code a bit, and added some code that caused this issue.

@blasten  Hi ~ I want to know why the flutter need to invoke the method reportFullyDrawn . Is this necessary?

@blasten saw your commit to master , is it now available for pull ? as I can still see the same error with Samsung Android Ver 9 , as per your commit this issue should not come for anything less than Ver 10 right ?
```
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
reportFullyDrawn();
}

For me still erroring , I did

flutter channel master
flutter upgrade

@sajanyamaha I think the engine PR hasn't been autorolled into the SDK yet?

@markusaksli-nc  is it working for you now ? and what is the flutter version in stable which is still working , when I downgraded the JAVA_HOME issues popped up

@sajanyamaha as @markusaksli-nc says, the fix hasn't rolled into the framework yet (the autoroller is currently 4 days behind ToT), so it's not yet in any version of Flutter that has a prebuilt engine.
If you like, you can compile the engine against ToT and build your app against the local engine using the --local-engine flag.

This is a workaround and it works for me .

go to MainActivity.kt
Import  import android.os.Build
Paste this

    override fun onFlutterUiDisplayed() {
        if (Build.VERSION.SDK_INT >= 100) { //I gave 100 just to confirm , it shoud be android ver 10
            reportFullyDrawn();
        }
    }

flutter clean
flutter run

@sajanyamaha I tested the change on Samsung devices available on Firebase testlab running Q (API level 29), and didn't find an issue.

@blasten Hi ~ I want to know why the flutter need to invoke the method reportFullyDrawn . Is this necessary?

@blasten  cc

Adding <meta-data android:name="io.flutter.embedding.android.SplashScreenDrawable" android:resource="@drawable/launch_background"/> fixed the issue for me!

@stuartmorgan
Your work around worked for me

Just wanted to confirm this bug is reproducible on the latest camera plugin example app, even on 2.6.0-5.2.pre • channel beta.

@acoutts
The fix is cp into current stable, please upgrade to the latest stable and try again.

@acoutts you should test with latest stable 2.5.1

Indeed! that fixed it - thanks @TahaTesser @atrope


Prompt user for app update

Prompt user to update app, when new app version is released.
https://m.youtube.com/watch?v=NJwBNWwNlTk

https://github.com/capawesome-team/capacitor-plugins/tree/main/packages/app-update


ConnectyCube Jasascript SDK or API integration in Angular JS NativeScript project

How to integrate ConnectyCube Javascript SDK or API in Angular JS NativeScript project.

It appears to me this company is not interested in nativescript community of developers. There is no responses here. Is it possible to implement in Angular Native Script.

Hi @AlokTibrewal
let me provide the current state of the things re NS:
the reality is the following:

we have a pretty small demand in NS currently, hence does not spend much time around it

Answering the original question re "How to integrate ConnectyCube Javascript SDK or API in Angular JS NativeScript project.":
ConnectyCUbe provides JS/NS SDK https://developers.connectycube.com/nativescript/ which can be used with any Framework: Angular, React etc.
The best way to do it is the following:

Follow the documentation https://developers.connectycube.com/nativescript/
use these code samples as a basis


Reload armature data without removing it

Is this possible to reload armature data without removing ArmatureProxy?

Hi,
There is a lot of work to be done to implement such a feature, usually only in the editor, or it seems like it's not worth the effort. You could refer to how the unity editor does this.
https://github.com/DragonBones/DragonBonesCSharp/blob/master/Unity/src/DragonBones/Editor/UnityEditor.cs#L240
https://github.com/DragonBones/DragonBonesCSharp/blob/master/Unity/src/DragonBones/Scripts/unity/UnityFactory.cs#L331
https://github.com/DragonBones/DragonBonesCSharp/blob/master/Unity/src/DragonBones/Scripts/unity/UnityFactory.cs#L190
https://github.com/DragonBones/DragonBonesCSharp/blob/master/Unity/src/DragonBones/Scripts/unity/UnityFactory.cs#L274-L275


👥 Update LangChain people data

👥 Update LangChain people data

@MJDeligan just wanted to make sure you saw this!
https://js.langchain.com/docs/people/
If you have a Twitter, would love to shout you out as well.

Hey, @jacoblee93 , love it, very cool to see the appreciation for the community and really love the work you do!
I recently made a twitter account under the same name :)


Increase playback speed during a long press gesture

Description
This PR enables us updating the speed to 2x when a long press is detected.
Changes made

Added LongPressView detecting when a long press is triggered.
Added LongPressPlaybackView managing the playback, the speeding up.
Added LongPressPlaybackInfoView displaying speed information.
Added longPressPlayback view modifier, applying the long press playback speed on the view.

Not applied
Applied

Checklist

[x] APIs have been properly documented (if relevant).
[x] The documentation has been updated (if relevant).
[x] New unit tests have been written (if relevant).
[x] The demo has been updated (if relevant).

It would likely also be great if controls where hidden when entering high-speed mode, as in YouTube (only for video, of course). It is likely that the intention is to see the content at higher speed, so always hiding the controls makes sense IMHO.

We could probably do it in another story.


GIAB Report Support type not coming up

Hello, I was hoping to be using the GIAB report function and one of the parts I want to use is the details for the tech for each variant. I want what technologies were used to find the variants that are in the TPs and FNs, however very few of the variants are put counted in this section. I am using the tier 1 vcf, HG002_SVs_Tier1_v0.6.vcf.gz, with this bed file: HG002_SVs_Tier1_noVDJorXorY_v0.6.2.bed. There are close to 10000 variants in this benchmark that are showing up as TPs and FNs but not all of them are being counted here.
TP_Tech
I+PB+CG+TenX	0
I+PB+CG	0
I+PB+TenX	0
PB+CG+TenX	0
I+PB	0
I+CG	0
I+TenX	0
PB+CG	0
PB+TenX	0
CG+TenX	0
I	0
PB	3
CG	0
TenX	0
FN_Tech
I+PB+CG+TenX	0
I+PB+CG	0
I+PB+TenX	0
PB+CG+TenX	0
I+PB	0
I+CG	0
I+TenX	0
PB+CG	0
PB+TenX	95
CG+TenX	0
I	0
PB	1376
CG	0
TenX	0

Helllo,
Truvari is currently undergoing a large refactor, so I'll take a look at how to make a better GIAB report. That code hasn't been looked at in a while and its possible some of the functionality has fallen off. In the mean time, if you would like to calculate those numbers yourself, here's an example script using vcf2df
Make a dataframe of the bench result
truvari vcf2df -b -i -f results_sv results_sv/giab.jl

A way to count:
import joblib
data = joblib.load("results_sv/giab.jl")
# Bit flag of the tech for calls
flag = {1:"PB", 2:"Ill", 4:"TenX", 8:"CG"}
data['tech'] = 0

# Count calls contributing to each row in the dataframe
for val, col in enumerate(["PBcalls", "Illcalls", "TenXcalls", "CGcalls"]):
    data['tech'] += (data[col] != 0).astype(int) * (val + 1) ** 2

# Translate the tech into a string
def make_tech_str(x):
    ret = []
    for key in flag:
        if x & key:
            ret.append(flag[key])
    if ret:
        return "+".join(ret)
    return None
data["tech_str"] = data['tech'].apply(make_tech_str)

# Print the value counts of each of the giab calls
print(data[data["state"] == "tpbase"]['tech_str'].value_counts(dropna=False))

For my test data of a BioGraph result, this prints:
Ill+TenX+CG    3653
PB+TenX        1813
PB              129
Ill+CG           22
TenX             18
PB+TenX+CG        5

Using the vcf2df allows for more flexible summaries and plotting of the results:
# Get counts of TPs grouped by svtype and their tech_str
data['count'] = 1
view = data[data["state"] == "tpbase"].groupby(["svtype", "tech_str"]).sum()['count'][["DEL", "INS"]]

# Make a barplot
import seaborn as sb
sb.set()
p = sb.barplot(data=view.reset_index(), x="tech_str", y="count", hue="svtype", hue_order=["DEL", "INS"])
p.set(title="GIAB TPs by Technology and svtype")

print(view)

Results:
svtype  tech_str
DEL     Ill+CG            4
        Ill+TenX+CG    2590
        PB               20
        PB+TenX         501
        PB+TenX+CG        5
        TenX              6
INS     Ill+CG           18
        Ill+TenX+CG    1063
        PB              109
        PB+TenX        1312
        PB+TenX+CG        0
        TenX             12
Name: count, dtype: int64


Add community driver(s)

I'm not sure if this should be in About or it's own section, but let's encourage people to follow us on social, join us on Discord/Reddit, etc. somewhere in the app.

@jsigwart @robvsmith @tzarebczan you guys might have thoughts on this one


pointer activity area not aligned with visual

https://user-images.githubusercontent.com/14617699/216922551-afb05403-fe02-4d11-a8c2-47b73b7859b7.mp4

When you post a screenshot or video, can you please include the command/config you are using? The example command in the README does not exhibit this behaviour, so it's difficult for me to debug if I can't reproduce the bug.

Sorry for delay, but I'm unable to reproduce this ):
I'll reopen this issue if I'll found config.


Delegation message to recipient

User Story
Tell the DELEGATE why you need them to handle your proposals

Epic Title
Delegation

T-shirt size:

User Story
"As a user of a NeXt, I want to do explain to my delegate why I need them to handle proposals for these roles."

Description
At delegation setup time, the user should optionally be able to enter a description into a text field that describes why the delegation is being requested.

Acceptance Criteria/Tests

The text is limited to 250 characters.
Message shows up on the Delegation summary page (#1300)

migrated to new tmobile/sawtooth-next-directory repo


Thaumcraft BETA16 Configs Cause Crashes

In BETA16, messing with any of the config options, such as the "Show Tabs" under the "Graphics" tab, will cause the game to crash upon the next time you load Minecraft unless you delete everything related to Thaumcraft in your config folder.
The nature of the crash is very weird, in of itself. It pins the blame on EnderIO/EnderCore and Optifine, making it were you need to remove EnderIO/EnderCore to load up the game. This made me think it was EnderIO/EnderCore for a while as removing Optifine did not fix it, same with updating Optifine. When I cleaned out my entire config folder, the game actually loaded up. When I started messing with Thaumcraft configurations again, the next time I loaded up Minecraft to crash upon loading. When I decided to mess with only Thaumcraft related configs, I crashed again when I loaded up Minecraft.
The mod pack I use is Dark MagicTech, which has Thaumcraft.
So basically, something goes horribly wrong in the config settings for Thaumcraft. I am not sure what, but I hope these crash reports help:
crash-2018-06-27_14.26.25-client.txt
crash-2018-06-26_17.06.58-client.txt
crash-2018-06-26_17.03.04-client.txt
crash-2018-06-26_17.00.00-client.txt
crash-2018-06-26_16.55.55-client.txt
crash-2018-06-27_20.49.14-client.txt

Please use something like pastebin or gist for crash logs as it will be easier to read and don't have to download stuff (this is not gist this is github).

But then why would a Thaumcraft configuration be the trigger? Did code between the two overlap or something?

at com.enderio.core.common.util.stackable.Things.cleanCachedValues(Things.java:226) 	at com.enderio.core.common.util.stackable.Things.add(Things.java:220) 	at com.enderio.core.common.util.stackable.Things.add(Things.java:150) 	at com.enderio.core.common.util.stackable.Things.add(Things.java:109) 	at com.enderio.core.common.util.stackable.Things.invalidate(Things.java:434) 	at net.minecraft.item.crafting.Ingredient.invalidateAll(Ingredient.java:105)
This points to something the enderio is trying to clear and shouldn't be clearing and causes an java.lang.IndexOutOfBoundsException: Index: 0, Size: -1

It's posted on their end. Hopefully that both you, Azanor, and the EnderIO creator can fix this.

We've been looking for the cause of this one for ages. What happens here is that there is multi-threaded access to crafting recipes. How else can you explain a negative sized list? Threaded access to recipes should not be done.

Well, EnderIO's developer is denying it by putting the "Other Software's Problem" and "Duplicate" labels on it without giving any reasons as to why nor a link to the non-existent duplicate. I checked and it doesn't exist.
https://github.com/SleepyTrousers/EnderIO/issues/4746

It's been reported before and we came to the conclusion that it cannot be caused by us. The only way a negative size list is even possible is threaded access to recipes during startup. I don't know what Thaumcraft is doing to cause this specifically, that is a job for the developers of this mod.

I am just highly confused right now. It is a modification config that shows essentia without needing to hold shift while hovering in the items that triggered the issue to begin with. Only Thaumcraft config alterations are causing it, yet I am told it is EnderIO because that's what my configs says and the other player here. Like I said, this is just very confusing for me.

@princessbinas could i have the copy of your modified config? i would like to test it on a clean profile to see what it does.

Okay. Will do. And I will recreate the config files necessary regardless to help you out.

Version <IP_ADDRESS> has the latest versions of Ender Core and Ender IO. Also the issue was originally with the older version of Ender IO/Core. The Solution to fix that error is to update EnderIO and EnderCore. @princessbinas you have the final say on this issue being marked closed or not.

Okay. I will close it since latest EnderIO/EderCore fixed it.

Forge's recipe code also is not thread-safe and is crashing from this at times...
java.lang.ArrayIndexOutOfBoundsException
    at it.unimi.dsi.fastutil.ints.IntArrays.grow(IntArrays.java:264)
    at it.unimi.dsi.fastutil.ints.IntArrayList.grow(IntArrayList.java:308)
    at it.unimi.dsi.fastutil.ints.IntArrayList.add(IntArrayList.java:322)
    at net.minecraftforge.oredict.OreIngredient.getValidItemStacksPacked(OreIngredient.java:83)
    at net.minecraft.client.util.RecipeItemHelper$RecipePicker.getUniqueAvailIngredientItems(RecipeItemHelper.java:212)
    at net.minecraft.client.util.RecipeItemHelper$RecipePicker.<init>(RecipeItemHelper.java:121)
    at net.minecraft.client.util.RecipeItemHelper.canCraft(RecipeItemHelper.java:79)
    at net.minecraft.client.util.RecipeItemHelper.canCraft(RecipeItemHelper.java:74)
    at net.minecraft.item.crafting.ShapelessRecipes.matches(ShapelessRecipes.java:88)


Universe polymorphic return type causes for in increment to fail

Prerequisites

[x] Put an X between the brackets on this line if you have done all of the following:

Checked that your issue isn't already filed.
Reduced the issue to a self-contained, reproducible test case.

Description
Returning an element of a universe-polymorphic type from a for in loop seems to cause issues if the loop also has a mutable local variable. This appears to persist if the local isn't in the return type (see the third example).
Steps to Reproduce
These are the two cases that cause issues:
/-
`B` is in `Type v`, and we have a mutable local which is in the return type:

stuck at solving universe constraint
  v =?= max v ?u.1291
while trying to unify
  (?m.1299 × ?m.1571) ?m.1299 ?m.1571
with
  (?m.1299 × ?m.1571) ?m.1299 ?m.1571

application type mismatch
  { fst := none, snd := idx }
argument
  idx
has type
  Nat : Type
but is expected to have type
  ?m.1669 node k : Type v
-/
def minimalBad {A : Type} {B : Type v} [Ord A] [Inhabited B] (node : Array A) (k : A) : (B × Nat) := Id.run <| do
  let mut idx : Nat := 0
  for k' in node do
    match Ord.compare k k' with
    | Ordering.gt => idx := idx + 1; continue
    | Ordering.lt => continue
    | Ordering.eq => return (Inhabited.default, idx)
  (Inhabited.default, idx)

/-
Leave `B` in `Type v`, but don't try to return the local variable:

typeclass instance problem is stuck, it is often due to metavariables
  Add (?m.1772 node k)
-/
def minimalBadDontReturnIncrement {A : Type} {B : Type v} [Ord A] [Inhabited B] (node : Array A) (k : A) : B := Id.run <| do
  let mut idx : Nat := 0
  for k' in node do
    match Ord.compare k k' with
    | Ordering.gt => idx := idx + 1; continue
    | Ordering.lt => continue
    | Ordering.eq => return Inhabited.default
  Inhabited.default

These two cases work fine, so it seems to be just the combination of local and universe polymorphism:
/- Works if `B` is in `Type v`, but we get rid of the local variable -/
def minimalOkPoly {A : Type} {B : Type v} [Ord A] [Inhabited B] (node : Array A) (k : A) : B := Id.run <| do
  for k' in node do
    match Ord.compare k k' with
    | Ordering.gt => continue
    | Ordering.lt => continue
    | Ordering.eq => return (Inhabited.default)
  (Inhabited.default)

/- Works with the local if we demote `B` to `Type` -/
def minimalOkLocal {A : Type} {B : Type} [Ord A] [Inhabited B] (node : Array A) (k : A) : (B × Nat) := Id.run <| do
  let mut idx : Nat := 0
  for k' in node do
    match Ord.compare k k' with
    | Ordering.gt => idx := idx + 1; continue
    | Ordering.lt => continue
    | Ordering.eq => return (Inhabited.default, idx)
  (Inhabited.default, idx)

Expected behavior:
If there's a reason why this shouldn't work, I guess just a better error message would be appropriate.
Versions
leanprover/lean4:nightly-2022-04-29
vscode extension v0.16.46

This is a limitation of the do notation. It is using the bind which has type:
@bind : {m : Type u_1 → Type u_2} → [self : Bind m] → {α β : Type u_1} → m α → (α → m β) → m β

Note that α and β must be in the same universe since they are both used as arguments to m. The side-effect is that the values manipulated by a do block must all be in the same universe. We can use the universe lift ULift to work around this limitation, but they are very inconvenient to use. Here is how to write your examples using ULift
def Nat' : Type v := ULift Nat -- a universe polymorphic `Nat`

instance : OfNat Nat' n where
  ofNat := ULift.up n

instance : Add Nat' where
  add a b := ULift.up (a.down + b.down)

def minimalBad {A : Type v} {B : Type v} [Ord A] [Inhabited B] (node : Array A) (k : A) : B × Nat' := Id.run <| do
  let mut idx : Nat' := 0
  for k' in node do
    match Ord.compare k k' with
    | Ordering.gt => idx := idx + 1; continue
    | Ordering.lt => continue
    | Ordering.eq => return (default (α := B), idx) -- See remark below [*]
  (default, idx)

def minimalBadDontReturnIncrement {A : Type v} {B : Type v} [Ord A] [Inhabited B] (node : Array A) (k : A) : B := Id.run <| do
  let mut idx : Nat' := 0
  for k' in node do
    match Ord.compare k k' with
    | Ordering.gt => idx := idx + 1; continue
    | Ordering.lt => continue
    | Ordering.eq => return Inhabited.default
  Inhabited.default

The example above may not look too bad, but the error messages are horrible until we get it right. We should invest time in improving the error messages in the future, but this is not a high priority right now since we feel like we can move forward without having to write universe polymorphic monadic code
Regarding [*]: Note that I had to provide the value of an implicit argument at default (α := B). This is a workaround for a "stuck at universe constraint" error message. It happens because the do elaborator is not propagating the expected type for the whole do block as well as it could. This can be improved in the near future.

Thanks for taking the time to explain, I appreciate the examples. I'll close this issue since it seems to be on your radar but isn't pressing.


[SPARK-31763][PYSPARK] Add inputFiles method in PySpark DataFrame Class.

What changes were proposed in this pull request?
Adds inputFiles() method to PySpark DataFrame. Using this, PySpark users can list all files constituting a DataFrame.
Before changes:
>>> spark.read.load("examples/src/main/resources/people.json", format="json").inputFiles()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/***/***/spark/python/pyspark/sql/dataframe.py", line 1388, in __getattr__
    "'%s' object has no attribute '%s'" % (self.__class__.__name__, name))
AttributeError: 'DataFrame' object has no attribute 'inputFiles'

After changes:
>>> spark.read.load("examples/src/main/resources/people.json", format="json").inputFiles()
[u'file:///***/***/spark/examples/src/main/resources/people.json']

Why are the changes needed?
This method is already supported for spark with scala and java.

Does this PR introduce any user-facing change?
Yes, Now users can list all files of a DataFrame using inputFiles()

How was this patch tested?
UT added.

cc @HyukjinKwon

Can one of the admins verify this patch?

Can one of the admins verify this patch?

ok to test

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27809/
Test PASSed.

Test build #123181 has started for PR 28652 at commit 6df9b76.

Test build #123181 has finished for PR 28652 at commit 6df9b76.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123181/
Test FAILed.

retest this please

Test build #123183 has started for PR 28652 at commit 729ff00.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/27811/
Test PASSed.

Test build #123183 has finished for PR 28652 at commit 729ff00.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123183/
Test PASSed.

Merged to master.

Thank You. @HyukjinKwon
Is it a good idea to add this method in 3.0 as well ?

Technically this is a new API and we shouldn't backport it.


feat: add change stream support

Closes #228

Summary by CodeRabbit

New Features

Introduced methods for creating, altering, and dropping change streams, enhancing database management capabilities.
Added a new class for defining change stream configurations, allowing for detailed customization of data capture.
Implemented an enumeration to specify different types of change stream value captures.
Added support for snapshot queries and improved query handling with new methods.
Expanded documentation on Change Streams, Secondary Index Options, and Mutations for enhanced database interactions.

Tests

Added comprehensive tests to ensure the functionality of change streams, covering creation, alteration, and deletion scenarios.

test now passing


[@types/p5] Vector has incorrect return types

References this issue DefinitelyTyped/DefinitelyTyped#69284 opened earlier this year. There's no fix in place so issues come up whenever the canvas is built and deployed.
A temporary fix I found in my local environment was to just go to the node_modules/p5/src/math/p5.Vector.d.ts file and manually change the types of mult from void to Vector.
I will need to find a more permanent fix for when I merge this with the main branch. Until then, this is what the canvas looks like.

It took me a while to understand the code implemented in the library and found that after last year's changes in #https://github.com/DefinitelyTyped/DefinitelyTyped/pull/66294, there are 2 separate implementations of the 4 different methods of methods used for p5.Vector.mult().
The first method has a Vector return type variable in both cases, but the other three methods have a void return type in their static versions since they all have a target variable as an optional parameter in these methods that the result of the operation can be stored in.
When not mentioned, it should default to the non-static versions of the same methods, but that isn't the case. I will investigate further to find out why. The changes implemented in the mentioned PR were blind-reviewed since there was no one to approve of them from the p5 types team, so that may be why this discrepency exists.

The above issue has been fixed in p5-types #https://github.com/p5-types/p5.ts/issues/123 via a fix in p5.js #https://github.com/processing/p5.js/pull/6831, but this change hasn't been pushed to @types/p5.
Previously, I was using the mult() function like this:
// incorrect version

velocity = Vector.mult(distance, easing);
// this should return velocity with a vector type
// but gives an error because the return type is void

This version expects an optional target variable to be declared to store the value in as the third parameter. Whether a user adds this target variable or not, the return type of this mult() function remains void instead of Vector.
I converted it to the statement below, since there is another scalar multiplication function that expects the output to be a Vector when called on the vector value itself.
// correct version

velocity = distance.mult(ease);
// this returns a vector and stores it in velocity
// the result after scalar multiplication is:
// [velocity.x, velocity.y] = [easing * distance.x, easing * distance.y]

🌈 Fixed in #184


Use dep jobslot instead of dep jobserver

Signed-off-by: Jiahao XU<EMAIL_ADDRESS>What does this PR try to resolve?
This PR replaces dep jobserver with a fork jobslot.
Why fork jobserver?

jobserver's maintainer @alexcrichton is not willing to merge PR for
bug fix.
Better performance on unix: jobserver's implementation uses
std::os::unix::process::CommandExt::pre_exec, which prevents Command::spawn
from using vfork on unix.

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @weihanglo (or someone else) soon.
Please see the contribution instructions for more information.

Sorry, I don't think the unwillingness to merge a PR is a sign that a crate is unmaintained. jobserver is one of our core dependencies, and I would prefer to not change it unless it was clear that it can't be updated. Looking at the PR, it seems like there were recurrent, legitimate concerns. I appreciate that you have some things you want to address, but I do not think this is the right solution for cargo.

Sorry, I don't think the unwillingness to merge a PR is a sign that a crate is unmaintained.

I agree that the wording is a bit confusing and I would change that, but jobserver contains a bug on windows where the Client can be dropped before Command is spawned.

Looking at the PR, it seems like there were recurrent, legitimate concerns.

The main concern is change of API, I can see that this being a problem as all the dependencies of jobserver now have to bump the major version and fix their usage of jobserver::Client.
However, IMHO this is worth the effort because this would fix a potential bug.

While I respect @NobodyXu your right to fork any open source project, I personally like it's a bit aggressive to send PRs to a bunch of dependencies, tag me, claim that I basically don't maintain the project any more, and then push a claim that your fork is not only more correct but also faster.
Your PR to fix the mentioned bug, which I felt was pretty minor in the grand scheme of things, had quite a lot of issues with it. I ran out of energy helping you write a patch because it felt like I was the one authoring the PR. Your current fork of the crate has what I personally consider a serious bug, which is that you turn off CLOEXEC in the parent process meaning that in a mulithreaded process where multiple threads are forking you're leaking jobserver file descriptors into child processes. Personally I consider that a much more serious bug then the one you were trying to fix.
To be clear, I think forking is fine, but I want to be sure to set the record straight in that I am still maintaining jobserver and there's real technical reasons I'm not merging your PR, not because I simply don't want to.

While I respect @NobodyXu your right to fork any open source project, I personally like it's a bit aggressive to send PRs to a bunch of dependencies, tag me, claim that I basically don't maintain the project any more, and then push a claim that your fork is not only more correct but also faster.

I'm very sorry for this and I have removed these unbased claims.

Your current fork of the crate has what I personally consider a serious bug, which is that you turn off CLOEXEC in the parent process meaning that in a mulithreaded process where multiple threads are forking you're leaking jobserver file descriptors into child processes.

Hmmm, I did not consider that as a bug.
I will fix that.

Personally I consider that a much more serious bug then the one you were trying to fix.

Fixed in 0.2.6.
BTW, if you don't mind changing the API interface, I can submit another PR for this or attempts to upstream other improvements I made.

I'm going to close as this is unlikely a change we want to make at this time. If there are specific issues related directly to Cargo, it would be best to start with an issue on the issue tracker.


Add deployment delete support

We should provide a simple way to delete an existing deployment.

Closing down project: #52


DeriveKubernetesVersion from the generic major.minor.patch

https://github.com/rancher/rancher/issues/21084
New changes to this ticket:
---- If a template specifies Kubernetes version of the format 1.14.x, a Question for the "rancherKubernetesEngineConfig.kubernetesVersion" should also be set - API will error out if a question is not added.
---- When a cluster is created from a clusterTemplate that specifies the k8sversion of a format 1.14.x
backend will translate this to rancher supported kubernetes version on the create. If user does not provide an answer to the k8sversion Template Question, Backend will use the default value for translation.
---- On editing such a cluster, If the answer to the k8sversion Template Question is not different, no translation will be done again. This prevents the auto-upgrade to newer version as was seen on earlier tests.
---- If user wants to upgrade the cluster to newer k8sversion, he/she should set the new answer(with specific k8sversion or higher patch as 1.15.x) on cluster edit or change the templateRevision having a newer k8s support.

LGTM


Build failed

Hi all,
OS: Ubuntu 18.04
ROS: Meldoic
Python: 2.7
I'm getting the below error when I run catkin build
________________________________________________________________________________________________________
Errors     << drone_racing:make /home/raghad/drone_racing_ws/catkin_ddr/logs/drone_racing/build.make.001.log
In file included from /opt/ros/melodic/include/ros/serialization.h:37:0,
                 from /opt/ros/melodic/include/ros/publisher.h:34,
                 from /opt/ros/melodic/include/ros/node_handle.h:32,
                 from /opt/ros/melodic/include/ros/ros.h:45,
                 from /home/raghad/drone_racing_ws/catkin_ddr/src/sim2real_drone_racing/drone_racing/drone_racing/include/drone_racing/drone_racing.h:5,
                 from /home/raghad/drone_racing_ws/catkin_ddr/src/sim2real_drone_racing/drone_racing/drone_racing/src/drone_racing.cpp:1:
/opt/ros/melodic/include/ros/message_traits.h: In instantiation of ‘static const char* ros::message_traits::MD5Sum<M>::value(const M&) [with M = double]’:
/opt/ros/melodic/include/ros/message_traits.h:254:102:   required from ‘const char* ros::message_traits::md5sum(const M&) [with M = double]’
/opt/ros/melodic/include/ros/publisher.h:116:38:   required from ‘void ros::Publisher::publish(const M&) const [with M = double]’
/home/raghad/drone_racing_ws/catkin_ddr/src/sim2real_drone_racing/drone_racing/drone_racing/src/drone_racing.cpp:388:48:   required from here
/opt/ros/melodic/include/ros/message_traits.h:125:14: error: request for member ‘__getMD5Sum’ in ‘m’, which is of non-class type ‘const double’
     return m.__getMD5Sum().c_str();
            ~~^~~~~~~~~~~
/opt/ros/melodic/include/ros/message_traits.h: In instantiation of ‘static const char* ros::message_traits::DataType<M>::value(const M&) [with M = double]’:
/opt/ros/melodic/include/ros/message_traits.h:263:104:   required from ‘const char* ros::message_traits::datatype(const M&) [with M = double]’
/opt/ros/melodic/include/ros/publisher.h:118:11:   required from ‘void ros::Publisher::publish(const M&) const [with M = double]’
/home/raghad/drone_racing_ws/catkin_ddr/src/sim2real_drone_racing/drone_racing/drone_racing/src/drone_racing.cpp:388:48:   required from here
/opt/ros/melodic/include/ros/message_traits.h:142:14: error: request for member ‘__getDataType’ in ‘m’, which is of non-class type ‘const double’
     return m.__getDataType().c_str();
            ~~^~~~~~~~~~~~~
make[2]: *** [CMakeFiles/drone_racing_base.dir/src/drone_racing.cpp.o] Error 1
make[1]: *** [CMakeFiles/drone_racing_base.dir/all] Error 2
make: *** [all] Error 2
cd /home/raghad/drone_racing_ws/catkin_ddr/build/drone_racing; catkin build --get-env drone_racing | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -
........................................................................................................
Failed     << drone_racing:make                                 [ Exited with code 2 ]
Failed    <<< drone_racing                                      [ 7.5 seconds ]
[build] Summary: 47 of 48 packages succeeded.
[build]   Ignored:   2 packages were skipped or are blacklisted.
[build]   Warnings:  None.
[build]   Abandoned: None.
[build]   Failed:    1 packages failed.
[build] Runtime: 20.9 seconds total.

I followed the steps exactly so not sure from where this is coming.

solved by updating drone_racing.cpp file at line 388 with the following:
bool DroneRacing::checkStateEstDesStateDivergence() {
  Eigen::Vector3d divergence_vec;
  divergence_vec = Eigen::Vector3d(desired_state_world_.position.x() - state_estimate_world_.pose.pose.position.x,
                                   desired_state_world_.position.y() - state_estimate_world_.pose.pose.position.y,
                                   desired_state_world_.position.z() - state_estimate_world_.pose.pose.position.z);

  std_msgs::Int8 msg;
  msg.data = divergence_vec.norm();

  divergence_pub_.publish(msg);
  return (divergence_vec.norm() > max_divergence_);
}

ofc don't forget to add #include <std_msgs/Int8.h>


Handling where clause error

Handles the error for the where clause only if the where returns an empty dataframe.

Closing this. On reflection, and following some discussions, it's not possible to solve this universally. By short circuiting it, the wrangles will never be executed and this will likely cause a following wrangle to fail in the common scenario that the output becomes the input of the next wrangle. If the code is simply skipped, the wrangle will not make the output column required.
This will instead be fixed by testing the wrangles to identify the ones currently failing and fixing them individually.


aws_sdk_dynamodb KeysAndAttributes not accepting params in docs

What is the problem?
I'm attempting to invoke the batch_get_item method on the aws_sdk_dynamodb::Client.
The BatchGetItem docs here list a KeysAndAttributes param as the 2nd argument to the request_items function.  The KeysAndAttributes docs lists a Vec<HashMap<String, AttributeValue>> as the param type for it's keys function.
Pictured below -- I'm unable to get the keys method to accept this kind of argument (get_keys). Conversely, I can get keys() to accept a single HashMap, but my batch_get_item() then fails as I'm querying by multiple composite primary keys, which I don't think I can do via a single (k, v).  The Vec type in the docs makes sense to me and I have a feeling the code in the crate doesn't reflect that.

Here's the error:
error: the trait bound `HashMap<std::string::String, AttributeValue>: From<Vec<HashMap<std::string::String, AttributeValue>>>` is not satisfied
label: the trait `From<Vec<HashMap<std::string::String, AttributeValue>>>` is not implemented for `HashMap<std::string::String, AttributeValue>`
note: required because of the requirements on the impl of `Into<HashMap<std::string::String, AttributeValue>>` for `Vec<HashMap<std::string::String, AttributeValue>>`
label: the trait `From<Vec<HashMap<std::string::String, AttributeValue>>>` is not implemented for `HashMap<std::string::String, AttributeValue>`

I'll admit that I am not the greatest with Rust, so there may be a stupid mistake here :) .  If so, please consider this a request for working examples of both batch_get_item (with a composite primary key) and batch_write_item.
Version
0.2.0
Platform
root:xnu-8019.41.5~1/RELEASE_X86_64 x86_64
AWS Services
DynamoDB
Description
Documented types for KeysAndAttributes method keys not being accepted on batch_get_item call.
Logs
No response

keys is a convenience method that will append a single item (so you don't need to maintain the vec yourself). Since you already have a Vec, you should use set_keys: https://docs.rs/aws-sdk-dynamodb/latest/aws_sdk_dynamodb/model/keys_and_attributes/struct.Builder.html#method.set_keys
You'll find this pattern everywhere that a HashMap or Vec is expected (set_xyz accepts a collection) vs. xyz accepting an element of the collection.

Yup, this was the issue.  Changing
.keys(get_keys)

to
.set_keys(Some(get_keys))

works as intended.
Thanks for the quick help and tips @rcoh.


How to write a custom query for GraphQL and where to store it?

I can't seem to find a clean answer on how to create a custom query for my GraphQL schema so that I can re-use it in my clients.
In my case I want to abstract/wrap an existing query with a filter for ease so I don't have to keep remembering what the filter is, its a helper method is all, nothing fancy. Here it is so we have something to focus on/play with:
"""
Returns a collection of Areas that service the passed in postcode (similar to ZipCode for those in the US)
Note: it has to match exactly including case.
"""
query getAreaByPostcode($postcode: String!) {
  listAreas( filter: {
    postcodesCovered: {
      contains: $postcode
    }
  }) {
    items {
      id
      name
    }
  }
}

Seems there are differing views out there on how to do this but nothing offical that I can find:

@dabit3 mentions (back in Jan 2019 so this might be out of date) that you can just add a query right into your schema but when I try that I get errors and my schema won't compile (https://dev.to/dabit3/lambda-function-graphql-resolvers-11cd)
https://github.com/aws-amplify/amplify-cli/issues/2420 talks about adding queries to the ./src/graphql folder but I'm confused if this is only for TypeScript (with or without export const depending on which comments you read) or if I should have a custom-queries.graphql file instead?

I'd love someone to clear up the following queries so I can zero in on this:

Can you add queries directly to your schema, if so what is the exact syntax as I'm failing?
If instead I should be using separate files (as I suspect) then:
-- What are the rules on the location and naming of the file? Does it have to be called custom-queries.graphql or could it be whatever.graphql as long as its in the right place?
-- Do l write them in GraphQL markup and they get auto generated into TypeScript? If so when do they get generated?

I've been trying a number of different guesses at all the above but I can't get my query to appear in my GraphiQL UI at all. Would love to have an up to date definitive answer on this one as my mental model is hazy and incomplete :(

Exactly, if you're just writing a custom query, I'd suggest creating a file called something like customQueries.js and putting them there. There is no naming convention, just put them somewhere that will not be overwritten by the CLI.
const getAreaByPostCode = `
  query getAreaByPostcode($postcode: String!) {
    listAreas( filter: {
      postcodesCovered: {
        contains: $postcode
      }
    }) {
      items {
        id
        name
      }
    }
  }
`

export { getAreaByPostCode }

You can then import them anywhere necessary.
The only queries that the CLI will create for you will be based on the GraphQL directives in your schema.

Thank you @dabit :)
This might link up nicely with #5879 too

I thought that custom queries would be picked up automagically if in that folder (./src/graphql) and made available in the schema when using tools like GraphiQL for ease of discovery. Is that understanding wrong? From your answer it sounds like I have to manually pull the queries in separately rather than having them as part of the bigger schema.

You can add the Type Query as a type extension into your schema definition, and then add the costume resolver for that custom query
https://docs.amplify.aws/cli/graphql-transformer/resolvers#custom-resolvers
Let us know if that works for your project.

@UnleashedMind but that sounds like a new resolver (or a custom one), I'm only wanting to reuse an existing Query, no resolver required. In my initial example above I'm just trying to make a new GraphQL Query that wraps an existing one. That might not be the right way to do it, or even possible but it feels like it should be possible.
My understanding is that I should appear in GraphiQL (or any introspection), its just a convenience wrapper around another existing Query, both of which are GraphQL syntax?

@PeteDuncanson Are you still stuck with this?

@kaustavghosh06 well yes and I no. I think I have my answer.
I can't just get a new query added to the schema that I can see without diving into the world of VTL templates. That example in the docs here btw is terrifying and a total put off (https://docs.amplify.aws/cli/graphql-transformer/resolvers#add-a-custom-resolver-that-targets-an-aws-lambda-function) it just screams "go away this is nasty stuff!". I've no idea how to even begin picking all those steps apart to make sense of them. As a result I won't and I'll leave that well alone. If that part of the docs could be strengthened it might help, some links to other docs on how to understand the VTL I'm looking at, where to put them and deploy them. As is it makes a whole lot of assumptions that everything its describing is just routine day to day stuff...when it really isn't to my brain! :)
As a result I won't be spinning up any custom queries or resolvers anytime soon.
So it looks like what I want to do and what I thought I could do can't be done. Just a reminder I wanted to create a GraphQL query that uses existing GraphQL queries and get that injected into my schema so that everything would have it available rather than just having it in my client code. Usecase is I have a Lambda that is doing an import that needs this fuctionality as well as a form on my website that also needs this functionality. To try to keep it DRY and discoverable I wanted it in the schema.
Seems that can't be done but feel free to correct me. If it can't be done then nothing more to do here and you can close this one :(

@PeteDuncanson, thanks for writing this up. I've been struggling with the same issue and don't want to go near the steps outlined in the docs.
Is there really not an easier way to get a custom query into the schema and thus available throughout the code base?

I here there is a new Javascript way to write these resolvers coming soon. That would at least mean that we could write them in a language we know but any docs for that I would need to assume I know nothing about VTL (or anything for that matter!) and start afresh with "here is what a resolver is, here is what we need to do, why and finally here is the how with samples". Don't know the ETA for this though but I keep hearing of late "soon" which is exciting.


Written what-do-i-do-if-the-porter-manager-pod-is-stuck-in-pending-state-en.

Signed-off-by: Patrick-LuoYu<EMAIL_ADDRESS>/assign @FeynmanZhou @duanjiong @zheng1

/lgtm


Network Limiter: this is needed to ban IP, avoid DOS, etc

Maybe using Jetty or other HTTP lib this feature comes for free.

Not relevant anymore, closing it.


Added translation support

I open this request to ask for support in inserting the translation if you need help I'm available

Hi @elax46 , the card already supports translations -- but it only has English and Brazilian Portuguese language data. If you are able to contribute language data for other languages, that would be very welcome!
Localization files live here: https://github.com/dermotduffy/frigate-hass-card/tree/release-4.0.0/src/localize/languages
You'd just need to copy the en.json file and make a new version for whatever language you are able to speak and verify the translations for.
Please let me know if I misunderstand the request. Thanks!

I'm sorry I hadn't looked at the folders in depth, of course I proceed!


Multiple Model Exploration on loan status prediction

I have added the following features to Loan Status Prediction Model (Loan Status Prediction/Loan_Status_prediction.ipynb):

Feature Scaling
Multiple Model Exploration: Instead of just using SVM, I have added three common models:

Logistic Regression: A simple yet often effective model for binary classification.
SVM: already using this.
Random Forest: An ensemble method that often performs well on various datasets.

Hi @Akshat111111 , Please assign labels GSSOC and level 2 to this PR.
Resolves #218 .


WarpSQL: Add PostGIS Extension

WarpSQL, WarpSQL/bitnami: Add PostGIS extension to PostgreSQL
WarpSQL:

Specify POSTGIS_MAJOR, PG_MAJOR, and POSTGIS_VERSION arguments
Update and install necessary dependencies
Add PostgreSQL repository and import key
Install PostGIS extension with specified versions
Clean up apt lists

WarpSQL/bitnami:

Implement ARGs for POSTGIS_VERSION and POSTGIS_SHA256 to support different PostGIS versions
Conditionally set environment variables GEOS_ALPINE_VER, GDAL_ALPINE_VER, and PROJ_ALPINE_VER based on the selected PostGIS version
Add Alpine repositories for required packages when using PostGIS 2.x

Fixes: #4

https://github.com/all-contributors please add @jayanth-kumar-morem for Code.


When a channel closes, isClosed remains false

Fixed an issue where isClosed is never mutated and will always remain false, regardless of if the Channel closes or not.
Example:
let worker = MultiThreadedEventLoopGroup(numThreads: 1)
let ws = try HTTPClient.webSocket(scheme: .wss, hostname: url.host, port: url.port, path: url.path, on: worker).wait()
...
// Schedule a ping job
Jobs.add(interval: .seconds(4)) {
    guard !ws.isClosed, connected else { return }

    // send keepalive ping
    ws.send("ping")
}
...
try ws.onClose..wait()

A more in-depth solution including close code support was added in #6. Closing this one in favor of that. thanks for the contribution!


Update Active Validator Connections In PoS Consensus

Current dependencies on/for this PR:

#1054  👈
feature/pos-networking-and-syncing

This stack of pull requests is managed by Graphite.

Merge activity

Feb 20, 6:55 PM EST: @tholonious started a stack merge that includes this pull request via Graphite.


Azure Quantum CLI: Add --user-agent param when submitting standalone executable

By appending the "CLI" to the UserAgent we can distinguish calls to the Azure Quantum APIs coming from different clients like IQ# and standalone executables and standalone executables submitted via CLI.

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

quantum


revert Trie and add a comment

per @rbeesley in https://github.com/Microsoft/winfile/commit/7185e43f5458f581f8de6ee40780ddf4affb15f7#commitcomment-28501075

why was that changed?


[BUG] [Documentation] Broken Wiki Tutorial links

Describe the bug
Several of the links in the wiki to specific tutorials seem to be broken, pointing to a "You do not have permission to update this wiki." error (for, I'm assuming all users that are not members of the repo's organisation)
Code To Reproduce Bug
Click on any of the following links from the wiki tutorial page at https://github.com/BelfrySCAD/BOSL2/wiki/Tutorials

Ways to Make a Box (https://github.com/BelfrySCAD/BOSL2/wiki/Tutorial-Boxes)
Rounding Tutorial (https://github.com/BelfrySCAD/BOSL2/wiki/Tutorial-Rounding)
Bezier Patch Demo (https://github.com/BelfrySCAD/BOSL2/wiki/Tutorial-BezierPatch)

Expected behavior
Some deliciously documented tutorials, to match the excellent content found elsewhere on the wiki. Specifically, I'm hoping to find an example of how to use partition_mask with a 2D cutpath to create a custom finger joint edge between two cuboids  :)

Someone needs to write the tutorials---the links are broken because the content doesn't yet exist.  (Though broken links aren't a great way to handle that.)
But if you're hoping for details on partition_mask, I don't think a tutorial is presently planned that will cover that, so you might want to focus on the existing wiki docs for partitions.scad.

The broken links have been addressed.

Actually "Bezier Patch Demo" still goes to a blank wiki.   Is that planned content?


Update README UI image

Update the UI image inside docs/images/Ui.pngand have the same height x width of the original one (726 x 593 pixels)

#59


Entity Not recognized

Attached my training data json files where all the intents and entities are labelled.
training-data-json.txt
My Question for that chatbot that i made is "What is the average ratings of movies produced by Karan JOhar in last 10 years ?"
In this case "Karan Johar" should be recognizd as "producer" entity .
In many cases i have marked "Karan JOhar" as "director " entity.
But when a phrase " produced by " or "director by " comes, in those case  the name after the phrase should belong to "producer"/"director" depending on the phrase preffixed.
Below is the result that i got from my model.
{'intent': {'name': 'rating_search', 'confidence': 0.9789842971636689}, 'entities': [{'start': 12, 'end': 27, 'value': 'average ratings', 'entity': 'aggmethod', 'confidence': 0.9984705847092747, 'extractor': 'CRFEntityExtractor'}, {'start': 38, 'end': 49, 'value': 'produced by', 'entity': 'role', 'confidence': 0.970444154132258, 'extractor': 'CRFEntityExtractor'}, {'start': 50, 'end': 61, 'value': 'karan johar', 'entity': 'director', 'confidence': 0.9519798163153366, 'extractor': 'CRFEntityExtractor'}, {'start': 62, 'end': 78, 'value': 'in last 10 years', 'entity': 'time', 'confidence': 0.8693345972879974, 'extractor': 'CRFEntityExtractor'}], 'intent_ranking': [{'name': 'rating_search', 'confidence': 0.9789842971636689}, {'name': 'movie_search', 'confidence': 0.011960894645934217}, {'name': 'actor_search', 'confidence': 0.0029286358141673865}, {'name': 'producer_search', 'confidence': 0.0018446370991670315}, {'name': 'director_search', 'confidence': 0.001321095084823971}, {'name': 'coworker_search', 'confidence': 0.0009156458042880051}, {'name': 'affirm', 'confidence': 0.0007931370517594824}, {'name': 'actress_search', 'confidence': 0.000524613144352204}, {'name': 'goodbye', 'confidence': 0.0004869859850510281}, {'name': 'greet', 'confidence': 0.0002400582067874318}], 'text': 'What is the average ratings of movies produced by Karan JOhar in last 10 years ?'}
If you c , Karan Johar is marked as director entity inspite of the phrase "produced by" preffixing  it. So my question is what does the model learn then ?
And if you see the result, there are other intents rankings . Similarly how to check the other  for entities rankings ? Bcz i believe that entities are picked upon based on the entity confidence.
Does my model doesnt recognize Karan Johar as a producer because there is not enough training sample cases as him pointing to a producer?

Please ask these kind of questions in our forum, as mentioned in the issue template


Feature/primitive queue

Perhaps something simple like this to cater for higher volume event logging ...
while true; do echo "`date` testing"; sleep 0.1; done | /usr/local/bin/cloudwatchlogs -a 41414141 -s 41414141 -r us-west-2 -g production -t test -b 16

Apologies for my crappy JS ..

I'm :+1: on this. @dberesford what do you think?

Yes this looks great, thanks @90kts, will get this merged and published.


[test] Move slow StringMemoryTest to validation-test

This test takes over a minute to run, and all it's doing is testing that repeated operations on a string don't leak.
Note that this test might have gotten slower in the last few months, because I thought I already kicked all tests that take over a minute to run out of test/.

@swift-ci Please smoke test


feat: manage null value on kafka

 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.


Did not work on python 3, without the encode

Just a minor fix for GPIB communication on python 3.

I'm not sure why the check fails :(

OK. So I tested right now, both for ASCII and binary reading and there is indeed a problem with my change and the binary reading. A better solution will have to be found.
All the results are attached (ASCII test with change passes without errors)
Linux distribution: Arch (up to date)
Kernel: 4.2.5
Python version: 3.5.0
Pyvisa version: 1.8
BIN_out_no_fix.txt
BIN_out_fix.txt
ASCII_out_no_fix.txt
simpleTest_ASCII.txt
simpleTest_BIN.txt


fix template variables for 8.4

closing in favor of https://github.com/grafana/grafana-experimental/pull/28


Can logger names be simplified?

If just top-level package like com.virtuslab (or com.virtuslab.gitmachete?) is listed in Enable Debug Log... is it enough to cover all loggers declared in the plugin? Or is an exact match of logger name needed? Now we're assuming the latter, and we've put quite a bit of engineering to cater for that assumption... but maybe the logging module can be simplified a bit wrt. logger names (just a class name, not some string derived from the package)

Or is an exact match of logger name needed?

Whoops no, it's not needed 😅 just a prefix is enough

For some reason, DEBUG is called FINE in this log

Oh, it's called FINE coz IntelliJ switched from log4j to java.util.logging (aka JDK 1.4 logging) recently... which calls DEBUG as FINE

Done on #816


Aligning with gateway

Description
This pull request aligns Alloy with the latest gateway specification. I'll add some comments through the PR to provide some additional context.

Related Issue
https://jira.corp.adobe.com/browse/CORE-28209

Motivation and Context

Allows us to use the real gateway.
How Has This Been Tested?
Automated tests and running the sandbox.

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[X] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[X] All new and existing tests passed.

I am OK with the Audiences component.

I'm going to merge this, but if anyone else has anything they would like to see changed, please let me know and we can update it in a different PR.