text:
local vs deployed - issue with base URL

Hi,
Thank you very much for this wonderful project.
I was playing around with mesop in the last days and locally everything I did worked flawlessly. Now, I wanted to deploy my application on our clusters and do face an issue with paths.
On my local machine, I can access the application via
http://localhost:9000/<page_path>
On our cluster, the deployment is accessible via
https://<CLUSTERNAME>/webapps/mesop/testing/<page_path>
In the latter case, I can see 404 issues in the console, as files can not be accessed on https://<CLUSTERNAME>/.
We tried to hack this by applying a fix in our Dockerfile
RUN sed -i 's|<base href="/".*/>|<base href="/webapps/mesop/testing/" />|' /opt/conda/lib/python3.11/site-packages/mesop/web/src/app/prod/web_package/index.html
Which solved some of the issues, but other requests also refer to the base URL and subsequently fail.
Does mesop support environment-specific configuration files that I could provide to set the base URL dynamically based on the environment the application is running? Or is there a different way I could solve this issue?
Many thanks!

This isn't something that we support right now, but would be good to support - I'll mark this as a feature request

Thank you for the feedback, and considering this as a feature!
We were trying to play around with the gunicorn SCRIPT_NAME variable, but this was also not successful as it then led to issues in other parts of the deployment. We'll hold this one for the moment, but I will update this issue here, in case we do find something in the meantime before this feature is added.

Has there been an update on this issue since I ran in a similar issue? Or does anybody know a workaround?

I found a workaround by modifying the Dockerfile (using Python 3.11), inspired by your idea @elx42. Here are the Dockerfile modifications:
`RUN sed -i 's|href="./styles.css"./>|href="./PAGE_PATH/styles.css" />|' /usr/local/lib/python3.11/site-packages/mesop/web/src/app/prod/web_package/index.html
RUN sed -i 's|href="./favicon.ico"./>|href="./PAGE_PATH/favicon.ico" />|' /usr/local/lib/python3.11/site-packages/mesop/web/src/app/prod/web_package/index.html
RUN sed -i 's|src="zone.js/bundles/zone.umd.js">|src="./PAGE_PATH/zone.js/bundles/zone.umd.js">|' /usr/local/lib/python3.11/site-packages/mesop/web/src/app/prod/web_package/index.html
RUN sed -i 's|src="prod_bundle.js"|src="./PAGE_PATH/prod_bundle.js"|' /usr/local/lib/python3.11/site-packages/mesop/web/src/app/prod/web_package/index.html
RUN sed -i 's|/ui|/PAGE_PATH/ui|' /usr/local/lib/python3.11/site-packages/mesop/web/src/app/prod/web_package/prod_bundle.js
RUN mkdir /usr/local/lib/python3.11/site-packages/mesop/web/src/app/prod/PAGE_PATH
RUN cp -r /usr/local/lib/python3.11/site-packages/mesop/web/src/app/prod/web_package/* /usr/local/lib/python3.11/site-packages/mesop/web/src/app/prod/PAGE_PATH
RUN mv /usr/local/lib/python3.11/site-packages/mesop/web/src/app/prod/PAGE_PATH /usr/local/lib/python3.11/site-packages/mesop/web/src/app/prod/web_package/PAGE_PATH`
The first lines change the path from where index.html reads the different files. For some reason I also had to create a directory of that name. That's what's happening in the bottom lines.
Additionally, I had to integrate mesop into a FastAPI server, as described here. I set the path of the page as well as the route where mesop was mounted to to PATH_PAGE.
While this workaround resolves the issue for me, I believe the relative path handling in mesop needs improvement! This should likely be addressed in the library itself to avoid these manual modifications.

repo: google/mesop


text:
Bug: viewing .usdz in Chrome breaks every time

Description
I'm using glitch.com to view/test my model-viewer scenes and have been for a couple of years. While testing my most recent project I noticed that I'm getting a strange crash every time I am trying to view the AR model in iOS when using Chrome. I assumed it was a user error but then even tested the google animals that are using modelviewer as well as the models straight from modelviewer.dev in chrome. The same scenes work as expected in Safari.
This bug can be reproduced by using Chrome on iOS and attempting to view an AR asset in preview. (Not sure if this matters but I'm using iOS 15.4)
Example File

https://glitch.com/~anasazi-raven-and-pot

Loom Recording

https://www.loom.com/share/9f02e8a3486a4f2aaf8e27a896b49010

Screenshots
The following screenshots were taken from attempting to view models on modelviewer.dev in AR using Chrome iOS:

Loom Recording

https://www.loom.com/share/9f02e8a3486a4f2aaf8e27a896b49010

Version

model-viewer: v1.10.1

Browser Affected

[x] Chrome, version: 99.0.4844.59
[ ] Edge
[ ] Firefox
[ ] IE
[ ] Safari

iOS

[ ] Android
[x] iOS
[ ] Linux
[ ] MacOS
[ ] Windows

AR

[ ] WebXR
[ ] SceneViewer
[x] QuickLook

I have observed the same bug in my app. QuickLook worked for iOS Chrome and iOS Firefox before the update to iOS 15.4. Now it only works for Safari on 15.4.
Before the update to iOS 15.4, I was able to get QuickLook working on iOS Chrome and iOS Firefox with the help of this issue comment from issues/1796. Maybe helpful because it seems that the .usdz file is interpreted as a text file again.

Can confirm here too. On iOS 15.4 iPhone 12 Pro, trying to open USDZ in Chrome, Firefox results in page of text.

Having done some digging, I found this chrome bug report:
https://bugs.chromium.org/p/chromium/issues/detail?id=1302551&q=USDZ&can=2
Where there is a discussion about Content-Disposition header.
In some initial tests, when I set the USDZ file to be served with header Content-Disposition: attachment
the following is observed:

iOS Safari - opens AR QuickLook
iOS Chrome - opens AR QuickLook 🎉
iOS Firefox - opens page of text 😕
iOS Edge - opens AR QuickLook 🎉
iOS Opera - opens a file download dialog 😕

I can confirm @milesgreen findings (thanks for sharing) for:

iOS Safari - opens AR QuickLook
iOS Chrome - opens AR QuickLook 🎉
iOS Firefox - opens page of text 😕

and that  serving USDZ files with an Content-Disposition: attachment header fixed AR QuickLook on iOS Chrome for me.

Hey, can you please share the fix for a beginner please?
Thanks!

@AdrianTabacaru In our case, we have an Apache based server and we simply added the following to the .htaccess file in the root directory.
<FilesMatch "\.usdz$">     Header set Content-Disposition: attachment </FilesMatch>

@AdrianTabacaru my .htacces file looks like this:
<FilesMatch ".+\.(usdz)$">
    Header set Content-Type "model/vnd.usdz+zip"
    Header set Content-Disposition "attachment"
</FilesMatch>

The Header set Content-Type "model/vnd.usdz+zip" row fixed Problems with iOS-Firefox and iOS-Chrome on iOS < 15.4

Thank you for your answers. My .htacces files was empty, I've been trying both:
<FilesMatch ".usdz$"> Header set Content-Disposition: attachment
or
<FilesMatch ".+.(usdz)$">
Header set Content-Type "model/vnd.usdz+zip"
Header set Content-Disposition "attachment"

refreshed the page on the phone and still ASCI text appears on my iPhone iOS 15.4
What am I doing wrong?
Thank you!

Can you guys confirm that accessing this page works on you iOS 15.4 ?
For me it worked on the previous iOS version but after update I get ASCII

Thank you!

Thank you for your answers. My .htacces files was empty, I've been trying both: <FilesMatch ".usdz$"> Header set Content-Disposition: attachment
or
<FilesMatch ".+.(usdz)$"> Header set Content-Type "model/vnd.usdz+zip" Header set Content-Disposition "attachment"
refreshed the page on the phone and still ASCI text appears on my iPhone iOS 15.4 What am I doing wrong?
Thank you!

Based on this code. Seems like you missed the closing tag and missed a backslash. Make sure you copy the exact code
</FilesMatch>

Hey sorry, that was a mistake in the previous post. the .htacces file on the root folder on my webpage is pasted correctly:
<FilesMatch ".usdz$"> Header set Content-Disposition: attachment
but still has the ASCII response on my phone :-)
Shoult it need more time to propagate? I have no idea :-(
Thanks!

The effect is usually immediate on normal servers. I am not sure why it doesn't work for you (I tested it with your QR and can confirm it doesn't work on Chrome 15.4)
Another thing, might be a typo on your post, it is .htaccess with two 's' at the end

Much more weird is that the official  webpage has the same ASCII response behavior on my phone.
https://modelviewer.dev/

I confirm this was fixed using this code:
<FilesMatch ".+\.(usdz)$">     Header set Content-Type "model/vnd.usdz+zip"     Header set Content-Disposition "attachment" </FilesMatch>
in the .htaccess file
Now, I have multiple .htaccess files, one is located on root, one is on public_html folder and another one is in the folder where the .usdz and the .html files sit. I don't know which one does the job, putting it only on root doesn't seem to fix it in the beginning for me.
Also, after making it to work, I have deleted all the .htaccess files on all the folders including the root, deleted the cache on my phone and it looks like now it works without that file. Or maybe tha cache wasn't completely deleted...
Anyway I will put one .htaccess file on root as @Ocupe suggested and I will post here if everything works smoothy.
Thank you @Ocupe for the code and everyone for your support!
Cheers!
Adrian

@Lavosbit hello! Excuse me, were you able to get it to work on Glitch? Thanks!

I think this issue may have been patched somewhere along the way with Chrome 100.
I'm testing on iOS 15.5 beta (19F5047e), Chrome 100.0.4896.77.

Thanks for sharing @milesgreen! I'm going to close this to let others know. Please post if you need me to reopen.

Sooo... I did some more thorough testing. It appears this is in fact still an issue, even with Chrome 100 in iOS 15.4.1. In this instance, event with Chrome 100 but without the Content-Disposition: attachment HTTP header, Chrome will still attempt to display USDZ in-line as text.
But in iOS 15.5 (beta 1 and 2), this is no longer an issue in Chrome, and even without the Content-Disposition: attachment HTTP header, Chrome will display USDZ properly via QuickLook.
So for now, folks may want to keep adding Content-Disposition: attachment, as iOS 15.4 will be around a little while longer.

Ran into the problem myself today with Chrome 100+ on iOS 15.4.1, added the header and it works in both (Safari and Chrome) on iOS fine now... thanks for the help, folks!

From iOS-Chrome, it sounds like they are planning to have this fix go into Chrome 102.

source: gharchive/issue

authors: AdrianTabacaru Lavosbit Ocupe bettto11 charpstar elalish milesgreen orgaralf

repo: google/model-viewer

license_type: permissive

license_source: bigquery


text:
add-missing-semicolon

trivial - typo fix

Hi fenrill058,
Thank you for your PR.
Since the directories we can accept PRs are limited, would you mind to file an issue instead of a PR?

https://github.com/google/mozc/blob/master/CONTRIBUTING.md

Best regards,

source: gharchive/pull-request

repo: google/mozc


text:
Pickup and delivery with Time Windows (PDPTW) with custom start/end locations - python

Hello I'm trying to setup my own pickup and delivery problem with time windows and custom start/end locations using python (3.6) and ortools (Version 7) library. In the below example I have a PDP where I set time windows and start/end locations. The below example will not run - it crashes and I've found some issues. During debugging I've noticed that when I go to set my time_window constraints  NodeToIndex(location_idx) returns -1 . Is there any reason I should even use NodeToIndex in this case? Why Can't I just use location_idx? If I instead use location_idx to set the CumulVar then the code proceeds with time windows set however then fails when going to setup the "pickups_deliveries". I don't think it likes that I'm setting up delivery at an end node. Why is that the case? Can someone recommend how to do this?
Essentially from a high level I want the find the route for a driver at any start point I give it, to go to the depot and pick up 2+ packages and deliver them at different locations.
from __future__ import print_function
from ortools.constraint_solver import routing_enums_pb2
from ortools.constraint_solver import pywrapcp
from ortools.constraint_solver.pywrapcp import RoutingIndexManager, RoutingModel

def create_data_model():
    """Stores the data for the problem."""
    data = {}

    data['time_matrix'] = [
        #Dr #De #C1 #C2
        [0, 5, 3, 10],  # Driver
        [5, 0, 4, 8],  # Depot
        [3, 4, 0, 4],  # Customer 1
        [10, 8, 4, 0]  # Customer 2
    ]

    data['pickups_deliveries'] = [
        [1, 2],
        [1, 3]
    ]

    data['time_windows'] = [
        (0, 0), # driver
        (6, 6), # depot
        (10, 12), # c1
        (12, 16) # c2
    ]

    data['starts'] = [0]
    data['ends'] = [3]
    data['num_vehicles'] = 1
    return data

# todo replace with time one
def print_solution(data, manager: RoutingIndexManager, routing: RoutingModel, assignment):
    """Prints assignment on console."""
    time_dimension = routing.GetDimensionOrDie('Time')
    total_time = 0
    for vehicle_id in range(data['num_vehicles']):

        # Model inspection. Returns the variable index of the starting node of a vehicle route.
        index = routing.Start(vehicle_id)
        plan_output = 'Route for vehicle {}:\n'.format(vehicle_id)
        while not routing.IsEnd(index):
            time_var = time_dimension.CumulVar(index)
            plan_output += '{0} Time({1},{2}) -> '.format(
                manager.IndexToNode(index), assignment.Min(time_var),
                assignment.Max(time_var))
            index = assignment.Value(routing.NextVar(index))

        # handles the end location
        time_var = time_dimension.CumulVar(index)
        plan_output += '{0} Time({1},{2})\n'.format(
            manager.IndexToNode(index), assignment.Min(time_var),
            assignment.Max(time_var))
        plan_output += 'Time of the route: {}min\n'.format(
            assignment.Min(time_var))
        print(plan_output)
        total_time += assignment.Min(time_var)
    print('Total time of all routes: {}min'.format(total_time))

def main():
    """Solve the VRP with time windows."""
    # Instantiate the data problem.
    data = create_data_model()

    # Create the routing index manager.
    manager = pywrapcp.RoutingIndexManager(
        len(data['time_matrix']), data['num_vehicles'], data['starts'],
        data['ends'])

    # Create Routing Model.
    routing = pywrapcp.RoutingModel(manager)

    def time_callback(from_index, to_index):
        """Returns the travel time between the two nodes."""
        # Convert from routing variable Index to time matrix NodeIndex.
        from_node = manager.IndexToNode(from_index)
        to_node = manager.IndexToNode(to_index)
        return data['time_matrix'][from_node][to_node]

    transit_callback_index = routing.RegisterTransitCallback(time_callback)
    routing.SetArcCostEvaluatorOfAllVehicles(transit_callback_index)

    # The code creates a dimension for the travel time of the vehicles, similar to the dimensions
    # for travel distance or demands in previous examples. Dimensions keep track of quantities that
    # accumulate over a vehicle's route. In the code above, time_dimension.CumulVar(index) is the
    # cumulative travel time when a vehicle arrives at the location with the given index.
    time = 'Time'
    routing.AddDimension(
        transit_callback_index,
        30,  # allow waiting time
        30,  # maximum time per vehicle
        False,  # Don't force start cumul to zero.
        time)
    # Returns a dimension from its name. Dies if the dimension does not exist.
    time_dimension = routing.GetDimensionOrDie(time)

    # Add time window constraints for each location except depot.
    for location_idx, time_window in enumerate(data['time_windows']):
        if location_idx == 0:  # idx 0 and 1 are the driver and customer
            continue

        # NodeToIndex returns -1 for end nodes
        index = manager.NodeToIndex(location_idx)
        time_dimension.CumulVar(index).SetRange(time_window[0], time_window[1])

    # Not sure if I need this? Removed for now
    # Add time window constraints for each vehicle start node.
    # for vehicle_id in range(data['num_vehicles']):
    #     # Model inspection. Returns the variable index of the starting node of a vehicle route.
    #     start_index = routing.Start(vehicle_id)
    #     time_dimension.CumulVar(start_index).SetRange(data['time_windows'][0][0],
    #                                                   data['time_windows'][0][1])

    for i in range(data['num_vehicles']):
        routing.AddVariableMinimizedByFinalizer(
            time_dimension.CumulVar(routing.Start(i)))
        routing.AddVariableMinimizedByFinalizer(
            time_dimension.CumulVar(routing.End(i)))

    # Define Transportation Requests.
    for request in data['pickups_deliveries']:
        pickup_index = manager.NodeToIndex(request[0])
        delivery_index = manager.NodeToIndex(request[1])
        routing.AddPickupAndDelivery(pickup_index, delivery_index)
        routing.solver().Add(
            routing.VehicleVar(pickup_index) == routing.VehicleVar(
                delivery_index))
        routing.solver().Add(
            time_dimension.CumulVar(pickup_index) <=
            time_dimension.CumulVar(delivery_index))

    search_parameters = pywrapcp.DefaultRoutingSearchParameters()
    search_parameters.time_limit.seconds = 30
    search_parameters.first_solution_strategy = (
        routing_enums_pb2.FirstSolutionStrategy.PATH_CHEAPEST_ARC)
    assignment = routing.SolveWithParameters(search_parameters)

    if assignment:
        print_solution(data, manager, routing, assignment)

if __name__ == '__main__':
    main()

I believe start and end nodes cannot be visits. So you need more nodes.
Reopen if this is wrong.

Did you resolved this?

authors: ankitjpk axk7812 lperron

repo: google/or-tools

license_source: github-api


text:
Prompter script fixes

Fix max token limit based on latest VertexAI docs
Fix temperature max in help message
Fix hardcoded responses dir
Update to use latest Gemini 1.5 preview in models.py
Clean requirements. Add GitPython dependency for upcoming script.

/gcbrun

repo: google/oss-fuzz-gen


text:
Question about google safe browsing api?

https://developers.google.com/safe-browsing/v4/reference/rest/v4/threatLists/list does not contain any lists of the SUBRESOURCE threat type. Just wanted to confirm if it is going to be made available anytime soon?

See the discussion here: https://groups.google.com/forum/#!topic/google-safe-browsing-api/TcobSWUAVSI
In short, there aren't any plans right now on opening up subresource threat type. The Better Ads Standard API can be used to get the full list (not even hashed)

#119 #127

#127

repo: google/safebrowsing


text:
Support gesture margin for default Scroll

Applying Scroll margin property to all RPC calls to scroll.

Example usage now works as expected:
ad.ui(res='com.android.chrome:id/compositor_view_holder')
    .scroll(margin=100)  # <--- wouldn't have done anything before
    .down(percent=70, speed=700)

This change is

Please help to build and update apk here as well, thank you.

Added .apk file.

Reviewed 2 of 2 files at r1, 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @dshiroma and @ko1in1u)

snippet_uiautomator/android/app/src/main/java/com/google/android/mobly/snippet/uiautomator/UiObject2Snippet.java line 313 at r3 (raw file):

      throws SelectorException {
    Direction direction = Direction.valueOf(directionStr);
    UiObject2 uiObject2 = selector.toUiObject2();

nit: it would be nice to declare these variables as final
Suggestion:
    final Direction direction = Direction.valueOf(directionStr);

    final UiObject2 uiObject2 = selector.toUiObject2();

Done.

repo: google/snippet-uiautomator


text:
better wireguard keys and interface names

pkg/compiler: allow for escaped strings

This adds stringnozescapes to allow parsing of escape sequences in
strings.

wireguard: use wg0, wg1, wg2

This matches more closely what people are used to dealing with. We also
add one additional device for interesting multi-interface effects.

wireguard: increase chance that public and private will correspond

This tests more edge cases, as well as allowing for potentially a
correponding public and private key to be installed.

Haven't messed a lot with this framework. Goal was to do a constant array but seems like stringnoz was the best way to do that. Is that equivalent?

@zx2c4 CIFuzz has detected an error with the compiler_fuzzer. You can view this error by opening the CIFuzz action and selecting the Run Fuzzer section. Sorry we do not have the test case. Uploading the testcase will be enable when the dry_run mode is turned off.

@zx2c4 CIFuzz (new CI tool we are testing) has detected an error with the compiler_fuzzer. It's possible you commit introduced this. The stack trace is here under the run fuzzers section. Sorry we do not have the test case. Uploading the testcase will be enable when the dry_run mode is turned off.

For the record, CIFuzz is green on this PR because it's in dry_run mode so that we annoy people less. But after inspecting this crash it seemed safer to annoy you about :-)

@Leo-Neat  @jonathanmetzman
I can't find the failure stack.
The link says "Run Fuzzers" step was skipped and the build was failed with:
Successfully tagged gcr.io/oss-fuzz/example:latest
2020-02-07 18:00:30,550 - root - DEBUG - Stderr of command 'git clone https://github.com/google/oss-fuzz.git my-git-repo' is Cloning into 'my-git-repo'...
.
2020-02-07 18:00:30,553 - root - ERROR - Invalid commit SHA requested b712a7ecc005c09a12bec43d3d557e3ee93a062d.
Running: docker build -t gcr.io/oss-fuzz/example projects/example
2020-02-07 18:00:30,554 - root - ERROR - Error building fuzzers for project example with commit b712a7ecc005c09a12bec43d3d557e3ee93a062d.
##[error]Docker run failed with exit code 1

This looks like some bug on oss-fuzz side?
Also, the "Upload Crash" step suggests that you may have some typo somewhere (bug vs but):
Run actions/upload-artifact@v1
  with:
    name: bug_report
    path: ./out/but_report
##[error]Path does not exist /home/runner/work/oss-fuzz/oss-fuzz/out/but_report
##[error]Exit code 1 returned from process: file name '/home/runner/runners/2.164.0/bin/Runner.PluginHost', arguments 'action "GitHub.Runner.Plugins.Artifact.PublishArtifact, Runner.Plugins"'.

@zx2c4 Thanks! I will take a closer look today.
The key matching looks interesting. Wonder if we will get some interesting coverage deeper due to this. I was thinking that something like this can make sense, but wasn't qualified enough to understand what needs to match with what and how to calculate that.

I will fix up few things on top:

stringnozescapes looks a bit long on my taste :) Something like binary looks like a good abbreviation for binary blobs.
There is one other const that needs to be updated along with increased number of devices. These few bits across descriptions and native code are unfortunately need to be kept in sync manually for now.

@dvyukov What would you think of getting rid of stringmozescapes and just parsing escapes with that Unquote trick unconditionally for string and stringnoz?

Looking at the code more, I think we indeed need to remove stringmozescapes and instead unescape in  pkg/ast/scanner.go during lexing. stringmozescapes does not make sense with filename + escaped strings can be used in string flags as well (where a set of strings are enumerated offline). Handling this in lexer will make everything simpler and more consistent. Either unescape unconditionally, or do something like:
string[`a05ca84f`]

I think that Unquote method might do the right thing based on the type of quote marks used, which is neat, in case that helps.

Using Quote/Unquote leads to this:
	a	stringnoz["\xa0\\\xa8Ol\x9c\x8e8S\xe2\xfdzp\xae\x0f\xb2\x0f\xa1R`\f\xb0\bE\x17O\b\ao\x8dxC"]
	b	stringnoz["\xb0\x80s\xe8\xd4N\x91\xe3ڒ,\"C\x82D\xbb\x88\\i\xe2i\xc8\xe9\xd85\xb1\x14):M\xdcn"]
	c	stringnoz["\xa0ˇ\x9aG\xf5\xbcdL\x0ei?\xa6\xd01\xc7J\x15S\xb6\xe9\x01\xb9\xff/Q\x8cx\x04/\xb5B"]

which may not be the best way to express them.
Note: if we Unquote we also need to Quote on formatting descriptions.

Yea... A bit wild I suppose.
Another way would be to introduce a new type as you suggested earlier, binary, with normal C notation of
[ 0x12, 0x34, 0x56, 0x78, 0x9a ]

I've fixed these 2 things:
https://github.com/google/syzkaller/commit/d0da558cb16f3fb7cf26f20d24ee89eeb49a6f30
https://github.com/google/syzkaller/commit/18847f55bb3fe9db41e46a2e9e49a9f7c28143af
There was something else wrong with the stringnozescapes impl. Size of wireguard_private_key/wireguard_public_key was 128 bytes, now it goes back to 32.

Another thing: last time I checked coverage reports, we did not have any coverage on ingress path, which is the most interesting. It's expected that we don't get good coverage there (as we don't have packet descriptions), but we don't have any at all. Even bare coverage in the entry to the function. We only collect coverage from syscalls synchronously, but injecting packets into /dev/net/tun generally gives us coverage for other ingress paths. Is it the case that all wireguard packets are processed asynchronously on separate worker threads, or something? Otherwise how can we get coverage of ingress path?

Can that coverage be obtained by sending packets to a local udp socket? Or we need to write to /dev/net/tun? Or something else?

You can provoke ingress by sending udp packets to the local socket, yes.
BUT.
You're never going to fuzz your way to a complete handshake. Er, well, if you could, it would mean the crypto of wireguard is so catastrophically broken.
So, the next thing I plan to send is clamping the set of listen ports and endpoints to:
Ports:

0 [choose any port]
51820
51821
51822

Endpoints:

[0x0] empty
127.0.0.1:51820
127.0.0.1:51821
127.0.0.1:51822

With these endpoints and ports, and the three interfaces, and the now corresponding public/private keys, we'll hopefully get two interfaces chatting with eachother, completing handshakes, eventually.
If you want to submit a patch to do this instead of me, I'm sure you'll do a better job. Otherwise I'll do it.

You're never going to fuzz your way to a complete handshake. Er, well, if you could, it would mean the crypto of wireguard is so catastrophically broken.

Let's see :) maybe with few additional aids...
What exactly does "clamping the set of listen ports and endpoints to" mean? Where do these ports need to appear?
We limit set of socket ports used throughout to just 5 ports:
https://github.com/google/syzkaller/blob/18847f55bb3fe9db41e46a2e9e49a9f7c28143af/sys/linux/socket.txt#L18
We should (hopefully) have coverage on UDP ingress path in general where incoming packets are matched against bound sockets.

Looking at __udp4_lib_rcv we seem to somehow miss delivery to any bound sockets...
We only get some coverage from __udp4_lib_mcast_deliver?
Not sure why execution always goes to that rt->rt_flags & (RTCF_BROADCAST|RTCF_MULTICAST) case...
int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
                         int proto)
      {
              struct sock *sk;
              struct udphdr *uh;
              unsigned short ulen;
    4         struct rtable *rt = skb_rtable(skb);
              __be32 saddr, daddr;
    4         struct net *net = dev_net(skb->dev);

              /*
               *  Validate the packet.
               */
              if (!pskb_may_pull(skb, sizeof(struct udphdr)))
                      goto drop;                /* No space for header. */

    4         uh   = udp_hdr(skb);
              ulen = ntohs(uh->len);
    4         saddr = ip_hdr(skb)->saddr;
              daddr = ip_hdr(skb)->daddr;

              if (ulen > skb->len)
                      goto short_packet;

              if (proto == IPPROTO_UDP) {
                      /* UDP validates ulen. */
    4                 if (ulen < sizeof(*uh) || pskb_trim_rcsum(skb, ulen))
                              goto short_packet;
                      uh = udp_hdr(skb);
              }

    2         if (udp4_csum_init(skb, uh, proto))
                      goto csum_error;

    2         sk = skb_steal_sock(skb);
              if (sk) {
                      struct dst_entry *dst = skb_dst(skb);
                      int ret;

                      if (unlikely(sk->sk_rx_dst != dst))
                              udp_sk_rx_dst_set(sk, dst);

                      ret = udp_unicast_rcv_skb(sk, skb, uh);
                      sock_put(sk);
                      return ret;
              }

              if (rt->rt_flags & (RTCF_BROADCAST|RTCF_MULTICAST))
    2                 return __udp4_lib_mcast_deliver(net, skb, uh,
                                                      saddr, daddr, udptable, proto);

              sk = __udp4_lib_lookup_skb(skb, uh->source, uh->dest, udptable);
              if (sk)
                      return udp_unicast_rcv_skb(sk, skb, uh);

              if (!xfrm4_policy_check(NULL, XFRM_POLICY_IN, skb))
                      goto drop;
              nf_reset_ct(skb);

              /* No socket. Drop packet silently, if checksum is wrong */
              if (udp_lib_checksum_complete(skb))
                      goto csum_error;

              __UDP_INC_STATS(net, UDP_MIB_NOPORTS, proto == IPPROTO_UDPLITE);
              icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0);

              /*
               * Hmm.  We got an UDP packet to a port to which we
               * don't wanna listen.  Ignore it.
               */
              kfree_skb(skb);
              return 0;

      short_packet:
              net_dbg_ratelimited("UDP%s: short packet: From %pI4:%u %d/%d to %pI4:%u\n",
                                  proto == IPPROTO_UDPLITE ? "Lite" : "",
                                  &saddr, ntohs(uh->source),
                                  ulen, skb->len,
                                  &daddr, ntohs(uh->dest));
              goto drop;

      csum_error:
              /*
               * RFC1122: OK.  Discards the bad packet silently (as far as
               * the network is concerned, anyway) as per 4.1.3.4 (MUST).
               */
              net_dbg_ratelimited("UDP%s: bad checksum. From %pI4:%u to %pI4:%u ulen %d\n",
                                  proto == IPPROTO_UDPLITE ? "Lite" : "",
                                  &saddr, ntohs(uh->source), &daddr, ntohs(uh->dest),
                                  ulen);
              __UDP_INC_STATS(net, UDP_MIB_CSUMERRORS, proto == IPPROTO_UDPLITE);
      drop:
    2         __UDP_INC_STATS(net, UDP_MIB_INERRORS, proto == IPPROTO_UDPLITE);
    2         kfree_skb(skb);
    4         return 0;
      }

We should get wireguard coverage here, right?
              sk = __udp4_lib_lookup_skb(skb, uh->source, uh->dest, udptable);
              if (sk)
                      return udp_unicast_rcv_skb(sk, skb, uh);

by looking up the kernel wireguard socket by dst port, right?

It's a normal kernel socket, yea.

You're never going to fuzz your way to a complete handshake. Er, well, if you could, it would mean the crypto of wireguard is so catastrophically broken.

Let's see :) maybe with few additional aids...
What exactly does "clamping the set of listen ports and endpoints to" mean? Where do these ports need to appear?
We limit set of socket ports used throughout to just 5 ports:
https://github.com/google/syzkaller/blob/18847f55bb3fe9db41e46a2e9e49a9f7c28143af/sys/linux/socket.txt#L18
We should (hopefully) have coverage on UDP ingress path in general where incoming packets are matched against bound sockets.

What I mean is that if wg0 has "listen port 8282", then wg1 should have a peer with "endpoint localhost:8282". The goal is for wg1 to be paired to wg0. Or wg1 to wg2 or wg0 to wg2.
So the idea would be to limit endpoints to only localhost ones, and limit endpoint port numbers to only a handful as well.

This should be happening already because all of the sockaddr_in/sockaddr_in6/ipv4_addr/ipv6_addr/sock_port/etc are restricted. They are not necessary restricted to only localhost (they also may point to IP addresses of other net devices), but I would expect them to be restricted enough so that fuzzer can figure out relations eventually.
Since we don't even get to the __udp4_lib_lookup_skb line, I would assume the problem is somewhere else...

Interesting. One quirk to keep in mind is that the path these packets follow is actually here:
static int udp_queue_rcv_one_skb(struct sock *sk, struct sk_buff *skb)
{
[...]
        if (static_branch_unlikely(&udp_encap_needed_key) && up->encap_type) {
                int (*encap_rcv)(struct sock *sk, struct sk_buff *skb);
                encap_rcv = READ_ONCE(up->encap_rcv);
                if (encap_rcv) {
                        int ret;
                        if (udp_lib_checksum_complete(skb))
                                goto csum_error;
                        ret = encap_rcv(sk, skb);

encap_rcv winds up calling into drivers/net/wireguard/socket.c's wg_receive function.

We don't have any coverage in udp_queue_rcv_one_skb at all (it's not called) :(

Or maybe it just all happens asynchronously and we don't see it....

Yea. As you pointed out earlier, the crux comes here:

              if (rt->rt_flags & (RTCF_BROADCAST|RTCF_MULTICAST))
    2                 return __udp4_lib_mcast_deliver(net, skb, uh,
                                                      saddr, daddr, udptable, proto);

              sk = __udp4_lib_lookup_skb(skb, uh->source, uh->dest, udptable);
              if (sk)
                      return udp_unicast_rcv_skb(sk, skb, uh);

Why is this all multicast?
Has lo0 been brought up?
The thing is that what matters for us here with regards to wireguard, though, is not that the udp packets you inject into the tun adapter are making it, but rather that wg0 and wg1 are being given "9292" and "localhost:9292" respectively. If this happens, wg1 will send packets to wg0, and that path should def be hit.

Or maybe it just all happens asynchronously and we don't see it....
I don't know how your coverage algorithms work well enough yet to understand this sentence. But sometimes due to concurrency the coverage tracking misses areas?

Why is this all multicast?

no idea

Has lo0 been brought up?

This is executed for each device, including "lo":
https://github.com/google/syzkaller/blob/18847f55bb3fe9db41e46a2e9e49a9f7c28143af/executor/common_linux.h#L930-L942
What does "are being given "9292" and "localhost:9292" respectively" mean?
The wg* devices are setup the same way as "lo" (except that they are gives different mac/ipv4/ipv6).
Also, how do packets get into wg0 in the first place? If we don't send any packets to wg0, it won't send them to wg1, regardless of the way devices are setup, right?

Sending via a local socket seems to be asynchronous.
The following program works as expected (all calls succeed, so our setup is not totally bogus):
r0 = socket$inet_udp(AUTO, AUTO, AUTO)
bind$inet(r0, &AUTO={AUTO, 0x4e20, @empty}, AUTO)
r1 = socket$inet_udp(AUTO, AUTO, AUTO)
sendto$inet(r1, &AUTO=""/10, AUTO, 0x0, &AUTO={AUTO, 0x4e20, @empty}, AUTO)
recvfrom(r0, &AUTO=""/10, AUTO, 0x0, 0x0, 0x0)

#0 [1092ms] -> socket$inet_udp(0x2, 0x2, 0x0)
#0 [1093ms] <- socket$inet_udp=0x3 errno=0
#0 [1094ms] -> bind$inet(0x3, 0x20000040, 0x10)
#0 [1095ms] <- bind$inet=0x0 errno=0
#0 [1095ms] -> socket$inet_udp(0x2, 0x2, 0x0)
#0 [1097ms] <- socket$inet_udp=0x4 errno=0
#0 [1097ms] -> sendto$inet(0x4, 0x20000080, 0xa, 0x0, 0x200000c0, 0x10)
#0 [1099ms] <- sendto$inet=0xa errno=0
#0 [1100ms] -> recvfrom(0x3, 0x20000100, 0xa, 0x0, 0x0, 0x0)
#0 [1101ms] <- recvfrom=0xa errno=0

However, sendmsg also doesn't give coverage of these UDP functions:
https://gist.githubusercontent.com/dvyukov/89da2c28bdcbcdd7d4dae34966531d9a/raw/0aedd163f6721222b642eb82775d2d5516df76f2/gistfile1.txt

What does "are being given "9292" and "localhost:9292" respectively" mean?

This is what I've been talking about the whole time. If wg0's WGDEVICE_A_LISTEN_PORT is N, then wg1's WGPEER_A_ENDPOINT should be 127.0.0.1:N.

@zx2c4 Sorry I sent the incorrect link for the stack trace. I updated the correct link to the stack trace in my orignal comment and I will also link it here: https://github.com/google/syzkaller/pull/1590/checks

@zx2c4 Sorry I sent the incorrect link for the stack trace. I updated the correct link to the stack trace in my original comment and I will also link it here: https://github.com/google/syzkaller/pull/1590/checks

Seems like everything is okay in the link you pasted. Are any actions here required?

The action is in dry_run mode so it wont surface any failures preventing people from merging pull requests. If you select the Run Fuzzers section, you will see the  following crash: `AddressSanitizer:DEADLYSIGNAL
==11==ERROR: AddressSanitizer: ABRT on unknown address 0x00000000000b (pc 0x0000005ad341 bp 0x7ffd911eed10 sp 0x7ffd911eecf8 T0)
SCARINESS: 10 (signal)
#0 0x5ad341 in runtime.raise runtime/sys_linux_amd64.s:150
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: ABRT runtime/sys_linux_amd64.s:150 in runtime.raise
==11==ABORTING`

@Leo-Neat here is everything I see there, no "AddressSanitizer:DEADLYSIGNAL":
 Run Fuzzers6m 47s
INFO:        0 files found in /tmp/compiler_fuzzer_corpus
Run google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
  with:
    fuzz-time: 600
    dry-run: true
    fuzz-seconds: 600
/usr/bin/docker run --name dfb9de8e6b2998c4c76944a6874ba6a7e7a_a81a03 --label 488dfb --workdir /github/workspace --rm -e INPUT_FUZZ-TIME -e INPUT_DRY-RUN -e INPUT_FUZZ-SECONDS -e FUZZ_SECONDS -e DRY_RUN -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e GITHUB_ACTIONS=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/syzkaller/syzkaller":"/github/workspace" 488dfb:9de8e6b2998c4c76944a6874ba6a7e7a
2020-02-07 21:36:06,085 - root - INFO - Fuzzer report_fuzzer, started.
2020-02-07 21:36:06,085 - root - INFO - Running command: docker run --rm --privileged --volumes-from 9ccb757205ce -e OUT=/github/workspace/out -e FUZZING_ENGINE=libfuzzer -e SANITIZER=address -e RUN_FUZZER_MODE=interactive gcr.io/oss-fuzz-base/base-runner bash -c run_fuzzer report_fuzzer -seed=1337 -len_control=0
2020-02-07 21:38:36,088 - root - INFO - Fuzzer report_fuzzer, finished with timeout.
2020-02-07 21:38:36,089 - root - INFO - Fuzzer report_fuzzer, finished running.
2020-02-07 21:38:36,089 - root - INFO - Fuzzer prog_parselog_fuzzer, started.
2020-02-07 21:38:36,090 - root - INFO - Running command: docker run --rm --privileged --volumes-from 9ccb757205ce -e OUT=/github/workspace/out -e FUZZING_ENGINE=libfuzzer -e SANITIZER=address -e RUN_FUZZER_MODE=interactive gcr.io/oss-fuzz-base/base-runner bash -c run_fuzzer prog_parselog_fuzzer -seed=1337 -len_control=0
2020-02-07 21:41:06,093 - root - INFO - Fuzzer prog_parselog_fuzzer, finished with timeout.
2020-02-07 21:41:06,094 - root - INFO - Fuzzer prog_parselog_fuzzer, finished running.
2020-02-07 21:41:06,094 - root - INFO - Fuzzer compiler_fuzzer, started.
2020-02-07 21:41:06,094 - root - INFO - Running command: docker run --rm --privileged --volumes-from 9ccb757205ce -e OUT=/github/workspace/out -e FUZZING_ENGINE=libfuzzer -e SANITIZER=address -e RUN_FUZZER_MODE=interactive gcr.io/oss-fuzz-base/base-runner bash -c run_fuzzer compiler_fuzzer -seed=1337 -len_control=0
2020-02-07 21:42:51,552 - root - INFO - Fuzzer compiler_fuzzer, ended before timeout.
2020-02-07 21:42:51,575 - root - INFO - Fuzzer compiler_fuzzer, detected error: INFO: Seed: 1337
INFO: 65536 Extra Counters
INFO:        0 files found in /tmp/compiler_fuzzer_corpus

What does "are being given "9292" and "localhost:9292" respectively" mean?

This is what I've been talking about the whole time. If wg0's WGDEVICE_A_LISTEN_PORT is N, then wg1's WGPEER_A_ENDPOINT should be 127.0.0.1:N.

Ah, I see. I wasn't able to associate that with WGDEVICE_A_LISTEN_PORT/WGPEER_A_ENDPOINT words. Everything I know about wireguard is this:
https://github.com/google/syzkaller/blob/18847f55bb3fe9db41e46a2e9e49a9f7c28143af/sys/linux/socket_netlink_generic_wireguard.txt
Re ingress udp coverage, I gave up for today. The code there is insanely complex and assumes knowledge of tons of context. I've filed https://github.com/google/syzkaller/issues/1594 with what I got. I propose to continue there, this PR is closed already.
Thanks

@dvyukov When you go to view raw logs and then Run_Fuzzers do you see something different than attached?
5_Run Fuzzers.txt

@Leo-Neat When I looked at it 15 mins before you question, I see this:
https://github.com/google/syzkaller/pull/1590#issuecomment-584234818
Now I see different logs there, the new logs indeed include "==11==ERROR: AddressSanitizer: ABRT on unknown address 0x00000000000b (pc 0x0000005ad341 bp 0x7ffd911eed10 sp 0x7ffd911eecf8 T0)".

authors: Leo-Neat dvyukov jonathanmetzman zx2c4

repo: google/syzkaller


text:
Add support for multi-pools for workers

We can add different worker pools that are created to match individual job types (e.g. so Plaso can have worker nodes that have more cpu than workers for other job types).  Right now it's one global worker pool.

Will assign this to me for now per our chat yesterday of possibly exploring this option to more efficiently scale out larger tasks such as Plaso vs smaller tasks such as grep.
From a GKE autoscaling perspective, we can consider:

1 Large Task gets a single node for processing
Multiple small tasks can run multiple pods on a single node

Also handy resource: https://medium.com/google-cloud/scale-your-kubernetes-cluster-to-almost-zero-with-gke-autoscaler-9c78051cbf40

Tagging 'celery' because I think we can use built-in functionality for this

authors: aarontp jleaniz wajihyassine

repo: google/turbinia


text:
Run redis-server on subsequent start of devcontainer

Fixes #819

@googlebot I signed it!


text:
Quote module overlapping text

Hey guys,
Just noticed this:

And was wondering if this is something only on my end* or a bug actually.  If so, I'd like to know if it's valuable to issue a PR to fix this.
*I'm using Version 43.0.2336.0 canary (64-bit)
Here is a live demo: https://google.github.io/web-starter-kit/hello-world/styleguide.html#quote

If I'm not mistaken it seems that Roboto font isn't loading, thus the error.

This appears to be an issue with Roboto not loading indeed. As we've halted work on updating the styles/components for WSK 0.5.0 (0.6 comes with a brand new component set), I recommend using the z-index hack proposed by @battaglr as a workaround in the mean time. Sorry we don't have a better answer for this yet, but 0.6 will have more robust styles :)

hey guys, thanks for the feedback :)

authors: addyosmani battaglr joaostein

repo: google/web-starter-kit


text:
Gulp Serve Error

I get this error when I run gulp serve on my root folder.
Error: Cannot find module 'googleapis'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/Users/Adam/Desktop/google-starter/node_modules/psi/index.js:2:18)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

You seem to have not run npm install or have suffered an npm install corruption. Upgrade to latest Node.js and npm ($ npm install -g npm and reinstall.
npm support: https://github.com/npm/npm/issues

authors: arecvlohe sindresorhus


text:
[WIP] Font picker: use virtualized lists

Summary
NOTE: This PR will potentially be closed depending on the decision on #3304

Uses virtualized list for rendering/scrolling the fonts.

[ ] Missing accessibility part/keyboard interaction (e.g. arrow keys movements etc.)

[ ] Missing tests.

Relevant Technical Choices
Since we need to do something similar with loading the right fonts anyway then it seemed to make sense to just customize the existing scrolling logic.

To-do

User-facing changes

Testing Instructions

Fixes #

Closing as not needed.

repo: google/web-stories-wp


text:
Support GORILLAS.BAS

GORILLAS.BAS is getting close:
https://google.github.io/wwwbasic/wip/gorillas.html
But a few things are still broken, will track separately and link to this one.

Blocked by https://github.com/google/wwwbasic/issues/45

Blocked by https://github.com/google/wwwbasic/issues/46

repo: google/wwwbasic


text:
fix(json schema): remove additionalProperties any

Closes #201

Tested:

repo: google/yamlfmt


text:
[derive] Test TryFromBytes output on dataful enums

Makes progress on #367, #1634

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 88.01%. Comparing base (558843e) to head (32544ae).

Additional details and impacted files
@@                 Coverage Diff                 @@
##           test-derive-output    #1665   +/-   ##
===================================================
  Coverage               88.01%   88.01%
===================================================
  Files                      16       16
  Lines                    5805     5805
===================================================
  Hits                     5109     5109
  Misses                    696      696

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

authors: codecov-commenter joshlf

repo: google/zerocopy


text:
Integrating with OSS-Fuzz

Greetings zopfli developers and contributors,
We’re reaching out because your project is an important part of the open source ecosystem, and we’d like to invite you to integrate with our fuzzing service, OSS-Fuzz. OSS-Fuzz is a free fuzzing infrastructure you can use to identify security vulnerabilities and stability bugs in your project. OSS-Fuzz will:

Continuously run all the fuzzers you write.
Alert you when it finds issues.
Automatically close issues after they’ve been fixed by a commit.

Many widely used open source projects like OpenSSL, FFmpeg, LibreOffice, and ImageMagick are fuzzing via OSS-Fuzz, which helps them find and remediate critical issues.
Even though typical integrations can be done in < 100 LoC, we have a reward program in place which aims to recognize folks who are not just contributing to open source, but are also working hard to make it more secure.
We want to stress that anyone who meets the eligibility criteria and integrates a project with OSS-Fuzz is eligible for a reward.
To help you getting started, we can provide you our internal fuzzer for your project that you are welcome to use directly, or to use it as a starting point.
If you're not interested in integrating with OSS-Fuzz, it would be helpful for us to understand why—lack of interest, lack of time, or something else—so we can better support projects like yours in the future.
If we’ve missed your question in our FAQ, feel free to reply or reach out to us at oss-fuzz-outreach@googlegroups.com.
Thanks!
Tommy
OSS-Fuzz Team

This is the fuzz target, zopfli_comopress_fuzzer.cc, as shown below. It uses a header library called FuzzedDataProvider. Please take a look and we are happy that you do consider to use OSS-Fuzz.
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <string>

#include "FuzzedDataProvider.h"
#include "zopfli.h"

// This target should be written in C, since the underlying library is C, but we
// make use of FuzzedDataProvider.

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
  FuzzedDataProvider stream(data, size);

  ZopfliOptions options;
  ZopfliInitOptions(&options);

  const ZopfliFormat format = stream.PickValueInArray(
      {ZOPFLI_FORMAT_GZIP, ZOPFLI_FORMAT_ZLIB, ZOPFLI_FORMAT_DEFLATE});

  unsigned char* outbuf = nullptr;
  size_t outsize = 0;
  std::string input = stream.ConsumeRemainingBytesAsString();

  ZopfliCompress(&options, format,
                 reinterpret_cast<const unsigned char*>(input.data()),
                 input.size(), &outbuf, &outsize);

  if (outbuf != nullptr) {
    free(outbuf);
  }

  return 0;
}

Thank you for doing this in https://github.com/google/oss-fuzz/pull/2631

authors: Google-Autofuzz lvandeve

repo: google/zopfli


text:
How to enable AverageCpcMicros on GenerateHistoricalMetrics in V11's KeywordPlanService?

What is your question?
I am making a request for historical data using the GenerateHistoricalMetrics method on the Services.V11.KeywordPlanService service. In the results that are returned the HasAverageCpcMicros field is false and therefore there is nothing but zero in AverageCpcMicros. What do I have to add to my KeywordPlan to enable this value?
For reference, my sources are publicly available on github, and a full trace log and the output JSON are attached

If you want to include the average_cpc_micros in response, then as initially mentioned by my colleague (Carmela), you will need to set the include_average_cpc as true in the KeywordPlanService.GenerateHistoricalMetrics request. Please note that the historical_metrics_options is an object of the KeywordPlanService.GenerateHistoricalMetrics not just by the keywords ideas. This is the configuration that is missing in your request so the average cpc is missing as well in the response.

Unfortunately, there is no sample code that illustrate setting of this field in KeywordPlanService.GenerateHistoricalMetrics. With this, I would suggest reaching out to the author of the .Net client library via this link to know how you can implement the said field in the KeywordPlanService.GenerateHistoricalMetrics. They are more equipped to provide support on code related concerns.

Regards,
Ernie John
Google Ads API Team

@axtens we will add a new code example in the next release. Thanks for bringing this up.

See https://github.com/googleads/google-ads-dotnet/blob/main/Google.Ads.GoogleAds/examples/Planning/GenerateHistoricMetrics.cs.

authors: AnashOommen axtens

repo: googleads/google-ads-dotnet


text:
I want to use a specific commit

https://github.com/googleads/googleads-mobile-flutter/commit/c758e0f11f08dd5fe454b960dbdd49bdfe6ce685
Hello,
I would like to use the changes from the above commit, but I get an error when setting the version to ^3.0.0. (because the version conflicts with webview_flutter..)
Is there a way to apply these changes with the ^2.4.0 version?
Related issues -> https://github.com/googleads/googleads-mobile-flutter/issues/844

Hi @ji-hyun219
This doesn't seem to describe a plugin's bug or feature request but Flutter package dependency usage. I would recommend you check out using-packages and take a look at Git dependency section. Then you can pick above commit to your forked repository and use it for your project with Git dependency solution instead of a published version ^3.0.0.
Your question is best suited for support channels like StackOverflow, so please ask the same there for solutions if any. Closing the issue from here.

repo: googleads/googleads-mobile-flutter


text:
Python GAPIC: datastore v1

This pull request was generated by artman. Please review it thoroughly before merging.

This is broken because the version number is wrong. Will fix after lunch.

repo: googleapis/api-client-staging


text:
Add bundling support for Gax Node.JS

Fixes #22

[Current coverage][cc-pull] is 92.48%

Merging [#25][cc-pull] into [master][cc-base-branch] will decrease coverage by 0.07%

@@             master        #25   diff @@
==========================================
  Files             6          8     +2
  Lines           739        918   +179
  Methods          97        125    +28
  Messages          0          0
  Branches        163        192    +29
==========================================
+ Hits            684        849   +165
- Misses           55         69    +14
  Partials          0          0

Powered by Codecov. Last updated by [b199060...bceb503][cc-compare]
[cc-base-branch]: https://codecov.io/gh/googleapis/gax-nodejs/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/googleapis/gax-nodejs/compare/b1990606276f51ec1009e427810b3c03348834ef...bceb5033e3ecbf2cb2a8c840a564d3f3770514e6
[cc-pull]: https://codecov.io/gh/googleapis/gax-nodejs/pull/25?src=pr

@geigerj, can you take a look?

Done for copying response objects and limits. PTAL.

Some questions, mostly related to using NodeJS timeout in tests. Otherwise looks good.

Just one more nit.
LGTM

authors: codecov-io geigerj jmuk

repo: googleapis/gax-nodejs


text:
Release Google.Cloud.VpcAccess.V1 version 1.1.0

Changes in this release:

Commit ac367e2: feat: Regenerate all APIs to support self-signed JWTs

Created release for Google.Cloud.VpcAccess.V1-1.1.0

Documentation error:
Unhandled exception. System.ArgumentException: Unable to determine real package for page Google.Cloud.ExtendedOperationsExtensions in package Google.Cloud.VpcAccess.V1
   at Google.Cloud.Tools.GenerateCanonicalLinks.Canonicalizer.MaybeAdjustPackage(String package, String page) in T:\src\github\google-cloud-dotnet\releasebuild\tools\Google.Cloud.Tools.GenerateCanonicalLinks\Canonicalizer.cs:line 166
   at Google.Cloud.Tools.GenerateCanonicalLinks.Canonicalizer.GetUrl(String package, String page) in T:\src\github\google-cloud-dotnet\releasebuild\tools\Google.Cloud.Tools.GenerateCanonicalLinks\Canonicalizer.cs:line 115
   at Google.Cloud.Tools.GenerateCanonicalLinks.Program.Canonicalize(String api) in T:\src\github\google-cloud-dotnet\releasebuild\tools\Google.Cloud.Tools.GenerateCanonicalLinks\Program.cs:line 47
   at Google.Cloud.Tools.GenerateCanonicalLinks.Program.Main(String[] args) in T:\src\github\google-cloud-dotnet\releasebuild\tools\Google.Cloud.Tools.GenerateCanonicalLinks\Program.cs:line 30

But the package wasn't pushed to nuget. Or at least I can't see it still: https://www.nuget.org/packages/Google.Cloud.VpcAccess.V1/

If the doc building fails, it's not pushed. It's weird that this one has failed when others succeeded though - this should be fixed by https://github.com/googleapis/google-cloud-dotnet/pull/7119/commits/e03affc8f29e5d9a2f331d02aa2f9d6ee2c18af5
I'll look into it tomorrow.

I checked all the logs for the ones that failed, and it's the same failure.
I checked several of the ones that succeeded and none depend on Google.LongRunning, I think that everything that depended on Google.LongRunning failed.

Yes, that doesn't surprise me. Will look into it in more detail tomorrow. Hopefully we can work out some way of avoiding untagging everything...

authors: amanda-tarafa jskeet yoshi-automation

repo: googleapis/google-cloud-dotnet


text:
fix(deps): bump google-gax to ^3.5.8

Fixes dependency vulnerability in google-gax -> protobufjs-cli
Fixes #4116 🦕

I am uncertain if I am supposed to run npm install on each package individually. Please let me know what other changes I need to make to get this mergeable.

/gcbrun

Thanks @EduardoBautista, I'll take it from here!

/gcbrun

/gcbrun

authors: EduardoBautista alexander-fenster

repo: googleapis/google-cloud-node


text:
SessionsClient does not allow for setting region (locations)

Is your feature request related to a problem? Please describe.
We are operating in EU region and we need to use europe-west1.
According to https://cloud.google.com/dialogflow/es/docs/how/region we should change both: API endpint and session name.
However, current SessionClient does not allow putting location into session identifier.
Describe the solution you'd like
We want to add support of location param to API methods and session id handling.
Describe alternatives you've considered
I don't see any alternatives to extend current client API to be compatible with the service API.
Additional context
Could not map bindings for google.cloud.dialogflow.v2.Sessions/DetectIntent to any Uri template. Bindings: Array ( [session] => projects/agent-kamil-be-veii/locations/europe-west1/fakesessionid ) UriTemplates: Array ( [0] => /v2/{session=projects/*/agent/sessions/*}:detectIntent [1] => /v2/{session=projects/*/agent/environments/*/users/*/sessions/*}:detectIntent )

Yeah, seems nobody cares about this project on github :sweat_smile:
It is finally solved in v0.20.0+ so I'm closing.

repo: googleapis/google-cloud-php


text:
chore: release 0.112.0

:robot: I have created a release *beep* *boop*
0.112.0
google/cloud-bigquery 1.12.1
Bug Fixes

Fix fluent setter in ExtractJobConfiguration (#2328) (29e58d4)
Fix incorrect return value in LoadJobConfiguration (#2327) (3453a5a)

google/cloud-vision 0.24.0
Features

Add safe search annotation confidence scores. (#2326) (c32f604)

This PR was generated with Release Please.

Release is at https://github.com/googleapis/google-cloud-php/releases/tag/v0.112.0


text:
Update langchain_quick_start.ipynb

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

[x] Make sure to open an issue as a bug/issue before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
[x] Ensure the tests and linter pass
[x] Code coverage does not decrease (if any source code was changed)
[x] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

#154

https://github.com/googleapis/langchain-google-alloydb-pg-python/pull/154/commits/490786acf3356d480e02829c83f6c4bd34faac3b

This seems a little suspicious @averikitsch we may want to monitor this, I can't tell if this user is trying to be malicious or not


text:
docs: Samples and tests for Database Admin Client APIs

This PR contains sample files and their integration tests for the database admin client APIs.

LGTM, please make sure you correct the close() methods invocation before merging.

repo: googleapis/nodejs-spanner


text:
feat: adds the capability to include custom user agent string

Adds the ability to include a custom prefix in the user agent string.
Also includes a feature that allows the hyphen in the legacy user agent string to be replaced by a slash to be more in line with RFC9110.
Current default user agent (product + delimiter + version):
Legacy: pandas-2.0.1
RFC9110: pandas/2.0.1
With a prefix:
Legacy: <your_custom_string> pandas-2.0.1
RFC9110: <your_custom_string> pandas/2.0.1
Fixes #807  🦕

Follow-up:
In a future major release (aiming for Q4 2024), deprecate the legacy format of the user agent string.
See details here.

repo: googleapis/python-bigquery-pandas


text:
feat(node-workspace): maintain current version range prefix

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

[ ] Make sure to open an issue as a bug/issue before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
[ ] Ensure the tests and linter pass
[ ] Code coverage does not decrease (if any source code was changed)
[ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

Hey, I have seen https://github.com/googleapis/release-please/pull/1580 and saw a suggestion to maintain the current range prefix when doing a release. That would work for us in the Puppeteer project (currently, we rely on a custom script to pin dependencies that does not update the changelog). Let me know if you think this approach would make sense and I will look into improving test coverage (hints are welcome).

repo: googleapis/release-please


text:
NodeJS: Docs. Update to add member tags and remove external semantics.

What

If there was name collisions between grpc types and manually written types, the the documentation for the manual type would get overwritten by the rpc type.
DPEs would like the common protos types to be treated the same as  the rest of the types since it makes the docsite flow better.

Fixes.

Add @member tag to the type docs
Remove external semantics.

Codecov Report

Merging #1595 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #1595      +/-   ##
============================================
+ Coverage     87.02%   87.03%   +<.01%
+ Complexity     4231     4229       -2
============================================
  Files           408      408
  Lines         16992    16986       -6
  Branches       1850     1847       -3
============================================
- Hits          14787    14783       -4
+ Misses         1709     1708       -1
+ Partials        496      495       -1

Impacted Files
Coverage Δ
Complexity Δ

...ormer/nodejs/NodeJSGapicSurfaceDocTransformer.java
92.59% <ø> (-0.27%)
6 <0> (ø)

...ogle/api/codegen/viewmodel/GrpcMessageDocView.java
100% <ø> (ø)
3 <0> (ø)
:arrow_down:

...codegen/transformer/GrpcElementDocTransformer.java
100% <100%> (ø)
12 <0> (ø)
:arrow_down:

.../transformer/py/PythonGapicSurfaceTransformer.java
98.24% <100%> (ø)
42 <0> (ø)
:arrow_down:

...codegen/transformer/nodejs/NodeJSSurfaceNamer.java
91.47% <100%> (+1.02%)
74 <0> (ø)
:arrow_down:

.../com/google/api/codegen/viewmodel/GrpcDocView.java
100% <100%> (ø)
3 <1> (ø)
:arrow_down:

...ogle/api/codegen/util/js/JSCommentReformatter.java
100% <100%> (ø)
6 <4> (-2)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 04151bf...b7f74f0. Read the comment docs.

authors: codecov-io landrito

repo: googleapis/toolkit


text:
What is the relationship between the value of submaps.high_resolution and robot positioning accuracy?

hello,
I am tuning the parameter of cartographer according to https://google-cartographer-ros.readthedocs.io/en/latest/#. I want to know What the relationship is between the value of submaps.high_resolution and robot positioning accuracy?
thanks for your answer.

According to may knowledge, cartographer provide sub-pixel accuracy using ceres-scan-match. But high resolution does not always provides high positioning accuracy, as ceres-scan-match is very sensitive to initial pose and has rather small convergence domain(which means the result of scan-match is likely to diverge).

if everything is fine, resolution size impacts accuracy, the smaller the better (optimization is converged).

authors: Yu-Xiaoxian huangshuqing qmx066

repo: googlecartographer/cartographer


text:
Mark nodes that have been optimized (for visualization)

After optimization_problem_.Solve, mark nodes as solved for visualization or pass the first not-yet-optimized node id, so later visualization can show what has been optimized.

Fixed by https://github.com/googlecartographer/cartographer_ros/pull/756


text:
Unblock cmap compile type

Fix issues blocking cmap compile type. Fixes #269. Fixes #270. Fixes #273.
Names that violate _offset(s) naming convention now get nice errors instead of compile issues in generated code:
Error:
  × parsing failed
    ╭─[resources/codegen_inputs/test_records.rs:9:1]
  9 │ table BasicTable {
 10 │     padded: Offset32<PadLikeCmap>,
    ·     ───┬──
    ·        ╰── name must end in _offset
 11 │     #[compile(array_len($simple_records))]
    ╰────

Skip getter will complain if no way to acquire a value is defined, such as when applied to a reserved field:
 10 │     #[skip_getter]
 11 │     _reserved: u16,
    ·     ────┬────
    ·         ╰── There is no getter and no defined way to get a value. Perhaps you need ...?

Would it be possible to split this up a bit?

Will do. Hopefully we can merge those quickly, the chain of dependencies for some downstream PRs is growing a little long.

Closing this; will open smaller narrower PRs for it's parts.

repo: googlefonts/fontations


text:
com.google.fonts/check/glyph_coverage crash

Observed behaviour
com.google.fonts/check/glyph_coverage
    Check Google Fonts glyph coverage.
    with fonts/Nabla.ttf

      Rationale:

      Google Fonts expects that fonts in its collection support at least the
      minimal set of characters defined in the `GF-latin-core` glyph-set.

    ERROR Failed with IndexError: list index out of range
          ↳ File
          "/Users/just/code/git/nabla/venv/lib/python3.10/site-packages/fontbake
          ry/checkrunner.py", line 194, in _exec_check
          for sub_result in result:  # Might raise.
          ↳ File
          "/Users/just/code/git/nabla/venv/lib/python3.10/site-packages/fontbake
          ry/profiles/googlefonts.py", line 1068, in
          com_google_fonts_check_glyph_coverage
          f"{bullet_list(config, missing)}")
          ↳ File
          "/Users/just/code/git/nabla/venv/lib/python3.10/site-packages/fontbake
          ry/utils.py", line 215, in bullet_list
          pretty_print_list(config,
          ↳ File
          "/Users/just/code/git/nabla/venv/lib/python3.10/site-packages/fontbake
          ry/utils.py", line 210, in pretty_print_list
          return f"{joined_items_str} {glue} {str(values[-1])}"

    Result: ERROR

Resources and exact process needed to replicate
Nabla.ttf.zip

Should be fixed in #3833

yes, I agree. I will cut a new release soon

I've run fontbakery from git main branch on Nabla.ttf and it is not crashing anymore. Marc is right, 0.8.10 will include the fix for this. So closing the issue now. I am planning a release by this Friday.

authors: felipesanches justvanrossum m4rc1e

repo: googlefonts/fontbakery


text:
Shard boundary semantics now supported for gRPC.

Goes along with https://github.com/googlegenomics/utils-java/pull/54
Tested this via:

utils-java/refactor-part1: mvn install
dataflow-java/refactor-redo: mvn verify

Looks good! I expect the Travis error is because utils isn't updated yet.

authors: deflaux jean-philippe-martin

repo: googlegenomics/dataflow-java


text:
Wikigeo full page

Wikigeo data where instead of taking the 3 sentences in a page as one sample takes all sentences and creates a sample per sentence

The comparison sould be to - /mnt/hackney/data/cabby/wikigeo/wikigeo_pittsburgh_raw_9.json
(this version doesn't have duplicate text).  This version has 18,258  wherase the current v11 version has 19,908.

Fixed now there are 33216 for Pittsburgh

repo: googleinterns/cabby


text:
Included the basic setup for the search feature

Included the JSP files required to begin work on the nav bar and basic structure to begin templating.

This is what the basic implementation currently looks like


text:
MyLocation Marker is always behind custom markers

Hi.
When is set the map to display MyLocation map.isMyLocationEnabled = true, the blue dot marker always seems to have a lesset zIndex that any other marker. Is there a way to change the ZIndex of the myLocation marker so it always displays above other markers (including cluster ones)
Thanks

This looks like a question for Google Maps SDK for iOS. Please raise the question on this bug tracker instead.

authors: PatoSalazarNascent domesticmouse

repo: googlemaps/google-maps-ios-utils


text:
Fix to image's number of pixels calculation

According to BitmapFactory.Options.inSampleSize documentation

The sample size is the number of pixels in either dimension that correspond to a single pixel in the decoded bitmap. For example, inSampleSize == 4 returns an image that is 1/4 the width/height of the original, and 1/16 the number of pixels.

So the number of pixels can be obtained by dividing the original number of pixels by the 2nd power of the inSampleSize, instead of just by the inSampleSize: this made some sampled images look pixelated because inSampleSize became way much larger than needed.
The step to reproduce the bug is by trying to put very large images (eg. panoramic ones) into much smaller square thumbnails.

Hi,
I’ve signed the CLA. I hope my contribution will be useful!
Greetings,
Cristina
Il giorno 26 gen 2017, alle ore 11:38, googlebot <notifications@github.commailto:notifications@github.com> ha scritto:
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
📝 Please visit https://cla.developers.google.com/ to sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.

If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA datahttps://cla.developers.google.com/clas and verify that your email is set on your git commitshttps://help.github.com/articles/setting-your-email-in-git/.
If you signed the CLA as a corporation, please let us know the company's name.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/googlesamples/android-DisplayingBitmaps/pull/5#issuecomment-275357669, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AG8_-EnMSts_JpIf8_AT8W165-I1P-yKks5rWHeagaJpZM4Luf1D.

Thanks. This sample is now very old and is in the process of being reviewed. We will attempt to merge your change into our internal repo if possible (which then gets pushed back out to github). In general though, the bitmaps training docs and sample are meant to be illustrative and we highly recommend using Glide (https://github.com/bumptech/glide) or a similar image loading library for real-world production image loading in your app.

authors: adamkoch artemisia-absynthium

repo: googlesamples/android-DisplayingBitmaps


text:
how to Migration old nullable table column

I am trying to support room db component but one crash I can not find any useful answer:
The crash log just like:
 java.lang.RuntimeException: Unable to resume activity
: java.lang.IllegalStateException: Migration didn't properly handle search_record(entity.user.SearchRecord).
                                                                     Expected:
                                                                    TableInfo{name='search_record', columns={_id=Column{name='_id', type='INTEGER', notNull=true, primaryKeyPosition=1}, search_num=Column{name='search_num', type='INTEGER', notNull=true, primaryKeyPosition=0}, key_word=Column{name='key_word', type='TEXT', notNull=false, primaryKeyPosition=0}, recent_date=Column{name='recent_date', type='INTEGER', notNull=true, primaryKeyPosition=0}}, foreignKeys=[], indices=[]}
                                                                     Found:
                                                                    TableInfo{name='search_record', columns={_id=Column{name='_id', type='INTEGER', notNull=false, primaryKeyPosition=1}, search_num=Column{name='search_num', type='INTEGER', notNull=false, primaryKeyPosition=0}, key_word=Column{name='key_word', type='TEXT', notNull=false, primaryKeyPosition=0}, recent_date=Column{name='recent_date', type='INTEGER', notNull=false, primaryKeyPosition=0}}, foreignKeys=[], indices=[]}

It seems that the old db table created before is designed notNull = false , but the room only allow notNull = true int column . so is there any way for me to migration the table without delete table and recreate a new one.

@george5613 I met this problem too, I updated room to 1.0.0-rc1, when I add new columns to a table, it just crashed , and I found this for a while , old nullable column must be not null , but how can I do in migrations?
-id=Column{name='id', type='TEXT', notNull=true, primaryKeyPosition=1},
+id=Column{name='id', type='TEXT', notNull=false, primaryKeyPosition=1},
-time_stamp=Column{name='time_stamp', type='INTEGER', notNull=true, primaryKeyPosition=0},
+time_stamp=Column{name='time_stamp', type='INTEGER', notNull=false, primaryKeyPosition=0},
-state=Column{name='state', type='INTEGER', notNull=true, primaryKeyPosition=0},
+state=Column{name='state', type='INTEGER', notNull=false, primaryKeyPosition=0}

@yaraki Since the part of room component annotationProcessor SDK is not open source At this moment. The only way to solve this problem is follow the way in the sample :
1.Create a tmp table
2.Insert old rows to the tmp table
3.Drop old table
4.Rename the tmp table the same as the old one.
Maybe it has another simple solution but for me it's the only way I can find now.

Today i faced this issue too. But, after spending some time in thinking i came up with this little idea which solved the issue. So, the idea is to use  data type as Integer instead of int. int is a primitive data-type so it cant be null but Integer is a class so object of this class can be null.


text:
How to rebuild detector after orientation change?

I'm working on React Native application component that uses vision API.
It works fine in native up but when I launch the same in RN app - face tracker stops working.
I do
mCameraSource.stop();
that rebuilds my preview. But I'm getting

inconsistent image dimensions
E/pittpatt: detector.cc:220] inconsistent image dimensions
E/NativeFaceDetectorImpl: Native face detection failed
java.lang.RuntimeException: Error detecting faces.

in Face Tracker. I found somewhere that I need to rebuild tracker but I don't know how.
I've tried
mDetector.release();             mProcessor.release();
still having tracking working.

My guess is that the app is somehow passing in images of different size during face tracking.  The assumption is that all images passed in are of the same dimension -- this is what you'd expect when using images from the camera, for example.
If you know of an image dimension change (e.g., as a result of rotating the camera) you should stop the camera source and use a new instance of camera source.

repo: googlesamples/android-vision


text:
voice input example?

Hi i'm trying to do implement this with voice input request but the current sample only supports text input. Do i configure the config file to include audioIn and remove the 'delete request.audio_in' and 'text_query' to enable audio request mode?
I have searched online but cant seem to find any documentations on how to do this. Helps will be much appreciated! Thanks~!

Yeah, you'll need to create an AudioInConfig instead of the text query and then start sending audio_in bytes up until you decide to close the connection or you receive AssistResponse.event_type.END_OF_UTTERANCE.

A conversation is one or more gRPC connections, each consisting of several streamed requests and responses. For example, the user says Add to my shopping list and the Assistant responds What do you want to add?. The sequence of streamed requests and responses in the first gRPC message could be:
AssistRequest.config
AssistRequest.audio_in
AssistRequest.audio_in
AssistRequest.audio_in
AssistRequest.audio_in
AssistResponse.event_type.END_OF_UTTERANCE
AssistResponse.speech_results.transcript "add to my shopping list"
AssistResponse.dialog_state_out.microphone_mode.DIALOG_FOLLOW_ON
AssistResponse.audio_out
AssistResponse.audio_out
AssistResponse.audio_out

The user then says bagels and the Assistant responds OK, I've added bagels to your shopping list. This is sent as another gRPC connection call to the Assist method, again with streamed requests and responses, such as:
AssistRequest.config
AssistRequest.audio_in
AssistRequest.audio_in
AssistRequest.audio_in
AssistResponse.event_type.END_OF_UTTERANCE
AssistResponse.dialog_state_out.microphone_mode.CLOSE_MICROPHONE
AssistResponse.audio_out
AssistResponse.audio_out
AssistResponse.audio_out
AssistResponse.audio_out

repo: googlesamples/assistant-sdk-nodejs


text:
Run android example demo crash on moto S30Pro

2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A  Build fingerprint: 'motorola/hiphi_g/hiphi:13/T1SHS33.35-23-20-2/d71e3-bf391:user/release-keys'
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A  Revision: 'pvt1b'
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A  ABI: 'arm64'
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A  Timestamp: 2024-04-18 17:04:52.755870670+0800
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A  Process uptime: 1s
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A  Cmdline: com.google.mediapipe.examples.objectdetection
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A  pid: 13101, tid: 13125, name: pool-2-thread-1  >>> com.google.mediapipe.examples.objectdetection <<<
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A  uid: 10389
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A  tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A  pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A  signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x005d5efbdf3560f8
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A      x0  00000000d2801168  x1  005d5efbdf3560f8  x2  00000078176210a0  x3  005d5efbdf3560f7
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A      x4  00000078129bd208  x5  00000078129bd1a8  x6  0000007811c431c8  x7  0000007811c43000
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A      x8  0000000000004006  x9  0000000000003345  x10 0000000000003345  x11 0000007811c430b0
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A      x12 0000000000000000  x13 0000000000000001  x14 ffffffffffffffff  x15 00000078125a9d3b
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A      x16 0000000000000001  x17 0000007bdf3514f8  x18 00000000000003fd  x19 00000078176215c0
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A      x20 0000007817621200  x21 0000000000000000  x22 000000781222c6b8  x23 0000000000000000
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A      x24 0000007bdf31f119  x25 0000007bdf44b000  x26 0000007bdf324908  x27 000000000000021b
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A      x28 0000007811d40478  x29 00000078176210d0
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A      lr  00000078124cc53c  sp  00000078176210d0  pc  00000078124cc550  pst 0000000000001000
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A  backtrace:
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #00 pc 0000000000889550  /data/app/~~GJ6P2X-UA2gdadGOE53tHQ==/com.google.mediapipe.examples.objectdetection-Rzl8kc8-jGaYV_MdPhCwlQ==/base.apk
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #01 pc 000000000088a964  /data/app/~~GJ6P2X-UA2gdadGOE53tHQ==/com.google.mediapipe.examples.objectdetection-Rzl8kc8-jGaYV_MdPhCwlQ==/base.apk
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #02 pc 00000000005e9600  /data/app/~~GJ6P2X-UA2gdadGOE53tHQ==/com.google.mediapipe.examples.objectdetection-Rzl8kc8-jGaYV_MdPhCwlQ==/base.apk
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #03 pc 0000000000052b28  /apex/com.android.runtime/bin/linker64 (__dl__ZN6soinfo17call_constructorsEv+752) (BuildId: f9259187fecc4d8ecc0028f39b0c4edb)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #04 pc 000000000003d0f4  /apex/com.android.runtime/bin/linker64 (__dl__Z9do_dlopenPKciPK17android_dlextinfoPKv+2000) (BuildId: f9259187fecc4d8ecc0028f39b0c4edb)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #05 pc 00000000000380fc  /apex/com.android.runtime/bin/linker64 (__loader_android_dlopen_ext+84) (BuildId: f9259187fecc4d8ecc0028f39b0c4edb)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #06 pc 000000000000110c  /apex/com.android.runtime/lib64/bionic/libdl.so (android_dlopen_ext+20) (BuildId: c3485a51b95e45a16eaf027ef6a211fb)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #07 pc 000000000001cedc  /apex/com.android.art/lib64/libnativeloader.so (android::NativeLoaderNamespace::Load(char const*) const+184) (BuildId: 9b40489a2564965276776aae44400621)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #08 pc 000000000000ce20  /apex/com.android.art/lib64/libnativeloader.so (OpenNativeLibraryInNamespace+68) (BuildId: 9b40489a2564965276776aae44400621)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #09 pc 000000000000c564  /apex/com.android.art/lib64/libnativeloader.so (OpenNativeLibrary+132) (BuildId: 9b40489a2564965276776aae44400621)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #10 pc 0000000000586384  /apex/com.android.art/lib64/libart.so (art::JavaVMExt::LoadNativeLibrary(_JNIEnv*, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, _jobject*, _jclass*, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >)+776) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #11 pc 0000000000005178  /apex/com.android.art/lib64/libopenjdkjvm.so (JVM_NativeLoad+416) (BuildId: 6c2bb97f1e4cc7c9d39ef965f3cab761)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #12 pc 000000000009393c  /system/framework/arm64/boot.oat (art_jni_trampoline+156) (BuildId: c1e4535ad118667c012bcf950ce15dd7736d7b04)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #13 pc 0000000000209398  /apex/com.android.art/lib64/libart.so (nterp_helper+152) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #14 pc 00000000000ed83a  /apex/com.android.art/javalib/core-oj.jar (java.lang.Runtime.nativeLoad+2)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #15 pc 0000000000209334  /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #16 pc 00000000000edd78  /apex/com.android.art/javalib/core-oj.jar (java.lang.Runtime.loadLibrary0+92)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #17 pc 000000000020a254  /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #18 pc 00000000000edd04  /apex/com.android.art/javalib/core-oj.jar (java.lang.Runtime.loadLibrary0+8)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #19 pc 000000000020a254  /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #20 pc 00000000000f40a8  /apex/com.android.art/javalib/core-oj.jar (java.lang.System.loadLibrary+16)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #21 pc 0000000000209334  /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #22 pc 0000000000155e94  [anon:dalvik-classes7.dex extracted in memory from /data/app/~~GJ6P2X-UA2gdadGOE53tHQ==/com.google.mediapipe.examples.objectdetection-Rzl8kc8-jGaYV_MdPhCwlQ==/base.apk!classes7.dex] (com.google.mediapipe.tasks.vision.core.BaseVisionTaskApi.+4)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #23 pc 0000000000434600  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+576) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #24 pc 0000000000416bf8  /apex/com.android.art/lib64/libart.so (art::ClassLinker::InitializeClass(art::Thread, art::Handleart::mirror::Class, bool, bool)+5532) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #25 pc 0000000000416434  /apex/com.android.art/lib64/libart.so (art::ClassLinker::InitializeClass(art::Thread*, art::Handleart::mirror::Class, bool, bool)+3544) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #26 pc 0000000000383478  /apex/com.android.art/lib64/libart.so (art::ClassLinker::EnsureInitialized(art::Thread*, art::Handleart::mirror::Class, bool, bool)+100) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #27 pc 00000000004712dc  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+2292) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #28 pc 000000000043de88  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #29 pc 0000000000209398  /apex/com.android.art/lib64/libart.so (nterp_helper+152) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #30 pc 00000000000057c6  [anon:dalvik-classes5.dex extracted in memory from /data/app/~~GJ6P2X-UA2gdadGOE53tHQ==/com.google.mediapipe.examples.objectdetection-Rzl8kc8-jGaYV_MdPhCwlQ==/base.apk!classes5.dex] (com.google.mediapipe.examples.objectdetection.ObjectDetectorHelper.setupObjectDetector+362)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #31 pc 000000000020a254  /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #32 pc 0000000000005304  [anon:dalvik-classes5.dex extracted in memory from /data/app/~~GJ6P2X-UA2gdadGOE53tHQ==/com.google.mediapipe.examples.objectdetection-Rzl8kc8-jGaYV_MdPhCwlQ==/base.apk!classes5.dex] (com.google.mediapipe.examples.objectdetection.ObjectDetectorHelper.+56)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #33 pc 000000000020a958  /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #34 pc 0000000000007238  [anon:dalvik-classes5.dex extracted in memory from /data/app/~~GJ6P2X-UA2gdadGOE53tHQ==/com.google.mediapipe.examples.objectdetection-Rzl8kc8-jGaYV_MdPhCwlQ==/base.apk!classes5.dex] (com.google.mediapipe.examples.objectdetection.fragments.CameraFragment.onViewCreated$lambda-3+120)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #35 pc 0000000000209334  /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #36 pc 00000000000066f0  [anon:dalvik-classes5.dex extracted in memory from /data/app/~~GJ6P2X-UA2gdadGOE53tHQ==/com.google.mediapipe.examples.objectdetection-Rzl8kc8-jGaYV_MdPhCwlQ==/base.apk!classes5.dex] (com.google.mediapipe.examples.objectdetection.fragments.CameraFragment.$r8$lambda$quxn3nvY7rt-pHwnK2X4H22loyQ+0)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #37 pc 0000000000209334  /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #38 pc 0000000000006038  [anon:dalvik-classes5.dex extracted in memory from /data/app/~~GJ6P2X-UA2gdadGOE53tHQ==/com.google.mediapipe.examples.objectdetection-Rzl8kc8-jGaYV_MdPhCwlQ==/base.apk!classes5.dex] (com.google.mediapipe.examples.objectdetection.fragments.CameraFragment$$ExternalSyntheticLambda11.run+4)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #39 pc 000000000020b074  /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #40 pc 0000000000222530  /apex/com.android.art/javalib/core-oj.jar (java.util.concurrent.ThreadPoolExecutor.runWorker+156)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #41 pc 000000000020a254  /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #42 pc 0000000000221334  /apex/com.android.art/javalib/core-oj.jar (java.util.concurrent.ThreadPoolExecutor$Worker.run+4)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #43 pc 000000000020b074  /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #44 pc 0000000000003090  [anon:dalvik-/apex/com.android.art/javalib/core-oj.jar-transformed] (java.lang.Thread.run+8)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #45 pc 000000000043436c  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+556) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #46 pc 0000000000466138  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+156) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #47 pc 0000000000465e20  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValuesart::ArtMethod*(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+388) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #48 pc 0000000000613e74  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1668) (BuildId: a49c773ef6221a996ecea990e9753caa)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #49 pc 00000000000ba598  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: a6dff06a8692e32fa3d76a20ab123774)
2024-04-18 17:04:52.881 13129-13129 DEBUG                   pid-13129                            A        #50 pc 0000000000053f3c  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: a6dff06a8692e32fa3d76a20ab123774)

If use version tasks-vision:0.20230731 must be crash
I can only use version tasks-vision:0.10.2, it is not any problem

repo: googlesamples/mediapipe


text:
only run polyfill if nativeWebVR is not available

If you run the polyfill when native VR is available, you won't be able to put the player into VR mode properly. This should fix https://github.com/borismus/webvr-boilerplate/issues/170 and https://github.com/videojs/videojs-vr/issues/14

pretty good catch. @jsantell: look good to you?

This looks good, thanks for this!

You're welcome!

authors: cvan gkatsev jsantell

repo: googlevr/webvr-polyfill


text:
Test drive v3 file snippets patch2

Description
Unit test cases for drive-v3 change snippets of region tags:
drive_upload_to_folder
drive_upload_with_conversion
Fixes # (234518471,234518780)
Is it been tested?

[X] Development testing done

Checklist

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have performed a peer-reviewed with team member(s)
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[X] Any dependent changes have been merged and published in downstream modules

Need to change commit message

repo: googleworkspace/java-samples


text:
🛑 goormEDU is down

In 3312657, goormEDU (https://edu.goorm.io) was down:

HTTP code: 403
Response time: 677 ms

Resolved: goormEDU is back up in d2e548b after 6 minutes.

repo: goorm-dev/goorm-status

license: MIT


text:
Update list.go

fixe issue #1005
With Windows sep is \ and break search when is use between alias and path

Codecov Report

Merging #1106 into master will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff           @@
##           master    #1106   +/-   ##
=======================================
  Coverage   62.57%   62.57%
=======================================
  Files         184      184
  Lines       10239    10239
=======================================
  Hits         6407     6407
  Misses       3033     3033
  Partials      799      799

Impacted Files
Coverage Δ

pkg/store/sub/list.go
64.71% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe4e21d...9c1f871. Read the comment docs.

Hi,
I'm afraid but I still don't have any way to test this on Windows. And we've been changing these separators back and forth a few times I won't merge this unless I'm confident that it will fix an issue and not open another one.
The next step towards better Windows support would probably mean setting up some kind of test environment or someone taking (strong) ownership over the windows port.

authors: codecov-io dominikschulz jeromebagattin

repo: gopasspw/gopass

license: mit


text:
Texture usage flags

Can we provide more specific texture usage flags (e.g. color_attachment, depth_stencil_attachment, transfer_src, transfer_dst, sampled: similar to vulkan image usage flags)?
This will be very helpful for integrating the various backends.
https://github.com/gopro/gopro-lib-node.gl/blob/4e1456401fe96fb12c058e30bcc0d1f398854ec9/libnodegl/texture.h#L71

Added in 5b4ad504580995ec5979a6eadf96e8736105e3a2.

authors: jmoguillansky-gpsw mbouron-gpsw


text:
拖拽组件可以通过脚本生成吗

目前是通过数据数组push的方式生成一个拖拽节点，是否可以增加一个类似VueDraggableResizable.add(需拖拽的节点).

目前是通过数据数组push的方式生成一个拖拽节点，是否可以增加一个类似VueDraggableResizable.add(需拖拽的节点).

请问楼主解决了？动态添加多个节点

authors: YYmmlin pino-cao

repo: gorkys/vue-draggable-resizable-gorkys


text:
Loosen version dependency of requests

PyGorse currently depends on requests~=2.14.0, but that is somewhat old and should probably be changed to requests>=2.14.0 to reduce the chances of conflicts

Thank you for your feedback. It has been fixed in #4.

authors: justin-snyder-slgg zhenghaoz

repo: gorse-io/PyGorse


text:
Create a  Pull request template.

Description
With some basic checks.
For example: tested ?
query is working ?
...
We can always extend it.

hello, i'd like to be assigned this issue. please label is hacktoberfest should you choose to assign, thanks

Fixed by #424

authors: Ainali RVA2869 eastermukora

repo: govdirectory/website


text:
Exclude generic mayors

Description
Exclude generic mayors from office positions. Really, a hack due to this often being a cause of bad data, and if we see that the data is improved (a lot) we should remove this again.
Issue Reference
Fixes #443.
PR Details
Type of Change

[x] Bug fix
[ ] New feature
[ ] Breaking change
[ ] Documentation update
[ ] Code refactor

Checklist
Please ensure the following before submitting the PR:

[x] I have tested the changes locally, and they work as expected.
[x] The code follows the project's coding standards and conventions.
[x] Any query changes have been verified and are working correctly.
[ ] ~I have updated relevant documentation (if needed).~
[ ] ~I have added unit tests or performed manual testing where necessary.~

Maybe include minister (Q83307) (less used than mayor), but while we're at it.

Do we have any examples of this causing incorrect data for us?

Not at the moment, but it is better to prevent it than to fix it (better no data than wrong data).