JS error when I change quickly beetween pages

I'm submitting a ...  (check one with "x")

[ ] question
[x] any problem or bug report

OS:  (check one with "x")

[x] Android
[?] iOS
[?] Browser

cordova information:  (run $> cordova plugin list)
cordova-android-firebase-gradle-release 3.0.0 "cordova-android-firebase-gradle-release"
cordova-android-play-services-gradle-release 3.0.0 "cordova-android-play-services-gradle-release"
cordova-android-support-gradle-release 3.0.1 "cordova-android-support-gradle-release"
cordova-open-native-settings 1.5.2 "Native settings"
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-advanced-http 2.1.1 "Advanced HTTP plugin"
cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-core-android-extensions 2.0.0 "CoreAndroidExtensions"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-filepath 1.5.5 "cordova-plugin-filepath"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-googlemaps 2.6.2 "cordova-plugin-googlemaps"
cordova-plugin-headercolor 1.0 "HeaderColor"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ionic-webview 1.1.16 "cordova-plugin-ionic-webview"
cordova-plugin-localization-strings 3.1.0 "Localization"
cordova-plugin-nativeaudio 3.0.9 "Cordova Native Audio"
cordova-plugin-network-information 2.0.3-dev "Network Information"
cordova-plugin-screen-orientation 3.0.2 "Screen Orientation"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-transparent-status-bar 1.0.1 "Transparent status bar"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-sqlite-storage 3.3.0 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"
cordova-support-android-plugin 1.0.1 "cordova-support-android-plugin"
cordova-support-google-services 1.1.0 "cordova-support-google-services"
cordova.plugins.diagnostic 5.0.0 "Diagnostic"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-deeplinks 1.0.20 "Ionic Deeplink Plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-mobile-accessibility 1.0.5-dev "Mobile Accessibility"
phonegap-plugin-multidex 1.0.0 "Multidex"
phonegap-plugin-push 2.2.3 "PushPlugin"
If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)
@ionic-native/core : 4.4.0
@ionic-native/google-maps : 4.4.2

Current behavior:
When I change quickly beetween pages with map I get an js error.

To do something like this video: https://www.youtube.com/watch?v=DQQu8gksaww
Get next js error:

Expected behavior:
No js error
Screen capture or video record:

Related code, data or error log (please format your code or data):
WIth this commit I have fixed it for markers and polylines:
if (polyline) {
     ...
}
...

if (marker) {
     ...
}

https://github.com/mapsplugin/cordova-plugin-googlemaps/commit/8e2c74f65821d6781488a71dcc62abeb338ce439
I suppose that there is a bug for every map element type.
I think would be a good idea to have a test app with a transition from a page with a map to another page with a map. We had a lot of problems for this use case.

Hi!, I am a mate of @zarelint. We had update our app 2 weeks ago. And in the way we have found several bugs or details.
We had updated our apps (Android and iOS) from version 2.1.1 forked to last version forked: 2.6.2
Thanks a lot for this maravellous project! We can grow up thanks of you.
Links of our apps, if you want test or something (please move to Spain, France or Portugal):

https://play.google.com/store/apps/details?id=com.joinuptaxi.passenger&hl=es
https://apps.apple.com/es/app/joinup-pedir-y-reservar-taxi/id554668455


Nested "{{for}}" loop issue?

Hi,
I am trying to put together a template with jsRender instead of my own version that I was on, but,  I keep getting a: "Uncaught JsRender Error: Syntax error Unmatched or missing tag: "{{/for}}" in template:" error followed by my entire template (maybe it should just be the template name instead, it gets pretty long).
Here is a truncated version of my code, any ideas as to what is going on? Or is it just the nested for loops?

    {{for sources}}

            {{:title}}

            {{for articles}}

                          // An if, else and some standard content insertion stuff was here

            {{/for}}

    {{/for}}

EDIT: Forgot to mention, I am loading this from an external file using John Papa's code (http://msdn.microsoft.com/en-us/magazine/hh975379.aspx).

Did you mean like this?:
{{for list ~outerData=#data}}
...
{{if ~outerData.some.path===...}}
...

See http://www.jsviews.com/#parentdata

Hi, I'm having the same issue, but I'm guessing for a different reason since I don't have any if/else, or anything like that for that matter.
`

Hi, I'm having the same issue, but I don't think for the same reason, could you check it out?


API Key issues

Long story short, I’m trying to patch the Ask.com YouTube toolbar widget to work with YT2009. Only issue is, it tries to fetch data from /api/standardfeeds, which appears to return nothing. I’ve tried swapping that out with a playlist URL, but it always appends ?key=(some api key) to the very end of the URL. For whatever reason, when ?key (or any other random parameter) is appended to the URL it returns 500. This is an issue, because anything that tries to specify an API key (so basically every janky 3rd party app) is completely nonfunctional even if being correctly patched.

yt2009's gdata v2 endpoints do not check or use any keys. the issue most likely is within something else within the requests sent (unimplemented params? something overall breaking?).

It seems to be the unrecognized parameter that is crashing it (any unrecognized parameter does the same). Perhaps it should ignore these?

no response in a while, assuming it's solved? feel free to reopen/create a new issue if still happening


Overload basic operators

Vector +- Vector
Point +- Vector
Matrix * Vector
Quat * Vector
...
probably a lot more, but we need to keep the behavior strictly obvious (i.e. not overloading Vector*Vector as a dot product)

I believe the trait reform is done already? Unblocking.

I believe this is done!


wrapQtAppsHook: wrap binaries in libexec

Motivation for this change
See feedback at https://github.com/NixOS/nixpkgs/pull/54525#issuecomment-511164934.
This should be fine to do, it's already done in wrapGAppsHook.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

I've noticed with wrapGAppsHook that if there's binaries at sbin that they don't get wrapped.
I'm thinking this was because move-sbin fixupOutputHooks came after wrapGAppsHook so they don't get touched.
Mentioning because I'd think wrapQtAppsHook could inherit that issue.

What happens when a bin/ executable execs a libexec/ executable? Won't the environment grow?

What happens when a bin/ executable execs a libexec/ executable? Won't the environment grow?

Yes, environment variables are going to propagate to child processes and often they can be wrapped too.
So this leakage can be problematic, but it's a known drawback to this approach.

LGTM. This resolved the activitymanagerd failure I noted in https://github.com/NixOS/nixpkgs/pull/54525#issuecomment-511164934
However, the plasma 5 test is still failing. A different failure. Does not appear to be a regression caused by this change. Log:

https://gist.github.com/coreyoconnor/410e5291aebce30c611f68abcf448870

Not clear to me what failed this time.

LGTM. This resolved the activitymanagerd failure I noted in #54525 (comment)
However, the plasma 5 test is still failing. A different failure. Does not appear to be a regression caused by this change. Log:
* https://gist.github.com/coreyoconnor/410e5291aebce30c611f68abcf448870

Not clear to me what failed this time.

Can you run the test interactively and debug from there?
nix-build nixos/tests/plasma5.nix -A driver

Running the test interactively everything works for me

What the issue here is that the wrappers fuzzed the --argv0 so the test needs to be adapted

https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/plasma5.nix#L53

I'll include a commit for that here.

Ok, after inspecting dolphin it's not being wrapped so it gets that error at runtime...
Pretty confused by that.

I've discovered that isQtApp wasn't returning a non-zero exit status for dolphin's binaries.
Decided to just remove it https://github.com/NixOS/nixpkgs/pull/64720/commits/4908d382ae1eb9f618ea8745cb6794db1dba9520

So the NixOS test now "passes", but I'm seeing errors in the output like
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-alice'

among others that somehow get drawn to the desktop after I run it interactively

Thanks! I can confirm the test passes. I haven't tried running the driver interactively. If I get a chance I'll try it and see.

@worldofpeace please remove the WIP label when it's not applicable.

@ttuegel Was isQtApp meant to prevent scripts from being wrapped?
I'm thinking that the new issues I'm seeing are because of that happening.
Though it's still possible that a script could need to be wrapped with $XDG* variables.

@worldofpeace isQtApp was intended to prevent wrapping scripts and non-GUI binaries that may not even depend on Qt. If it's causing problems, then remove it.

So with the latest commit, plasma5 test succeeds for me locally and interactively nothing seems wrong with the session.
I'm going to merge this to master so the channels can get unblocked.

https://github.com/NixOS/nixpkgs/pull/64720/commits/7d6ab0ad7a5a5b1765a6d70b5df861d14e3c3482 breaks Python scripts that use Qt5 because they don't get wrapped because of the isELF check.

I have patches in my nixpkgs that may impact this. Adding the issue I'm encountering here just in case it's actually related to this change. Plus, takes a while to build a variation. ;)
Some QT apps, for instance QGIS and OpenSCAD, encounter an infinite recursion that has a stack trace like so:
#0  0x000015554e001680 in QWindow::flags() const () from /nix/store/v4s0nq286hxwjms4k1sd378n597l3rka-qtbase-5.12.3/lib/libQt5Gui.so.5
#1  0x000015554e0016b9 in QWindow::type() const () from /nix/store/v4s0nq286hxwjms4k1sd378n597l3rka-qtbase-5.12.3/lib/libQt5Gui.so.5
#2  0x000015553e630c61 in ?? () from /nix/store/35855h0lfnpr21xbs48kd1ianwzzw0yv-qtbase-5.12.0-bin/lib/qt-5.12/plugins/xcbglintegrations/libqxcb-glx-integration.so
#3  0x000015554e001682 in QWindow::flags() const () from /nix/store/v4s0nq286hxwjms4k1sd378n597l3rka-qtbase-5.12.3/lib/libQt5Gui.so.5
#4  0x000015554e0016b9 in QWindow::type() const () from /nix/store/v4s0nq286hxwjms4k1sd378n597l3rka-qtbase-5.12.3/lib/libQt5Gui.so.5
#5  0x000015553e630c61 in ?? () from /nix/store/35855h0lfnpr21xbs48kd1ianwzzw0yv-qtbase-5.12.0-bin/lib/qt-5.12/plugins/xcbglintegrations/libqxcb-glx-integration.so
#6  0x000015554e001682 in QWindow::flags() const () from /nix/store/v4s0nq286hxwjms4k1sd378n597l3rka-qtbase-5.12.3/lib/libQt5Gui.so.5
#7  0x000015554e0016b9 in QWindow::type() const () from /nix/store/v4s0nq286hxwjms4k1sd378n597l3rka-qtbase-5.12.3/lib/libQt5Gui.so.5
#8  0x000015553e630c61 in ?? () from /nix/store/35855h0lfnpr21xbs48kd1ianwzzw0yv-qtbase-5.12.0-bin/lib/qt-5.12/plugins/xcbglintegrations/libqxcb-glx-integration.so

Note the libqxcb-glx-integration library.
(This is the issue I mentioned running qt apps in #63829 .)

I have patches in my nixpkgs that may impact this. Adding the issue I'm encountering here just in case it's actually related to this change. Plus, takes a while to build a variation. ;)

I've reverted to nixos-unstable plus a few necessary patches and am not able to reproduce the above issue. I'll be adding back in QT PRs to see if they repro the issue.


Unicode Escape problem

How can I fix problem with Unicode Escape?

https://github.com/vishalanandl177/DRF-API-Logger/blob/a6e1b34657467bc337730918cf1d003eb87f729d/drf_api_logger/middleware/api_logger_middleware.py#L136-L139
caused by json.dump(), you maybe set ensure_ascii=False can resvole this problem.


Toast shows generic message from list view in admin panel

Link to reproduction
No response
Describe the Bug
We have a "CustomeAPIError" class used to throw custom error toasts from hooks:
import {APIError} from "payload/errors";

class CustomAPIError extends APIError {
    constructor(message: string) {
        super(message, 400, undefined, true)
    }
}

export default CustomAPIError

These are used mainly for displaying descriptive error messages to the user when deleting records from a collection.  It works as expected when deleting a record from the individual record view.
However, when deleting from the list view the custom error message is not displayed. Instead a generic "Unable to delete n out of n records" is displayed.

To Reproduce
Throw a CustomAPIError from a beforeDelete hook.
Currently using v2.22.0 but this has been an issue in all v2 versions.
Payload Version
2.22.0
Adapters and Plugins
bundler-webpack, db-mongodb, plugin-cloud, richtext-slate

@wrobson-lllow could you throw together a simple reproduction so we can drop in some code to replicate? Will make looking into it a lot easier.

@wrobson-lllow could you throw together a simple reproduction so we can drop in some code to replicate? Will make looking into it a lot easier.

Sure thing. Is there a simple starter repo anywhere that I can use?

reproduction branch custom-API-error-list-view-bug
One thing I've noticed and wondered about before, is there a reason the beforeDelete hook doesn't include 'doc' in the args object?

Coming out with a fix for both v2 and v3. In v3 it will look a bit like this and in v2 it will just be appended to the end of the error.


remove small remnants of memory_ballast from Puppet. OTL-2703

Description:  Removed memory ballast from puppet deployment.
Link to Splunk idea: <Link to Splunk idea, see https://ideas.splunk.com>
Testing:
Documentation:

Can we remove splunk_ballast_size_mib option?

@dmitryax I believe Jeff brought this that if we remove and this new Puppet module is used for version older than 0.97.0 will not work.

Why? The ballast env var is not required even for old versions. They will use the default value, which is okay, I guess.

At least this should be removed from the documentation

Why? The ballast env var is not required even for old versions. They will use the default value, which is okay, I guess.

@dmitryax I believe Jeff brought this that if we remove and this new Puppet module is used for version older than 0.97.0 will not work.

Why? The ballast env var is not required even for old versions. They will use the default value, which is okay, I guess.

I think they are present in the flags of installer scripts which @jeffreyc-splunk  had shown me and suggested not to remove totally rather mark it deprecated.
The installer scripts removal is a "breaking change" per Jeff.

I'm unsure if we need to expose GOMEMLIMIT env var with another config option. It seems unnecessary, given the internal discussion we had today about how to move forward. However, I'm not going to block this PR, it's up to you, folks

I'm unsure if we need to expose GOMEMLIMIT env var with another config option. It seems unnecessary, given the internal discussion we had today about how to move forward. However, I'm not going to block this PR, it's up to you, folks

Yeah, it should be possible for the user to just include GOMEMLIMIT => 'somevalue' in the existing collector_additional_env_vars parameter within their manifest, instead of adding the new gomemlimit parameter.  WDYT @samiura?

I think we should remove it given the drawbacks.


Android build issue moving to 0.76.2

Description
I had an error moving to RN 0.76.2 following this helper https://react-native-community.github.io/upgrade-helper/?from=0.74.3&to=0.76.2
I resolved this issue keeping android.enableJetifier=true but this should not be a good practice
Steps to reproduce

Upgrade from RN 0.74.3 ro RN 0.76.2
Run ./gradlew bundleRelease

React Native Version
0.76.2
Affected Platforms
Runtime - Android, Build - MacOS
Output of npx react-native info
System:
  OS: macOS 14.6.1
  CPU: (12) arm64 Apple M2 Max
  Memory: 809.80 MB / 64.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.11.1
    path: /opt/homebrew/opt/node@20/bin/node
  Yarn: Not Found
  npm:
    version: 10.2.4
    path: /opt/homebrew/opt/node@20/bin/npm
  Watchman:
    version: 2<IP_ADDRESS>
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.2
    path: /Users/ajouve/.rvm/gems/ruby-2.7.5/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.1
      - iOS 18.1
      - macOS 15.1
      - tvOS 18.1
      - visionOS 2.1
      - watchOS 11.1
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.10671973
  Xcode:
    version: 16.1/16B40
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 22.0.1
    path: /opt/homebrew/opt/openjdk/bin/javac
  Ruby:
    version: 2.7.5
    path: /Users/ajouve/.rvm/rubies/ruby-2.7.5/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.2
    wanted: 0.76.2
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs
/Users/xxx/.gradle/caches/8.10.2/transforms/0fd0166c4f0b7f2b3a94f0420432a518/transformed/material-1.6.1/res/values/values.xml:7497:4: Duplicate value for resource 'attr/actionBarSize' with config 'DEFAULT' and product ''. Resource was previously defined here: com.xxx.xxx.app-mergeDebugResources-79:/values/values.xml:8497: .

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
   > Resource compilation failed (Failed to compile values resource file /Users/xxx/Developer/xxx/app-native/android/app/build/intermediates/incremental/debug/mergeDebugResources/merged.dir/values/values.xml. Cause: java.lang.IllegalStateException: Can not add resource (com.android.aaptcompiler.ParsedResource@329c2b83) to table.). Check logs for more details.

Reproducer
https://github.com/react-native-community/reproducer-react-native
Screenshots and Videos
No response

I have the same issue. However, since I use eas and expo, the prebuild command during the EAS build process alway clean the android directory, so even the enableJetifier=true solution isn't a viable temp solution for me, as it won't add that line in the gradle.properties.

Same probleme here using Expo with the 0.76.2.

Same problem

Hey, thank you for reporting this.
Please add a valid reproducer for further investigation.

I resolved this issue keeping android.enableJetifier=true but this should not be a good practice

This is caused by one of your library.
Could you share the output of:
cd android && ./gradlew androidDependencies

We'll be able to isolate the rogue library and update it.

I'm getting the same error, here is the output of the androidDependencies command

Could you run cd android && ./gradlew androidDependencies --scan and share with me the Gradle Scan (is a URL you will get on console)

I'm getting the same error, here is the output of the androidDependencies command

Could you run cd android && ./gradlew androidDependencies --scan and share with me the Gradle Scan (is a URL you will get on console)

https://gradle.com/s/bm7xhntu5efug

@msantang78 in your particular project, the offending libraries are:

react-native-photo-editor (here the problem: https://github.com/prscX/react-native-photo-editor/blob/04a120ca8d37336090180f386bc8090311f31c39/android/build.gradle#L50-L52)
rn-update-apk (you will need version 5.x at least https://github.com/mikehardy/react-native-update-apk/releases/tag/v5.0.0)

Please either:

update those dependencies
re-add the enableJetifier property
reach out to the library maintainer to ask for an update
use patch-package to circumvent the problem


OpenH264 error during YouTube playback

Hello, I found some OpenH264 error prompt up in console during YouTube playback.
1. It will keep prompt below error during YouTube playback.
pi@raspberrypi ~ $ xfreerdp -sec-nla /cert-ignore /u: /f /drive:*,hotplug /network:modem /rfx /gfx +gfx-h264 +gfx-thin-client -offscreen-cache +async-update +fonts /v:<IP_ADDRESS>
[17:55:09:462] [8079:8080] [INFO][com.freerdp.client.common.cmdline] - loading channel rdpdr
[17:55:09:462] [8079:8080] [INFO][com.freerdp.client.common.cmdline] - loading channel rdpsnd
[17:55:09:463] [8079:8080] [INFO][com.freerdp.client.common.cmdline] - loading channel drdynvc
[17:55:09:493] [8079:8080] [WARN][com.freerdp.core.nego] - Error: SSL_NOT_ALLOWED_BY_SERVER
[17:55:10:898] [8079:8080] [INFO][com.freerdp.channels.drdynvc.client] - Loading Dynamic Virtual Channel rdpgfx
[17:55:10:899] [8079:8084] [INFO][com.freerdp.channels.rdpdr.client] - Loading device service drive (static)
[17:55:10:900] [8079:8084] [INFO][com.freerdp.channels.rdpdr.client] - registered device #1: SETTINGS (type=8 id=1)
[17:55:24:191] [8079:8080] [ERROR][com.freerdp.core] - ERRINFO_SERVER_DENIED_CONNECTION (0x00000007):The server denied the connection.
[17:55:26:992] [8079:8083] [INFO][com.freerdp.channels.rdpdr.client] - registered device #1: SETTINGS (type=8 id=1)
[OpenH264] this = 0x0x734308e0, Error:NAL_UNIT_CODED_SLICE: DecInitBits() fail due invalid access.
[OpenH264] this = 0x0x734308e0, Error:NAL_UNIT_CODED_SLICE: DecInitBits() fail due invalid access.
[OpenH264] this = 0x0x734308e0, Error:NAL_UNIT_CODED_SLICE: DecInitBits() fail due invalid access.

After a few minutes (or more),  the remote desktop session will be crashed. And i will see one more error like below. (The remote site CPU loading is very high.)
pi@raspberrypi ~ $ xfreerdp -sec-nla /cert-ignore /u: /f /drive:*,hotplug /network:modem /rfx /gfx +gfx-h264 +gfx-thin-client -offscreen-cache +async-update +fonts /v:<IP_ADDRESS>
[17:55:09:462] [8079:8080] [INFO][com.freerdp.client.common.cmdline] - loading channel rdpdr
[17:55:09:462] [8079:8080] [INFO][com.freerdp.client.common.cmdline] - loading channel rdpsnd
[17:55:09:463] [8079:8080] [INFO][com.freerdp.client.common.cmdline] - loading channel drdynvc
[17:55:09:493] [8079:8080] [WARN][com.freerdp.core.nego] - Error: SSL_NOT_ALLOWED_BY_SERVER
[17:55:10:898] [8079:8080] [INFO][com.freerdp.channels.drdynvc.client] - Loading Dynamic Virtual Channel rdpgfx
[17:55:10:899] [8079:8084] [INFO][com.freerdp.channels.rdpdr.client] - Loading device service drive (static)
[17:55:10:900] [8079:8084] [INFO][com.freerdp.channels.rdpdr.client] - registered device #1: SETTINGS (type=8 id=1)
[17:55:24:191] [8079:8080] [ERROR][com.freerdp.core] - ERRINFO_SERVER_DENIED_CONNECTION (0x00000007):The server denied the connection.
[17:55:26:992] [8079:8083] [INFO][com.freerdp.channels.rdpdr.client] - registered device #1: SETTINGS (type=8 id=1)
[OpenH264] this = 0x0x734308e0, Error:NAL_UNIT_CODED_SLICE: DecInitBits() fail due invalid access.
[OpenH264] this = 0x0x734308e0, Error:NAL_UNIT_CODED_SLICE: DecInitBits() fail due invalid access.
[OpenH264] this = 0x0x734308e0, Error:NAL_UNIT_CODED_SLICE: DecInitBits() fail due invalid access.
Segmentation fault

2. While watching the video on YouTube, the screen will fuzzy suddenly (a few minutes after start playing the video). And the console will keep prompt below errors.
[10:34:19:666] [8441:8448] [ERROR][com.freerdp.client.x11] - h264_decompress failure: -1
[10:34:19:056] [8441:8448] [ERROR][com.freerdp.client.x11] - h264_decompress failure: -1
[10:34:19:128] [8441:8448] [ERROR][com.freerdp.client.x11] - h264_decompress failure: -1
[10:34:19:218] [8441:8448] [ERROR][com.freerdp.client.x11] - h264_decompress failure: -1
[10:34:19:281] [8441:8448] [ERROR][com.freerdp.client.x11] - h264_decompress failure: -1

3. Some warnings prompt up while build FreeRDP. One of them are related to /gfx parameter. But i don't know it will cause some issues or not. The compile code and build code is given below. Please advice.
Compile Code
pi@raspberrypi ~/FreeRDP $ sudo cmake -DTARGET_ARCH=ARM -DWITH_WAYLAND=OFF -DWITH_JPEG=ON -DWITH_OPENH264=ON -DCMAKE_PREFIX_PATH=/opt/openh264 -DCMAKE_INSTALL_PREFIX:PATH=/opt/freerdp
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- FreeRDP GIT
-- Git Revision dfa2980
-- Performing Test Wno-unused-result
-- Performing Test Wno-unused-result - Success
-- Performing Test Wno-unused-but-set-variable
-- Performing Test Wno-unused-but-set-variable - Success
-- Performing Test Wno-deprecated-declarations
-- Performing Test Wno-deprecated-declarations - Success
-- Performing Test Wno-deprecated-declarationsCXX
-- Performing Test Wno-deprecated-declarationsCXX - Success
-- Performing Test Wimplicit-function-declaration
-- Performing Test Wimplicit-function-declaration - Success
-- Performing Test Wredundant-decls
-- Performing Test Wredundant-decls - Success
-- Performing Test Wno-builtin-macro-redefined
-- Performing Test Wno-builtin-macro-redefined - Success
-- Performing Test Wno-builtin-macro-redefinedCXX
-- Performing Test Wno-builtin-macro-redefinedCXX - Success
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file execinfo.h
-- Looking for include file execinfo.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file sys/modem.h
-- Looking for include file sys/modem.h - not found.
-- Looking for include file sys/filio.h
-- Looking for include file sys/filio.h - not found.
-- Looking for include file sys/sockio.h
-- Looking for include file sys/sockio.h - not found.
-- Looking for include file sys/strtio.h
-- Looking for include file sys/strtio.h - not found.
-- Looking for include file sys/select.h
-- Looking for include file sys/select.h - found
-- Performing Test HAVE_TM_GMTOFF
-- Performing Test HAVE_TM_GMTOFF - Success
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found.
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for pthread_mutex_timedlock in pthread
-- Looking for pthread_mutex_timedlock in pthread - found
-- Looking for include file sys/eventfd.h
-- Looking for include file sys/eventfd.h - found
-- Looking for include file sys/eventfd.h
-- Looking for include file sys/eventfd.h - found
-- Looking for eventfd_read
-- Looking for eventfd_read - found
-- Looking for include file sys/timerfd.h
-- Looking for include file sys/timerfd.h - found
-- Looking for include file poll.h
-- Looking for include file poll.h - found
-- Looking for ceill
-- Looking for ceill - found
-- Finding recommended feature X11 for X11 (X11 client and server)
--     Disable feature X11 using "-DWITH_X11=OFF"
-- Found X11: /usr/lib/arm-linux-gnueabihf/libX11.so
-- Skipping recommended feature Wayland for Wayland (Wayland client)
-- Skipping optional feature DirectFB for DirectFB (DirectFB client)
--     Enable feature DirectFB using "-DWITH_DIRECTFB=ON"
-- Finding required feature ZLIB for compression (data compression)
-- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.7")
-- Finding required feature OpenSSL for cryptography (encryption, certificate validation, hashing functions)
-- Found OpenSSL: /usr/lib/arm-linux-gnueabihf/libssl.so;/usr/lib/arm-linux-gnueabihf/libcrypto.so (found version "1.0.1e")
-- Skipping optional feature OpenSLES for multimedia (OpenSLES audio / video)
--     Enable feature OpenSLES using "-DWITH_OPENSLES=ON"
-- Finding recommended feature OSS for sound (audio input, audio output and multimedia redirection)
--     Disable feature OSS using "-DWITH_OSS=OFF"
-- Found OSS Audio
-- Finding recommended feature ALSA for sound (audio input, audio output and multimedia redirection)
--     Disable feature ALSA using "-DWITH_ALSA=OFF"
-- Found ALSA: /usr/lib/arm-linux-gnueabihf/libasound.so (found version "1.0.25")
-- Skipping optional feature Pulse for sound (audio input, audio output and multimedia redirection)
--     Enable feature Pulse using "-DWITH_PULSE=ON"
-- Skipping optional feature Cups for printing (printer device redirection)
--     Enable feature Cups using "-DWITH_CUPS=ON"
-- Skipping optional feature PCSC for smart card (smart card device redirection)
--     Enable feature PCSC using "-DWITH_PCSC=ON"
-- Finding recommended feature FFmpeg for multimedia (multimedia redirection, audio and video playback)
--     Disable feature FFmpeg using "-DWITH_FFMPEG=OFF"
-- checking for module 'libavcodec'
--   found libavcodec, version 54.35.0
-- checking for module 'libavutil'
--   found libavutil, version 52.3.0
-- Found FFmpeg: TRUE
-- Skipping optional feature GStreamer_0_10 for multimedia (multimedia redirection, audio and video playback, gstreamer 0.10 version)
--     Enable feature GStreamer_0_10 using "-DWITH_GSTREAMER_0_10=ON"
-- Finding recommended feature GStreamer_1_0 for multimedia (multimedia redirection, audio and video playback)
--     Disable feature GStreamer_1_0 using "-DWITH_GSTREAMER_1_0=OFF"
-- checking for module 'glib-2.0'
--   found glib-2.0, version 2.40.0
-- Found Glib
-- checking for module 'gstreamer-1.0'
--   found gstreamer-1.0, version 1.2.0
-- checking for module 'gstreamer-base-1.0'
--   found gstreamer-base-1.0, version 1.2.0
-- checking for module 'gstreamer-app-1.0'
--   found gstreamer-app-1.0, version 1.2.0
-- checking for module 'gstreamer-audio-1.0'
--   found gstreamer-audio-1.0, version 1.2.0
-- checking for module 'gstreamer-fft-1.0'
--   found gstreamer-fft-1.0, version 1.2.0
-- checking for module 'gstreamer-pbutils-1.0'
--   found gstreamer-pbutils-1.0, version 1.2.0
-- checking for module 'gstreamer-video-1.0'
--   found gstreamer-video-1.0, version 1.2.0
-- Found GSTREAMER_1_0: /usr/lib/arm-linux-gnueabihf/libgstreamer-1.0.so
-- Finding optional feature JPEG for codec (use JPEG library)
-- Found JPEG: /usr/lib/arm-linux-gnueabihf/libjpeg.so
-- Finding optional feature OpenH264 for codec (use OpenH264 library)
-- Found OpenH264: /opt/openh264/lib/libopenh264.so
-- Found OpenH264: /opt/openh264/lib/libopenh264.so
-- Skipping optional feature GSM for codec (GSM audio codec library)
--     Enable feature GSM using "-DWITH_GSM=ON"
-- FreeRDP GIT
-- Finding recommended feature XKBFile for X11 keyboard (X11 keyboard file extension)
--     Disable feature XKBFile using "-DWITH_XKBFILE=OFF"
-- Found XKBFile: /usr/lib/arm-linux-gnueabihf/libxkbfile.so
-- FreeRDP GIT
-- Adding dynamic channel client "rdpei": Input Virtual Channel Extension
-- Adding static channel client server "rdpsnd": Audio Output Virtual Channel Extension
-- Adding static channel client "rail": Remote Programs Virtual Channel Extension
-- Adding device channel client "smartcard": Smart Card Virtual Channel Extension
-- Adding dynamic channel client "disp": Display Update Virtual Channel Extension
-- Adding dynamic channel client server "audin": Audio Input Redirection Virtual Channel Extension
-- Adding device channel client "serial": Serial Port Virtual Channel Extension
-- Adding device channel client "drive": Drive Redirection Virtual Channel Extension
-- Adding device channel client "parallel": Parallel Port Virtual Channel Extension
-- Adding static channel client server "cliprdr": Clipboard Virtual Channel Extension
-- Adding static channel client server "encomsp": Multiparty Virtual Channel Extension
-- Adding dynamic channel client server "echo": Echo Virtual Channel Extension
-- Adding static channel client server "rdpdr": Device Redirection Virtual Channel Extension
-- Adding static channel client server "remdesk": Remote Assistance Virtual Channel Extension
-- Adding dynamic channel client "rdpgfx": Graphics Pipeline Extension
-- Adding dynamic channel client "tsmf": Video Redirection Virtual Channel Extension
-- Finding required feature XRandR for X11 randr (X11 randr extension)
-- Found XRANDR: /usr/lib/arm-linux-gnueabihf/libXrandr.so
-- Finding recommended feature Xext for X11 extension (X11 core extensions)
--     Disable feature Xext using "-DWITH_XEXT=OFF"
-- Found Xext: /usr/lib/arm-linux-gnueabihf/libXext.so
-- Adding static channel client server "drdynvc": Dynamic Virtual Channel Extension
-- Found DocBookXSL: /usr/share/xml/docbook/stylesheet/docbook-xsl
-- Finding required feature XShm for X11 shared memory (X11 shared memory extension)
-- Found XShm: /usr/lib/arm-linux-gnueabihf/libXext.so
-- Finding recommended feature Xinerama for multi-monitor (X11 multi-monitor extension)
--     Disable feature Xinerama using "-DWITH_XINERAMA=OFF"
-- Found Xinerama: /usr/lib/arm-linux-gnueabihf/libXinerama.so
-- Finding recommended feature Xext for X11 extension (X11 core extensions)
--     Disable feature Xext using "-DWITH_XEXT=OFF"
-- Finding recommended feature Xcursor for cursor (X11 cursor extension)
--     Disable feature Xcursor using "-DWITH_XCURSOR=OFF"
-- Found Xcursor: /usr/lib/arm-linux-gnueabihf/libXcursor.so
-- Finding recommended feature Xv for video (X11 video extension)
--     Disable feature Xv using "-DWITH_XV=OFF"
-- Found Xv: /usr/lib/arm-linux-gnueabihf/libXv.so
-- Finding recommended feature Xi for input (X11 input extension)
--     Disable feature Xi using "-DWITH_XI=OFF"
-- Found Xi: /usr/lib/arm-linux-gnueabihf/libXi.so
-- Looking for XITouchClass
-- Looking for XITouchClass - found
-- Finding recommended feature Xrender for rendering (X11 render extension)
--     Disable feature Xrender using "-DWITH_XRENDER=OFF"
-- Found Xrender: /usr/lib/arm-linux-gnueabihf/libXrender.so
-- Finding recommended feature Xfixes for X11 xfixes extension (Useful additions to the X11 core protocol)
--     Disable feature Xfixes using "-DWITH_XFIXES=OFF"
-- Found Xfixes: /usr/lib/arm-linux-gnueabihf/libXfixes.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/FreeRDP

Build Code
pi@raspberrypi ~/FreeRDP $ sudo make
Scanning dependencies of target winpr
[  0%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/synch/address.c.o
[  0%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/synch/barrier.c.o
[  1%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/synch/condition.c.o
[  1%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/synch/critical.c.o
[  1%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/synch/event.c.o
[  1%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/synch/init.c.o
[  2%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/synch/mutex.c.o
[  2%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/synch/semaphore.c.o
[  2%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/synch/sleep.c.o
[  2%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/synch/srw.c.o
[  3%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/synch/timer.c.o
[  3%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/synch/wait.c.o
/home/pi/FreeRDP/winpr/libwinpr/synch/wait.c: In function ‘WaitForMultipleObjects’:
/home/pi/FreeRDP/winpr/libwinpr/synch/wait.c:485:25: warning: ‘signalled_idx’ may be used uninitialized in this function [-Wuninitialized]
/home/pi/FreeRDP/winpr/libwinpr/synch/wait.c:446:19: warning: ‘poll_map’ may be used uninitialized in this function [-Wuninitialized]
[  3%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/locale/locale.c.o
[  3%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/library/library.c.o
[  4%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/file/file.c.o
[  4%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/file/pattern.c.o
[  4%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/comm/comm.c.o
...
[ 69%] Building C object libfreerdp/CMakeFiles/freerdp.dir/core/gateway/ncacn_http.c.o
[ 69%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/dsp.c.o
[ 69%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/color.c.o
[ 69%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/audio.c.o
[ 70%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/planar.c.o
/home/pi/FreeRDP/libfreerdp/codec/planar.c: In function ‘planar_decompress’:
/home/pi/FreeRDP/libfreerdp/codec/planar.c:591:41: warning: ‘rleSizes[2]’ may be used uninitialized in this function [-Wuninitialized]
/home/pi/FreeRDP/libfreerdp/codec/planar.c:588:41: warning: ‘rleSizes[1]’ may be used uninitialized in this function [-Wuninitialized]
/home/pi/FreeRDP/libfreerdp/codec/planar.c:585:41: warning: ‘rleSizes[0]’ may be used uninitialized in this function [-Wuninitialized]
/home/pi/FreeRDP/libfreerdp/codec/planar.c:569:41: warning: ‘rleSizes[3]’ may be used uninitialized in this function [-Wuninitialized]
[ 70%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/bitmap.c.o
[ 70%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/interleaved.c.o
[ 71%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/progressive.c.o
[ 71%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/rfx_decode.c.o
[ 71%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/rfx_differential.c.o
[ 71%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/rfx_dwt.c.o
[ 72%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/rfx_encode.c.o
[ 72%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/rfx_quantization.c.o
[ 72%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/rfx_rlgr.c.o
[ 72%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/rfx.c.o
[ 73%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/region.c.o
[ 73%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/nsc.c.o
[ 73%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/nsc_encode.c.o
[ 73%] Building C object libfreerdp/CMakeFiles/freerdp.dir/codec/ncrush.c.o
...
Scanning dependencies of target rdpgfx-client
[ 90%] Building C object channels/rdpgfx/client/CMakeFiles/rdpgfx-client.dir/rdpgfx_main.c.o
/home/pi/FreeRDP/channels/rdpgfx/client/rdpgfx_main.c: In function ‘rdpgfx_recv_caps_confirm_pdu’:
/home/pi/FreeRDP/channels/rdpgfx/client/rdpgfx_main.c:122:17: warning: unused variable ‘gfx’ [-Wunused-variable]
/home/pi/FreeRDP/channels/rdpgfx/client/rdpgfx_main.c: In function ‘rdpgfx_send_frame_acknowledge_pdu’:
/home/pi/FreeRDP/channels/rdpgfx/client/rdpgfx_main.c:146:17: warning: unused variable ‘gfx’ [-Wunused-variable]
/home/pi/FreeRDP/channels/rdpgfx/client/rdpgfx_main.c: In function ‘rdpgfx_recv_pdu’:
/home/pi/FreeRDP/channels/rdpgfx/client/rdpgfx_main.c:731:17: warning: unused variable ‘gfx’ [-Wunused-variable]
/home/pi/FreeRDP/channels/rdpgfx/client/rdpgfx_main.c: In function ‘rdpgfx_on_open’:
/home/pi/FreeRDP/channels/rdpgfx/client/rdpgfx_main.c:876:17: warning: unused variable ‘gfx’ [-Wunused-variable]
/home/pi/FreeRDP/channels/rdpgfx/client/rdpgfx_main.c: In function ‘rdpgfx_on_close’:
/home/pi/FreeRDP/channels/rdpgfx/client/rdpgfx_main.c:888:17: warning: unused variable ‘gfx’ [-Wunused-variable]
[ 90%] Building C object channels/rdpgfx/client/CMakeFiles/rdpgfx-client.dir/rdpgfx_codec.c.o
[ 91%] Building C object channels/rdpgfx/client/CMakeFiles/rdpgfx-client.dir/rdpgfx_common.c.o
Linking C static library librdpgfx-client.a
[ 91%] Built target rdpgfx-client
Scanning dependencies of target tsmf-client
[ 91%] Building C object channels/tsmf/client/CMakeFiles/tsmf-client.dir/tsmf_audio.c.o
[ 91%] Building C object channels/tsmf/client/CMakeFiles/tsmf-client.dir/tsmf_codec.c.o
[ 92%] Building C object channels/tsmf/client/CMakeFiles/tsmf-client.dir/tsmf_decoder.c.o
[ 92%] Building C object channels/tsmf/client/CMakeFiles/tsmf-client.dir/tsmf_ifman.c.o
[ 92%] Building C object channels/tsmf/client/CMakeFiles/tsmf-client.dir/tsmf_main.c.o
[ 92%] Building C object channels/tsmf/client/CMakeFiles/tsmf-client.dir/tsmf_media.c.o
Linking C static library libtsmf-client.a
[ 92%] Built target tsmf-client
Scanning dependencies of target tsmf-client-ffmpeg-decoder
[ 92%] Building C object channels/tsmf/client/ffmpeg/CMakeFiles/tsmf-client-ffmpeg-decoder.dir/tsmf_ffmpeg.c.o
Linking C static library libtsmf-client-ffmpeg-decoder.a
[ 92%] Built target tsmf-client-ffmpeg-decoder
Scanning dependencies of target tsmf-client-gstreamer-decoder
[ 92%] Building C object channels/tsmf/client/gstreamer/CMakeFiles/tsmf-client-gstreamer-decoder.dir/tsmf_gstreamer.c.o
[ 92%] Building C object channels/tsmf/client/gstreamer/CMakeFiles/tsmf-client-gstreamer-decoder.dir/tsmf_X11.c.o
/home/pi/FreeRDP/channels/tsmf/client/gstreamer/tsmf_X11.c: In function ‘get_shm_id’:
/home/pi/FreeRDP/channels/tsmf/client/gstreamer/tsmf_X11.c:69:2: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘DWORD’ [-Wformat]
/home/pi/FreeRDP/channels/tsmf/client/gstreamer/tsmf_X11.c:69:2: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘DWORD’ [-Wformat]
Linking C static library libtsmf-client-gstreamer-decoder.a
[ 92%] Built target tsmf-client-gstreamer-decoder
Scanning dependencies of target tsmf-client-oss-audio
[ 93%] Building C object channels/tsmf/client/oss/CMakeFiles/tsmf-client-oss-audio.dir/tsmf_oss.c.o
Linking C static library libtsmf-client-oss-audio.a
[ 93%] Built target tsmf-client-oss-audio
Scanning dependencies of target tsmf-client-alsa-audio
[ 94%] Building C object channels/tsmf/client/alsa/CMakeFiles/tsmf-client-alsa-audio.dir/tsmf_alsa.c.o
Linking C static library libtsmf-client-alsa-audio.a
[ 94%] Built target tsmf-client-alsa-audio
Scanning dependencies of target drdynvc-client
[ 94%] Building C object channels/drdynvc/client/CMakeFiles/drdynvc-client.dir/drdynvc_main.c.o
Linking C static library libdrdynvc-client.a
[ 94%] Built target drdynvc-client
Scanning dependencies of target freerdp-client
[ 94%] Building C object client/common/CMakeFiles/freerdp-client.dir/client.c.o
[ 95%] Building C object client/common/CMakeFiles/freerdp-client.dir/cmdline.c.o
[ 95%] Building C object client/common/CMakeFiles/freerdp-client.dir/compatibility.c.o
[ 95%] Building C object client/common/CMakeFiles/freerdp-client.dir/file.c.o
[ 96%] Building C object client/common/CMakeFiles/freerdp-client.dir/__/__/channels/client/tables.c.o
[ 96%] Building C object client/common/CMakeFiles/freerdp-client.dir/__/__/channels/client/addin.c.o
Linking C shared library libfreerdp-client.so
[ 96%] Built target freerdp-client
Scanning dependencies of target generate_argument_docbook
[ 96%] Building C object client/X11/CMakeFiles/generate_argument_docbook.dir/generate_argument_docbook.c.o
Linking C executable generate_argument_docbook
[ 96%] Built target generate_argument_docbook
Scanning dependencies of target xfreerdp-client
[ 96%] Building C object client/X11/CMakeFiles/xfreerdp-client.dir/xf_gdi.c.o
[ 96%] Building C object client/X11/CMakeFiles/xfreerdp-client.dir/xf_gfx.c.o
[ 97%] Building C object client/X11/CMakeFiles/xfreerdp-client.dir/xf_rail.c.o
[ 97%] Building C object client/X11/CMakeFiles/xfreerdp-client.dir/xf_tsmf.c.o
[ 97%] Building C object client/X11/CMakeFiles/xfreerdp-client.dir/xf_input.c.o
[ 97%] Building C object client/X11/CMakeFiles/xfreerdp-client.dir/xf_event.c.o
[ 98%] Building C object client/X11/CMakeFiles/xfreerdp-client.dir/xf_channels.c.o
[ 98%] Building C object client/X11/CMakeFiles/xfreerdp-client.dir/xf_cliprdr.c.o
[ 98%] Building C object client/X11/CMakeFiles/xfreerdp-client.dir/xf_monitor.c.o
[ 98%] Building C object client/X11/CMakeFiles/xfreerdp-client.dir/xf_graphics.c.o
[ 99%] Building C object client/X11/CMakeFiles/xfreerdp-client.dir/xf_keyboard.c.o
[ 99%] Building C object client/X11/CMakeFiles/xfreerdp-client.dir/xf_window.c.o
/home/pi/FreeRDP/client/X11/xf_window.c: In function ‘get_shm_id’:
/home/pi/FreeRDP/client/X11/xf_window.c:339:2: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘DWORD’ [-Wformat]
/home/pi/FreeRDP/client/X11/xf_window.c:339:2: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘DWORD’ [-Wformat]
[ 99%] Building C object client/X11/CMakeFiles/xfreerdp-client.dir/xf_client.c.o
Linking C shared library libxfreerdp-client.so
[ 99%] Built target xfreerdp-client
Scanning dependencies of target xfreerdp.manpage
[100%] Generating xfreerdp.1
Note: Writing xfreerdp.1
[100%] Built target xfreerdp.manpage
Scanning dependencies of target xfreerdp-cli
[100%] Building C object client/X11/cli/CMakeFiles/xfreerdp-cli.dir/xfreerdp.c.o
Linking C executable ../xfreerdp
[100%] Built target xfreerdp-cli

Here is my test environment.
Device: Raspberry Pi 2
pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux

pi@raspberrypi ~ $ cat /etc/*-release
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=raspbian
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

pi@raspberrypi ~ $ more /etc/debian_version
7.8

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux

FreeRDP version: 1.2.4-dev (git dfa2980)
The dependencies i installed for FreeRDP
sudo apt-get install build-essential git-core cmake libssl-dev libx11-dev libxext-dev libxinerama-dev libxcursor-dev libxdamage-dev libxv-dev libxkbfile-dev libasound2-dev libcups2-dev libxml2 libxml2-dev libxrandr-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libxi-dev libavutil-dev libavcodec-dev libxtst-dev libgtk-3-dev libgcrypt11-dev libssh-dev libpulse-dev libvte-2.90-dev libxkbfile-dev libfreerdp-dev libtelepathy-glib-dev libjpeg-dev libgnutls-dev libgnome-keyring-dev libavahi-ui-gtk3-dev libvncserver-dev libappindicator3-dev intltool libgstreamer-plugins-base1.0-dev xsltproc docbook-xsl

The command i use to remote.
xfreerdp -sec-nla /cert-ignore /u: /f /drive:*,hotplug /network:modem /rfx /gfx +gfx-h264 +gfx-thin-client -offscreen-cache +async-update +fonts /v:<IP_ADDRESS>

Question:
1 About OpenH264, i installed it by using below command. Is it correct?
sudo make
sudo make install PREFIX=/opt/openh264

2 How can i fix OpenH264 error shows above?
3 Do i need to fix the error prompted while building the FreeRDP?
4 Is there any other library that i need to install?
Please advice.
Thank you very much.

What are your config.txt settings for the rpi2?  Since you mention it occurs when watching HD video, have you tried increasing the GPU memory allocation?
In the rpi2 config.txt, try setting gpu_mem_1024=256 or gpu_mem_1024=512 to see if it stops the crashes.

@mjhca The setting gpu_mem_1024=512 is in my config.txt. And i finally find out that it doesn't cause by watching HD video. The error will prompt in random time(maybe a few minutes or more than half an hour) during watching video(not only HD). I have tested with latest freerdp (1.2.4-dev git e45ebd8) and still have this problem.
Please advice, thanks.

Hello, I also test same settings on fresh install debian 7.7 and find the same problem. (Remote to server 2012r2)
Below is my build command.
cmake -DWITH_OPENH264=ON -DCMAKE_PREFIX_PATH=/opt/openh264 -DCMAKE_INSTALL_PREFIX:PATH=/opt/freerdp

Can anyone help?
Thank you.

Hi, are there any updates please?
Experiencing the same issue on at least 3 (2 x physical, 1 x virtual hw) Ubuntu systems with freerdp/remmina/openh264 compiled from source code as of 28.08.15. Also, tested with all openh264 releases starting from 1.0 -- the first two releases did not work, the latter ones all gave the same result (disconnect) though. Also, tried using x264 (source code from 28.08.15) -- is that option supposed to function btw?
Please note that https://github.com/FreeRDP/FreeRDP/issues/2850 appears to be the same issue although the target system is a windows client.

@alantm2 #2850 was fixed with #2865, updated now.

@alantm2 As for your errors, could you set export WLOG_LEVEL=trace and have a look at the debug output?

Hi, i have tested with latest freerdp but the screen still fuzzy with lots of errors below.
pi@raspberrypi ~ $ xfreerdp -sec-nla /cert-ignore /u: /f /drive:*,hotplug /sound:sys:pulse /microphone:sys:pulse,format:1 /v:<IP_ADDRESS> /rfx /gfx +gfx-h264 +async-input

[16:44:38:307] [2784:2785] [INFO][com.freerdp.client.common.cmdline] - loading channel rdpdr

[16:44:38:307] [2784:2785] [INFO][com.freerdp.client.common.cmdline] - loading channel rdpsnd

[16:44:38:308] [2784:2785] [INFO][com.freerdp.client.common.cmdline] - loading channel drdynvc

[16:44:38:321] [2784:2785] [WARN][com.freerdp.core.nego] - Error: SSL_NOT_ALLOWED_BY_SERVER

[16:44:38:532] [2784:2785] [INFO][com.freerdp.channels.drdynvc.client] - Loading Dynamic Virtual Channel audin

[16:44:38:534] [2784:2789] [INFO][com.freerdp.channels.rdpdr.client] - Loading device service drive (static)

[16:44:38:535] [2784:2789] [INFO][com.freerdp.channels.rdpdr.client] - registered device #1: SETTINGS (type=8 id=1)

[16:44:38:603] [2784:2785] [INFO][com.freerdp.channels.drdynvc.client] - Loading Dynamic Virtual Channel rdpgfx

[16:44:47:246] [2784:2785] [ERROR][com.freerdp.core] - ERRINFO_SERVER_DENIED_CONNECTION (0x00000007):The server denied the connection.
[16:44:48:751] [2784:2788] [INFO][com.freerdp.channels.rdpdr.client] - registered device #1: SETTINGS (type=8 id=1)

[16:46:03:946] [2784:2793] [WARN][com.freerdp.codec] - DecodeFrame2 state: 0x04 iBufferStatus: 0

[16:46:03:946] [2784:2793] [WARN][com.freerdp.client.x11] - h264_decompress failure: -2002, ignoring update.

[16:46:04:227] [2784:2793] [WARN][com.freerdp.codec] - DecodeFrame2 state: 0x24

[16:46:04:227] [2784:2793] [WARN][com.freerdp.client.x11] - h264_decompress failure: -2003, ignoring update.

[16:46:04:275] [2784:2793] [WARN][com.freerdp.codec] - DecodeFrame2 state: 0x20

[16:46:04:276] [2784:2793] [WARN][com.freerdp.client.x11] - h264_decompress failure: -2003, ignoring update.

[16:46:04:341] [2784:2793] [WARN][com.freerdp.codec] - DecodeFrame2 state: 0x20

[16:46:04:341] [2784:2793] [WARN][com.freerdp.client.x11] - h264_decompress failure: -2003, ignoring update.

[16:46:04:408] [2784:2793] [WARN][com.freerdp.codec] - DecodeFrame2 state: 0x20

[16:46:04:409] [2784:2793] [WARN][com.freerdp.client.x11] - h264_decompress failure: -2003, ignoring update.

[16:46:04:469] [2784:2793] [WARN][com.freerdp.codec] - DecodeFrame2 state: 0x20
...

Any advices?
Thank you.

@RexFan What is your remote system and which resolution do you use? The reason for pull #2865 was that the server side implementation of Windows 8.1 (have not tested current Win10 builds) is buggy and sends broken H264 frames. Your debug messages indicate just that.

@akallabeth My remote system is Windows 2012 R2. I use 1280 x 1024 resolution.

@RexFan So it seems that Windows 2012 R2 is affected by this bug too. I can only recommend disabling H264 until this is fixed by ms.

Looks like windows 10 is the first OS not affected by this bug. Closing due to not-our-fault


osx, workflows and command search panels dont show

What section of this project is the bug in?
Workflows
What is the bug?
workflows and command search panels dont show if you switch to different shell
What is the expected behavior?
i start the tab in zsh, and when i press control-shift-R or control-R, the panels pop up, but if i switch/launch any other shell (bash or fish), the same shortcuts do not show the pop up panels
What is the actual behavior?
if i switch/launch any other shell (bash or fish), the same shortcuts do not show the pop up panels
How would you replicate this bug?
start new tab with zsh, switch to bash, press control-shift-R or control-R and nothing shows up, and the menu options under View menu are grayed out

i launch zsh to set up environment variables for XDG, which fishshell picks up. but then i can't use workflows

Hey @gsiawGH, thanks for filing! I'm going to close this out in favor of https://github.com/warpdotdev/Warp/issues/64. My understanding of the issue you are experiencing is that we do not support subshells, so you aren't getting any of the warp features


First exercises for the "Getting Started with FP" section

This PR includes the first part of the "Getting Started with FP" section, which covers chapter 2 of the red book. We want to verify that the road we're taking with these exercises is the more suitable one given the kind of exercises we can include in the library.
Could you please review, @raulraja @dialelo @juanpedromoreno? Thanks a lot!

LGTM


Change integration test template from Ubuntu 20.04 to Flatcar Linux

Description

Currently tests are failing because of a missing template.
Change integration test template from Ubuntu 20.04.02 to Flatcar Linux (without version).
Acceptance tests

[ ] Have you added an acceptance test for the functionality being added?
[ ] Have you run the acceptance tests on this branch?

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'
...

Release Note
Release note for CHANGELOG:

* resource/virtual_server - change template used for testing

References

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

don't merge yet


Autotune APIs display info for deleted autotune app yamls

Autotune APIs display info for deleted autotune app yamls

This is fixed now, closing it


Royal Institute of Sri Lanka

@Jasonthemenace23 First stage of verification passed, official domain is ric.lk as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@Jasonthemenace23 Thank you for your patience while waiting for a review and processing your request. Pull request merged.


Fix the component tag issue in the BitCheckbox demo page (#2061)

this closes #2061

@maryamhdr & @Cyrus-Sushiant
plz review


TypeError: init() got an unexpected keyword argument 'sign' in ncvx

Hi,
I got the following error when running the simple example of ncvx (https://github.com/cvxgrp/ncvx), I installed cvxpy=1.1.3.
TypeError                                 Traceback (most recent call last)
 in ()
16 objective = cp.sum_squares(A @ x - b)
17 prob = cp.Problem(cp.Minimize(objective), [])
---> 18 prob.solve(method="NC-ADMM")
19 print(f"Objective = {objective.value}")
20 print(f"x = \n{x.value}")
3 frames
/usr/lib/python3.7/multiprocessing/pool.py in get(self, timeout)
655             return self._value
656         else:
--> 657             raise self._value
658
659     def _set(self, i, obj):
TypeError: init() got an unexpected keyword argument 'sign'
I also change the Parameter(shape, nonneg=True) instead of Parameter(shape, sign='positive'). but it still is not working and I got the error about "sign".
I would greatly appreciate it if you could help me.

You should post this as an NCVX issue. What version of NCVX are you using? Can you try installing NCVX from source?

Sorry again,
For installing ncvx=0.2.0 , it needs scsprox>=0.2. But there is just two versions of (0.1.0a1 and 0.1.0a2). So, the requirements for ncvx=0.2.0 are not satisfied and can't install from the source.
ERROR: Could not find a version that satisfies the requirement scsprox>=0.2 (from ncvx) (from versions: 0.1.0a1, 0.1.0a2)

Please follow the installation instructions: https://github.com/cvxgrp/ncvx#installation

I really followed the installation instruction but it is not working for installing ncvx=0.2.0 since it requires scsprox>=0.2 and it is not available.
As you have written in setup.py :  install_requires=["cvxpy >= 1.1", "lap", "scsprox >= 0.2", "numpy"],
I would greatly appreciate it if you could check it.

You installed scsprox from source?

Yes, I installed it from:  https://github.com/bettbra/scsprox as you mentioned.  I installed scsprox from the source by "pip setup.py install".
After installation, I checked the version by "pip list". The version is scsprox 0.1.0a2. Actually, I did not find the scsprox=0.2 as it is required for installing ncvx=0.2.0.

To install from source it's python setup.py install.

Also be sure to uninstall scsprox fully before you install it from source.

To install from source it's python setup.py install.

Sorry, I wrote it wrongly. yes I installed it by "python setup.py install"
I will check it out by reinstalling it again. Thanks


Refactor retry.Do

This is more of a low level function, but has the simplest name. Rename it a bit to discourage usage, and move a few usages over to the simpler functions

@howardjohn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-helm-tests_istio
d07b8f7dae827e1732670ea61f77759e4006eb44
link
true
/test integ-helm-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@howardjohn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-helm-tests_istio
d07b8f7dae827e1732670ea61f77759e4006eb44
link
true
/test integ-helm-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@howardjohn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-helm-tests_istio
d07b8f7dae827e1732670ea61f77759e4006eb44
link
true
/test integ-helm-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@howardjohn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-helm-tests_istio
d07b8f7dae827e1732670ea61f77759e4006eb44
link
true
/test integ-helm-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Viewing PDF in Light Theme

Last year pdf.js released the light theme but I can't use it in this extension yet. It seems that the light theme update hasn't been added to the extension. Could you update it to the light theme version? Cheers.

I'm preparing an update, the progress is at: https://github.com/mozilla/pdf.js/issues/13669
The updated viewer will be dark by default, with an option to choose the light theme in the options page.
Not PDF.js-specific is that I'm trying to get the Chrome Web Store to accept my submissions, details about that are at https://github.com/Rob--W/stackexchange-notifications/issues/31

FYI the published version supports Light theme at the settings page.


[FEATURE] Shortcode for github code

Describe the feature you want 描述你的功能需求
I would like to see a shortcode to embed code from github specifying the file, line start and line end
Useful reference 有价值的参考
Something like that should do the trick, the issue is that this is currently not working. https://github.com/nkmk/hexo-tag-github-code

May I ask what's a good use case for this?

Sure, I write technical blogs detailing vulnerability I found in the source of applications and embedding it directly from github will avoid massive copy-pasting. Same for everyone that write programming blogposts analyzing sources.
Here  you can find an example

I would recommend copy-pasting in these cases. GitHub's links are by no mean permanent. The source repository might be made private or deleted at any time. If a tag or a branch name is used to reference a file instead of its git hash, then the content of the page might also change.

You are correct, closing the issue


Update manage-skype-for-business-online-policies-with-microsoft-365-p…

…owershell.md
Added syntax for Teams PowerShell Module 2.0

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks


jellyfin_10_5: remove unmaintained version

Motivation for this change
This version contains a vulnerability, and isn't maintained. The
original reason to have two jellyfin versions was to allow end-users to
backup the database before the layout was upgraded, but these backups
should be done periodically.
Original decision was on #93654, and in retrospect was a mistake, sorry about that.
This PR will be backported if there is no concerns from other maintainers, cc @nyanloutre, @purcell
This is a follow-up on the discussion that started on #120344.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

This also should fix #120389, and should partially fix #120388 + #120387 once backported.

This fixes https://github.com/NixOS/nixpkgs/issues/120387, not the others.

Do we need a changelog entry?

It feels a bit weird to add it to the release notes, since it's going to be backported to 20.09

It feels a bit weird to add it to the release notes, since it's going to be backported to 20.09

Then I would say we only backport the removal of the package, not the change of the module.
So you need to split the commit in two.
And for 21.05 (i.e. in master) we can get rid of the stateVersion thing but add a changelog entry.

That would mean it would break the config of anyone using Jellyfin and having a stateVersion < 20.09, which would be a shame considering the upgrade should go fine without intervention

which would be a shame considering the upgrade should go fine without intervention

Oh if there's no breaking change in Jellyfin, then this is fine. I just thought a breaking change was why jellyfin_10_5 was created in the first place.

This was not really a breaking change, but more of a warning upstream that the database schema would be auto-migrated

@minijackson Will you make a PR for the backport?

on it


train.py doesn't work

Hello
When I run python3 train.py on a terminal using a GPU, I get an error cuda out of memory, But when I increase the number of GPU and an error pytorch_lightning. Utilities. Exceptions. MisconfigurationException: you requested to check 0.001 of the 'val_dataloader' but 0.001 * 679 < 1. Please increase the 'limit_val_batches' flag. Try at least 'limit_val_batches=0.0014727540500736377', when I change the limit_val_batches value in train.py file according to the error message, And gave me an error cuda out of memory, has been infinite loop, how should I solve??
My environment is PyTorch 1.9.0, Python 3.8(ubuntu18.04) ,Cuda 11.1 , RTX3080.
To be sure I am running python3 map_from_scans. py - path Datasets/SemanticKITTI/dataset/sequences/run directly after the command python3 train. py.

Hi! You need to run python3 map_from_scans. py - path Datasets/SemanticKITTI/dataset/sequences/ to create the ground truth to be used during the training. Regarding the cuda out of memory, it seems that your GPU doesn't have enough memory to run the code. You can change some configs on configs/config.yaml to fit the model in your GPU, for example, decrease the batch_size to 1, or decrease max_range, or decrease num_points.


Script 3  creates exploratory data visualization(s) and table(s)

So i am unable to save to png - but i am seeing that it mgiht a windows issues - were any of you able to save to png? https://www.gitmemory.com/issue/altair-viz/altair/2229/655427611
6:59
I have tried add from suggested colleagues on Slack and no luck

issue might be related to windows. The script works on Zhiyongs system!

NVM issue of pngs resolved by installing additional packages -  npm install -g vega-lite vega-cli canvas

Able to run script and produce the plots!


docs: NO-JIRA github doc update

docs: NO-JIRA github doc update

Obligatory GIF (super important!)

:hammer_and_wrench: Type Of Change

These types will not increment the version number, but will still deploy to documentation site on release:

[x] Documentation

:book: Description

Moved library usage instructions to the top of the readme as that is the first thing most people would want to see
Removed more obscure steps out of the initial readme and into the readme for that specific package, for example most users will not need to import tokens directly, they will just get them from Dialtone CSS.
Put quick start as the first section of contributing
Added some common commands
Moved all contributing documentation that applied to the monorepo as a whole into the root contributing.md. The content left in the package specific contributing.md's should be specific to that package only. There was a lot of duplication here before this was done.

:bulb: Context
Did some GitHub documentation cleanup, it has gotten a bit messy and confusing since all the changes recently.

Added dialtone vue css import to readme's as mentioned earlier today.

:tada: This PR is included in version 9.35.0-beta.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


AZ Login and Request call fails when there is a value in the environment variables for proxy (all_proxy, https_proxy, http_proxy)

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
403 error when a proxy is in place
requests.exceptions.ProxyError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',)))
To Reproduce
have a value set in all_proxy
This is set when a company uses secure tools, e.g. ZScaler
e.g. all_proxy=<IP_ADDRESS>:9400
enter az login
select the account to use
return to the CLI CMD window and a 403 is shown.
To succeed
set all_proxy=
and then execute az login
you can reproduce the same error by executing
"C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe" -c "import requests; print(requests.get('https://login.microsoftonline.com/').status_code)"
Expected behavior
When executing az login from the CLI CMD line a successful login should result in being shown the login page at https://login.microsoftonline.com/
and then success with the available subscriptions shown in the CLI command window
Environment summary

Additional context
Details of a request call shown below
executed first with value in all_proxy and executed second without a value.
first fails and second is successful (200)
"C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe" -c "import requests; print(requests.get('https://login.microsoftonline.com/').status_code)"
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-nmdz9lpd\urllib3\connectionpool.py", line 597, in urlopen
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-nmdz9lpd\urllib3\connectionpool.py", line 807, in _prepare_proxy
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-nmdz9lpd\urllib3\connection.py", line 324, in connect
File "http\client.py", line 919, in _tunnel
OSError: Tunnel connection failed: 403 Forbidden
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-zeusizwz\requests\adapters.py", line 449, in send
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-nmdz9lpd\urllib3\connectionpool.py", line 641, in urlopen
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-nmdz9lpd\urllib3\util\retry.py", line 399, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',)))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-zeusizwz\requests\api.py", line 75, in get
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-zeusizwz\requests\api.py", line 60, in request
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-zeusizwz\requests\sessions.py", line 533, in request
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-zeusizwz\requests\sessions.py", line 646, in send
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-zeusizwz\requests\adapters.py", line 510, in send
requests.exceptions.ProxyError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',)))
C:\Program Files\Microsoft SDKs\Azure.NET SDK\v2.9>set all_proxy=
C:\Program Files\Microsoft SDKs\Azure.NET SDK\v2.9>"C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe" -c "import requests; print(requests.get('https://login.microsoftonline.com/').status_code)"
200
C:\Program Files\Microsoft SDKs\Azure.NET SDK\v2.9>

add to S175

Hi!
I am facing the same problem, when is a solution expected to be delivered?
Cheers
Dirk


-o flag is ignored

$ node_modules/.bin/graphql prepare -p test-dosvit-app-prisma-local -o src/experiments -g graphcool-ts --bindings --save
✔ Bindings for project database written to src/generated/prisma.ts

Did you already have existing settings in your .graphqlconfig file?

@kbrandwijk  .graphqlconfig contents:
projects:
  app:
    schemaPath: "src/schema.graphql"
    includes: ["queries/{booking,queries}.graphql"]
    extensions:
      endpoints:
        default: "http://localhost:4000"
  database:
    schemaPath: "src/generated/prisma.graphql"
    includes: ["database/seed.graphql"]
    extensions:
      prisma: database/prisma.yml
      prepare-binding:
        output: src/generated/prisma.ts
        generator: prisma-ts

But here I run cli manually for a different src and different output, set explicitly in arguments, they should have higher priority over config. Moreover, src and output are described only for one of the projects, described in config, and in cli call I don't reference it. If the config is used, than what is the logic, why it takes second project's configuration?


Fixing the filters UX issue

We don't need to do any flex changes. We just need to move some skills around so the top bar can be the same size or larger than the bottom bar.
At least for the largest monitor size. They will always move around as the monitor size gets smaller.


[k8s] Triage and close Azure Cloud Provider Disk Plug-in issues

https://github.com/kubernetes/cloud-provider-azure/blob/master/docs/azuredisk-issues.md

Issues are managed in https://github.com/kubernetes-sigs/cloud-provider-azure/issues.


Undocumented changes

There are a few differences between the source code of NintendoClients and the documentation which leads to certain undocumented differences
The ones which I have currently found deal with the type/flags and checksums
In https://github.com/Kinnay/NintendoClients/wiki/PRUDP-Protocol#v0-format it says that the "Type and flags" field is two bytes, however your source code shows a version which is one byte
https://github.com/Kinnay/NintendoClients/blob/a022b22d4d1bab16f6dd16f7679bd07546fd7e7b/nintendo/nex/prudp.py#L180-L183
Similarly the checksum is shown to only be one byte, but again your source code shows a version where there it is four bytes
https://github.com/Kinnay/NintendoClients/blob/a022b22d4d1bab16f6dd16f7679bd07546fd7e7b/nintendo/nex/prudp.py#L141-L160
From what I can tell these differing formats are not documented in the Wiki. There may be more as well, which I will leave here as comments if found, but at the moment I only have these 2

I already replied in private, but here's my opinion again:
As you might know, PRUDP was originally invented by Quazal. The 4-byte checksum and 1-byte flags are sometimes seen in games that use the original Quazal Rendez-Vous library, but I've never seen it in any 3DS, Wii U or Switch game.
Because the PRUDP protocol isn't easy to understand and the wiki page is already quite long I didn't want to add text that's unrelated to Nintendo's version of the protocol. Some people might still be interested though, so we tried to come up with a way to explain it in a way that's not confusing:

Describe the parts that are unrelated to Nintendo on a separate page. This would keep the page about the PRUDP protocol clean, but you'd have to move back and forth between the pages if you're working with non-Nintendo games.
Use a different color for the parts that are unrelated to Nintendo. This would make it easy to skip these parts if you only care about Nintendo games. Unfortunately this doesn't seem possible on github.
Add some kind of button that expands/collapses the parts that are unrelated to Nintendo. This seems to be possible with the <details> tag.

I'll probably play around with the third idea, and if it doesn't work out I'll go for the first idea.

Ok the details tag works quite well in my opinion. Let me know if anything is still missing.


OLH-1049 Send an audit event to TxMA when a user submits a report

Proposed changes
OLH-1049 Send an audit event to TxMA when a user submits a report
We create a Lambda that’s subscribed to the suspicious activity SNS topic, so that when the lambda receives a message, it will generate the audit event and send it to the audit event SQS queue. TxMA will pick up messages from the Audit Event Queue
What changed

A new lambda that sends events to TxMA - This handler for this Lambda is built to be generic such that when another Lambda needs to send a message to TxMA(i.e. put a message on the audit event SQS queue, tall they will need to do is add a validation rule, add their transformation logic to convert the received event to a TxMA event and configure their Lambda within the infrastructure code, the transformation logic and validation rule is selected by an event name, so as part of the Lambda, the new event name would need to be configured as an environment variable.
A generic Validator function that will validate an event based on rules.
Error handling to ensure failures messages are sent to the associated DLQ

Why did it change
So that reported suspicious activities can sent to TxMA
Related links
https://govukverify.atlassian.net/browse/OLH-1049
https://govukverify.atlassian.net/browse/OLH-857
https://govukverify.atlassian.net/browse/OLH-1242
https://github.com/alphagov/di-account-management-backend/blob/main/docs/adr/0008-report-a-suspicious-activity.md
Checklists

The lambda should be able to subscribe to the SNS topic.
The lambda should validate the fields .
If validation fails send the message to the DLQ.
If validation is a success , the lambda should then send the event to the audit event queue

Environment variables or secrets

EVENT_NAME - This must always be configured against any new lambda that uses the handler.
[ ] No secrets were added or changed

Permissions
Testing

Deployed to Dev
Publish a suspicious activity message to the SNS topic
Verify a TxMA valid event was sent to the  audit event SQS queue
Verify a failure e.g. due to validation error as sent to the SendSuspiciousActivityToTxMADeadLetterQueue

How to review

Is there a requirement to report how many of these events we emit? We aren't logging anything to show when an event is published so would have to look somewhere else if this was required.

I have added similar logging to other Lambdas that post to queue, there is always a generic log showing message being posted to Queue. No requirement for count as per ticket


Add a driver level check for CUDA11 capable driver before build image creation

If you build the CUDA11 enabled build image on a system with a CUDA 10.2 driver, you will get a fail similar to
oci runtime error: container_linux.go:235: starting container process caused "process_linux.go:339: running prestart hook 1 caused \"error running hook: exit status 1, stdout: , stderr: exec command: [/usr/bin/nvidia-container-cli --load-kmods configure --ldconfig=@/sbin/ldconfig --device=all --compute --utility --require=cuda>=11.0 --pid=57462 /var/lib/docker/overlay2/5a4053aec722d91c7e9849b46b472bb7faf93c565e1b91d6f1b0e3eac7f44df6/merged]\\nnvidia-container-cli: requirement error: unsatisfied condition: cuda >= 11.0\\n\""

Which is a bit unclear. Let's check the system before doing the docker image build and output a more legible warning about needing an updated CUDA11 capable driver.
We can use:
nvidia-smi --query-gpu=driver_version --format=csv

and reference https://docs.nvidia.com/deploy/cuda-compatibility/index.html#binary-compatibility
related to but distinct from: https://github.com/open-ce/open-ce/issues/88
Will be affected by the implementation of: https://github.com/open-ce/open-ce/issues/89
This check will need to look for a driver compatible with the latest CUDA version specified

@dllehr81 was this already completed in a separate issue?


Updated versions of dependencies

This will not work. We need files from src. Please, don't open the same PRs again.


Support unauthenticated and anonymous bind

LDAP allows three authentication modes when using
Simple Authentication for binding: Authenticated
(user, password), unauthenticated (only user) and
anonymous (no user, no password). See RFC4513
Section 5.1 for reference.
This adds support for all three modes by and handling
the ldap-search-user-dn and ldap-search-user-password
flags appropriately.
Signed-off-by: Daniel Mohr<EMAIL_ADDRESS>

Sorry, closing this again. I realized that the changes in your fork are bigger than I thought. This requires quite some rework to make all my patches apply.
I will do my pull requests on the original upstream repo and maintain my own fork in the meantime. Feel free to grab my changes there and do the rework, if you have time ;)

Could you expand a bit on "bigger than I thought"? The upstream repo appears to be unresponsive and we would be willing to make adjustments to accommodate others' use cases.


Constant Vector Operations

Add support for Constant Vectors
Add Constant undef accessors
Add Constant Vector Shuffles
Tests for this and for #104

⛵


x/crypto/bcrypt: memory usage

What version of Go are you using (go version)?
go version go1.9.2 darwin/amd64
Does this issue reproduce with the latest release?
Latest x/crypto/bcrypt
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/henriquechehad/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/qd/mjm4kwn53k3b2zmzl_5pkznh0000gn/T/go-build787818303=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
Description
During the project usage, I noticed that the memory allocation is always increasing during requests and not decreasing after stopping the requests, there's a memory leak. I used pprof to try to find it and saw with the heap that the bcrypt was with almost all the memory usage during the usage. As I don't have experience with bcrypt implementation, I can not ensure that it's the issue. But it sounds like a thing to check. It's by far the project part that is more allocating memory.
(pprof) top --alloc_space
Ignore expression matched no samples
Showing nodes accounting for 160.98s, 98.06% of 164.16s total
Dropped 488 nodes (cum <= 0.82s)
Showing top 10 nodes out of 65
      flat  flat%   sum%        cum   cum%
   137.53s 83.78% 83.78%    137.53s 83.78%  github.com/----/----/vendor/golang.org/x/crypto/blowfish.encryptBlock /Users/henriquechehad/go/src/github.com/---/----/vendor/golang.org/x/crypto/blowfish/block.go
     7.42s  4.52% 88.30%      7.42s  4.52%  runtime.duffcopy /usr/local/go/src/runtime/duff_amd64.s
     5.45s  3.32% 91.62%    142.93s 87.07%  github.com/----/----/vendor/golang.org/x/crypto/blowfish.ExpandKey /Users/henriquechehad/go/src/github.com/----/----/vendor/golang.org/x/crypto/blowfish/block.go
     3.16s  1.92% 93.54%      3.16s  1.92%  runtime.mach_semaphore_signal /usr/local/go/src/runtime/sys_darwin_amd64.s
     2.60s  1.58% 95.13%      2.60s  1.58%  runtime.usleep /usr/local/go/src/runtime/sys_darwin_amd64.s
     2.39s  1.46% 96.58%      2.39s  1.46%  runtime.memclrNoHeapPointers /usr/local/go/src/runtime/memclr_amd64.s
     2.19s  1.33% 97.92%      2.35s  1.43%  syscall.Syscall /usr/local/go/src/syscall/asm_darwin_amd64.s
     0.17s   0.1% 98.02%    145.59s 88.69%  github.com/----/----/vendor/golang.org/x/crypto/bcrypt.CompareHashAndPassword /Users/henriquechehad/go/src/github.com/----/----/vendor/golang.org/x/crypto/bcrypt/bcrypt.go

Seems it's specifically in this function: https://github.com/golang/crypto/blob/master/blowfish/block.go#L115
The code that calls it:
err = bcrypt.CompareHashAndPassword([]byte(hashPassword), []byte(password))

--alloc_space tells you about what functions allocated the most over the lifetime of your program, even if that memory got garbage collected. It's normal to see bcrypt show up there.
To debug a leak you want to use --inuse_space on a profile captured during execution.

Hi @FiloSottile
using --inuse_space:
(pprof) top --inuse_space
Ignore expression matched no samples
Showing nodes accounting for 335.58s, 98.17% of 341.83s total
Dropped 624 nodes (cum <= 1.71s)
Showing top 10 nodes out of 64
      flat  flat%   sum%        cum   cum%
   290.58s 85.01% 85.01%    290.58s 85.01%  github.com/----/----/vendor/golang.org/x/crypto/blowfish.encryptBlock /Users/henriquechehad/go/src/github.com/----/----/vendor/golang.org/x/crypto/blowfish/block.go
    13.58s  3.97% 88.98%     13.58s  3.97%  runtime.duffcopy /usr/local/go/src/runtime/duff_amd64.s
    11.85s  3.47% 92.45%    302.34s 88.45%  github.com/----/----/vendor/golang.org/x/crypto/blowfish.ExpandKey /Users/henriquechehad/go/src/github.com/----/----/vendor/golang.org/x/crypto/blowfish/block.go
     5.71s  1.67% 94.12%      5.71s  1.67%  runtime.mach_semaphore_signal /usr/local/go/src/runtime/sys_darwin_amd64.s
     5.03s  1.47% 95.59%      5.03s  1.47%  runtime.usleep /usr/local/go/src/runtime/sys_darwin_amd64.s
     4.39s  1.28% 96.87%      4.77s  1.40%  syscall.Syscall /usr/local/go/src/syscall/asm_darwin_amd64.s
     4.14s  1.21% 98.08%      4.14s  1.21%  runtime.memclrNoHeapPointers /usr/local/go/src/runtime/memclr_amd64.s
     0.21s 0.061% 98.15%    306.85s 89.77%  github.com/----/----/vendor/golang.org/x/crypto/bcrypt.CompareHashAndPassword /Users/henriquechehad/go/src/github.com/----/----/vendor/golang.org/x/crypto/bcrypt/bcrypt.go
     0.06s 0.018% 98.16%      4.68s  1.37%  runtime.mallocgc /usr/local/go/src/runtime/malloc.go
     0.03s 0.0088% 98.17%      2.38s   0.7%  runtime.findrunnable /usr/local/go/src/runtime/proc.go

To make it easier for us to reproduce your results, can you try writing up a standalone code that we can run? Obviously, we don't want your code to include actual passwords from your production environment. (I wasn't able to reproduce your results, but maybe your usage pattern - the size of the passwords/bcrypt cost - is affecting memory usage.)
If you write it in the form of a benchmark, you can run go test -bench=. -memprofile mem.out to create a memory profile and then run go tool pprof mem.out.

@meirf
Created two examples, one using main() and running it with profile enabled and other way in benchmark format. The first way I could reproduce but not with the second.

https://gist.github.com/henriquechehad/ed720f50fe1bd437d900cd548fd753d9
https://gist.github.com/henriquechehad/c66191032423c2927654c1bd760d2caa

@meirf I tried two ways to reproduce, one with the code in a main(), compiling and using pkg/profile. The other with benchmark. The first way I could reproduce but not with the second.

https://gist.github.com/henriquechehad/3692a2818670881252608fd788b68243
https://gist.github.com/henriquechehad/c66191032423c2927654c1bd760d2caa

Thanks for the clarification @meirf and @FiloSottile. It's not the issue then. Appreciate your help.


Question: does this library allow using gradle v3.3.2 and variants?

It was told in the past that it's not:
https://github.com/StringCare/GradlePlugin/wiki/Plugin-Implementation
But there is a new version 1.2 .
Is this still an issue?

Of course you can use variants, the plugin will look for any XML file with string resources. You can also specify different string file names (by default is strings.xml).
I noticed com.android.tools.build:3.3.0 didn't work properly and 3.1.2 version worked fine at compilation time, so I don't know if it has been fixed in 3.3.2 version.
Have you tried it?


Gitlab runner update

Motivation for this change
Update to latest upstream release.
Also apply the patch from 1.11 to 9.2.0
Things done

[x] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@elseym @fpletz I changed the patch according to your inputs.

Thanks!


Array of arrays

Hi!
Thanks for this useful library first of all!
I can use the FirebaseJsonArray to get an array from a specific level, but I found out the elements can be only values.
Is it possible to have arrays as the elements of each array items?
I want to iterate through the mapValues an elegant way..
{   "fields": {     "temp": {       "arrayValue": {         "values": [           {             "mapValue": {               "fields": {                 "x": {                   "integerValue": "1"                 },                 "y": {                   "integerValue": "21"                 }               }             }           },           {             "mapValue": {               "fields": {                 "x": {                   "doubleValue": 79.536565324568613                 },                 "y": {                   "doubleValue": 21.03846153846154                 }               }             }           },           {             "mapValue": {               "fields": {                 "y": {                   "doubleValue": 20.884615384615387                 },                 "x": {                   "integerValue": "144"                 }               }             }           }         ]       }     },    } },   "createTime": "2022-02-17T18:30:44.121299Z",

If you know the exact relative path  of element  in array or object, you can get through any complex nested element.
No matter the element is array, object or primitive types.
The JSON you post is the object in array.
As you know, FirebaseJsonData that keep the parsing result stored array and object as string, to get array or object from it, you need to cast it to array or object like this.
https://github.com/mobizt/FirebaseJson/blob/9762610f5a45e51ca1050f7770d8dc23aab5c157/examples/BasicUsage/Create/Create.ino#L142-L143
In case to iterate through the nested array, you need to parse top level array to get the member element which stored in FirebaseJsonData.
If  member element (FirebaseJsonData) type is array then cast the FirebaseJsonData to array and iterate this second level array to get value.


🐞 Bug : Sign Up form is not proper when the input field/s is/are invalid/blank

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
Sign Up form UI is not proper when the form is attempted to submit without one or more input fields
Steps To Reproduce

Go to 'https://circuitverse.netlify.app'
Click on Log in in the Navbar
Click on Sign up
Click on Sign Up button without entering one or more fields

Expected Behavior

Screenshots

Device Information [optional]
- OS:
- Browser:
- version:

Additional context
No response
Are you working on this issue?
Yes

its a duplicate #4261

As you have been assigned to #4261, closing this issue


nixos/httpd: remove deprecated extraSubservices option

Motivation for this change
Cleaning up the httpd module.
I would appreciate the efforts of any httpd users who would run their configuration through this branch, compare the generated httpd.conf to their own, and then share the results.
Things done
I have compared several httpd configuration files generated by this new build compared to what 19.09 builds and they are pretty much identical.

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Notify maintainers
cc @

@Izorkin do you run an httpd instance you could generate configuration and test this against?

@aanderse checked on one site - it works. Also used patch #56304
--- /home/user/works/src-nix/nixpkgs/nixos/modules/services/web-servers/apache-httpd/default.nix  2019-10-15 22:41:27.021710619 +0300
+++ /home/user/works/nixops/config-defs/modules/web-servers/apache-httpd/default.nix      2019-10-15 22:42:24.238755660 +0300
@@ -241,7 +241,7 @@

     DefaultRuntimeDir ${mainCfg.stateDir}/runtime

-    PidFile ${mainCfg.stateDir}/httpd.pid
+    PidFile /run/httpd/httpd.pid

     ${optionalString (mainCfg.multiProcessingModule != "prefork") ''
       # mod_cgid requires this.
@@ -260,9 +260,6 @@
       in concatStrings uniqueListen
     }

-    User ${mainCfg.user}
-    Group ${mainCfg.group}
-
     ${let
         load = {name, path}: "LoadModule ${name}_module ${path}\n";
         allModules = map (name: {inherit name; path = "${httpd}/modules/mod_${name}.so";}) apacheModules
@@ -429,7 +426,7 @@

       stateDir = mkOption {
         type = types.path;
-        default = "/run/httpd";
+        default = "/var/spool/httpd";
         description = ''
           Directory for Apache's transient runtime state (such as PID
           files).  It is created automatically.  Note that the default,
@@ -591,6 +588,11 @@
         date.timezone = "${config.time.timeZone}"
       '';

+    systemd.tmpfiles.rules = [
+      "d '${mainCfg.stateDir}' 0750 ${mainCfg.user} ${mainCfg.group} - -"
+      "d '${mainCfg.logDir}' 0750 ${mainCfg.user} ${mainCfg.group} - -"
+     ];
+
     systemd.services.httpd =
       { description = "Apache HTTPD";

@@ -605,31 +607,24 @@
           optionalAttrs mainCfg.enablePHP { PHPRC = phpIni; }
           // optionalAttrs mainCfg.enableMellon { LD_LIBRARY_PATH  = "${pkgs.xmlsec}/lib"; };

-        preStart =
-          ''
-            mkdir -m 0750 -p ${mainCfg.stateDir}
-            [ $(id -u) != 0 ] || chown root.${mainCfg.group} ${mainCfg.stateDir}
-
-            mkdir -m 0750 -p "${mainCfg.stateDir}/runtime"
-            [ $(id -u) != 0 ] || chown root.${mainCfg.group} "${mainCfg.stateDir}/runtime"
-
-            mkdir -m 0700 -p ${mainCfg.logDir}
-
-            # Get rid of old semaphores.  These tend to accumulate across
-            # server restarts, eventually preventing it from restarting
-            # successfully.
-            for i in $(${pkgs.utillinux}/bin/ipcs -s | grep ' ${mainCfg.user} ' | cut -f2 -d ' '); do
-                ${pkgs.utillinux}/bin/ipcrm -s $i
-            done
-          '';
-
-        serviceConfig.ExecStart = "@${httpd}/bin/httpd httpd -f ${httpdConf}";
-        serviceConfig.ExecStop = "${httpd}/bin/httpd -f ${httpdConf} -k graceful-stop";
-        serviceConfig.ExecReload = "${httpd}/bin/httpd -f ${httpdConf} -k graceful";
-        serviceConfig.Type = "forking";
-        serviceConfig.PIDFile = "${mainCfg.stateDir}/httpd.pid";
-        serviceConfig.Restart = "always";
-        serviceConfig.RestartSec = "5s";
+        serviceConfig = {
+          ExecStart = "${httpd}/bin/httpd -f '${httpdConf}'";
+          ExecStop = "${httpd}/bin/httpd -f '${httpdConf}' -k graceful-stop";
+          ExecReload = "${httpd}/bin/httpd -f '${httpdConf}' -k graceful";
+          Type = "forking";
+          PIDFile = "/run/httpd/httpd.pid";
+          Restart = "always";
+          RestartSec = "5s";
+          # User and group
+          User = mainCfg.user;
+          Group = mainCfg.group;
+          # Runtime directory and mode
+          RuntimeDirectory = "httpd";
+          RuntimeDirectoryMode = "0750";
+          # Capabilities
+          AmbientCapabilities = [ "CAP_NET_BIND_SERVICE" "CAP_SETGID CAP_SETUID" ];
+          CapabilityBoundingSet = [ "CAP_NET_BIND_SERVICE" "CAP_SETGID CAP_SETUID" ];
+        };
       };

   };

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review-may-2019/3032/68

The changes look good, they seem to really only remove that functionality. One thing I'm wondering: Could removing this option be a problem for people because they defined their own services with it? What should they use instead in that case?

Thanks for the review @Infinisil.

Could removing this option be a problem for people because they defined their own services with it?

Yes.

What should they use instead in that case?

They should create a NixOS module, or manage their web applications imperatively like they would on any other distribution. Fortunately migration to imperative management is very straight forward. The subservices functionality is seriously lacking and users aren't any worse off simply managing their web applications imperatively.

What's an example of a NixOS module to do this?

Examples of NixOS modules served over httpd include:

limesurvey
mediawiki
moodle
wordpress
zabbixWeb

I'm hoping to land some changes in master before 20.03 to improve the httpd module and bring it up to the quality nginx is at. This PR is setting the stage for such PRs.

Ah right, it's the services you converted to proper modules recently :D
Sounds good then, feel free to merge yourself when you moved the mkRemovedOptionModule :sparkles:


New pull request notification will show wrong branch in a special case

Description
Sorry, this is a bug come from my PR #25812
Reproduce:

create a new repo A, create a file in it
fork it to repo B
push a commit (the most easy way is creating a new file in web) in repo A's main branch

Then you will see:
In repo A, the branch in notification is repo B's main branch, actually the expected branch is repo A's main branch.

In the fork (repo B), it show the repo A's main branch, actually the expected behavior is showing nothing.

Reason:
For newly created empty branch (based on default branch), I want to ignore the notification, so I added this in the SQL query.

And this cause this bug.
In repo A, it will ignore the newly pushed commit because of the condition I mentioned above, and the default branch's latest commit id is changed. So in repo B's main branch, the latest commit id is not same to the repo A's default branch's latest commit id, so it will be picked up as a recently updated branch.
Don't have a good idea about how to fix it now. If someone is interested, it is welcome to create a PR for it.
Gitea Version
latest
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
build
Database
None

I have re-produced the bug in the repo B, and now I'll give it an attempt.

In my trial like this, only the picture 2 is successfully re-produced, and there's nothing like the senario like picture 1. And I reckon that this is just normal.
By the way, maybe we can add a button to "Syncronise Forked Repository" like GitHub.

By the way, maybe we can add a button to "Syncronise Forked Repository" like GitHub.
The feature has been implemented which will be released in v1.23.0


Fixed input/output comparison

@vantuz-subhuman was it correct at the end?

I mixed up, the check is correct, it adds an error if output+fee is LARGER, which is correct. I looked at the comment just above it and confused the comparison =) Apologies

Here's the actual issue found: https://github.com/input-output-hk/rust-cardano/pull/446