Possible build failures in jenkins on build-osuosl-aix71-ppc64-1

Please put the system name in the title of this issue. https://ci.adoptopenjdk.net/computer/build-osuosl-aix71-ppc64-1

Link to any log file showing the problem: Lots of red on https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk11u/job/jdk11u-aix-ppc64-temurin/

Please describe the issue:
Errors like this (temurin#4)

[](https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk11u/job/jdk11u-aix-ppc64-temurin/4/console#)10:43:33  Execution error: hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown: Command Close created at
[Pipeline] echo
10:43:33  hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown: Command Close created at
10:43:33  	at hudson.remoting.Request.abort(Request.java:344)
10:43:33  	at hudson.remoting.Channel.terminate(Channel.java:1085)

It also seems to spend over ten minutes on this step which doesn't happen when the -2 machine is selected. Job 5 also shows the same delay at this point
[](https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk11u/job/jdk11u-aix-ppc64-temurin/4/console#)10:10:57  [NODE SHIFT] MOVING INTO JENKINS NODE MATCHING LABELNAME xlc13&&aix710&&build&&aix&&ppc64...
[Pipeline] node
10:22:09  Running on [build-osuosl-aix71-ppc64-1](https://ci.adoptopenjdk.net/computer/build-osuosl-aix71-ppc64-1/) in /home/jenkins/workspace/build-scripts/jobs/jdk11u/jdk11u-aix-ppc64-temurin

This is NOT restricted to a single machine - build machine -2 is also acting slowly although it took 8 hours to fail at https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk11u/job/jdk11u-aix-ppc64-temurin/3/ - some highlights from the log:
[2022-02-16T10:10:46.306Z] checking aix
[Pipeline] stage
[Pipeline] { (build)
[Pipeline] timeout
[2022-02-16T10:10:46.549Z] Timeout set to expire in 1 hr 0 min
[Pipeline] {
[Pipeline] echo
[2022-02-16T10:10:46.567Z] Cleaning workspace non-hidden files: /home/jenkins/workspace/build-scripts/jobs/jdk11u/jdk11u-aix-ppc64-temurin/*
[Pipeline] sh
[2022-02-16T10:11:20.864Z] + rm -rf /home/jenkins/workspace/build-scripts/jobs/jdk11u/jdk11u-aix-ppc64-temurin/*
[2022-02-16T10:11:22.822Z] Cannot contact build-osuosl-aix71-ppc64-2: java.lang.InterruptedException
[Pipeline] echo
[2022-02-16T10:11:31.845Z] Cleaning workspace hidden files using cleanWs: /home/jenkins/workspace/build-scripts/jobs/jdk11u/jdk11u-aix-ppc64-temurin
[Pipeline] cleanWs
[2022-02-16T10:11:32.200Z] [WS-CLEANUP] Deleting project workspace...
[2022-02-16T10:11:32.200Z] [WS-CLEANUP] Deferred wipeout is disabled by the job configuration...
[2022-02-16T10:12:40.038Z] [WS-CLEANUP] done
[Pipeline] }
[Pipeline] // timeout
[Pipeline] timeout
[2022-02-16T10:12:40.072Z] Timeout set to expire in 1 hr 0 min
[Pipeline] {
[Pipeline] echo
[2022-02-16T10:12:40.086Z] [CHECKOUT] Checking out Adopt Pipelines https://github.com/adoptium/ci-jenkins-pipelines.git : master
[Pipeline] checkout
[2022-02-16T10:12:41.330Z] The recommended git tool is: git
[2022-02-16T10:12:41.999Z] No credentials specified
[2022-02-16T10:12:42.171Z] Cloning the remote Git repository
[2022-02-16T10:12:40.311Z] Cloning repository https://github.com/adoptium/ci-jenkins-pipelines.git
[2022-02-16T10:12:41.790Z]  > git init /home/jenkins/workspace/build-scripts/jobs/jdk11u/jdk11u-aix-ppc64-temurin # timeout=10
[2022-02-16T10:12:42.322Z] Fetching upstream changes from https://github.com/adoptium/ci-jenkins-pipelines.git
[2022-02-16T10:12:42.322Z]  > git --version # timeout=10
[2022-02-16T10:12:42.336Z]  > git --version # 'git version 2.20.4'
[2022-02-16T10:12:42.337Z]  > git fetch --tags --force --progress -- https://github.com/adoptium/ci-jenkins-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10
[2022-02-16T10:12:47.073Z] Avoid second fetch
[2022-02-16T10:12:44.823Z]  > git config remote.origin.url https://github.com/adoptium/ci-jenkins-pipelines.git # timeout=10
[2022-02-16T10:12:44.846Z]  > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
[2022-02-16T10:12:47.259Z] Checking out Revision c3a21d1d793f1aabf2c6c52c8178cefa1e3a850e (origin/master)
[2022-02-16T10:12:45.028Z]  > git rev-parse origin/master^{commit} # timeout=10
[2022-02-16T10:12:50.292Z]  > git config core.sparsecheckout # timeout=10
[2022-02-16T10:12:50.311Z]  > git checkout -f c3a21d1d793f1aabf2c6c52c8178cefa1e3a850e # timeout=10
[2022-02-16T10:15:57.734Z] Exception logging commit message for Build #3 of Revision c3a21d1d793f1aabf2c6c52c8178cefa1e3a850e (origin/master): java.io.IOException: Cannot read file /home/jenkins/.config/jgit/co
[Pipeline] sh
[2022-02-16T10:16:20.977Z] + git clean -fdx

That's over 5½ hours to get the code from ci-jenkins-pipelines checked out, and then it eventually aborted with an EOF:
[2022-02-16T18:16:45.620Z] "./src/hotspot/share/utilities/utf8.hpp", line 87.17: 1540-0198 (W) The omitted keyword "prCould not connect to build-osuosl-aix71-ppc64-2 to send interrupt signal to process
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] timeout
[2022-02-16T18:16:45.705Z] Timeout set to expire in 3 hr 0 min
[Pipeline] {
[Pipeline] archiveArtifacts
[2022-02-16T18:16:54.500Z] Archiving artifacts
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] echo
[2022-02-16T18:22:24.095Z] Execution error: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected EOF
[Pipeline] echo
[2022-02-16T18:22:24.097Z] hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected EOF

Checkout of the openjdk source seemed to take just a few minutes but included an InterruptedException in the log:
[2022-02-16T10:17:16.346Z] Could not find a valid openjdk git repository at /home/jenkins/workspace/build-scripts/jobs/jdk11u/jdk11u-aix-ppc64-temurin/workspace/build/src so re-cloning the source to openjdk
[2022-02-16T10:17:16.346Z] git clone --depth=1 https://github.com/adoptium/jdk11u.git /home/jenkins/workspace/build-scripts/jobs/jdk11u/jdk11u-aix-ppc64-temurin/workspace/./build//src
[2022-02-16T10:17:16.346Z] Cloning into '/home/jenkins/workspace/build-scripts/jobs/jdk11u/jdk11u-aix-ppc64-temurin/workspace/./build//src'...
[2022-02-16T10:18:13.980Z] Cannot contact build-osuosl-aix71-ppc64-2: java.lang.InterruptedException
[2022-02-16T10:19:38.575Z] Checking out files:   2% (1412/67890)   MChecking out files:   3% (2037/67890)   MChecking out files:   4% (2716/67890)   MChecking out files:   5% (3395/67890)   MChecking out files:
[2022-02-16T10:19:38.575Z] checkoutRequiredCodeToBuild:
[2022-02-16T10:19:38.575Z]   workspace = /home/jenkins/workspace/build-scripts/jobs/jdk11u/jdk11u-aix-ppc64-temurin/workspace/./build//src
[2022-02-16T10:19:38.575Z]   BUILD_VARIANT = temurin
[2022-02-16T10:19:38.575Z]   TAG =
[2022-02-16T10:19:38.575Z]   BRANCH = dev
[2022-02-16T10:21:09.883Z] From https://github.com/adoptium/jdk11u

I've adjusted the build machines to have -Dhudson.remoting.Launcher.pingIntervalSec=-1 in the agent JVM launcher options, which appears to be helping the builds get through ok. If we determine the underlying issue here we can remove that again, but it seems to be working as a temporary workaround.

FYI @aixtools

The first delay seems to be here:
[2022-02-16T10:12:50.311Z]  > git checkout -f c3a21d1d793f1aabf2c6c52c8178cefa1e3a850e # timeout=10
[2022-02-16T10:15:57.734Z] Exception logging commit message for Build #3 of Revision c3a21d1d793f1aabf2c6c52c8178cefa1e3a850e (origin/master): java.io.IOException: Cannot read file /home/jenkins/.config/jgit/co
[Pipeline] sh
[2022-02-16T10:16:20.977Z] + git clean -fdx

Not clear to me what this next phase is: only that it is another two hours later:
[2022-02-16T18:16:45.620Z] "./src/hotspot/share/utilities/utf8.hpp", line 87.17: 1540-0198 (W) The omitted keyword "prCould not connect to build-osuosl-aix71-ppc64-2 to send interrupt signal to process
[Pipeline] }
...
[Pipeline] // withEnv
[Pipeline] timeout
[2022-02-16T18:16:45.705Z] Timeout set to expire in 3 hr 0 min
[Pipeline] {
[Pipeline] archiveArtifacts
[2022-02-16T18:16:54.500Z] Archiving artifacts
...
[Pipeline] echo
[2022-02-16T18:22:24.095Z] Execution error: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected EOF
[Pipeline] echo
[2022-02-16T18:22:24.097Z] hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected EOF

I'll examine the errpt reports to see if there are any unusual things reported.

There is nothing in the errpt (literally empty).
Wait and see if it happens again - anywhere. And if it does, try and ping me if it is still in action.

I'm having problems resdtarting the jenkins agent on the -1 build machine at the moment after removing the -D parameter that I'd added last week. It seemed to take about 5 minutes to copy the jenkins jar over which suggests there is still an issue:

[02/21/22 12:04:20] [SSH] Checking java version of java
[02/21/22 12:04:21] [SSH] java -version returned 1.8.0_261.
[02/21/22 12:04:21] [SSH] Starting sftp client.

[02/21/22 12:04:22] [SSH] Copying latest remoting.jar...

Source agent hash is D866F0B482DB94F38E49B26B465D5DB5. Installed agent hash is D866F0B482DB94F38E49B26B465D5DB5
Verified agent jar. No update is necessary.
Expanded the channel window size to 4MB
[02/21/22 12:09:13] [SSH] Starting agent process: cd "/home/jenkins" && java -Xmx1048m -jar remoting.jar -workDir /home/jenkins -jar-cache /home/jenkins/remoting/jarCache

Build on Saturday on -2 also didn't get to completion:
[](https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk11u/job/jdk11u-aix-ppc64-temurin/9/console#)[](https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk11u/job/jdk11u-aix-ppc64-temurin/9/console#)17:43:40  Archiving artifacts
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] echo
18:55:13  Execution error: java.io.IOException: Failed to extract /home/jenkins/workspace/build-scripts/jobs/jdk11u/jdk11u-aix-ppc64-temurin/transfer of 10 files
[Pipeline] echo
18:55:13  java.io.IOException: Failed to extract /home/jenkins/workspace/build-scripts/jobs/jdk11u/jdk11u-aix-ppc64-temurin/transfer of 10 files
18:55:13  	at hudson.FilePath.readFromTar(FilePath.java:2852)
18:55:13  	at hudson.FilePath.copyRecursiveTo(FilePath.java:2630)
18:55:13  	at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:70)
18:55:13  	at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:257)
18:55:13  	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
18:55:13  	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
18:55:13  	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
18:55:13  	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
18:55:13  	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
18:55:13  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
18:55:13  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
18:55:13  	at java.lang.Thread.run(Thread.java:748)
18:55:13  	Suppressed: java.util.concurrent.ExecutionException: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected EOF
18:55:13  		at hudson.remoting.Request$1.get(Request.java:323)
18:55:13  		at hudson.remoting.Request$1.get(Request.java:239)
18:55:13  		at hudson.remoting.FutureAdapter.get(FutureAdapter.java:64)
18:55:13  		at hudson.FilePath.copyRecursiveTo(FilePath.java:2633)
18:55:13  		... 10 more
18:55:13  	Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected EOF
18:55:13  		at hudson.remoting.Request.abort(Request.java:344)
18:55:13  		at hudson.remoting.Channel.terminate(Channel.java:1085)
18:55:13  		at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:94)
18:55:13  	Caused by: java.io.IOException: Unexpected EOF
18:55:13  		at hudson.remoting.ChunkedInputStream.readUntilBreak(ChunkedInputStream.java:99)
18:55:13  		at hudson.remoting.ChunkedCommandTransport.readBlock(ChunkedCommandTransport.java:39)
18:55:13  		at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
18:55:13  		at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:63)
18:55:13  Caused by: java.io.IOException: java.io.IOException: Unexpected EOF
18:55:13  	at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:170)
18:55:13  	at hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:61)
18:55:13  	at com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:175)
18:55:13  	at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106)
18:55:13  	at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:639)
18:55:13  	at java.io.InputStream.read(InputStream.java:101)
18:55:13  	at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1158)
18:55:13  	at org.apache.commons.io.IOUtils.copy(IOUtils.java:878)
18:55:13  	at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1135)
18:55:13  	at org.apache.commons.io.IOUtils.copy(IOUtils.java:854)
18:55:13  	at hudson.util.IOUtils.copy(IOUtils.java:43)
18:55:13  	at hudson.FilePath.readFromTar(FilePath.java:2842)
18:55:13  	... 11 more

-1 has wobbled again:
Agent successfully connected and online
Feb 21, 2022 11:14:46 AM org.eclipse.jgit.internal.storage.file.FileRepository <init>
SEVERE: Cannot read file /home/jenkins/.config/jgit/config
org.eclipse.jgit.errors.ConfigInvalidException: Cannot read file /home/jenkins/.config/jgit/config
	at org.eclipse.jgit.storage.file.FileBasedConfig.load(FileBasedConfig.java:186)

I hope this is not a file-encoding issue. I read somewhere (re: openj9 iirc) that were breaking some tests on AIX.
I'll reach out in slack for additional info for triage.

After that last wobble: seems to be looking good:

I went and actually looked at the file getting the complaints: ~jenkins/.config/jgit/config
And I do not understand what I am actually seeing - and in any case the info in build-1,2 looks suspicious.
root@nim.bak:[/home/root]dsh-adopt.ksh cat -n ~jenkins/.config/jgit/config
adopt01:
     1  /*
     2   * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
     3   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4   *
     5   * This code is free software; you can redistribute it and/or modify it
     6   * under the terms of the GNU General Public License version 2 only, as
     7   * published by the Free Software Foundation.
     8   *
     9   * This code is distributed in the hope that it will be useful, but WITHOUT
    10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    11   * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    12   * version 2 for more details (a copy is included in the LICENSE file that
    13   * accompanied this code).
    14   *
    15   * You should have received a copy of the GNU General Public License version
    16   * 2 along with this work; if not, write to the Free Software Foundation,
    17   * Inc., 51 Franklin St,==============
adopt02:
     1  /*
     2   * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
     3   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4   *
     5   * This code is free software; you can redistribute it and/or modify it
     6   * under the terms of the GNU General Public License version 2 only, as
     7   * published by the Free Software Foundation.
     8   *
     9   * This code is distributed in the hope that it will be useful, but WITHOUT
    10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    11   * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    12   * version 2 for more details (a copy is included in the LICENSE file that
    13   * accompanied this code).
    14   *
    15   * You should have received a copy of the GNU General Public License version
    16   * 2 along with this work; if not, write to the Free Software Foundation,
    17   * Inc., 51 Franklin St,==============
adopt03:
     1  [filesystem "IBM Corporation|1.8.0_241|/dev/hd1"]
     2          timestampResolution = 1005 milliseconds
     3          minRacyThreshold = 0 nanoseconds
==============
adopt04:
     1  [filesystem "power8-aix-host5.osuosl.org|Eclipse OpenJ9|1.8.0_242|/dev/hd1"]
     2          timestampResolution = 1001 microseconds
     3          minRacyThreshold = 8248 microseconds
     4  [filesystem "IBM Corporation|1.8.0_191|/dev/hd1"]
     5          timestampResolution = 1001 milliseconds
     6          minRacyThreshold = 0 nanoseconds
     7  [filesystem "IBM Corporation|1.8.0_261|/dev/hd1"]
     8          timestampResolution = 1001 milliseconds
     9          minRacyThreshold = 0 nanoseconds
==============
adopt05:
     1  [filesystem "IBM Corporation|1.8.0_261|/dev/hd1"]
     2          timestampResolution = 1002 milliseconds
     3          minRacyThreshold = 0 nanoseconds
     4  [filesystem "IBM Corporation|1.8.0_281|/dev/hd1"]
     5          timestampResolution = 1001 milliseconds
     6          minRacyThreshold = 0 nanoseconds
==============
adopt06:
     1  [filesystem "IBM Corporation|1.8.0_241|/dev/hd1"]
     2          timestampResolution = 1005 milliseconds
     3          minRacyThreshold = 0 nanoseconds
     4  [filesystem "IBM Corporation|1.8.0_261|/dev/hd1"]
     5          timestampResolution = 1001 milliseconds
     6          minRacyThreshold = 0 nanoseconds
     7  [filesystem "AdoptOpenJDK|1.8.0_292|/dev/hd1"]
     8          timestampResolution = 2001 microseconds
     9          minRacyThreshold = 5590 microseconds
==============
adopt07:
     1  [filesystem "IBM Corporation|1.8.0_241|/dev/hd1"]
     2          timestampResolution = 1001 milliseconds
     3          minRacyThreshold = 0 nanoseconds
==============
adopt08:
     1  [filesystem "IBM Corporation|1.8.0_241|/dev/hd1"]
     2          timestampResolution = 1001 milliseconds
     3          minRacyThreshold = 0 nanoseconds
==============
root@nim.bak:[/home/root]

Any idea what the contents of this file should actually be?
Is it an idea to (re-)move a directory so these files are actually fetched again.

Is this resolved (magically perhaps)?


hotfix 1. missing update time stamp logic 2. removing the create time…

 WTF there is someone actually called hotfix.


DEX-821: wave: remove unused scalars and rename Enum and Scalar to discourage its usage

https://linear.app/wavemm/issue/DEX-821/remove-graphene-scalars-from-our-fork-of-repo

Haha, great branch name 😆
/approve


Create persistence command/query

First of all, thanks for this clear and efficient Clean Architecture sample and also for the videos. I am working on project that could evolve constantly.
I am wondering how can i separate between the persistence layer and application layer. I feel that INorthwindDbContext in the presentation layer will make this layer depending even though not directly on the persistence (e.g changing DB from SQL to No-SQL will break the application layer).
I thought about using the Repository pattern but i find that whenever i have new query or command i will have to modify an existing Repository class which is against the Open Closed principle if i understand it correctly.
I am wondering if it would be a good approach to create a second command/query that will be called from the Application layer inside a command handler. The sub-command will be handled by the persistence layer.
For example:
`    public class UserLoginCommandHandler : IRequestHandler<UserLoginCommand,string>
{
public UserLoginCommandHandler()
{
    }
    public Task<string> Handle(UserLoginCommand request, CancellationToken cancellationToken)
    {
      var result=Mediator.Send<bool>(new UserExistsQuery() { email=request.Email});
        if(result.Result)
        {
            ///var getanotherThing = Mediator.Send<bool>(new DoSomethingQuery() { param });
        }
    }
}

}`
The sub-command query handler will be in the persistence layer as the following :
` public class UserExistsQueryHandler: IRequestHandler<UserExistsQuery,bool>
{
public UserExistsQueryHandler()
{
    }
    public Task<string> Handle(UserExistsQueryrequest, CancellationToken cancellationToken)
    {
      //sub query implementation
    }`

Looking forward to hear your advice if you find it a good approach or not to do so.
Best regards,
Emad

Hi,
I think that a second layer of commands/queries for persistence can be a good approach. Like any case where you add a new layer, you have to weigh up the cost (in developer time) and complexity of adding that layer against the benefits of decoupling.
My advice here would be to make efforts to ensure a clear separation between Application commands/queries that may contain business logic vs Persistence commands/queries that should only handle persistence considerations.

Hi and thanks for your nice feedback! :smile:

I thought about using the Repository pattern but i find that whenever i have new query or command i will have to modify an existing Repository class which is against the Open Closed principle if i understand it correctly.

You can create a Repository implementation that allows you to pass queries in, rather than modifying the repository directly to support new queries. Review the repository pattern and specification pattern at DevIQ. With either approach you won't need to modify the repository to support new queries, and changes to add / update / delete are not usually necessary for specific commands.

I am wondering if it would be a good approach to create a second command/query that will be called from the Application layer inside a command handler. The sub-command will be handled by the persistence layer.

Avoid having requests send requests, it tends to get messy fast. Instead, aim for a one to one mapping between use cases and queries or commands. Common behaviour can be refactored into another class or method, as described in Dealing with Duplication in MediatR Handlers.
Keep the above in mind and you should achieve a fairly simple solution that meets your requirements. Happy coding!


fix(be):  Added exclusion to Password Binaries policy

Description
This PR adds exclusion to Password Binaries policy as requested on https://issues.redhat.com/browse/ROX-23445 by @rukletsov.
Testing
upgraded 4.4 acs to 4.4.x-1217-ge4117ddd2e and verified exclusion is added to policy after mugration

/retest


GitHub page not displaying site

@juliohm: I have a very similar structure of my Julia package as you do. I cannot have gh-pages to display my site. What is the easiest way to deploy Julia package in GitHub?
Thanks.

Hi @sbohora, could you please share how you ended up finding ImageQuilting.jl?
I suggest you to take a look at the Documenter.jl package. As far as I remember, their documentation contains all the steps needed to setup GitHub and integrated documentation in Julia packages.

I googled for similar issue which led to me to your repo. Thanks.


Live

Test PR

Docs Build status updates of commit a2d7d2b:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Test PR


store add touch series limit

[x] I added CHANGELOG entry for this change.
[ ] Change is not relevant to the end user.

Changes
Add touch series limit
Verification

cc @yeya24 as we touch this code

It seems like the CI failure is related to the changes. I was able to reproduce the segfault locally as well. Care looking into it?

What do i need to do?


Nothing happened when job is finished

When I run my taskts and look for any console response, I see only this:
06-09 23:27:06.986 25351 25351 D BackgroundTask: Committing job schedule
06-09 23:34:37.407 25351 26893 D BackgroundTask: Job is running
and nothing happened.
AsyncStorage is empty, console log were not triggered...
Any idea?
Android 9,
`"dependencies": {
"haversine": "^1.1.1",
"lottie-react-native": "^2.6.1",
"native-base": "^2.12.1",
"react": "16.8.3",
"react-native": "0.59.8",
"react-native-background-task": "^0.2.1",
"react-native-camera": "^2.9.0",
"react-native-gesture-handler": "^1.2.1",
"react-native-maps": "^0.24.2",
"react-native-push-notification": "3.1.1",
"react-native-queue": "^1.2.1",
"react-navigation": "^3.11.0",
"react-redux": "^7.0.3",
"redux": "^4.0.1",
"redux-persist": "^5.10.0",
"redux-thunk": "^2.3.0"
},

the same

I added this permission and it started working :)

didnt work for me even after adding the permission

For those facing this issue, there is a PR that fixed this for Android 8.0+
https://github.com/jamesisaac/react-native-background-task/pull/64

The fix in #64 did not solve the issue for me. I am still seeing this behavior.
03-06 13:58:27.010 27548 27641 D BackgroundTask: Initializing
03-06 13:58:27.017 27548 27548 D BackgroundTask: Setting foreground true
03-06 13:58:29.370 27548 27641 D BackgroundTask: @ReactMethod BackgroundTask.schedule
03-06 13:58:50.199 27548 27548 D BackgroundTask: Setting foreground false
03-06 13:58:50.199 27548 27548 D BackgroundTask: Committing job schedule
03-06 14:06:42.622 30274 30326 D BackgroundTask: Job is running
03-06 14:07:14.506 30515 30585 D BackgroundTask: Job is running
03-06 14:08:26.622 30623 30675 D BackgroundTask: Job is running

I call BackgroundTask.define directly in index.js on root level and BackgroundTask.schedule from inside a Compontent. The job should save a dummy value in AsyncStorage. Which it doesn't. Any ideas or any progress on that?

any solution?


Improve godoc

Make godoc easier to read.
e.g. https://pkg.go.dev/oras.land/oras-go/v2@main#pkg-variables

According to Go Doc Comments,

Typed constants are displayed next to the declaration of their type and as a result often omit a const group doc comment in favor of the type’s doc comment.

The conventions for variables are the same as those for constants.

We may explicitly declare the type for the variables so that they can be displayed close to the corresponding types.


Error at "app-router-get-server-session" example

Auth doesn't work: "error - ReferenceError: res is not defined"
Maybe update to stable next app version, and try to resolve the bug.

The problem come from the API next route
I fix the error, but i can't resolve the user with the  get-server-session function when i'm authenticated
import SteamProvider, { PROVIDER_ID } from 'next-auth-steam'
import NextAuth from 'next-auth/next'

import type { NextRequest, NextResponse } from 'next/server'
import { AuthOptions } from "next-auth";

export function getAuthOptions(req: NextRequest): AuthOptions {
    return {
        providers: req
            ? [
                SteamProvider(req, {
                    clientSecret: process.env.STEAM_SECRET!,
                    callbackUrl: 'http://localhost:3000/api/auth/callback',
                }),
            ]
            : [],
        callbacks: {
            jwt({ token, account, profile }) {
                if (account?.provider === PROVIDER_ID) {
                    token.steam = profile;
                }
                return token;
            },
            session({ session, token }) {
                if ('steam' in token) {
                    // @ts-expect-error
                    session.user.steam = token.steam;
                }
                return session;
            },
        },
    };
}

async function handler(
    req: NextRequest,
    res: NextResponse,
    ctx: { params: { nextauth: string[] } }
) {
    // @ts-expect-error
    return NextAuth(req, res, getAuthOptions(req));
}

export {
    handler as GET,
    handler as POST,
}

me to, how to solve this?

@Nekonyx hi, friend we need your help

Use NextApiRequest and NextApiResponse instead:
import SteamProvider, { PROVIDER_ID } from 'next-auth-steam'
import NextAuth, { AuthOptions } from 'next-auth/next'
import { NextApiRequest, NextApiResponse } from 'next';

export function getAuthOptions(req: NextApiRequest): AuthOptions {
    return {
        providers: req
            ? [
                SteamProvider(req, {
                    clientSecret: process.env.STEAM_SECRET!,
                    callbackUrl: 'http://localhost:3000/api/auth/callback',
                }),
            ]
            : [],
        callbacks: {
            jwt({ token, account, profile }) {
                if (account?.provider === PROVIDER_ID) {
                    token.steam = profile;
                }
                return token;
            },
            session({ session, token }) {
                if ('steam' in token) {
                    // @ts-expect-error
                    session.user.steam = token.steam;
                }
                return session;
            },
        },
    };
}

async function handler(
    req: NextApiRequest,
    res: NextApiResponse
) {
    return NextAuth(req, res, getAuthOptions(req));
}

export {
    handler as GET,
    handler as POST,
}

thanks bro ,but I have another problem  @_@ @adrianlee

https://next-auth.js.org/errors#oauth_callback_error Unexpected token < in JSON at position 0 {
  error: SyntaxError: Unexpected token < in JSON at position 0
      at JSON.parse (<anonymous>)
      at parseJSONFromBytes (node:internal/deps/undici/undici:6662:19)
      at successSteps (node:internal/deps/undici/undici:6636:27)
      at node:internal/deps/undici/undici:1236:60
      at node:internal/process/task_queues:140:7
      at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
      at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
    name: 'OAuthCallbackError',
    code: undefined
  },
  providerId: 'steam',
  message: 'Unexpected token < in JSON at position 0'
}

@Nekonyx same issue for me, Steam doesn't authorize.
Do you know does it require a particular secret?

@Nekonyx same issue here too...

@Nekonyx same issue for me, Steam doesn't authorize. Do you know does it require a particular secret?

@Nekonyx same issue here too...

You have forgot to set your steam api key in the .env.local. Make sure you have added STEAM_SECRET="YOURKEY" from https://steamcommunity.com/dev/apikey

Wow, I don't remember if I had put the API KEY before, but with it now i works perfectly fine! Thanks for helping us solve this issue <3

Seems like all troubles caused because of forgotten Steam API Key.


Refine the eBPF Interface

@lmb Thoughts?

Make Map and Program structs and keep some of the metadata passed to New* around for better introspection (cmd/ebpf-test would benefit)
Get rid of *Instructions since it is equivalent to *[]BPFInstruction and pointers to slices usually aren't necessary (need to double check that)
Make *Spec regular structs instead of interfaces, and make GetELFSections return a "list of specs" (CollectionSpec? not sure). This will allow users to load from ELF, but then tweak the programs if they desire.
Add functions to attach an XDP program to a device (separate package?)
Future: make the map instruction replacement mechanism more generic, so that e.g. constants could be swapped in at runtime. (Might be enough to parse more symbols from ELF)

@nathanjsweet what do you think about these suggestions?

This all sounds good. Another one I'd like to add though is pulling test code out of the main build and putting it into a go _test file. I can get started on the non XDP stuff if you want.

Create separate issues for each feature for discussion.


ESP8266 MQTT - Callback function is null - Causes crash (https://github.com/GoogleCloudPlatform/google-cloud-iot-arduino/tree/master/examples/Esp8266-http) is the only supported version. I  I have been working on porting MQTT to work for the 8266 but there's some strange issue that causes crashes.

Originally posted by @gguuss in https://github.com/GoogleCloudPlatform/google-cloud-iot-arduino/issues/27#issuecomment-403162615
Mqtt crashes  at multiple points. The callback function pointer is found to be Null and crashes. I suspect memory over write or mishandling of the call back pointer.

Should be resolved by this PR.

Reopening, MQTT is not yet implemented for 8266

Closing again as this is already tracked in a separate issue.


remove exception

In php 7 core_c.php defines Exception implements Throwable, so catch (Exception $e) code will never be executed.

Is better to change it, first check for exception than for throwable

You're right. Exception can really put in front of the deal. But here, Exception thrown out is actually no use, Exception, Error is Throwable implementation.

My production environment is php7, forget the old version, the best catch (Exception $ e) (throwable $ e).

We are currently supporting php 5.x, so we need to keep the catch (Exception)


[Feature Request] Add Mediation Support

@mnarinsky Transfer from: https://github.com/googleads/googleads-mobile-flutter/discussions/31
This is a feature request to add support for AdMob and AdManager mediation to the GMA SDK for Flutter.
Mediation increases mobile apps revenue by calling a series of third-party ad networks to fill an ad request, ordered by expected yield. The request is to support all Google certified third party mediation networks supported by AdMob and Google Ad Manager:

AdMob iOS Mediation Partners
AdMob Android Mediation Partners
Ad Manager iOS Mediation Partners
Ad Manager Android Mediation Partners

@bparrishMines @mnarinsky
I'm using my own plugin for Facebook (https://github.com/kunny/googleads-mobile-flutter/tree/add_facebook_mediation/packages/google_mobile_ads_facebook) which depends on:

Android: 'com.google.ads.mediation:facebook:<IP_ADDRESS>'
iOS: 'GoogleMobileAdsMediationFacebook', '<IP_ADDRESS>'

As I intended to use this plugin just for my personal application, it needs a few more work (e.g., version matching, documentation) to be as a part of the official plugin.
I'm happy to contribute at least for the Facebook plugin if you don't mind. :)

Is there a way we could do admediation for adcolony as well? the existing methods given were failing.

Any update on this?

What is going on with Mediation and Adapters??

Any news on this request?

https://github.com/googleads/googleads-mobile-flutter/issues/355

Closing as we now have mediation support: https://developers.google.com/admob/flutter/mediation/get-started


chore(who knows): reproduce unknown

The demo is not working

http://valor-software.github.io/ng2-bootstrap/
works fine for me
is your browser supported by angular2?

now is working ... I don't know what was the problem.

Good to know


[build] Android APK building from command line

Just studying the possibility to directly build .apk programs from command line... to include with raylib all required tools, curated and packed in a single zip.
A lot of tools are involved in APK generation and they come in different Android packages, more info here.
Here it is a list with some of the command line tools provided: https://developer.android.com/studio/command-line/index.html
Android APK building using ANT
https://stuff.mit.edu/afs/sipb/project/android/docs/tools/building/building-cmdline.html
Android APK building in raw mode (calling all required tools directly)

Code compilation, standalone toolchain could be used
Executable and assets packaging into .apk (unaligned, unsigned), using aapt program
Use dx tool to convert Java bytecode to Dalvik bytecode if required
Sign APK with a key using jarsigner tool, to generate key use keytool (info)
Aligning and optimizing APK, using zipalign tool

Note that .apk generation tools aapt and dx are included with Android build tools (installed with sdkmanager). Here some info on aapt usage: http://elinux.org/Android_aapt.
A quite good guide on this process can be found here.

Great reference: https://github.com/skanti/Android-Manual-Build-Command-Line

Being working on this issue for some days... and it's driving me crazy... everything seems to compile fine but obviously I'm missing some points...
Just implemented a custom Makefile to build an Android APK (ARMv7-A CPU architecture) but despite everything seems to be fine and APK is built, I get a INSTALL_FAILED_NO_MATCHING_ABIS error when trying to deploy to my Moto G (XT1032) device.
Project libraries are built for that architecture (-march=armv7-a) and device supports that architecture, so, I feel the issue is somewhere else, maybe on my AndroidManifest.xml options.
Also feel that libraylib.a and libopenal.so are not linked properly into the APK...
More info: Using latest Android NDK r16-beta standalone toolchain, using GCC.
I'm stuck, any help on this issue would be very appreciated...

@raysan5 AndroidManifest you use has same minimum and target sdk version, target should be latest (26) or at least 25. That should not be related to ABI I think, but it is not correct.

Hi @gen2brain, thanks for the answer!
Checking the documentation, it seems I can just skip the android:targetSdkVersion parameter and it should work ok. Actually, when building APK using ndk-build system, target sdk was always set to a lower version than my device and it worked ok.

Just in case it could be useful, this is the output command line:
Process started >>>
if not exist temp mkdir temp
if not exist temp\obj mkdir temp\obj
if not exist temp\src mkdir temp\src
if not exist lib mkdir lib
if not exist temp\bin mkdir temp\bin
C:/android_toolchain_arm_api16/bin/arm-linux-androideabi-gcc -c C:/android-ndk/sources/android/native_app_glue/android_native_app_glue.c -o temp/obj/native_app_glue.o -O2 -s -Wall -std=c99 -DPLATFORM_ANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16
C:/android_toolchain_arm_api16/bin/arm-linux-androideabi-ar rcs .//lib/libnative_app_glue.a temp/obj/native_app_glue.o
C:/android_toolchain_arm_api16/bin/arm-linux-androideabi-gcc -c jni/basic_game.c -o temp/obj/basic_game.o -I. -Ijni/include -IC:/android-ndk/sources/android/native_app_glue -O2 -s -Wall -std=c99 -DPLATFORM_ANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 --sysroot=C:/android_toolchain_arm_api16/sysroot -fPIC
C:/android_toolchain_arm_api16/bin/arm-linux-androideabi-gcc -o lib/libraylib_game.so temp/obj/basic_game.o -shared -I. -Ijni/include -IC:/android-ndk/sources/android/native_app_glue -L. -Ljni/libs -Ljni -Llib -lraylib -llog -landroid -lEGL -lGLESv2 -lOpenSLES -lnative_app_glue
C:/PROGRA~1/Java/jdk1.8.0_144/bin/keytool -genkeypair -validity 1000 -dname "CN=raylib,O=Android,C=JPN" -keystore temp/raylibGame.keystore -storepass raylib -keypass raylib -alias raylibGameKey -keyalg RSA
C:/android-sdk/build-tools/26.0.1/aapt package -f -m -S res -J temp/src -M AndroidManifest.xml -I C:/android-sdk/platforms/android-16/android.jar
C:/PROGRA~1/Java/jdk1.8.0_144/bin/javac -source 1.7 -target 1.7 -d temp/obj -classpath C:/android-sdk/platforms/android-16/android.jar -sourcepath temp/src temp/src/com/raylib/game_sample/R.java
warning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning
C:/android-sdk/build-tools/26.0.1/dx --dex --output=temp/bin/classes.dex temp/obj
C:/android-sdk/build-tools/26.0.1/aapt package -f -m -M AndroidManifest.xml -S res -A assets -I C:/android-sdk/platforms/android-16/android.jar -F temp/bin/raylibGame.unsigned.apk -J temp/bin
fakeLogOpen(/dev/log_crash, O_WRONLY) failed
fakeLogOpen(/dev/log_security, O_WRONLY) failed
fakeLogOpen(/dev/log_security, O_WRONLY) failed
C:/android-sdk/build-tools/26.0.1/aapt add .//temp/bin/raylibGame.unsigned.apk lib/libraylib_game.so
 'lib/libraylib_game.so'...
C:/PROGRA~1/Java/jdk1.8.0_144/bin/jarsigner -keystore temp/raylibGame.keystore -storepass raylib -keypass raylib -signedjar .//temp/bin/raylibGame.signed.apk temp/bin/raylibGame.unsigned.apk raylibGameKey
jar signed.

Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2020-06-22) or after any future revocation date.
C:/android-sdk/build-tools/26.0.1/zipalign -f 4 temp/bin/raylibGame.signed.apk raylibGame.apk
<<< Process finished. (Exit code 0)

Also avoid javac warning passing -bootclasspath $(JAVA_HOME)/jre/lib/rt.jar (it shouldn't be an issue), that way fakeLogOpen() errors don't appear but result is the same, error when trying to install APK.

Perhaps you can try to build with just -mtune and -mcpu and without -march. The binary should work on lots of different cpus, something like -mtune=generic-armv7 -mcpu=arm7 maybe, or similar.

I'm not expert on this, but I found something in the documentation. Maybe you can this option in the Android.mk file:
APP_ABI := armeabi-v7a
The doc says the default option is armeabi.

Thanks @gen2brain, just checked it but no -mtune values are recognized (tried some) and -mcpu give errors on compilation, also tried no specifing any architecture and let the compiler choose (probably the lowest level arquitecture, basic arm).
Hi @RafaelOliveira, thanks for the answer, APP_ABI := armeabi-v7a is for the ndk-build system, I'm not using it anymore, just replaced it by a custom Makefile... but just for record, I also tried it (with te old ndk-build).
Reading latest Android NDK version information, the NDK roadmap and some NDK bugs, it make me think that maybe some internal things in NDK libs change (specifically in android_app_glue) that make raylib compilation not working properly (I bet it's related to linkage...) but I don't know...

Your output goes just to lib/libname.so , can you try to put it in libs/armeabi-v7a/ ?

Hey @gen2brain!  Changing lib path to lib/armeabi-v7a/libname.so did the trick! Now at least it let me install the APK in the device... but it doesn't seem to even start...
Keep working on it...

Hi @raysan5,
are you able to start logcat after deployment (install via adb to device)? Once you have that running, everything else will be much simpler.
Use
       COMMAND ${ANDROID_HOME}/platform-tools/adb logcat -c
        COMMAND ${ANDROID_HOME}/platform-tools/adb logcat *:W

Thanks @skanti, yeah, already tried logcat but unfortunately it doesn't provide much info... it seems application don't even start... :(
raylibGame.apk: 1 file pushed. 4.4 MB/s (2887087 bytes in 0.625s)
	pkg: /data/local/tmp/raylibGame.apk
Success
C:/android-sdk/platform-tools/adb logcat -c
C:/android-sdk/platform-tools/adb -d logcat raylib:V *:S
--------- beginning of main
--------- beginning of system

It should output raylib log traces but nothing... All captured traces with COMMAND ${ANDROID_HOME}/platform-tools/adb logcat *:W belong to other processes:
raylibGame.apk: 1 file pushed. 4.9 MB/s (2887087 bytes in 0.563s)
	pkg: /data/local/tmp/raylibGame.apk
Success
C:/android-sdk/platform-tools/adb logcat -c
C:/android-sdk/platform-tools/adb logcat *:W
--------- beginning of main
W/Quickoffice(10681): Cleanup of storage: done
E/WifiStateMachine(  903): [1,506,432,491,357 ms] noteScanEnd no scan source onTime=0
E/WifiStateMachine(  903): wifi setScanResults statecom.android.server.wifi.WifiStateMachine$DisconnectedState@265e8c00 sup_state=SCANNING debouncing=false mConnectionRequests=1 selection=<none>
--------- beginning of system
W/Quickoffice(10681): Could not load clipboard.
W/Quickoffice(10681): Could not store clipboard.
W/ActivityManager(  903): No permission grants found for com.quickoffice.android
E/NetworkScheduler.SR( 2019): Unrecognised action provided: android.intent.action.PACKAGE_REMOVED
W/WearSignatureVerifier( 4262): No package com.google.android.wearable.app.cn
W/WearSignatureVerifier( 4262): No package com.google.android.wearable.app.cn
W/WearSignatureVerifier( 4262): No package com.google.android.wearable.app.cn
W/WearSignatureVerifier( 4262): No package com.google.android.wearable.app.cn
W/WearSignatureVerifier( 4262): No package com.google.android.wearable.app.cn
E/Finsky  ( 4262): [1] com.google.android.finsky.wear.bl.a(3): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
W/Finsky  ( 4262): [1] com.google.android.finsky.wear.aj.run(9): Dropping command=auto_install due to Gms not connected
W/ResourcesManager(10750): Asset path '/system/framework/com.motorola.motosignature.jar' does not exist or contains no resources.
W/ResourcesManager(10768): Asset path '/system/framework/com.google.android.maps.jar' does not exist or contains no resources.
W/ActivityManager(  903): getRunningAppProcesses: caller 10164 does not hold REAL_GET_TASKS; limiting output
W/linker  (10768): libbreakpad.so: unused DT entry: type 0x6ffffffe arg 0x150c
W/linker  (10768): libbreakpad.so: unused DT entry: type 0x6fffffff arg 0x2
W/linker  (10768): libsigmux.so: unused DT entry: type 0x6ffffffe arg 0x57c
W/linker  (10768): libsigmux.so: unused DT entry: type 0x6fffffff arg 0x1
E/InstagramApplicationForMainProcess(10768): Can't load GNU STL lib
E/InstagramApplicationForMainProcess(10768): java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libcpp_helper.so
E/InstagramApplicationForMainProcess(10768): 	at com.facebook.soloader.t.a(:79064)
E/InstagramApplicationForMainProcess(10768): 	at com.facebook.soloader.t.c(:79093)

After lot of testing and trying I realized that the most simple answer should the correct one... my NativeActivity is not executing.

Hi @skanti, after some more testing I managed to get a good trace:
--------- beginning of crash
E/AndroidRuntime( 3415): FATAL EXCEPTION: main
E/AndroidRuntime( 3415): Process: com.raylib.game_sample, PID: 3415
E/AndroidRuntime( 3415): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.raylib.game_sample/android.app.NativeActivity}: java.lang.IllegalArgumentException: Unable to find native library: raylib_game
E/AndroidRuntime( 3415): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2339)
E/AndroidRuntime( 3415): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2413)
E/AndroidRuntime( 3415): 	at android.app.ActivityThread.access$800(ActivityThread.java:155)
E/AndroidRuntime( 3415): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
E/AndroidRuntime( 3415): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 3415): 	at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 3415): 	at android.app.ActivityThread.main(ActivityThread.java:5343)
E/AndroidRuntime( 3415): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 3415): 	at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 3415): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
E/AndroidRuntime( 3415): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
E/AndroidRuntime( 3415): Caused by: java.lang.IllegalArgumentException: Unable to find native library: raylib_game
E/AndroidRuntime( 3415): 	at android.app.NativeActivity.onCreate(NativeActivity.java:170)
E/AndroidRuntime( 3415): 	at android.app.Activity.performCreate(Activity.java:6010)
E/AndroidRuntime( 3415): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1129)
E/AndroidRuntime( 3415): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
E/AndroidRuntime( 3415): 	... 10 more
W/ActivityManager(  903):   Force finishing activity 1 com.raylib.game_sample/android.app.NativeActivity
W/ActivityManager(  903): Activity pause timeout for ActivityRecord{15273e1f u0 com.raylib.game_sample/android.app.NativeActivity t1685 f}

For some reason libraylib_game.so library is not found, despite being located in:
raylibGame.apk > lib/armeabi-v7a/libraylib_game.so

Any idea? It seems some configuration/paths problem I'm messing them up...

Hi @raysan5,
the problem you have right now is an relatively "easy" fix. However, there could be several sources of error.

Check what architecture your target device has, is it ARM7?
Check if your apk has been built properly. That means, unarchive it with some tool e.g. apktool, make sure that in the unarchived apk there is no folder named unknown - if you find a folder with that name, that means something is messed up.
If you are building a native-activity which it seems like, see if the name of your lib matches the <meta-tag android:value> tag of your xml.

Hope that helps.

Hi @skanti, thanks for the quick answer:

I'm building for arm-v7a and my device MotoG (XT1032) with its CPU ARM Cortex-A7 supports ARMv7-A architecture.
It seems to be build properly, libraylib_game.so is located in lib/armeabi-v7a/ folder, also tried some other locations, just in case: lib/, lib/armeabi/, lib/arm/.

3. Lib name in my AndroidManifest.xml seems correct:
<meta-data android:name="android.app.lib_name" android:value="raylib_game" />

Actually, I used that same AndroidManifest.xml configuration in the part with ndk-build system and it worked ok.
For some reason, Java entry point is not finding the library to load... I'll take a closer look to javac process...

@raysan5 try with libs instead of lib directory. Also, if you have rooted phone you can check what is actually installed in /data/data/com.raylib.game_sample , just adb shell, then su, and list contents of directory, in that dir lib (without s) should exists with your library.

@gen2brain already tried with libs instead of lib, same result, library not found.
Thanks for the adb shell tip, tried it but unfortunately not rooted phone, permission denied.
I'm documenting myself on all the tools used in the process: aapt, javac, dx

Some relevant information: https://developer.android.com/ndk/guides/abis.html#aen

After lot of research, that's the closest answer to the problem:

This happens due to missing dependencies (or even implementations). You may be getting the "unable to load library: libFoo.so" but the real dependency missing may be libBar.so that is depended by libFoo.so. Or you may simply have declared functions and called them but have no implementation for them.

The problem is due to the way building an so file works. When you build a shared object using gcc, the linking step doesn't truly happen. For example within libFoo.so, you may declare a myFunc() prototype and call it. And you can skip the implementation of myFunc(){}. The gcc will happily build you a .so file. And it will happily end up in the apk. However when it's time to load library, this will break with the "unable to load library" message.

Tried comenting all the code and it seems library is loaded ok. Start working from this point again.

UPDATE: Last comment was right, for some reason raylib library is not linked properly into final libraylib_game.so library, it's weird because it's passed to linker and output library size seems correct...
I just created a simple Android C sample copying into the C file the basic raylib functions for Android:
static void InitWindow(int width, int height, void *state);     // Initialize Android activity
static void InitGraphicsDevice(int width, int height);          // Initialize graphic device
static void CloseWindow(void);                                  // Close window and unload OpenGL context

static void BeginDrawing(void);     // Setup canvas (framebuffer) to start drawing
static void EndDrawing(void);       // End canvas drawing and swap buffers (double buffering)
static void SwapBuffers(void);      // Copy back buffer to front buffers

Launched Makefile, generated APK (only 18KB!!!) and voilà! Android native activity running flawlessly with OpenGL ES 2.0 context initialized!
Now, let's check what happens with library linkage... no errors, no warnings... let's check libraylib_game.so symbols...
Thank you very much @gen2brain and @skanti for your time helping on this issue.

Congrats @raysan5  :) Quite an awkward error, I would expect that the linker would complain in such scenarios

Just checked libraylib_game.so and libraylib.a with nm tool to verify included symbols and also used readelf tool to verify libraries architecture (ARM-V7a), all was correct.
Something is not working properly on linkage and I don't know how to look for the problem... :(

Hey Ray, I just built apk on Linux using your Makefile (with a little modifications for my env etc.) and it crashes for me also. This is what I found, from logcat:
linker  : /data/app/com.raylib.game_sample-1/lib/arm/libraylib_game.so: is missing DT_SONAME will use basename as a replacement: "libraylib_game.so" AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.raylib.game_sample/android.app.NativeActivity}: java.lang.IllegalArgumentException: Unable to load native library: /data/app/com.raylib.game_sample-1/lib/arm/libraylib_game.so AndroidRuntime: Caused by: java.lang.IllegalArgumentException: Unable to load native library: /data/app/com.raylib.game_sample-1/lib/arm/libraylib_game.so
And when I access library in shell I get this:
root@j3xnlte:/data/app/com.raylib.game_sample-1/lib/arm # ./libraylib_game.so                                                                                CANNOT LINK EXECUTABLE: cannot locate symbol "alcOpenDevice" referenced by "./libraylib_game.so"...
So you link to shared openal but libopenal.so is not in apk. I tried to copy libopenal.so from your repo to same dir but that didn't help. Perhaps you can also add SONAME to library, I remember I had to add this for some project where I also had native library. Something like -Wl,-soname,libraylib_game.so .

Actually, OpenAL is not linked at all:
# /opt/android-toolchain-arm7/bin/arm-linux-androideabi-readelf --dynamic ./libraylib_game.so | grep NEEDED  0x00000001 (NEEDED)                     Shared library: [liblog.so]  0x00000001 (NEEDED)                     Shared library: [libandroid.so]  0x00000001 (NEEDED)                     Shared library: [libEGL.so]  0x00000001 (NEEDED)                     Shared library: [libGLESv2.so]  0x00000001 (NEEDED)                     Shared library: [libOpenSLES.so]  0x00000001 (NEEDED)                     Shared library: [libc.so]  0x00000001 (NEEDED)                     Shared library: [libdl.so]

Hey @gen2brain! Thanks for testing! It seems you get some more clear debug info than me!
I know, OpenAL is not linked, but it shouldn't be a problem as far as no function is called ever , at least that's the case in windows... but clearly some linked (or not linked) libraries are not working properly...
Just uploaded a stripped version of raylib right now here: https://github.com/raysan5/raylib/tree/develop/templates/android_project
Please, could you try with that project? It shouldn't require any additional library but it fails the same way...

Wow! That's great! :D
Now, the question is: why it doesn't work on my side??? I keep getting same errors... >_<
Well, at least that's a step forward... which version of the Android NDK are you using? GCC or  Clang? version?

NDK version is 14b, the latest build now was with clang, before that it was gcc I think, whatever was in Makefile.
Btw. I had to comment ANDROID_* variables in Makefile and export them in my shell. I guess ?= is needed. And there is some error in project_dirs, so I just created dirs manually.
# make
if not exist temp mkdir temp
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [Makefile:78: project_dirs] Error 1

ok, I'm using Android NDK r16 beta1, reading changelog more carefully, notice that some of the changed could be involved in the crash (GCC not supported, libc++ as default linkage, unified headers, libandroid_support...).
I'll try compiling with r14b tomorrow...
About ANDROID_* variables, maybe they are already defined in your environment or maybe problem is related to slash (/) dir separator... something similar with mkdir, maybe permissions or not able to create directory trees (I think it requires -p arg) or the space at the end of that line...

Maybe related: https://android.googlesource.com/platform/ndk.git/+/master/docs/UnifiedHeaders.md

Standalone toolchains using GCC are not supported out of the box. To use GCC, pass -D__ANDROID_API__=$API when compiling. Note: this is not something we will be fixing.

By coincidence, just checked an old compilation trace using ndk-build system (clang, arm64-v8a), it seems they are using a couple of extra compilation parameters...
[arm64-v8a] Compile        : raylib_game <= basic_game.c
clang.exe   -MMD -MP -MF
            ./obj/local/arm64-v8a/objs/raylib_game/basic_game.o.d
            -gcc-toolchain C:/android-ndk/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64
            -target aarch64-none-linux-android
            -ffunction-sections
            -funwind-tables
            -fstack-protector-strong
            -fpic
            -Wno-invalid-command-line-argument
            -Wno-unused-command-line-argument
            -no-canonical-prefixes
            -g
            -O2
            -DNDEBUG
            -Ijni
            -Ijni/include
            -Iinclude
            -IC:/android-ndk/sources/android/native_app_glue
            -DANDROID
            -Wall
            -std=c99
            -DPLATFORM_ANDROID
            -D__ANDROID_API__=21
            -Wa,--noexecstack
            -Wformat
            -Werror=format-security
            --sysroot C:/android-ndk/sysroot
            -isystem C:/android-ndk/sysroot/usr/include/aarch64-linux-android
            -c jni/basic_game.c
            -o ./obj/local/arm64-v8a/objs/raylib_game/basic_game.o

[arm64-v8a] SharedLibrary  : libraylib_game.so
clang++.exe -Wl,-soname,libraylib_game.so
            -shared
            --sysroot=C:/android-ndk/platforms/android-21/arch-arm64
            ./obj/local/arm64-v8a/objs/raylib_game/basic_game.o
            jni/libs/libraylib.a
            ./obj/local/arm64-v8a/libandroid_native_app_glue.a
            -latomic
            -Wl,--exclude-libs,libatomic.a
            ./obj/local/arm64-v8a/libopenal.so
            -gcc-toolchain C:/android-ndk/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64
            -target aarch64-none-linux-android
            -no-canonical-prefixes
            -u ANativeActivity_onCreate
            -Wl,--build-id
            -Wl,--no-undefined
            -Wl,-z,noexecstack
            -Wl,-z,relro
            -Wl,-z,now
            -Wl,--warn-shared-textrel
            -Wl,--fatal-warnings
            -LC:/android-ndk/platforms/android-21/arch-arm64/usr/lib
            -llog -landroid -lEGL -lGLESv2 -lOpenSLES -llog -landroid -lc -lm
            -o ./obj/local/arm64-v8a/libraylib_game.so

Finally got it working with Android NDK r16 beta1, just added a bunch of flags for compilation and linkage:
# Compilers
CC = $(ANDROID_TOOLCHAIN)/bin/arm-linux-androideabi-gcc
AR = $(ANDROID_TOOLCHAIN)/bin/arm-linux-androideabi-ar

# Compiler flags for arquitecture
CFLAGS = -std=c99 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16
# Compilation functions attributes options
CFLAGS += -ffunction-sections -funwind-tables -fstack-protector-strong -fPIC
# Compiler options for the linker
CFLAGS += -Wall -Wa,--noexecstack -Wformat -Werror=format-security -no-canonical-prefixes
# Preprocessor macro definitions
CFLAGS += -DANDROID -DPLATFORM_ANDROID -D__ANDROID_API__=16

# Paths containing required header files
INCLUDES = -I. -Isrc/include -I$(ANDROID_NDK)/sources/android/native_app_glue

# Linker options
LFLAGS = -Wl,-soname,lib$(LIBRARY_NAME).so -Wl,--exclude-libs,libatomic.a
LFLAGS += -Wl,--build-id -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--warn-shared-textrel -Wl,--fatal-warnings
# Force linking of library module to define symbol
LFLAGS += -u ANativeActivity_onCreate
# Library paths containing required libs
LFLAGS += -L. -Lsrc -Llib -Lsrc/libs

# Define any libraries to link into executable
# if you want to link libraries (libname.so or libname.a), use the -lname
LIBS = -lnative_app_glue -lraylib -llog -landroid -lEGL -lGLESv2 -lOpenSLES -latomic -lc -lm

After further investigation (really wanted to know what was crashing the build), tried removing mostly all CFLAGS and LFLAGS, and the only real problem was not including -lm math library on linkage (-latomic and -lc could be skipped).
Well, next step, OpenAL Soft compilation and testing.

I compile OpenAL like this https://github.com/gen2brain/raylib-go/blob/master/examples/android/example/bootstrap.sh#L50 , with their cmake build system.
Static/shared option for OpenAL would be nice. For closed source projects it must be shared I think, not really an expert for licenses, but it is nice to only have one shared library with everything needed.

Hi @gen2brain! Did OpenAL Soft work on your side?
I added -lopenal to compilation linkage and copied libopenal.so into lib/armeabi-v7a for package generation... but program crashes at runtime (using original raylib game sample).
Again, I think it's related to some missing library on linkage (some OpenAL Soft dependency that is not included by default).
I'm generating CMake build with:
C:\openal-soft\build>cmake .. -G"MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=../XCompile-Android.txt -DHOST=arm-linux-androideabi -DCMAKE_C_FLAGS="-std=c99 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -ffunction-sections -funwind-tables -fstack-protector-strong -fPIC -Wall -Wa,--noexecstack -Wformat -Werror=format-security -no-canonical-prefixes -DANDROID -DPLATFORM_ANDROID -D__ANDROID_API__=16"

Finally, got it working... but using OpenAL static version (libopenal.a).
It would be great to know how to add other shader libraries to the APK, in case the user wants to build raylib as a shared library (libraylib.so).

Just kept working on shared libraries usage with no luck...
I build libraylib.so, libopenal.so and libraylib-game.so, linking the two first libraries into third one but it doesn't work... don't understand why... :(
I'm getting the same linkage error I was getting at the beginning, it seems some symbol is missing or something fails on linkage but no comprehensive output is provided by logcat...

Do all shared libraries have SONAME defined? For library that is loaded it can use basename instead, but if that library links to other that do not have SONAME it will not be able to find it. I think behaviour also depends on Android versions, I had similar problems.  You can check with
# /opt/android-toolchain-arm7/bin/arm-linux-androideabi-objdump -p libopenal.so | grep SONAME   SONAME               libopenal.so.1

Hi @gen2brain! Thank you very much for the information! Just tried recompiling OpenAL Soft defining SONAME but result is still libopenal.so.1. Used following cmake line:
cmake .. -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../XCompile-Android.txt -DHOST=arm-linux-androideabi -DCMAKE_C_FLAGS="-s -std=c99 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -ffunction-sections -funwind-tables -fstack-protector-strong -fPIC -Wall -Wa,--noexecstack -Wformat -Werror=format-security -no-canonical-prefixes -Wl,-soname,libopenal.so -DANDROID -DPLATFORM_ANDROID -D__ANDROID_API__=16"

Also tried including libopenal.so.1 in APK but it doesn't work... maybe it's an issue with Android version...
By the way, using static library versions (libraylib.a, libopenal.a, libnative_app_glue.a) it works great...

What about SONAME for libraylib.so and libraylib-game.so ?

What about SONAME for libraylib.so and libraylib-game.so ?

Verified both, they are ok: libraylib.so, libraylib-game.so
Also added -lld to linkage and tried everything again...

 I'm not an expert interpreting objdump info, maybe someone could spot some issue...

I had a quick flick through but did you make sure

the dependencies are compiled for arm?
different linking order
tried out with static libraries
placed all dependencies in the apk

Hi @skanti, thanks for the answer!

the dependencies are compiled for arm?

Yes, the only dependencies are libraylib.so, libopenal.so and libnative_app_glue.a, all of them have been compiled for ARM-v7a using -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 compilation parameters.

tried out with static libraries

Yes, actually, it works great using static libraries, only fails when using shared libs.

placed all dependencies in the apk

Yes, all dependencies are placed in the required folder lib/armeabi-v7a

different linking order

Didn't try that! Any recommendation for the most appropiate linking order? Current linking order is:
LDLIBS = -lnative_app_glue -lraylib -lopenal -llog -landroid -lEGL -lGLESv2 -lOpenSLES -latomic -lc -lm -ldl

In Linux you cannot use shared libraries even when they are placed in the same folder, you require this LD_LIBRARY_PATH variable to be set for look-up. I can imagine for android it is not any different - it's Unix based after all.
Try to set this variable in your device
Quick Disclaimer: What I am suggesting could be utter crap. However, in my years of experiences I had bugs in the most unspeakable places :)

Hi @skanti, I'm going to check the LD_LIBRARY_PATH... how can I set it in my device? I think it should be something that comes defined within the APK... but I'm investigating a bit on that line...
Also trying reordering libs.
About compilation parameters, just read it here.

Finally got it working, using static (libraylib.a, libopenal.a) and also shared (libraylib.so, libopenal.so) libraries. Those are the only library dependencies for a raylib Android game (a part of standard C lib).
Using static libraries was "easy", just link them into libraylib_game.so and that library is automatically loaded by the android.app.NativeActivity class, library name can be defined in AndroidManifest.xml using the meta tag:
<meta-data android:name="android.app.lib_name" android:value="raylib_game" />

If not defined that meta tag, by default, it tries to load libmain.so. More info here.
Using shared libraries was not that easy, after lot of research, found the answer here. Basically, it says that additionaly shared libraries required by NativeActivity need to be loaded manually before main shared library. Proposed solution is extending NativeActivity class (NativeLoader.java):
package com.raylib.game_sample;

public class NativeLoader extends android.app.NativeActivity
{
    static
    {
       System.loadLibrary("openal");
       System.loadLibrary("raylib");
       System.loadLibrary("raylib_game");
    }
 }

Some changes are required to AndroidManifest.xml, setting activity to NativeLoader and removing android:hasCode="false" value on application tag.
Additionally, NativeLoader.java needs to be added to command line javac compilation.
And voilà! raylib working in Android, as static and shared library.

Keep working on it for a better integration with raylib build pipeline...

Implemented in games templates.


[Brew] Respect homebrew configuration

Extension – Brew
Since homebrew doesn't have a user config file per se, it relies on environment variables and plugin should respect them. For example I have a custom AppDir in my HOMEBREW_CASK_OPTS that Raycast ignores.
Ideally, brew should be run within user default shell which you can find querying dscl: dscl . -read /Users/$(whoami) UserShell (add -plist for XML output). This way user will have homebrew with its respecful configuration, as homebrew developers imagined. This will work in almost all use cases so it should be the default bahavior, maybe with opt-out in Raycast config for some edge cases.

As far as I know, there is no good way to read user-defined env vars (especially if they are defined somewhere like .zshrc). Would be happy to be wrong, let me know if there is :D

Due to how shells are historically configured there are many places they look for config files. In theory you could do some guesswork like iterating through all available initial config files that are known for all the shells, checking them for homebrew variables, then checking files they are sourcing, then checking what they're sourcing etc. but thats very, very ugly, verging on pointless.
Whats a nice way to do it is to get all that automagically by just running brew commands wrapped with the user's default shell that knows best where it stores its variables and sources them itself.
I just made a quick test, things starting with % are commands, the rest is output or a comment:
# CHECKING FOR CURRENT SESSION VARIABLE
% brew config | grep HOMEBREW_CASK_OPTS
HOMEBREW_CASK_OPTS: ["--appdir=/Users/grzegor/Applications"]

# CHECKING FOR NEW SESSION VARIABLE, SHOULD BE SAME AS ABOVE
% /bin/zsh -c 'brew config | grep HOMEBREW_CASK_OPTS'
HOMEBREW_CASK_OPTS: ["--appdir=/Users/grzegor/Applications"]

# CHANGING THE VARIABLE FOR NEW SESSIONS
% echo "export HOMEBREW_CASK_OPTS=/Applications/Homebrew" >> ~/.zshenv

# CHECKING THE CURRENT SESSION, SHOULD STILL HAVE OLD VARIABLE
% brew config | grep HOMEBREW_CASK_OPTS
HOMEBREW_CASK_OPTS: ["--appdir=/Users/grzegor/Applications"]

# CHECKING NEW SESSION, SHOULD READ THE UPDATED ONE
% /bin/zsh -c 'brew config | grep HOMEBREW_CASK_OPTS'
HOMEBREW_CASK_OPTS: ["/Applications/Homebrew"]

So the non-interactive /bin/zsh -c clearly initialises its variables properly from its config files on each spawn. I have no idea if it's the expected behaviour of all POSIX shells though (not even sure if fish is POSIX compliant), but worst case scenario it will work with OS default one that is very rarely changed (and if it is, then we can assume that user knows what they're doing anyway).
I also benchmarked it:
% time /bin/zsh -c "brew help" >/dev/null
/bin/zsh -c "brew help" > /dev/null  0.37s user 0.20s system 93% cpu 0.608 total

% time brew help >/dev/null
brew help > /dev/null  0.36s user 0.20s system 92% cpu 0.607 total

Wrapping brew command with shell adds 0.01 second to the execution time. I think the difference is insignificant.
I have no idea how node runs external executables, but if it doesn't care whether it's a path to a literal binary executable file or just a command string to execute then a trivial change to brewExecutable() function to return not something like /opt/homebrew/bin/brew but /bin/zsh -c /opt/homebrew/bin/brew instead (where /bin/zsh you get with the dscl query I posted in my previous comment, because some people may be running bash or fish or whatever) would result in brew command run in the expected environment with all variables (again, shell itself knows best where to look for them).


I  transpile the node_modules folder ，But there's an error  @atomiks

I  transpile the node_modules folder ，But there's an error  @atomiks

Originally posted by @gyf30827 in https://github.com/floating-ui/floating-ui/issues/1888#issuecomment-1249084595

@gyf30827 this doesn't look like a problem with Floating UI, something is wrong with your project configuration, you should try asking on StackOverflow.


Support daemonStatus in GraphQL

Derived using Status.Fields so we'll get a compile error if we forget
to update the GraphQL schema when we change the record.
Built out a little toolkit of field-based reflection functions to easily
stitch together graphql representations of our fields.
Added deriving fields to a few type dependencies of status record.
Tested by verifying schema is created properly:

cc @jkrauska and @yourbuddyconner


Refactor and fix marine Fast Sprint and Fast Reload

Added network variables for Fast Sprint & Fast Reload to Marine class
Fast Sprint adds kSprintSpeedUpgradeScalar to Marine:GetMaxSpeed to max speed.
Changed kSprintSpeedUpgradeScalar from 3.25 to 1.35.
Added kFastSprintTime = 1.0, new time to reach max sprint speed with Fast Sprint.
Fast Sprint upgrade is checked by Marine when sprint begins.
Fast Reload upgrade is checked by ClipWeapon when reload begins.
moved fast reload and fast sprint upgrade checks from Player to Marine class

Thanks a lot!!!


Match Regex Namespaces for pod scenarios

I would like to be able to match/find all pods in a namespace containing a certain regex string. I think adding in regex namespace comparison would more align with the filters section
Currently you can match on all namespaces
match:
      - namespace:
          name: "*"

Would like to add matching based on regex namespaces
match:
      - namespace:
          name: "regex-*"

Similar to
filters:
      - property:
          name: "name"
          value: "regex-*"

Thanks for the suggestion!
The reason for the current implementation, is that we can do the currently available searches efficiently - you can get all of the namespaces, or a single one. If we wanted to add regular expression, we'd need to download them all, match against regex, and then query for the matching ones. Typically, clusters don't have a massive amount of namespaces, so we could consider that.
I'll mark it as a good first issue.

This has been solved by https://github.com/bloomberg/powerfulseal/pull/276


Reintroduce ren/red-quri.hoon

~talsur-todres= how do i write a redirect?
--------[4.550]
~talsur-todres= (that's for fyr too)
...
          ~fyr@ could have sworn there was a ren/red-quri checked in
          ~fyr= maybe it got "cleaned" along with the docs?

It used to exist, probably got deleted because it was used only to point /doc to /docs, should exist again to demonstrate how to set up redirects.

Do we still have red-quri?  I don't see it, and we don't use it.

We do, you see it in "out of options" stack traces; but we in fact don't use it, and if it's not gone on master it should be.


tensorflow/core/common_runtime/bfc_allocator.cc:275] Ran out of memory trying to allocate 392.00MiB.  See logs for memory state.

Can you please help how to fix this? I don't have another tf process going or anything using GPU:
mona@pascal:~/computer_vision/tf-faster-rcnn$ ./experiments/scripts/test_vgg16.sh $GPU_ID pascal_voc
+ set -e
+ export PYTHONUNBUFFERED=True
+ PYTHONUNBUFFERED=True
+ GPU_ID=0
+ DATASET=pascal_voc
+ array=($@)
+ len=2
+ EXTRA_ARGS=
+ EXTRA_ARGS_SLUG=
+ case ${DATASET} in
+ TRAIN_IMDB=voc_2007_trainval
+ TEST_IMDB=voc_2007_test
+ ITERS=70000
++ date +%Y-%m-%d_%H-%M-%S
+ LOG=experiments/logs/test_vgg16_voc_2007_trainval_.txt.2017-02-13_21-19-04
+ exec
++ tee -a experiments/logs/test_vgg16_voc_2007_trainval_.txt.2017-02-13_21-19-04
tee: experiments/logs/test_vgg16_voc_2007_trainval_.txt.2017-02-13_21-19-04: No such file or directory
+ echo Logging output to experiments/logs/test_vgg16_voc_2007_trainval_.txt.2017-02-13_21-19-04
Logging output to experiments/logs/test_vgg16_voc_2007_trainval_.txt.2017-02-13_21-19-04
+ set +x
+ [[ ! -z '' ]]
+ CUDA_VISIBLE_DEVICES=0
+ time python ./tools/test_vgg16_net.py --imdb voc_2007_test --weight data/imagenet_weights/vgg16.weights --model output/vgg16/voc_2007_trainval/default/vgg16_faster_rcnn_iter_70000.ckpt --cfg experiments/cfgs/vgg16.yml --set
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so.5.0 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so.8.0 locally
Called with args:
Namespace(cfg_file='experiments/cfgs/vgg16.yml', comp_mode=False, imdb_name='voc_2007_test', max_per_image=100, model='output/vgg16/voc_2007_trainval/default/vgg16_faster_rcnn_iter_70000.ckpt', set_cfgs=[], tag='', weight='data/imagenet_weights/vgg16.weights')
Using config:
{'DATA_DIR': '/home/mona/computer_vision/tf-faster-rcnn/data',
 'DEDUP_BOXES': 0.0625,
 'EPS': 1e-14,
 'EXP_DIR': 'vgg16',
 'GPU_ID': 0,
 'MATLAB': 'matlab',
 'PIXEL_MEANS': array([[[ 102.9801,  115.9465,  122.7717]]]),
 'POOLING_MODE': 'crop',
 'RNG_SEED': 3,
 'ROOT_DIR': '/home/mona/computer_vision/tf-faster-rcnn',
 'TEST': {'BBOX_REG': True,
          'HAS_RPN': True,
          'MAX_SIZE': 1000,
          'MODE': 'nms',
          'NMS': 0.3,
          'PROPOSAL_METHOD': 'selective_search',
          'RPN_NMS_THRESH': 0.7,
          'RPN_POST_NMS_TOP_N': 300,
          'RPN_PRE_NMS_TOP_N': 6000,
          'RPN_TOP_N': 5000,
          'SCALES': [600],
          'SVM': False},
 'TRAIN': {'ASPECT_GROUPING': False,
           'BATCH_SIZE': 256,
           'BBOX_INSIDE_WEIGHTS': [1.0, 1.0, 1.0, 1.0],
           'BBOX_NORMALIZE_MEANS': [0.0, 0.0, 0.0, 0.0],
           'BBOX_NORMALIZE_STDS': [0.1, 0.1, 0.2, 0.2],
           'BBOX_NORMALIZE_TARGETS': True,
           'BBOX_NORMALIZE_TARGETS_PRECOMPUTED': True,
           'BBOX_REG': True,
           'BBOX_THRESH': 0.5,
           'BG_THRESH_HI': 0.5,
           'BG_THRESH_LO': 0.0,
           'BIAS_DECAY': False,
           'DISPLAY': 20,
           'DOUBLE_BIAS': True,
           'FG_FRACTION': 0.25,
           'FG_THRESH': 0.5,
           'GAMMA': 0.1,
           'HAS_RPN': True,
           'IMS_PER_BATCH': 1,
           'LEARNING_RATE': 0.001,
           'MAX_SIZE': 1000,
           'MOMENTUM': 0.9,
           'PROPOSAL_METHOD': 'gt',
           'RPN_BATCHSIZE': 256,
           'RPN_BBOX_INSIDE_WEIGHTS': [1.0, 1.0, 1.0, 1.0],
           'RPN_CLOBBER_POSITIVES': False,
           'RPN_FG_FRACTION': 0.5,
           'RPN_NEGATIVE_OVERLAP': 0.3,
           'RPN_NMS_THRESH': 0.7,
           'RPN_POSITIVE_OVERLAP': 0.7,
           'RPN_POSITIVE_WEIGHT': -1.0,
           'RPN_POST_NMS_TOP_N': 2000,
           'RPN_PRE_NMS_TOP_N': 12000,
           'SCALES': [600],
           'SNAPSHOT_ITERS': 5000,
           'SNAPSHOT_KEPT': 3,
           'SNAPSHOT_PREFIX': 'vgg16_faster_rcnn',
           'STEPSIZE': 30000,
           'SUMMARY_INTERVAL': 180,
           'TRUNCATED': False,
           'USE_FLIPPED': True,
           'USE_GT': False,
           'WEIGHT_DECAY': 0.0005},
 'USE_GPU_NMS': True}
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 0 with properties:
name: Tesla K40c
major: 3 minor: 5 memoryClockRate (GHz) 0.8755
pciBusID 0000:03:00.0
Total memory: 11.92GiB
Free memory: 572.75MiB
I tensorflow/core/common_runtime/gpu/gpu_device.cc:972] DMA: 0
I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 0:   Y
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -> (device: 0, name: Tesla K40c, pci bus id: 0000:03:00.0)
Loading caffe weights...
Done!
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (256): 	Total Chunks: 1, Chunks in use: 0 256B allocated for chunks. 256B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (512): 	Total Chunks: 1, Chunks in use: 0 512B allocated for chunks. 512B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (1024): 	Total Chunks: 1, Chunks in use: 0 1.0KiB allocated for chunks. 1.0KiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (2048): 	Total Chunks: 1, Chunks in use: 0 2.0KiB allocated for chunks. 2.0KiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (4096): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (8192): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (16384): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (32768): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (65536): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (131072): 	Total Chunks: 1, Chunks in use: 0 130.0KiB allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (262144): 	Total Chunks: 1, Chunks in use: 0 288.0KiB allocated for chunks. 288.0KiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (524288): 	Total Chunks: 2, Chunks in use: 0 1.44MiB allocated for chunks. 576.0KiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (1048576): 	Total Chunks: 2, Chunks in use: 0 2.88MiB allocated for chunks. 1.12MiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (2097152): 	Total Chunks: 1, Chunks in use: 0 2.25MiB allocated for chunks. 2.25MiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (4194304): 	Total Chunks: 2, Chunks in use: 0 11.50MiB allocated for chunks. 4.50MiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (8388608): 	Total Chunks: 1, Chunks in use: 0 9.00MiB allocated for chunks. 9.00MiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (16777216): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (33554432): 	Total Chunks: 1, Chunks in use: 0 37.00MiB allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (67108864): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (134217728): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:643] Bin (268435456): 	Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.
I tensorflow/core/common_runtime/bfc_allocator.cc:660] Bin for 392.00MiB was 256.00MiB, Chunk State:
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1305ba0000 of size 1280
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1305ba0600 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1305ba0700 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1305ba0a00 of size 512
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1305ba0c00 of size 512
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1305ba1200 of size 1024
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1305ba1600 of size 1024
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1305ba1a00 of size 1536
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1305ba2000 of size 6912
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1305ba4300 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1305ba4b00 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1305ba5300 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1305ba5b00 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1305ba6300 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1305ba6b00 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1305bc7b00 of size 147456
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1305c33b00 of size 443648
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x1305ba0500 of size 256
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x1305ba0800 of size 512
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x1305ba0e00 of size 1024
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x1305ba3b00 of size 2048
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x1305ba7300 of size 133120
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x1305bebb00 of size 294912
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1306930000 of size 589824
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x13068a0000 of size 589824
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x13069c0000 of size 917504
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1306bc0000 of size 1179648
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x1306aa0000 of size 1179648
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x1306ce0000 of size 1835008
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x13070e0000 of size 2359296
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1307320000 of size 3670016
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x1306ea0000 of size 2359296
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1307b20000 of size 4718592
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x13076a0000 of size 4718592
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x1307fa0000 of size 7340032
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x1308fa0000 of size 9437184
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x13098a0000 of size 14680064
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x13086a0000 of size 9437184
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x130a6a0000 of size 9437184
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x130afa0000 of size 9437184
I tensorflow/core/common_runtime/bfc_allocator.cc:678] Chunk at 0x130b8a0000 of size 9437184
I tensorflow/core/common_runtime/bfc_allocator.cc:687] Free at 0x130c1a0000 of size 38797312
I tensorflow/core/common_runtime/bfc_allocator.cc:693]      Summary of in-use Chunks by size:
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 2 Chunks of size 256 totalling 512B
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 2 Chunks of size 512 totalling 1.0KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 2 Chunks of size 1024 totalling 2.0KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 1280 totalling 1.2KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 1536 totalling 1.5KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 6 Chunks of size 2048 totalling 12.0KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 6912 totalling 6.8KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 147456 totalling 144.0KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 443648 totalling 433.2KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 589824 totalling 576.0KiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 1179648 totalling 1.12MiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 2359296 totalling 2.25MiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 3670016 totalling 3.50MiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 4718592 totalling 4.50MiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 4 Chunks of size 9437184 totalling 36.00MiB
I tensorflow/core/common_runtime/bfc_allocator.cc:696] 1 Chunks of size 14680064 totalling 14.00MiB
I tensorflow/core/common_runtime/bfc_allocator.cc:700] Sum Total of in-use chunks: 62.53MiB
I tensorflow/core/common_runtime/bfc_allocator.cc:702] Stats:
Limit:                   390856704
InUse:                    65562880
MaxInUse:                 74998016
NumAllocs:                      53
MaxAllocSize:             14680064

W tensorflow/core/common_runtime/bfc_allocator.cc:274] **_**__****x___****____________***************xxx**********************_____________________________
W tensorflow/core/common_runtime/bfc_allocator.cc:275] Ran out of memory trying to allocate 392.00MiB.  See logs for memory state.
Traceback (most recent call last):
  File "./tools/test_vgg16_net.py", line 89, in <module>
    tag='default', anchor_scales=anchors)
  File "/home/mona/computer_vision/tf-faster-rcnn/tools/../lib/nets/vgg16.py", line 481, in create_architecture
    rois, cls_prob, bbox_pred = self._vgg16_from_imagenet(sess, training)
  File "/home/mona/computer_vision/tf-faster-rcnn/tools/../lib/nets/vgg16.py", line 375, in _vgg16_from_imagenet
    fc6 = self._fc_layer(sess, pool5, "fc6", train)
  File "/home/mona/computer_vision/tf-faster-rcnn/tools/../lib/nets/vgg16.py", line 129, in _fc_layer
    weight = self._get_fc_weight(sess, name, trainable=trainable)
  File "/home/mona/computer_vision/tf-faster-rcnn/tools/../lib/nets/vgg16.py", line 104, in _get_fc_weight
    sess.run(weight.initializer, feed_dict={phcw: cw})
  File "/home/mona/tensorflow/_python_build/tensorflow/python/client/session.py", line 717, in run
    run_metadata_ptr)
  File "/home/mona/tensorflow/_python_build/tensorflow/python/client/session.py", line 915, in _run
    feed_dict_string, options, run_metadata)
  File "/home/mona/tensorflow/_python_build/tensorflow/python/client/session.py", line 965, in _do_run
    target_list, options, run_metadata)
  File "/home/mona/tensorflow/_python_build/tensorflow/python/client/session.py", line 985, in _do_call
    raise type(e)(node_def, op, message)
tensorflow.python.framework.errors.InternalError: Dst tensor is not initialized.
	 [[Node: _recv_vgg16_default/fc6/Placeholder_0/_53 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/gpu:0", send_device="/job:localhost/replica:0/task:0/cpu:0", send_device_incarnation=1, tensor_name="edge_4__recv_vgg16_default/fc6/Placeholder_0", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/gpu:0"]()]]
Command exited with non-zero status 1
5.24user 4.06system 0:16.86elapsed 55%CPU (0avgtext+0avgdata 2066436maxresident)k
0inputs+32outputs (0major+320384minor)pagefaults 0swaps
mona@pascal:~/computer_vision/tf-faster-rcnn$ ps
  PID TTY          TIME CMD
21495 pts/15   00:00:01 bash
24534 pts/15   00:00:00 ps
mona@pascal:~/computer_vision/tf-faster-rcnn$

I had Jupyter opened (using jupyter notebook command) in another tab and even though I wasn't running anything with it and I already had trained my data using GPU, after closing it, I didn't receive out of memory issue.

same problem...
Thanks!


Xcode 14.3

It's not possible to compile code on latest version of Xcode 14.3. Added via Xcode Package Dependencies.
Error:
missing required module "SDWebImage"

I'm having this issue. I have a sub package that has the dependencies added correctly, but im getting this error in Previews only (I can compile, i can build to device, but previews don't work at all and give this same error)

I'm having this issue. I have a sub package that has the dependencies added correctly, but im getting this error in Previews only (I can compile, i can build to device, but previews don't work at all and give this same error)

Need a demo project to show this issue. Open SDWebImageSwiftUI/Package.swift can build without error. Is this exists only on a App project (which use Xcode's Package dependency?)

Seems using demo run does not contains any issue:

Seems using Preview does not contains this issue ? Click run to play

SDWebImageSwiftUIDemo.zip

From the #259 Maybe you should disable Library Evolution when you integrate with Static Library

Solved in v2.2.3


Douban dataset code

Hello! Can you open source your code for Douban dataset

Hi, this code can be easily adapted to Douban dataset with word/char dictionaries and pre-trained embeddings. You can download Douban corpus according to the instruction in https://github.com/MarkWuNLP/MultiTurnResponseSelection.

OK! thanks!

Hi, Could you share the pkl file ("word vocabulary file, pre-trained word embedding file, char vocabulary file, and pre-trained char embedding file. ") about Douban?

Hi, Could you share the pkl file ("word vocabulary file, pre-trained word embedding file, char vocabulary file, and pre-trained char embedding file. ") about Douban?

Hi, Could you share the pkl file ("word vocabulary file, pre-trained word embedding file, char vocabulary file, and pre-trained char embedding file. ") about Douban?

Hi, this code can be easily adapted to Douban dataset with word/char dictionaries and pre-trained embeddings. You can download Douban corpus according to the instruction in https://github.com/MarkWuNLP/MultiTurnResponseSelection.


Add support for boost async loop

It was there in the examples directory :
But they removed it.
https://github.com/CopernicaMarketingSoftware/AMQP-CPP/commit/1392e2b8736e035f26935e6f6f41de82d4eae886

Tried to use it without success. The messaging publishing doesn't work at all. Maybe this was a reason why they removed it. Thanks for the reference anyway..

I am using a copy it with vs2015 and works well


[Usage] Error "KeyERROR: "LlavaMistralConfig"" in reasoning

Describe the issue
Issue:
I downloaded llava-v1.6-mistral-7b locally, and this "LlavaMistralConfig" problem appeared when reasoning about llava-v1.6-mistral-7b, I don't know the exact reason for this, I am following the normal startup order of the web_demo to start up this new model, but it doesn't work, in the With LLAVA-v1.5 it reasoned correctly!

Traceback (most recent call last):
File "/opt/conda/envs/llava/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/conda/envs/llava/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/root/siton-glusterfs-eaxtsxdfs/hzt/projects/LLaVA-main_main/llava/serve/cli.py", line 130, in
main(args)
File "/root/siton-glusterfs-eaxtsxdfs/hzt/projects/LLaVA-main_main/llava/serve/cli.py", line 32, in main
tokenizer, model, image_processor, context_len = load_pretrained_model(args.model_path, args.model_base, model_name, args.load_8bit, args.load_4bit, device=args.device)
File "/root/siton-glusterfs-eaxtsxdfs/hzt/projects/LLaVA-main_main/llava/model/builder.py", line 108, in load_pretrained_model
tokenizer = AutoTokenizer.from_pretrained(model_path)
File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 803, in from_pretrained
tokenizer_class_py, tokenizer_class_fast = TOKENIZER_MAPPING[type(config)]
File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 737, in getitem
model_type = self._reverse_config_mapping[key.name]
KeyError: 'LlavaMistralConfig'


List index out of range

Hi NormXU,
I am getting this error.
Traceback (most recent call last):
  File "inference.py", line 16, in <module>
    tokenizer = ErnieLayoutTokenizer.from_pretrained(pretrained_model_name_or_path=pretrain_torch_model_or_path)
  File "D:\startup-resources\ERNIE-Layout-Pytorch\Ernie-Layout\lib\site-packages\transformers\tokenization_utils_base.py", line 1708, in from_pretrained
    file_id = list(cls.vocab_files_names.keys())[0]
IndexError: list index out of range

Please help

Hi, sorry for the late reply;
I guess it is because you forget to declare vocab_file path in tokenizer_config.yml
The tokenizer_config.yml looks like this
{
  "do_tokenize_postprocess": false,
  "sep_token": "[SEP]",
  "cls_token": "[CLS]",
  "unk_token": "[UNK]",
  "pad_token": "[PAD]",
  "mask_token": "[MASK]",
  "do_lower_case": true,
  "model_max_length": 512,
  "vocab_file": "/path/to/vocab.txt",  # here you need to replace with your path to vocab.txt
  "sentencepiece_model_file": "/path/to/sentencepiece.bpe.model" # here you need to replace with your path to sentencepiece.bpe.model
}

I have update the repo and corresponding tokenizer_config.yml at model hub, please pull the latest version and try again


Write new smoke tests for disease page

Basic smoke tests have been written and reviewed by team. However, tests have not been implemented as all IE11 tests - including existing smoke tests - fail in local test environment.
Ticket moved to next sprint.

Ticket closed as updated updated smoke tests have been written and can be implemented as part of #1129


awsclient: initialize elbv2 client

In one of the rebases it looks like I missed initializing elbv2 client. 🤦🏽
/assign @dgoodwin

/lgtm


SDK availability

now that racermate is defunct would you be able to provide SDKs.  doesn't appear to be any support from the remaining entity.

closing


CLOUD-42759 Fix error message when infrastructure creation failed

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1733/


Accurate BM25

Accurate BM25 as proposed by Leo Boytsov

Please add license header, then go ahead and merge.


Fedora 23 Suport

This is not a issue, is there a Fedora rpm install for this software?
Or a guide?

Why not just compile it yourself? The instructions are on the README.md and are easy enough to follow. If you absolutely NEED an RPM for some odd reason, I can provide one (since I'm on a Fedora Remix), but I'd need a good reason.