prisma db push with in-memory mongodb hangs when model has more than 7 unique/index field

Bug description
I have a in-memory mongodb setup for unit testing, and after the db is up, I run prisma db push using execSync in my setup script. I run the DB setup script in jest beforeAll() function so it will run fresh before each test suite.
It was working fine for a few months during development then today, after i added another @@unique field to one of my model, it starts hanging at the execSync stage, while running npm run db:push, which runs prisma db push.
I discovered the cause by going through my latest commits and one of the recent change i made is adding 1 new @@unique field in one of my model. when i remove it, it starts working again.
I tested again, by re-adding it, and removed a different @@unique field and it magically works.
I even tested by removing one of my @@index field and leave all the @@unique field. it works.
My lazy assumption is that for some reason, it only works with a maximum of 7 @@unique or @@index field. I tested by adding more than 8, same result. so it seems that it will hang if it has more than 7.
appreciate it if anyone can help enlighten me on what might cause this.
important note: It works fine when i run prisma db push on a different / actual mongodb (docker), but it hangs when it is ran on an in-memory mongodb.
the model:
model CollectionName {
  id      String      @id @default(auto()) @map("_id") @db.ObjectId
  field1  String      @db.ObjectId
  field2  String
  field3  String
  field4  String      @db.ObjectId
  field5  String
  field6  String      @db.ObjectId
  field7  String
  field8  String
  field9  String
  field10 String
  field11 String
  field12 StatusLog[]
  field13 DateTime    @default(now()) @db.Date
  field14 String      @db.ObjectId
  field15 DateTime    @updatedAt @db.Date
  field16 String?     @db.ObjectId
  field18 DateTime?
  field19 String?     @db.ObjectId

  @@unique([field9])
  @@unique([field10])
  @@unique([field8]) <----------- issue started when i added this. removing it fixes it
  @@index([field12])
  // @@index([field6]) <--------- commenting any of these index/unique field also fixes it
  @@index([field7])
  @@index([field2])
  @@index([field6, field12])
  @@map("collectionNames")
}

My in-memory mongodb setup and prisma db push (underlying command of npm run db:push script)
import { MongoMemoryReplSet } from 'mongodb-memory-server';
import { PrismaClient } from '@prisma/client';
import { execSync } from 'child_process';

export const createMemoryMongoDbServer = async () => {
  // This will create an new instance of "MongoMemoryReplSet" and automatically start all Servers
  const mongoReplSet = await MongoMemoryReplSet.create({
    replSet: { count: 2, dbName: 'testDb', storageEngine: 'wiredTiger' }
  });
  const uri = mongoReplSet.getUri('testDb');
  const uriWithDb = uri;

  const stopServer = async () => {
    return mongoReplSet.stop();
  };

  return { stopServer, dbUrl: uriWithDb };
};

export const createTestPrismaClient = async () => {
  // start test db (in-memory mongodb replica)
  const { stopServer, dbUrl } = await createMemoryMongoDbServer();

  // instantiate prisma client with test db uri
  const prismaClient = new PrismaClient({ datasources: { db: { url: dbUrl } } });

  // run cli command to create indexes in test db, based on prisma/schema.prisma
  execSync(`DATABASE_URL=${dbUrl} npm run db:push`, {
    stdio: 'pipe'
  });

  // connect prisma client to test db
  await prismaClient.$connect();
  return { stopServer, prismaClient };
};

my node version is v20.10.0
prisma and @prisma/client version is ^5.8.0
How to reproduce

prepare prisma.schema with the model as above
run createTestPrismaClient() as above

Expected behavior
prisma db push does not hang
Prisma information

generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "mongodb"
  url      = env("DATABASE_URL")
}

model CollectionName {
  id      String      @id @default(auto()) @map("_id") @db.ObjectId
  field1  String      @db.ObjectId
  field2  String
  field3  String
  field4  String      @db.ObjectId
  field5  String
  field6  String      @db.ObjectId
  field7  String
  field8  String
  field9  String
  field10 String
  field11 String
  field12 StatusLog[]
  field13 DateTime    @default(now()) @db.Date
  field14 String      @db.ObjectId
  field15 DateTime    @updatedAt @db.Date
  field16 String?     @db.ObjectId
  field18 DateTime?
  field19 String?     @db.ObjectId

  @@unique([field9])
  @@unique([field10])
  @@unique([field8]) <----------- issue started when i added this. removing it fixes it
  @@index([field12])
  // @@index([field6]) <--------- commenting any of these index/unique field also fixes it
  @@index([field7])
  @@index([field2])
  @@index([field6, field12])
  @@map("collectionNames")
}

import { MongoMemoryReplSet } from 'mongodb-memory-server';
import { PrismaClient } from '@prisma/client';
import { execSync } from 'child_process';

export const createMemoryMongoDbServer = async () => {
  // This will create an new instance of "MongoMemoryReplSet" and automatically start all Servers
  const mongoReplSet = await MongoMemoryReplSet.create({
    replSet: { count: 2, dbName: 'testDb', storageEngine: 'wiredTiger' }
  });
  const uri = mongoReplSet.getUri('testDb');
  const uriWithDb = uri;

  const stopServer = async () => {
    return mongoReplSet.stop();
  };

  return { stopServer, dbUrl: uriWithDb };
};

export const createTestPrismaClient = async () => {
  // start test db (in-memory mongodb replica)
  const { stopServer, dbUrl } = await createMemoryMongoDbServer();

  // instantiate prisma client with test db uri
  const prismaClient = new PrismaClient({ datasources: { db: { url: dbUrl } } });

  // run cli command to create indexes in test db, based on prisma/schema.prisma
  execSync(`DATABASE_URL=${dbUrl} npm run db:push`, {
    stdio: 'pipe'
  });

  // connect prisma client to test db
  await prismaClient.$connect();
  return { stopServer, prismaClient };
};

Environment & setup

OS: Ubuntu 22.04.3 LTS
Database: MongoDB. mongodb-memory-server. version: ^9.1.6. underlying mongodb version: 6.0.9
Node.js version: v20.10.0

Prisma Version
5.8.0

Could this be a bug in https://github.com/nodkz/mongodb-memory-server/?

Could this be a bug in https://github.com/nodkz/mongodb-memory-server/?

Yeah. I decided to switch to traditional docker mongodb and it has been working fine so far. Very likely it is an issue with https://github.com/nodkz/mongodb-memory-server/ . closing this issue.


Fix filter.

Codecov Report

Merging #29 (1c73d13) into main (366df02) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #29   +/-   ##
=======================================
  Coverage   54.55%   54.55%
=======================================
  Files           5        5
  Lines         669      669
  Branches      342      342
=======================================
  Hits          365      365
  Misses         24       24
  Partials      280      280

Continue to review full report at Codecov.

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


Multiple Table in same Row

There is no support for adding two table in same row. Direction and alignment works only for different row.
i am unable to align two table in one row by left and right direction

A table is a block-level item, like a paragraph, and so cannot directly appear side-by-side with another table or paragraph.
However, a table can appear inside a cell of another table. So you can create a one-row, two-column table and place a table in each of its two cells. This would result in them appearing to be "on the same line".

Thank you very much, Steve, I solved the issue, I was trying the same logic but was doing the mistake, but it worked in the end.
I am sharing the code for others may it help.
table  = document.add_table(rows=1, cols=2) table.allow_autofit = False table._cells[0].width = Inches(4.0) table._cells[1].width = Inches(4.0)  column_first = table._cells[0].add_table(rows=2, cols=2) column_second = table._cells[1].add_table(rows=2, cols=2) column_first.style = 'TableGrid' column_second.style = 'TableGrid'


Make 'ResourceManagerStringLocalizer' overload internal

While we have InternalsVisibleTo in this line of https://github.com/aspnet/Localization/blob/dev/src/Microsoft.Framework.Localization/Properties/AssemblyInfo.cs#L6, it will be nice to modify the access modifier for ResourceManagerStringLocalizer overload to internal rather than public because the intend for this overload to be used for testing purpose only

That ctor is for unit test purposes only - it's fine to take internal-ish parameters.

The issue is not with the internal-ish parameters, my doubt is why the constructor is public while the intention is used internally

So that it can be called from tests... It's documented as being for test-only scenarios.

Yes it's documented, but why we need to make it public while the intend is used for testing purpose, it doesn't make sense. IMHO internal is suited as access modifier

What is the harm in keeping it public?

It is not harmful, but meaning-wise it doesn't make sense to use public for testing only!!

I think it's fine to leave it the way it is. Otherwise we'd have hundreds of places in ASP.NET / EF / DNX where we'd need to go scan and change things, and I don't think that's worth it.

Otherwise we'd have hundreds of places in ASP.NET / EF / DNX where we'd need to go scan and change things, and I don't think that's worth it.

Yep, but believe it or not it will consider as a lapse in the APIs and Framework Guidelines is obvious when shall we use public as well as internal, I hope you understand what is my aim which is make ASP.NET 5 bits better than before, and nothing more :smile:
All the best


ReactServerAgent doesn't rehydrate err.response on the client

Scenario: data request made by ReactServerAgent receives a non-200 response.
Expected:

err object, including err.response is written into the data bundle, and rehydrated in the browser.

Actual:

err object, including err.response is written into the data bundle, but is not rehydrated in the browser.

(Will work on PR momentarily)


Update Dependencies: StyleLint 14.9.1

The latest version of stylelint is 14.9.1. Since the goal is to be up to date, updating it will do well.
Thanks.

Any thoughts? The version is 14.14.1 now @ronilaukkarinen

@movahhedi Thank you for the ping! I'll be too busy and missed the first one. Going to update this soon. Pull requests always appreciated.

Just another notification to let you know that Stylelint's version is now 15.1.0 😊
@ronilaukkarinen

Just another notification to let you know that Stylelint's version is now 15.1.0 😊 @ronilaukkarinen

Thanks for the ping. Updated locally and ran some tests, encountered couple of errors. Will tackle these soon.

@movahhedi https://github.com/ronilaukkarinen/gulp-stylelint/releases/tag/14.1.0


Does AZD lifecycle support multiple subscriptions

Question
When I use azd to provision resources, I need to provision some azure resources subscription-A and some other resources in subscription-B,
but it seems when I try to run command azd down, azd can't find all the resources in both subscription-A  and subscription-B
Below is the sample infra/main.bicep
targetScope = 'subscription'

param location string

@minLength(1)
@maxLength(64)
@description('Name of the the environment which is used to generate a short unique hash used in all resources.')
param environmentName string

// tags that should be applied to all resources.
var tags = {
  // Tag all resources with the environment name.
  'azd-env-name': environmentName
}

module resourceInSubA './rg-module-1.bicep' = {
  name: 'deployToSubA'
  scope: subscription('subscription-id')
  params: {
    location: location
    rg: 'rgFor1021-SubA'
    tags: tags
  }
}

module resourceInSubB './rg-module-2.bicep' = {
  name: 'deployToSubB'
  scope: subscription('subscription-id')
  params: {
    location: location
    rg: 'rgFor1021-SubB'
    tags: tags
  }
}

@backwind1233 does provision and deploy works fine? only azd down fails? cc @ellismg @wbreza

Hello @rajeshkamal5050
Yes, azd provsion works, I didn't test azd deploy, but azd down failed.

You need to use an account with multiple subscriptions to test this case.

Hi @backwind1233  - we recently released an alpha feature that leverages Azure Deployment Stacks which solves some ARM deployments that use more complex configurations.
To opt-in for deployment stacks you can run the following command:
azd config set alpha.deployment.stacks on

Then just run azd provision which will move associate your resources with a deployment stack which makes cleanup (azd down) more predictable.
You can also read more about it from in a recent blog post.
Please try this out with your use case and let us know if this resolves your issue.

It seems work, thank you @wbreza


Cryptography: broken link to saylor.org

https://learn.saylor.org/mod/book/view.php?id=36341&chapterid=18921 reported broken by CI.

nvm ci is green again.


Add template specialization for HIP_vector_type update

https://github.com/ROCmSoftwarePlatform/frameworks-internal/issues/2918

retest Ubuntu-sanity please

retest Ubuntu-GPU-single please

retest Ubuntu-sanity please

retest Ubuntu-CPU please

retest Ubuntu-CPU please

retest Ubuntu-GPU-single please

retest Ubuntu-GPU-multi please

retest Ubuntu-CPU please


x:Bind inside a ResourceDictionary but outside a DataTemplate does not work

Describe the bug
If you have a ResourceDictionary with a code-behind and you try to x:Bind one element to the property of another but are not inside a data template it will generate a bad g.cs file that does not compile. It seems to assume the ResourceDictionary is a FrameworkElement as it uses the Loading property.
Steps to reproduce the bug
Create a ResourceDictionary with a code-behind.
Then create two elements, one with an x:Name and the other binding to that x:Name.
Expected behavior
It successfully x:Binds.
Screenshots
Used xaml code.

Error inside generated .g.cs file

Version Info
MinSDK: 15063
TargetSDK: 18362

Hi @matthew4850
I've noticed that you used the x:Name instead of x:Key. Try to replace it.

Is this related to https://github.com/microsoft/microsoft-ui-xaml/issues/2508?


Line breaks customization

I'm not quite sure which formatting style the add-on is after. Square brackets seem to always stay on the end of the line, but curly brackets sometimes have the line break before them, and sometimes not, and it is mildly distracting. Especially in situations like this:
{
	"object": "ObjectName",
	"properties": [
		{
			"id": "123456",
			"someProperty": "green",
			"someOtherList": {
				"head": "square",
				"tail": "round"
			}
		}
	]
}

Would it be possible to implement either the config file for formatting style, or couple of presets for most popular styles, like Allman/K&R/GNU, but set them exactly as our sacred cows look?

commit 541706ed884aa2389ec18c3cad20a60a6cb520c7 should fix the issue. There are more configuration options provided.


Options search doesn't work for 20.09

At the moment, options search for 20.09 doesn't find anything. I tried different keywords that definitely exist, like "services" or "hardware" - always get the same.
_search action returns a valid object with no errors but with zero results:
{
  "took":0,
  "timed_out":false,
  "_shards":{
    "total":1,
    "successful":1,
    "skipped":0,
    "failed":0
  },
  "hits":{
    "total":{
      "value":0,
      "relation":"eq"
    },
    "max_score":null,
    "hits":[]
  }
}

Example URL: https://search.nixos.org/options?channel=20.09&from=0&size=30&sort=relevance&query=services

I'm not sure what was happening, but a manual push of 20.09 channel fixed it.

I found a recurrence (2020-12-06 23:44 EST).  Neither 20.03 nor 20.09 return results, but unstable does show results.  Tested with similar keywords as stated by OP.

Can confirm, it doesn't work again.

I (again) manually imported those channels. It should be ok for the time being.
It looks like the problem is intermittent, but occurs in jsonToNix:

https://github.com/NixOS/nixos-search/runs/1505101509?check_suite_focus=true
https://github.com/NixOS/nixos-search/runs/1508000111?check_suite_focus=true

I'll look how can we improve this.


'No operations defined in spec!' problem after update of 'Microsoft.AspNetCore.Mvc.ApiExplorer' nuget

Hi,
we have .net core 2.1 mvc webapi project which uses Swagger.
we use following packages:
<PackageReference Include="Swashbuckle.AspNetCore" Version="3.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="3.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore.Filters" Version="4.3.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.ApiExplorer" Version="2.1.2" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.1.1" />

swashbuckle is configured in following way:
services.AddMvcCore().AddVersionedApiExplorer();
services.AddApiVersioning();
services.AddSwaggerGen();

everything woks in such setup.
we are trying to migrate our .net core project from 2.1 to 2.2 .net core.
In order to do that (without warnings) we need upgrade Microsoft.AspNetCore.Mvc.ApiExplorer nuget from 2.1.2 to 2.2.0.
After this nuget update swagger.json (/swagger/v1/swagger.json) doesn't contain any "paths": {} and "definitions": {} and this results in swagger UI showing no controllers/actions (it renders: No operations defined in spec!
after upgrade package these package versions is updated:
<PackageReference Include="Microsoft.AspNetCore.Mvc.ApiExplorer" Version="2.2.0" /> //was 2.1.2
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.2.0" /> //was 2.1.1

what im missing which packages needs to be updated also so swagger.json would be generated properly when using Microsoft.AspNetCore.Mvc.ApiExplorer 2.2.0 package ?
or i'm missing something else ?

Is it worth trying a newer version of Swashbuckle.AspNetCore? https://www.nuget.org/packages/Swashbuckle.AspNetCore

@MikeBeaton hi,
i forgot to mention that i tried to update Swashbuckle.AspNetCore to v4.0.0 but it was still not working at the same tik with ApiExplorer v2.2.0

i created demo repository with 100% reproducible problem.
Master branch: https://github.com/erinev/net-core-api-for-digging-swashbuckle-issue/tree/master
uses following packages:
<PackageReference Include="Microsoft.AspNetCore.Mvc.ApiExplorer" Version="2.1.3" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.2.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="4.0.1" />
<PackageReference Include="Swashbuckle.AspNetCore.Filters" Version="4.5.5" />

**note: "Microsoft.AspNetCore.Mvc.ApiExplorer" Version="2.1.3"  & "Swashbuckle.AspNetCore" Version="4.0.1"
everything works after running solution and opening http://localhost:5000/swagger -> swagger UI displays ad relations controller and requests can be executed
in branch i updated just "Microsoft.AspNetCore.Mvc.ApiExplorer" to 2.2.0 in branch: ApiExplorer_2.2.0
PR: https://github.com/erinev/net-core-api-for-digging-swashbuckle-issue/pull/1/files
everything compiles but when i open http://localhost:5000/swagger i see empty list of operations:

http://localhost:5000/swagger/v1/swagger.json outputs just:
{
  "swagger": "2.0",
  "info": {
    "version": "v1",
    "title": "Ad Relations Reader",
    "description": "Ad Relations Reader."
  },
  "paths": {},
  "definitions": {}
}

cc: @MikeBeaton

I do get the symptoms you describe, and I am not quite sure what is going on but I don't think the problem is with Swashbuckle.AspNetCore.
If I run your example with Microsoft.AspNetCore.Mvc.ApiExplorer version 2.1.3 then at line 48 of src/Swashbuckle.AspNetCore.SwaggerGen/Generator/SwaggerGenerator.cs _apiDescriptionsProvider.ApiDescriptionGroups.Items contains 1 item for your GetByAdUuid. But if I run the example after upgrading to Microsoft.AspNetCore.Mvc.ApiExplorer version 2.2.0 then _apiDescriptionsProvider.ApiDescriptionGroups.Items contains no items. Which is obviously what the problem is.
I saw this by cloning Swashbuckle.AspNetCore locally, checking out v4.0.1 and then compiling your project directly with the required Swashbuckle.AspNetCore projects instead of the NuGet packages. Doing that, everything runs exactly the same (including that Microsoft.AspNetCore.Mvc.ApiExplorer 2.1.3 works but 2.2.0 doesn't), but now that you can step in to and put breakpoints on the Swashbuckle.AspNetCore code and see what happens.
Since the value of _apiDescriptionsProvider at that point is an instance of the Microsoft class Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionGroupCollectionProvider, which has just been injected by Microsoft code (and which I don't think you have even configured?), then I think the problem lies outside Swashbuckle.AspNetCore.

@MikeBeaton thanks for deep investigation.
i liked the way you checked the issue.
Maybe you still have compiling code with Swashbuckle.AspNetCore added as project instead of nuget ? if yes maybe you can fork it and push changes i would create issue to Microsoft.AspNetCore.Mvc.ApiExplorer repository maybe they will help to understand why this is happening

Hi @erinev, I'm glad it helped.
You should reproduce my steps yourself, at this point.

git clone the Swashbuckle.AspNetCore project

It's up to you whether you make a fork first though if you might end up trying out making changes to Swashbuckle.AspNetCore then do so

Remove the two Swashbuckle.AspNetCore packages from your project

At this point, do not remove the Swashbuckle.AspNetCore.Filters project, since it's in a separate repo

RIght click your own solution and Add existing project... twice, for the two .csproj files in the Swashbuckle.AspNetCore repo corresponding to the two NuGet packages which you just removed

(This works, projects in a VS solution do not have to be in subdirectories of the solution)

Add two project dependencies from your own project to the two Swashbuckle projects you have just included
Try to clean (ALT+B ALT+C) and rebuild (CTRL+SHIFT+B) your solution; but it won't build yet, because the two Swashbuckle projects you have just added depend on three other Swashbuckle projects in the Swashbuckle repo
Right-click your solution and Add existing project... for those three as well (no need to add any more project dependencies at this point)
Clean and rebuild, it will work! ;)

Okay, what I would do next:

Add a new, simple, normal JSON controller to your project, one which accepts an injected instance of IApiDescriptionGroupCollectionProvider (which you will see in the code is what the Swashbuckle Swagger generator is accepting), and which maybe just returns an integer for how many items are in its .ApiDescriptionGroups.Items
Play around with looking at what is in this - you should find that in your setup, when using Microsoft.AspNetCore.Mvc.ApiExplorer version 2.1.3 it contains metadata about all your controllers, and on 2.2.0 it contains empty metadata (I don't know why, but that is the symptom you are seeing)
If so, start to strip your example right back:

Completely remove all the Swagger and Swashbuckle stuff, and check that the problem replicates
Take everything back to one single project of your own, not two, and check that the problem still replicates
Remove absolutely everything which is (apparently...) non-essential to your problem from your startup.cs and NuGet dependencies, and check that the problem still replicates

By this point, you will either have a very minimal example of something which doesn't work but should, involving only Microsoft.AspNetCore.Mvc.ApiExplorer version 2.2.0, and not Swashbuckle.AspNetCore at all, or else you will have realised what it was about your specific config setup which was causing the problem.
HTH ;)

Thanks for detailed instructions and hints what to do next, i will try it and i will update you with results

Update on the issue:
In master branch: https://github.com/erinev/net-core-api-for-digging-swashbuckle-issue/tree/master
i left one project (Host) and also i removed all code which is not essential for swashbuckle to work
everything works with ApiExplorer 2.1.3.
i created a branch: https://github.com/erinev/net-core-api-for-digging-swashbuckle-issue/pull/2/files where i update ApiExplorer to 2.2.0.
and ofcourse swagger is not rendered.
but what i noticed that not just swagger is no longer works actually all mvc routing stops working.
it is not possible to perform GET request from browser (it returns 404)
after running project f5 and opening url: http://localhost:5000/v1/demo/resource in master branch ir works (returns string) in branch it returns 404 even though routing stayed the same
so problem is really not in the swashbuckle, but our project setup (or some missing nuget packages)

i also created branch with removed swashbuckle: https://github.com/erinev/net-core-api-for-digging-swashbuckle-issue/tree/remove_swashbuckle
And after update of ApiExplorer to 2.2.0: https://github.com/erinev/net-core-api-for-digging-swashbuckle-issue/pull/3
routings stops working and all requests returns 404

Hi. That's great. If you're happy that this issue doesn't lie with this repo, then you should probably close off this issue, if that's okay?
Just in the spirit of continuing to help, what I would try next is...

Create a brand new project - either directly from, or as close as possible to, a .NET Core project template - using ApiExplorer 2.2.0, just to prove to yourself that it does work sometimes

Modify the working ApiExplorer 2.2.0 project and your non-working project step by step until they are the same - at which point you will have found out how to make yours work, or what step stops the other one from working!

Keep me posted if you like but also, as I say, if the issue isn't here then probably close off this issue? Thanks!

ok i will close this issue, thanks for another notes.

@MikeBeaton your suggestion (comparing with default API template by MS) worked! :)
i found and issue:
in order to make ApiExplorer v2.2.0 version work one line needs to be changed in .csproj of HOST project: from <Project Sdk="Microsoft.NET.Sdk"> to <Project Sdk="Microsoft.NET.Sdk.Web">
just i don't know why,
but in default MS API template if i change Sdk to Microsoft.NET.Sdk it instantly stops working
i will go to google it what are the differences and is it safe to change to .Web skd

@MikeBeaton your suggestion (comparing with default API template by MS) worked! :)
i found and issue:
in order to make ApiExplorer v2.2.0 version work one line needs to be changed in .csproj of HOST project: from <Project Sdk="Microsoft.NET.Sdk"> to <Project Sdk="Microsoft.NET.Sdk.Web">
just i don't know why,
but in default MS API template if i change Sdk to Microsoft.NET.Sdk it instantly stops working
i will go to google it what are the differences and is it safe to change to .Web skd

For others attempting the fix quoted, you may have to recreate your publish profile(s) to be of the Web project type, since the shape and parameters in them are different. After that, it worked perfectly :)


Refactor DesiredCapabilities to Chrome and Firefox Options

With Selenium 4 we have to use the Chrome- and Firefox options. The desired capabilities will be deprecated.

This is not longer relevant for us, we are going to microsoft playwright.


The marker does not appear on ios

How do you build the map? Any screenshot?

When opnening the app location marker mostly does not show,. When show it does not move with you. On android it works properly only GPS is jumping when going to the direction.
FlutterMap(
children: [
TileLayerWidget(
options: TileLayerOptions(
urlTemplate: 'my tile',
subdomains: ['a', 'b', 'c'],
),
),
LocationMarkerLayerWidget(),
],
);

I run into same issue and I'm already on release....

Is it a permission problem?

No, because it sometimes appears

Why this issue is closed?


Let JobRuns timeout

Currently, a JobRun will run forever if a launched task doesn't terminate or no task is launched at all. There should be

[ ] a timeout after which a JobRun is killed if it didn't turn active by then (no task was launched)
[ ] a timeout after which a JobRun is killed if one or more tasks have been launched but didn't exit after a configurable amount of time. Need to clarify whether the timeout should apply for the lifetime of the JobRun or only the latest (running) task.

I can't find a configuration option for either of these in the design doc.
In each case the timeouts should not be handled by the executors to prevent too many timers being active. A GC job similar to the OverdueTasksActor would probably make sense.

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-1600. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.


CLOUD-53136 update images with pre-pulled containers

@biharitomi

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


Password login

Includes forgot password
Need to allow for folks to change from password to google or vice versa, and test this

If google currently, can set password via forgot password link
If password currently, can ask admin to add google ID to profile

REALLY need to add tests for all existing oauth combos and password stuff too
Ensure emails are globally unique!
Don't allow accounts with duplicate emails (google or contact)

Originally created by Tom Smyth at 2016-05-22 17:46, migrated from redmine-#4559

Priority changed from 3 to 4

By Tom Smyth at 2017-03-29 05:34

Description updated (diff)

Estimate changed from 4.00 h to 8.00 h

By Tom Smyth at 2017-01-25 01:52

Follows Feature #5763: Invite system enhancements and signup master plan added

By Tom Smyth at 2017-01-25 01:53

Category deleted ( ~~ Public Release~~ )

By Tom Smyth at 2017-09-06 13:58

Priority changed from 4 to 3

By Tom Smyth at 2018-04-21 18:25

Description updated (diff)

By Tom Smyth at 2018-12-04 02:54

Priority changed from 3 to 2

By Tom Smyth at 2018-07-14 02:59

Status changed from New to Closed

By Tom Smyth at 2018-12-09 14:42

Status changed from Closed to Resolved

By Tom Smyth at 2018-12-09 14:42

Status changed from Resolved to Closed

By Tom Smyth at 2018-12-09 14:43

Version set to 6.2

By Tom Smyth at 2018-12-16 23:06


Handle multiple NFT Markers

This is a placeholder for the issue that is in the jsartoolkit5 core: https://github.com/kalwalt/jsartoolkit5/issues/40

Actually: https://github.com/kalwalt/jsartoolkit5/issues/40#issuecomment-595659322


⚠ Processors has degraded performance

In 0871531, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 44 ms

Resolved: Processors performance has improved in 5fb4aa8.


code comment incorrect

code comment:
// Configure per-thread locale to cause all subsequently created
// threads to have their own locale.
_configthreadlocale(_ENABLE_PER_THREAD_LOCALE);
is incorrect. This is not inherited by created threads.

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

ID: b5dbe29a-f595-339c-16a4-26614227002a
Version Independent ID: 35e014bc-8b94-1596-ef43-6c58884c0ed0
Content: setlocale, _wsetlocale
Content Source: docs/c-runtime-library/reference/setlocale-wsetlocale.md
Product: visual-cpp
GitHub Login: @corob-msft
Microsoft Alias: corob

@mintonla1958 Thanks for pointing this out. It's fixed in the current document.


[full-ci] update reva to ec4099da

Update REVA from v1.11.1-0.20210809134415-3fe79c870fb5 to  v1.11.1-0.20210811142901-ec4099da830e

Cha cs3org/reva#1982: Move user context methods into separate package
Fix cs3org/reva#1985: Quota stubs
Fix cs3org/reva#1980: propagate after restoring a file version

The change moves Token and User related Context functions and headers to the new github.com/cs3org/reva/pkg/ctx package.

😞 my bad, fixed with https://github.com/cs3org/reva/pull/1987

@butonic Windows builds are failing :thinking:
/go/pkg/mod/github.com/cs3org/reva@v1.11.1-0.20210811142901-ec4099da830e/pkg/storage/fs/owncloudsql/owncloudsql_windows.go:66:8: undefined: windows
26


Failed to run RemoteApp

Hi everybody!
I'm trying to run xfreerdp in RemoteApp mode but have no luck. Here is what I've tryed:
xfreerdp /u:user /d:domain /p:password /app:"||calc" /v:server
loading channel rail
Warning xf_GetWindowProperty (156): Property 256 does not exist
connected to server:3389
connected to server:3389
connected to server:3389
Unable to get current timezone rule
RAIL exec error: execResult=RAIL_EXEC_E_FAIL NtError=0x2
xfreerdp /u:user /d:domain /p:password /app:%SYSTEMDRIVE%\Windows\system32\calc.exe /v:server
loading channel rail
Warning xf_GetWindowProperty (156): Property 261 does not exist
connected to server:3389
connected to server:3389
connected to server:3389
Unable to get current timezone rule
RAIL exec error: execResult=RAIL_EXEC_E_NOT_IN_ALLOWLIST NtError=0x15
What am I doing wrong? Please could you give me an example of using app param?
P.S. I should note thatconnection from my Windows clien with RemoteApp mode is pretty good.
Thanks in advance!

Thanks too for this info :)

I could make it work by installing RemoteApp Tool on Windows 10, editing the name of the application, and then specifying it on the command-line as /app:'||appname' (surround with single or double quotes, it doesn't matter).


Animeunity not working

Source information
Animeunity
Source language
Italian
Steps to reproduce
Failed to fetch videos for anything
Expected behavior
Should work
Actual behavior
Doesn't
Aniyomi version
App version: <IP_ADDRESS> (standard, c91fb86, 123, 2024-05-10T08:46Z) Android version: 10 (SDK 29; build QP1A.190711.020 release-keys) Android build ID: QP1A.190711.020 release-keys Device brand: vivo Device manufacturer: vivo Device name: PD1914 (PD1914) Device model: V1914A WebView: Android System WebView 124.0.6367.179 MPV version: c6ccabe Libplacebo version: v7.349.0 FFmpeg version: n6.1.1
Android version
Origin Os 1.0
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I have updated the app to version <IP_ADDRESS>.
[X] I have updated all installed extensions.
[X] I have tried the troubleshooting guide.
[X] If this is an issue with the app itself, I should be opening an issue in the app repository.
[X] I will fill out all of the requested information in this form.

Duplicate of #3269


Not compatible with zsh - Setup loop

After setup, clicking launch takes me back to setup.
Here is the setup output. i suspect that the app is stuck on bash rather than zsh which may be causing issues
bash: export: `Snitch.app/Contents/Components:/Library/Apple/usr/bin:/Users/user/.local/bin': not a valid identifier
The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh.
For more details, please visit https://support.apple.com/kb/HT208050.
bash-3.2$ brew uninstall git
Uninstalling /opt/homebrew/Cellar/git/2.41.0_2... (1,633 files, 49.5MB)
Warning: The following may be git configuration files and have not been removed!
If desired, remove them manually with rm -rf:
/opt/homebrew/etc/gitconfig
bash-3.2$ bash: export: `Snitch.app/Contents/Components:/Library/Apple/usr/bin:/Users/user/.local/bin': not a valid identifier
The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh.
For more details, please visit https://support.apple.com/kb/HT208050.
bash-3.2$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" in System Settings to install updates
bash-3.2$ bash: export: `Snitch.app/Contents/Components:/Library/Apple/usr/bin:/Users/user/.local/bin': not a valid identifier
The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh.
For more details, please visit https://support.apple.com/kb/HT208050.
bash-3.2$ brew install git
==> Downloading https://formulae.brew.sh/api/formula.jws.json
==> Downloading https://formulae.brew.sh/api/cask.jws.json
==> Fetching git
==> Downloading https://ghcr.io/v2/homebrew/core/git/manifests/2.41.0_2
Already downloaded: /Users/user/pinokio/bin/homebrew/cache/downloads/b196d2a0c608ed37e4fe60cece968bb00f891ed65ea2497025379c841f4111c0--git-2.41.0_2.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/git/blobs/sha256:da6d23d518ee51
Already downloaded: /Users/user/pinokio/bin/homebrew/cache/downloads/e214f203b184d84e6330182965fd55a095f0cef0a403ba5898d56caf5c34c0c9--git--2.41.0_2.arm64_ventura.bottle.tar.gz
==> Pouring git--2.41.0_2.arm64_ventura.bottle.tar.gz
==> Caveats
The Tcl/Tk GUIs (e.g. gitk, git-gui) are now in the git-gui formula.
Subversion interoperability (git-svn) is now in the git-svn formula.
zsh completions and functions have been installed to:
/opt/homebrew/share/zsh/site-functions
==> Summary
🍺  /opt/homebrew/Cellar/git/2.41.0_2: 1,633 files, 49.5MB
==> Running brew cleanup git...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see man brew).
bash-3.2$

Same here...

Yeap, same here :(

It seems that the install loop issue is not specific to Mac users as Windows is also experiencing the same problem.

same here

same


PowerToys Run not working in W11 22000.588

Microsoft PowerToys version
0.56.2
Running as admin

[X] Yes

Area(s) with issue?
PowerToys Run
Steps to reproduce

Open PT as admin
Bind PT Run shortcut (any)
Try open PT Run by the shortcut

✔ Expected Behavior
PT Run opened
❌ Actual Behavior
PT Run not opened
Other Software
PowerToysReport_2022-03-16-09-35-01.zip

Nevermind. Somehow it run now.


WIP

Motivation
Add references to relevant tickets or a short description about what motivated you do it. (E.g JIRA: https://issues.jboss.org/browse/AEROGEAR-{} AND/OR ISSUE: https://github.com/aerogear/standards/issues/{})
What
Add an short answer for: What was done in this PR? (E.g Don't allow users has access to the feature X.)
Why
Add an short answer for: Why it was done? (E.g The feature X was deprecated.)
How
Add an short answer for: How it was done? (E.g By removing this feature from ... OR By removing just the button but not its implementation ... )
Verification Steps
Add the steps required to check this change. Following an example.

Go to XX >> YY >> SS
Create a new item N with the info X
Try to edit this item
Check if in the left menu the feature X is not so long present.

Checklist:

[ ] Code has been tested locally by PR requester
[ ] Changes have been successfully verified by another team member

Progress

[x] Finished task
[ ] TODO

Additional Notes
PS.: Add images and/or .gifs to illustrate what was changed if this pull request modifies the appearance/output of something presented to the users.

Coverage remained the same at 64.769% when pulling fee1609c0e87e93ae3efaffd95bbef39f33778b5 on camilamacedo86:SWAGGER_UPDATE_CI into aeebd9ce8fa0b3d218acbd504edc8ee2b0e08520 on aerogear:master.

@craicoverflow it was just needing a rebase. More one task was added in the CI. Really tks for your review and time here.


Typescript Support?

Feature request
Is your feature request related to a problem? Please describe
Typescript support for shield method
Describe the solution you'd like
Typed records inside of the shield based on AppRouter
Describe alternatives you've considered
No typescript support

Hey @cmaycumber
Could you provide an example of what you mean?

for instance, rule function has no way of passing generics to describe the context shape

For further elaboration: the type of the passed context, which is pretty important when working with authentication, can't be inferred since this package only declares MiddlewareFunction<any, any, any>; as the return type of the middleware. Furthermore, when constructing the IRules argument of shield, it can't do type inference using the given context and instead just uses a default.

Yeah @douira, I guess that is a useful enhancement to implement. I'm planning to do so after upgrading the tRPC generator to v10 soon.

Released in https://github.com/omar-dulaimi/trpc-shield/releases/tag/0.3.0
Check the README to learn how to correctly use it.
I tested it and everything seems to be working as expected. You get full type safety just like tRPC. Please feel free to open new issues if you face any.
Also, consider sponsoring this or any of my other projects for continued support and features :)
Least you can do is star the project!


Adds some form verification logic and error checking

Here are some fixes for issue #100 .

Can you run Prettier on your code?
This looks good, personally I would kind of rather add react-hook-form if we're doing form validation in more than one place.  It does add an extra dependency though so I'm a bit torn.  I am happy to merge this once the code has been Prettified though.

Sorry about that, it is formatted with prettier now. I am happy to change it to react-hook-forms if it makes more sense to implement it that way. I can see the added benefit of having the extra dependency for developers who are looking to make an app that may be form heavy. What do you think?


ddd/shipping context

Applying DDD to shipping context.

:tada: This PR is included in version 1.0.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Center workspace single application

Hi, thanks so much for this amazing tiling window manager, I am a brand new user and I am falling in love with it!
I have a small question, I am usually working on a wide screen monitor, so something that I would really enjoy would be to have Aerospace automatically centering applications (with around 60% of the screen width) when there are no other open applications in the same workspace. Alternatively a shortcut for that could also work.
I wonder if there is built-in way to do that, or maybe some API that I can explore to implement a script that I can run when switching workspaces?
I tried working with aerospace resize width -x but that won't work for some reason.

Please don't ignore the checklist


use values version for the proper version build

otherwise we are using an old version with a newer package tag, which is wrong

What is the tag used for? Should it be removed? If not, shouldn't it match the version?

What is the tag used for? Should it be removed? If not, shouldn't it match the version?

now its removed as the original didnt work as expected.
Not sure why was the reason for this but it measn that our 1.30.x package actually ships kubectl 1.29.x xD


processKeysForClient should not be working

I think this is a typo and should be raw = all[key].
I can also fix this in my PR if approved.

Yes! Can you send a PR with a unit test that covers it?

this is covered inside new implementation here


Travis CI

Lint by default; can skip it with npm run test-only

@aisapatino @jasonwilson -- Remember to add your Travis badge to the README and show everyone how awesome you are! 😉


Remove unused cardano-crypto dependency

This is more of a cleanup PR:

cardano-crypto is no longer used, since there was a full switch to libsodium a while back
Update broken link and use suggestion from the documentation: remove
packages from shell.nix, since default is all the project's local packages
Bump up the cabal version to the latest one.

Can it be that plutus still relies on cardano-crypto?
cc: @ kwxm

Can it be that plutus still relies in cardano-crypto? cc: @kwxm

Yes.

Can it be that plutus still relies in cardano-crypto?

@iquerejeta the fact that plutus uses the package is totally orthogonal to this PR, because this PR removes it from the cabal project in this repo only, not in plutus. Naturally, it is removed from the project only because cardano-crpyto is completely unused in the repo.


pywinpty 1.0.1 doesn't play well with github action

It seems that pywinpty 1.0.1 will freeze the python script running in github action
The same script is running fine with pywinpty 0.5.7.
A reproducible (yet not minimal) example can be found at https://github.com/randy3k/pywinpty-reproducible-example
Also not sure if it is a github action specific thing as I don't have a windows machine to test it.

@randy3k could you please try with the latest release of pywinpty, v1.1.0?

Yeah, it is working now.


[curl_http_request] fix wrong option for starttransfer_time_status

This PR addresses the bug in curl_http_request implementation by modifying the option from CURLINFO_PRETRANSFER_TIME to CURLINFO_STARTTRANSFER_TIME while defining const auto starttransfer_time_status

cc: @saeta

I no longer work on TensorFlow; unassigning self so it can be reassigned to someone who is still working on TensorFlow. Thanks!

@gbaned, can you request a review from another code owner, please?


[WFRP4e System] MINDMAP Module

The Mindmap module, which was useful, at least for me, to showcase my players the web of connections within the Enemy Within, has stopped working with the latest update. Worse, when installed, it stops the user to open any journal entry.From: Ceodryn#2537wfrp4e: 5.0.2wfrp4e-archives1: 2.3.0wfrp4e-core: 2.3.1wfrp4e-dotr: 2.2.0wfrp4e-eis: 2.2.0wfrp4e-middenheim: 2.3.0wfrp4e-pbtt: 2.1.0wfrp4e-rnhd: 2.3.0wfrp4e-starter-set: 2.2.0wfrp4e-ua1: 2.2.0

This module has not been maintained for a long time.


CUDA error: an illegal memory access was encountered during training

Hi,
I can reproduce the following error in two environments. I followed the install guide for the dependencies in one environment, but also tried to use cu111 dependencies for all packages. Both cases, lead to an  CUDA error: an illegal memory access was encountered during training.

Evaluation of provided checkpoints runs fine.
The error occurs when training with the provided config on nuscenes.
Using 2 RTX 8000 (48GB vram)

The full error is:
[06/02 14:10:24 main-logger]: Epoch: [1/50][10/1758] Data 0.001 (0.864) Batch 1.513 (3.495) Remain 85:18:56 Loss 1.7657 Lr: [0.00599939, 0.00059994] Accuracy 0.4674.
[06/02 14:10:39 main-logger]: Epoch: [1/50][20/1758] Data 0.001 (0.433) Batch 1.465 (2.481) Remain 60:33:22 Loss 1.3113 Lr: [0.00599877, 0.00059988] Accuracy 0.5326.
terminate called after throwing an instance of 'c10::Error'
  what():  CUDA error: an illegal memory access was encountered
Exception raised from create_event_internal at /pytorch/c10/cuda/CUDACachingAllocator.cpp:733 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0x42 (0x7fcf322542f2 in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/lib/python3.7/site-packages/torch/lib/libc10.so)
frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::string const&) + 0x5b (0x7fcf3225167b in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/lib/python3.7/site-packages/torch/lib/libc10.so)
frame #2: c10::cuda::CUDACachingAllocator::raw_delete(void*) + 0x809 (0x7fcf326151f9 in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/lib/python3.7/site-packages/torch/lib/libc10_cuda.so)
frame #3: c10::TensorImpl::release_resources() + 0x54 (0x7fcf3223c3a4 in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/lib/python3.7/site-packages/torch/lib/libc10.so)
frame #4: <unknown function> + 0x6ea39a (0x7fcfa6cea39a in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #5: <unknown function> + 0x6ea441 (0x7fcfa6cea441 in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #6: /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python() [0x4cb472]
frame #7: /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python() [0x4b0858]
frame #8: /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python() [0x4c5b50]
frame #9: /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python() [0x4c5b66]
frame #10: /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python() [0x4c5b66]
frame #11: /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python() [0x4c576c]
frame #12: /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python() [0x4a251c]
frame #13: /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python() [0x553803]
frame #14: _PyEval_EvalFrameDefault + 0x2856 (0x4a9536 in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python)
frame #15: _PyFunction_FastCallKeywords + 0x106 (0x4b9d16 in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python)
frame #16: /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python() [0x4ae8df]
frame #17: _PyEval_EvalFrameDefault + 0xa9e (0x4a777e in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python)
frame #18: _PyFunction_FastCallKeywords + 0x106 (0x4b9d16 in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python)
frame #19: /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python() [0x4ae8df]
frame #20: _PyEval_EvalFrameDefault + 0x971 (0x4a7651 in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python)
frame #21: _PyEval_EvalCodeWithName + 0x201 (0x4a5a81 in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python)
frame #22: _PyFunction_FastCallKeywords + 0x29c (0x4b9eac in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python)
frame #23: /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python() [0x4ae8df]
frame #24: _PyEval_EvalFrameDefault + 0x15d6 (0x4a82b6 in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python)
frame #25: _PyEval_EvalCodeWithName + 0x201 (0x4a5a81 in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python)
frame #26: PyEval_EvalCodeEx + 0x39 (0x4a5879 in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python)
frame #27: PyEval_EvalCode + 0x1b (0x54a8db in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python)
frame #28: /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python() [0x564e03]
frame #29: PyRun_StringFlags + 0x7b (0x561a8b in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python)
frame #30: PyRun_SimpleStringFlags + 0x3b (0x5618fb in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python)
frame #31: /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python() [0x53fc27]
frame #32: _Py_UnixMain + 0x3c (0x53fb3c in /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python)
frame #33: <unknown function> + 0x29d90 (0x7fcfba17ed90 in /lib/x86_64-linux-gnu/libc.so.6)
frame #34: __libc_start_main + 0x80 (0x7fcfba17ee40 in /lib/x86_64-linux-gnu/libc.so.6)
frame #35: /usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/bin/python() [0x53f9ee]

Traceback (most recent call last):
  File "train.py", line 902, in <module>
    main()
  File "train.py", line 90, in main
    mp.spawn(main_worker, nprocs=args.ngpus_per_node, args=(args.ngpus_per_node, args))
  File "/usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 230, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
  File "/usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 188, in start_processes
    while not context.join():
  File "/usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 150, in join
    raise ProcessRaisedException(msg, error_index, failed_process.pid)
torch.multiprocessing.spawn.ProcessRaisedException:

-- Process 1 terminated with the following error:
Traceback (most recent call last):
  File "/usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 59, in _wrap
    fn(i, *args)
  File "/storage/user/webermar/external/SphereFormer/train.py", line 410, in main_worker
    loss_train, mIoU_train, mAcc_train, allAcc_train = train(train_loader, model, criterion, optimizer, epoch, scaler, scheduler, gpu)
  File "/storage/user/webermar/external/SphereFormer/train.py", line 498, in train
    output = model(sinput, xyz, batch)
  File "/usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/lib/python3.7/site-packages/torch/nn/parallel/distributed.py", line 705, in forward
    output = self.module(*inputs[0], **kwargs[0])
  File "/usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/storage/user/webermar/external/SphereFormer/model/unet_spherical_transformer.py", line 285, in forward
    output = self.unet(output, xyz, batch)
  File "/usr/wiss/webermar/anaconda3/envs/sphere_pip_cuda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/storage/user/webermar/external/SphereFormer/model/unet_spherical_transformer.py", line 195, in forward
    xyz_next, batch_next = get_downsample_info(xyz, batch, indice_pairs)
  File "/storage/user/webermar/external/SphereFormer/model/unet_spherical_transformer.py", line 56, in get_downsample_info
    valid_pair_in, valid_pair_out = pair_in[valid_mask].long(), pair_out[valid_mask].long()
RuntimeError: CUDA error: an illegal memory access was encountered

When using a batchsize of 16 or 14, the error comes up almost immediately, as can be seen above. With a batchsize of 12, the error came after training for 29 epochs. According to nvidia-smi, the memory usage is quite low and super far from the maximum.
Did you ever encounter this problem or have any advice on what could cause this issue?
Thanks,
Mark

According to your issue, it seems the valid_mask is out of the range of pair_in or pair_out. Can you print out the min and max of valid_mask, and also the pair_in.shape and pair_out.shape?

Thanks for getting back to me @X-Lai !
I tried to do some manual debugging, but since the error happens not always at the same iteration, this didn't work out.
Instead I put in several assert statements.
def get_downsample_info(xyz, batch, indice_pairs):
    torch._assert(xyz.shape[0] == batch.shape[0], "xyz batch shape mismatch")
    pair_in, pair_out = indice_pairs[0], indice_pairs[1]
    torch._assert(pair_in.shape == pair_out.shape, "Pair shape mismatch")

    # print(indice_pairs.shape)
    # print(indice_pairs.min())
    # print(pair_in.min())
    torch._assert(pair_in.min() >= -1, "pair_in minimum is below -1")
    torch._assert((pair_in != -1).sum() >= 1, "pair_in has no valid entries")
    valid_mask = (pair_in != -1)

    torch._assert(pair_in.shape == valid_mask.shape, "Pair and mask shape mismatch")
    valid_pair_in, valid_pair_out = pair_in[valid_mask].long(), pair_out[valid_mask].long()
    torch._assert(valid_pair_in.min() >= 0, "valid Pair in min wrong")
    torch._assert(valid_pair_out.min() >= 0, "valid Pair out min wrong")
    torch._assert(valid_pair_in.max() < xyz.shape[0], "valid Pair in max wrong")
    torch._assert(valid_pair_in.shape == valid_pair_out.shape, "valid Pair shape mismatch")

    xyz_next = scatter_mean(xyz[valid_pair_in], index=valid_pair_out, dim=0)
    batch_next = scatter_mean(batch.float()[valid_pair_in], index=valid_pair_out, dim=0)
    return xyz_next, batch_next

The error (same as before) then happens, when the code tries to access pair_in.min() . The same thing also happens if I call indice_pairs.min(). On the other side, calls to the shape attribute, are fine (neither print not asserts on shape lead to the error).
At the moment, I cannot make any sense of this, but I also don't know a lot about how spconv datastructures work or how these indices are exactly/internally obtained.
Can you make sense of this?
Thanks!

The same error happens when executing pair_in.min(). So it seems that the true error is prior to this line, because sometimes out-of-range error inside a CUDA kernel will not throw an Error immediately and will wait until executing next CUDA kernel (in your case, this is pair_in.min()). So to locate the true error, you'd better check before the previous several operations by asserting the input range is not out of its range.
BTW, you can also use torch.cuda.synchronize() in between some suspective operations to ensure the lines prior to torch.cuda.synchronize() are validated. Because if some operations before torch.cuda.synchronize() encounter out-of-range error, then it will throw an error with torch.cuda.synchronize().

Hi @X-Lai,
Thansk for the tips! I was able to locate the error in UBlock the self.conv, particularly spconv.SparseConv3d. The error is happening in the convolution operation of spconv when the indices are computed. You can find the line here:
https://github.com/traveller59/spconv/blob/47875b2b008e6de87da011c62bb8523d19bc597d/spconv/pytorch/conv.py#L287
Unfortunately, the computed indices have a lot of negative values, which I assume to come from int32 overflows. Since I don't know how these indices are computed, I assume, some flattened hash representation of the 4D indices are used internally. And this overflows with increasing batchsize per GPU. Which is way reducing the batchsize seems to delay the error or makes it disappear (you seem to be able to run everything with a batchsize of 4 per GPU).
More unfortunately, spconv does not support 64bit indices for these operations yet, so there's no easy fix, instead one has to use more GPUs or has to be wait longer for results. (or lowering the spatial voxel dimensions...)
Best,
Mark

how to fix this bug ？


Asserted distribution JSON - remove duplicate GeOJSON, and flip geo-json to be false

the ActiveRecord Model generates enormous JSON response for Asserted distribution. The reason, it includes all associated geographic area shapes.  In some tasks it could be important for the map representation of data. But in some other interfaces it just take time to load. For example OTU radial::Asserted distribution, which does not require the shapes. I have a species with 47 areas. It takes about 30 seconds to download a JSON file, which is about 5mb. And I have fast internet connection. Would it be possible to put a parameter restricting shape file load if not needed. It would greatly increase productivity.
As an example, see
https://sfg.taxonworks.org/otus/46338/asserted_distributions.json
in 3i database.
would it be possible to do something like:
https://sfg.taxonworks.org/otus/46338/asserted_distributions.json?shapes=false
?

Definitely.  We need some custom endpoints for the geojson.

Another point.  Remember that the annotation browser was never intended or designed to be the way to do things, but rather to do one thing quick, in passing.  I think we will need to re-think how it is being used ultimately, to get curators to more robust forms, not quick forms.  For example, the AD list should just include a couple records, not 47 (of course they don't need the geojson there).

This is partially a bug now- geo-json is being displayed 2x.
There is a already a geo_json param, but it is supposed to be used to turn the geo-json on.  It's set in AD, but always on in GeographicArea.  We need to likely disable by default, and only include if requested.  This will likely require various requests to be updated.

otus/46338/asserted_distributions.json?extend[]=geographic_area&embed[]=shape


[Fix]Opt Fix filter push down with decimal types in parquet reader.

Proposed changes
[Fix][Opt](parquet-reader) Fix filter push down with decimal types in parquet reader.
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


start bash with parameters

Helo.
I have a litle problem. I need start app on xrdp as follows rdesktop -s "/my/bash/script.sh parameters" ip , but xrdp run startwm.sh instead my script. I litle bit modificate sources for solution this problem. Patch is in attachments. Could you include something like this in the new release?
mypatch.patch.zip

No time for the next release. Next next release at the earliest.

ok, of course when it is convenient for you. :)

I'd appreciate if you learn how to use GitHub and submit your patch as a pull request.


Increase default timeout for generic driver from 1 to 15 seconds

Signed-off-by: Ivan Vigasin<EMAIL_ADDRESS>

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "master" git@github.com:vigasin/machine.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

LGTM


Example with Data Source et Wireframe

Hi,
First of all, I would say big thanks to those which wrote this article and carried out VIPER architecture, this is really great.
I try to implement VIPER architecture for my app but I would have an example on how implement Wireframe and Data Source.
In your article on your blog, you said that you will add a new example with Wireframe and Data Store soon ? When will it be available ?
Best regards,
Jean Lebrument

Allow me to put a :+1: to the previous commenter, I figured my own way of passing stuff view to view but I am dying for an authoritative example on this.

I'll put my way of doing it could lead to a discussion (it's ok if it doesn't or if the example gets shot down). Let's imagine a table view for which tapping a row segues to a detailed view of that item:
From the List Wireframe

class SomethingListWireframe: NSObject {
  weak var controller: SomethingListController?

  func presentSomethingListInterface(parent: UIViewController) {
    // ... wire up the VC -> Presenter -> Interactor, etc
  }

  func presentSomthingDetailInterface(selection: Thing) {
    let wireframe = SomethingDetailWireframe()

    wireframe.presentSomethingDetailInterface(controller!, thing: selection)
  }
}

Then in the Detail Wireframe
class SomethingDetailWireframe: NSObject {
  func presentSomethingDetailInterface(parent: UIViewController, thing: Thing) {
    let controller = SomethingDetailController()
    let presenter = SomethingDetailPresenter(thing: Thing)

    // ... wire up the VC -> Presenter -> Interactor, etc

    parent.navigationController?.pushViewController(controller, animated: true)
  }
}

Of course this entails that something on the list side holds a reference to the list wireframe, I think I went with the presenter, so messaging goes: Cell -> ViewController -> Handler (presenter really) -> InteractorInput -> InteractorOutput (presenter again most likely) -> Wireframe with the Interactor being completely optional depending on the use case.
Good/Bad/Ugly? Let's have it!

I worked on a complicated project as lead iOS developer and we developed the whole project using VIPER architecture.
To pass data from one module to an other, we decided to add a class to each module called "module i/o" witch aims three goals.
First one, instantiate the whole module and connect classes each other.
The second one, is to manage the "parameter" needed in input so that the module works normally.
The last one, manage the output of the module and permits to instantiate an other module (by instantiating the "module i/o" class of the next module) and give him parameter.
Another interesting thinks with the "module i/o" class is you can easy extend it by creating a subclass to change the output module instantiated and the rest of the module (wireframe, presenter, view, interactor, data store and entities) are totally non-dependent of the "module i/o" class.
Thus to navigate between modules, we used JLRoutes.
If you are interested I give you more explanations about it.
I would be very glad if I can have some feedbacks about my solution.

Hi @JeanLebrument thanks for responding! The module approach you describe was the next logical step for me. I am waiting to feel some kind of pressure to move me toward it, it feels like a good thing. I would be very interested to know more about your approach for sure.

:+1: @JeanLebrument would be good to learn more.  Nothing would be better than a little toy project.

@hugobast and @fatuhoku, I will show a little project, but I'm super busy right now with my midterms.
Cheers

@JeanLebrument Sounds good, I'll keep an eye out. Let us know.

Hey @JeanLebrument any updates here?

Sorry dude, I was really focus on my exams and I totally forgot answer to
this issue after! I will do it right now.
On Thu, Apr 23, 2015 at 8:14 AM Denis Lebedev<EMAIL_ADDRESS>wrote:

Hey @JeanLebrument https://github.com/JeanLebrument any updates here?
—
Reply to this email directly or view it on GitHub
https://github.com/mutualmobile/Counter/issues/1#issuecomment-95621335.

I just finished to code an example with a class diagram: https://github.com/JeanLebrument/iOSModuleArchitecture
The architecture looks overkill for the type of project, but in a large scalable project with a lot of interaction between modules which need to be abstracted, this architecture permits to maintain a high level of scalability.
Feedbacks are welcomed!

@JeanLebrument :+1:

Thanks for doing this @JeanLebrument

You're welcome! Sorry for the delay!

Hi @JeanLebrument, @garnett and @hugobast
Almost a year ago I have also made my own version of Counter app with some architectural an file structure changes, that allowed to create/use modules with ease: https://github.com/tar500/viper-counter-app
Also I made my own Objective-C template for vipergen that I used for creating a Counter app modules: https://github.com/tar500/viper-module-generator
This template already includes a lot of boilerplate code, so you can start to add your own code right away. Also there's plenty of helpful comments that help you to think less about what to do.
I would like to know if I didn't mess up the original idea of VIPER, so any feedback is really appreciated!

I would like to thank everybody for the helpful discussion.
I'm building a small app to learn to use VIPER architecture and I encountered the same problems that @JeanLebrument solved with the Builder and the IO elements. Giving the responsibility to fulfill those goals to the wireframe seemed wrong and I was theorizing the same solution myself.
@tar500 your generator seems cool, I hope I have the chance to try it soon!

I'm glad to hear that my contribution helped you guys!

Just a quick update from me here, random thoughts really:
I am moving away from presenters being required objects always. What I do now at the start of a new module is have that be an interface that the Wireframe will implement. Otherwise I end up with a presenter that's managing the view and a wireframe that's only ever used for segues. I usually name a protocol after the module's name. It's all fuzzy still for me. Really I am just scaling it down a little because starting a module is so much overhead that I started hating it.
All that being said I would totally introduce a presenter object and have that object implement the module interface if the wireframe gets messy.
Other random thought, I'm fine with the wireframe knowing about everything by name, but nothing should know about the wireframe only the protocol it implements (exception being either the AppDelegate or other the RootWireframe if you have one of those). Other than that it's on a case by case basis. At first I overused protocols and there was really no reason for it.

I think that as long as you have a user interface for a module, the module should have a presenter to present and to control it (so it is usually required), and if the module is connected to other modules it should have a wireframe to handle this routing (but it handles the routing, nothing else). I understand that in smaller projects the overhead of decoupling like this may seem wasted time, but I think that when one is used implement the architecture everything becomes fast and easily testable

Just to add my quick 2 cents (feel free to respond with questions).
I have mostly abandoned the VIPER architecture. Here's how I felt about my experience.
Pros:

Presenter - This is the biggest advantage of the architecture. Getting that code out of the VC makes everything more manageable, testable, and maintainable.
Interactor/Entities - The distinction between entities and interactor data structures helps keep things like core data and other data services from creeping into view code and making things messy.

Cons:

Too many objects. So many times the interactor and presenter are doing too little work to justify. Writing unit tests for these objects becomes tedious and not useful as well.
Viper modules tend to make my think about my code as silos. This has advantages, but I found it worked against me writing reusable code. Sometimes I code get an interactor to be reusable, but this required a good deal of subclassing and adapters to also have the specific interactors conform to module-specific interactor protocols. Simple things became a lot of boilerplate quickly.
Wireframes are poorly defined currently. They seem to have the responsibilities of both routing and module assembly. Routing is a good concept when you outgrow storyboards, but module assembly is handled better by DI frameworks in my opinion.
Inelegant model if you are working with some services. In particular, I love Parse. When using Parse with VIPER, I have to either give up a lot of the niceties of Parse, or come up with other additional mapping schemes to recover functionality at the interactor/presenter barrier. This is mostly because of the two different methodologies at play in VIPER and Parse. A Parse object encapsulates most of the business logic of the data object into the data object itself.
Asynchronous code is more difficult. If you need to have an asynchronous data operation, it should manifest in the land of entities/interactor. But that asynchronous operation now often becomes an asynchronous interactor method and an asynchronous presenter method. If you use another data manager object in the entity layer, this is a third asynchronous operation. Testing asynchronous operations is not trivial and with VIPER I find myself writing 2x the tests and usually for passthrough methods.
Inter-module communication is not well defined at all.

In short, I find the architecture to be too rigid. I wind up with too much boilerplate code, not enough reusable classes, and hacked together intermodule communication. The effort does not seem worth it for small apps, and for large apps, the abundance of trivial objects, lack of reusable code, poor intermodule communication standards, and non-trivial coexistence with DI frameworks and back end frameworks makes it's usefulness suspect.
I vote to keep the one concept that I really find useful (presenters) and throw the rest out. This makes the architecture look a lot more like MVVM.
Cheers

Thank you Scott, your answer is very interesting, it confirms my doubts. Maybe the lack of strict boundaries (in wireframe and intercomunication) in some modules of the architecture is done on purpose to make those parts more flexible, but I found it a little confusing.


Width and Height of a selector is not correct in Testcafe Browser for SVG

What is your Scenario?
I have an scenario where I was trying to do drag and drop. there the target element is coming with extra height
The original :
<svg x="580.2106169931955" y="292.1047895950575" width="169.28390222313547" height="263.6856312148274"
What is the Current behavior?
The Testcafe generated:
<svg x="580.4716981132076" y="-1995" width="168.39622641509433" height="7125"
What is the Expected behavior?
The svg element Height and Y co-ordinate values should be proper and close to the original values
What is your public website URL? (or attach your complete example)
Can't share my application url
What is your TestCafe test code?
no issues with code, only issues with testcafe DOM width and height of a svg element after switching to new window
Your complete configuration file
No response
Your complete test report
No response
Screenshots
No response
Steps to Reproduce
1.As I was not able to share application url not providing any steps
2.
3.
TestCafe version
3.0.0
Node.js version
v10.24.0
Command-line arguments
npx testcafe filename.js
Browser name(s) and version(s)
No response
Platform(s) and version(s)
windows
Other
No response

Hi @sdontul,
First of all, TestCafe doesn't support NodeJS lower than v16. Please update your NodeJS to, at least, v16.
I didn't manage to reproduce the issue in NodeJS v16.19.0 and TestCafe v3.0.1.
I'll close this issue. If updating to NodeJS v16 doesn't help you, feel free to write again and describe how you try to get these attributes with TestCafe.

Installed latest NodeJS v20.4.0 and TestCafe v3.0.1 still same issues. Please help

I didn't manage to reproduce the issue with a simple SVG element. We are currently unable to determine what is causing the issue. Please share a more detailed description and prepare a sample web page using which we can reproduce the issue.


Switch callbacks to React.useCallback

Tbh, I couldn't fully explain this but it seems this is what appeases the lint gods, which in turn unblocks upgrading gatsby. So that's good, I guess.
My instinct based on reading https://github.com/yannickcr/eslint-plugin-react/issues/3060 is that this is more desirable for us than disabling allowFunctions completely and less messy than peppering the code with ignore comments, but equally I'm no expert on React.
Refs https://github.com/badges/shields/pull/7088
Refs https://github.com/badges/shields/pull/6982

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @chris48s!

  Generated by :no_entry_sign: dangerJS against 5c6a10a52104a9f3c33cce9dca54cd193b4ab3c7

Hmm, this change seems sort of opinionated and weird to me, and is definitively less readable, but time will tell…
These are a couple of articles which express views on this:

Supportive: https://attardi.org/why-we-memo-all-the-things/
Mixed? https://kentcdodds.com/blog/usememo-and-usecallback

Certainly fine with keeping it in.

More than happy to rely on your expertise around what you think will be best Paul. I think the only opinion the rest of us really had is that we couldn't wait indefinitely in the hopes that eslint-plugin-react would change their mind and revert to the old behavior.

Yep, all makes sense. Though I dislike the loss of readability, I'm not really concerned about it. I'm not enough of a React expert to have a personal opinion; all I can do is read various articles and sort through which arguments I find the most convincing. So happy to leave it in, and glad you are pushing things forward 👍🏼

Sounds good :+1: My sense is that with the type of UI we have, it probably doesn't make a difference one way or another from a user experience and performance perspective, so I'm good with prioritizing whatever will be best for code readability and maintenance


Is the support of CentOS 7 platform in the plan?

Hi, I'm very glad to see the Debian is supported now, but we use the CentOS system in our projects. Is there a plan for the support of CentOS 7? or What should I do when I want to use this python SDK in CentOS system? Thank you very much!

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

ID: 150d0f78-2fd2-36dc-9369-27f74cad3911
Version Independent ID: 1eb5479b-e5b7-c283-5f37-78f4dadd1bca
Content: Quickstart: Recognize speech, Python - Speech Services - Azure Cognitive Services
Content Source: articles/cognitive-services/Speech-Service/quickstart-python.md
Service: cognitive-services
Sub-service: speech-service
GitHub Login: @chlandsi
Microsoft Alias: chlandsi

@Aaron-Yue
Thanks for the feedback! We are currently investigating and will update you shortly.

There is currently no support for CentOS, and we don't have a timeline to add it to the supported platforms at the moment. Sorry for the inconvenience!

OK, thanks for your reply!

@Aaron-Yue We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


play_tune example does not work

Hy
the play_tune example does not work with the dronekit version 2.9.1 is this there not yert implemented?
AttributeError: 'Vehicle' object has no attribute 'play_tune'
Andy

On Thu, 12 Oct 2017, GekoCH wrote:

the play_tune example does not work with the dronekit version 2.9.1 is this
there not yert implemented?
AttributeError: 'Vehicle' object has no attribute 'play_tune'

Some other dronekit-python is in your path.  If the example is present in
a checkout then the vehicle will have the code for it...

hmm I did install the dronekit over pip install do I need to clone the GIT and use it that way?

On Thu, 12 Oct 2017, GekoCH wrote:

hmm I did install the dronekit over pip install do I need to clone the GIT
and use it that way?

Yes.  And pip uninstall the pip-installed version to avoid confusion.
I assume you grabbed the demo from the internet, then?

I did that and now did the same thing with the MAVproxy everything is now loaded by GIT and installed but still now I get this error:
AttributeError: 'MAVLink' object has no attribute 'play_tune_encode'

On Thu, 12 Oct 2017, GekoCH wrote:

I did that and now did the same thing with the MAVproxy everything is now
loaded by GIT and installed but still now I get this error:
AttributeError: 'MAVLink' object has no attribute 'play_tune_encode'

Sorry, now you need to update your pymavlink :-)
You can do this in much the same way as you did dronekit-python, with the
exception that you need to tell setup.py where to find the message
definitions.  I usually do this with:
MDEF=$HOME/rc/ardupilot/modules/mavlink/message_definitions python
setup.py build install --user --force

sorry to disturb you once more...
ok I did now clone https://github.com/ArduPilot/pymavlink and https://github.com/ArduPilot/mavlink
the I did run the python setup.py build and sudo python setup.py install command in den pymavlink folder
then I used the command MDEF=$HOME/xxx/mavlink/message_definitions
and python setup.py build install --user --force in the pymavlink folder
but I still get the error message AttributeError: 'MAVLink' object has no attribute 'play_tune_encode'
what am I doing wrong?

On Thu, 12 Oct 2017, GekoCH wrote:

but I still get the error message AttributeError: 'MAVLink' object has no
attribute 'play_tune_encode'
what am I doing wrong?

Did you remove the pip-installed version of pymavlink?
Yeep removing things with pip 'til it starts telling there's none left,
then install from the reo....

i did remove but now when I look for the new installed by using pip list there is no pymavlink
even the code posted above finished with
Finished processing dependencies for pymavlink==2.2.5

Im suffering this issues too. it worked well with JTK1 board but with new raspberry it doesnt work

play_tune function doesn't work in raspberry Pi3

how fix it?

I try mavlink message...
it doesn't work

no attribute play_tune / play_tune_encode

So, it looks like you need to set mavlink2 typing  MAVLINK20=1. I set it up in rc.local

On linux ubuntu
i tested dronekit-sitl copter simulation simple_go_to.py when i entered "mavproxy.py --master tcp:<IP_ADDRESS>:5760 --sitl <IP_ADDRESS>:5501 --out <IP_ADDRESS>:14550 --out <IP_ADDRESS>:14551 --map --console"
on terminal it gave this crush
Terminal map and console connection error :
Exception in thread main_loop:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/yusuf/.local/bin/mavproxy.py", line 783, in main_loop
master.wait_heartbeat()
File "/usr/local/lib/python2.7/dist-packages/pymavlink/mavutil.py", line 383, in wait_heartbeat
return self.recv_match(type='HEARTBEAT', blocking=blocking)
File "/usr/local/lib/python2.7/dist-packages/pymavlink/mavutil.py", line 344, in recv_match
m = self.recv_msg()
File "/usr/local/lib/python2.7/dist-packages/pymavlink/mavutil.py", line 318, in recv_msg
msg = self.mav.parse_char(s)
File "/usr/local/lib/python2.7/dist-packages/pymavlink/dialects/v10/ardupilotmega.py", line 9257, in parse_char
self.__callbacks(m)
File "/usr/local/lib/python2.7/dist-packages/pymavlink/dialects/v10/ardupilotmega.py", line 9234, in __callbacks
self.callback(msg, *self.callback_args, **self.callback_kwargs)
File "/home/yusuf/.local/lib/python2.7/site-packages/MAVProxy/modules/mavproxy_link.py", line 460, in master_callback
mavutil.mavlink.MAV_TYPE_DODECAROTOR]:
AttributeError: 'module' object has no attribute 'MAV_TYPE_DODECAROTOR'
then when i wanted to run simple_go_to.py it gave timeout error:
Link timeout, no heartbeat in last 5 seconds

No heartbeat in 30 seconds, aborting.
Traceback (most recent call last):
File "simple_goto.py", line 38, in
vehicle = connect(connection_string, wait_ready=True)
File "/home/yusuf/.local/lib/python2.7/site-packages/dronekit/init.py", line 2845, in connect
vehicle.initialize(rate=rate, heartbeat_timeout=heartbeat_timeout)
File "/home/yusuf/.local/lib/python2.7/site-packages/dronekit/init.py", line 2117, in initialize
raise APIException('Timeout in initializing connection.')
dronekit.APIException: Timeout in initializing connection.

pip version is 8.1.1
python : 2.7
mavlink 2.0.6
what should i do i saw? someone said that upgrade mavlink to 2.2.8 but i couldnt do that
thanks for help :)

On Sat, 30 Jun 2018, YusufYigitbasi wrote:

what should i do i saw? someone said that upgrade mavlink to 2.2.8 but i couldnt do that

Upgrading that is the solution.
Why can't you upgrade?

The current implementation of vehicle.play_tunes is not compatible with the last Mavlink protocol. An extra argument is expected. Here it is my simple patch in the code:
if vehicle.version.major == 3 and vehicle.version.minor <= 5 and vehicle.version.patch <=5:
# print ("Older than 3.5.5 release")
vehicle.play_tune(tune_to_play)
else:
# print ("New release")
msg = vehicle.message_factory.play_tune_encode(0, 0, tune_to_play, tune_to_play)
vehicle.send_mavlink(msg)
# print ("-- Tune Played --")

On Fri, 12 Oct 2018, Tiziano Fiorenzani wrote:

The current implementation of vehicle.play_tunes is not compatible with the last Mavlink protocol. An extra argument is expected. Here it is my simple

What error do you get with the old code?

Please note your autopilot has to speaking mavlink2 for play_tune_encode to appear.
That's param set SERIAL0_PROTOCOL 2 in MAVProxy.

On Fri, 12 Oct 2018, Tiziano Fiorenzani wrote:

Something like "s must be a string"

OK, so I reproduced that easily enough, thanks.
I've a concern about the patch you're suggesting here, however.  It will
certainly fix the test - but it's a workaround.
I think this issue might arise any time a message has extensions; we need
to come to grips with the wider problem, I think.

https://github.com/ArduPilot/pymavlink/blob/master/generator/mavgen_python.py#L315 <- that's the problem line.

https://github.com/ArduPilot/pymavlink/pull/227 <- I believe that might be the correct fix.

Thanks Peter, the suggestion for patching was very quick and dirty, more
for giving an idea of the problem rather that been a real solution. I will
test it right away
On Mon, Oct 15, 2018, 5:00 AM Peter Barker<EMAIL_ADDRESS>wrote:

ArduPilot/pymavlink#227 https://github.com/ArduPilot/pymavlink/pull/227
<- I believe that might be the correct fix.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dronekit/dronekit-python/issues/757#issuecomment-429783263,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB-xsjMY9MhE_QKXbsLoa4omffXoeobrks5ulFyggaJpZM4P2jqZ
.

Just uninstalled pymavlink and reinstalled through dronekit (went from 2.2.15 to 2.2.16). I still get  "argument for 's' must be a string" when I call play_tunes. MAVLINK20 is set to 1

On Mon, 15 Oct 2018, Tiziano Fiorenzani wrote:

Just uninstalled pymavlink and reinstalled through dronekit (went from 2.2.15 to 2.2.16). I still get "argument for 's' must be a string" when I call
play_tunes. MAVLINK20 is set to 1

The patch is still in the PR I referenced - not even merged yet, let alone
released into the wild :-)

On Tue, 16 Oct 2018, Peter Barker wrote:

The patch is still in the PR I referenced - not even merged yet, let alone
released into the wild :-)

The PR has now been merged.
Next pymavlink release will have the fix.
In the meantime you can run from the master branch if you need the fix :-)

I am using pymavlink version 2.4.41 and have installed mavlink from the main branch of https://github.com/mavlink/mavlink.git.
However, I am still encountering the following error:
Traceback (most recent call last):
  File "/home/opi/ws/mavlink/play_tune.py", line 41, in <module>
    vehicle.play_tune(args.tune)
  File "/home/opi/.venv/lib/python3.11/site-packages/dronekit/__init__.py", line 2362, in play_tune
    msg = self.message_factory.play_tune_encode(0, 0, tune)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MAVLink' object has no attribute 'play_tune_encode'. Did you mean: 'altitude_encode'?

I have carefully reviewed the related topic from 2018, and I believed this issue had been resolved. However, the problem still persists for me.
Could you please provide any guidance or updates on how to resolve this issue?
Thank you.


the pretrained model

hi,the pretrained model i download from goole is only 20MB, is that right ?
but i can unrar it correctly!
looking forward your answer!

@hejinying  You do not need to unzip it, and directly use torch.load() to load the model.

Got it ! Thank you very much!@JiaRenChang

@hejinying this model can be unrared?  why i can't unrar it ?

@rintiunse You do not need to unzip it, and directly use torch.load() to load the model
It means you can use it derectly!  You don't have to unrar it or change it's name!
Just give it's name to the function!

@hejinying ok,got it. thank you very much.


Add centroid estimator based on Vakili & Hogg 2016

Hi y'all,
this PR adds the centroid estimator designed by Vakili & Hogg 2016.
I've compared it with the classical method of moments using data from Kepler-10 and the results look consistent.  Tests on wild/faint targets have been done by @christinahedges in #542.
Let me know your thoughts!

Wowww this looks awesome, and all tests pass!  Hope to do a careful review & merge later today!
Thank you!! :heart: :heart: :heart: :heart: :heart:

Is pos_corr in pixel units? I got very small (or negative values) of it.

Yes, pos_corr is in pixels.  The difference between pos_corr and the measured centroids should be a simple constant offset, because pos_corr encodes the residual of the WCS solution in the header (which is fixed for all frames) versus the actual position of a given frame.

@mirca Here is an example cadence where the quadratic centroid is definitely incorrect, but I haven't yet been able to figure out why!

@barentsen yep, thanks for investigating! I'll take a look!

@mirca Any idea why the example posted above fails?  I can't seem to figure it out!

I'll take a look on this ASAP

I think the way the parameters (a, b, c, d, e, f) are computed may be wrong.
Following Vakili & Hogg (https://arxiv.org/pdf/1610.05873.pdf), I derive the coefficients from Equation 21 as follows:
from sympy import Matrix

# Matrix A as defined by Equation 20 in Vakili & Hogg (arxiv:1610.05873);
# the columns are: 1, x, y, x**2, xy, y**2.
A = Matrix([[1, 1, 1, 1, 1, 1],
            [1, 2, 1, 4, 2, 1],
            [1, 3, 1, 9, 3, 1],
            [1, 1, 2, 1, 2, 4],
            [1, 2, 2, 4, 4, 4],
            [1, 3, 2, 9, 6, 4],
            [1, 1, 3, 1, 3, 9],
            [1, 2, 3, 4, 6, 9],
            [1, 3, 3, 9, 9, 9]])
At = A.transpose()

# Coefficients of the free parameters {a, b, c, d, e, f}
# following Equation 21 in Vakili1 & Hogg.
(At*A).inv() * At

Result:

The coefficients in that matrix do not appear to match those in the code, i.e. here:
https://github.com/KeplerGO/lightkurve/pull/544/files#diff-cbdf227627021b7f9d0bca4efb5c2113R567-R575
(But it is very likely I am doing something wrong?)

@barentsen we considered (0, 0) to be the coordinate (on the pixel-space) of the center of the brightest pixel,  and I guess you assumed it to be (2, 2)? Although I haven't verified it, I guess it shouldn't matter one way or the other up to a translation of the pixel-space coordinates.

See this example:
import numpy as np

Z = np.zeros((3, 3))
Z[1, 1] = 1

A = np.array([[1, -1, -1, 1,  1, 1],
              [1,  0, -1, 0,  0, 1],
              [1,  1, -1, 1, -1, 1],
              [1, -1,  0, 1,  0, 0],
              [1,  0,  0, 0,  0, 0],
              [1,  1,  0, 1,  0, 0],
              [1, -1,  1, 1, -1, 1],
              [1,  0,  1, 0,  0, 1],
              [1,  1,  1, 1,  1, 1]])
At = A.transpose()
X = np.linalg.inv(At @ A) @ At @ Z.flatten()
a, b, c, d, e, f = X
det = 4 * d * f - e ** 2
print(det)

xm = - (2 * f * b - c * e) / det
ym = - (2 * d * c - b * e) / det
print(xm, ym)

B = np.array([[1, 1, 1, 1, 1, 1],
              [1, 2, 1, 4, 2, 1],
              [1, 3, 1, 9, 3, 1],
              [1, 1, 2, 1, 2, 4],
              [1, 2, 2, 4, 4, 4],
              [1, 3, 2, 9, 6, 4],
              [1, 1, 3, 1, 3, 9],
              [1, 2, 3, 4, 6, 9],
              [1, 3, 3, 9, 9, 9]])
Bt = B.transpose()

X_tilde = np.linalg.inv(Bt @ B) @ Bt @ Z.flatten()
a, b, c, d, e, f = X_tilde
det = 4 * d * f - e ** 2
print(det)

xm = - (2 * f * b - c * e) / det
ym = - (2 * d * c - b * e) / det
print(xm, ym)

I confirm that matrices A and B as defined above give consistent results, although there is of course a fixed column/result offset (+2/+2) in the result obtained with B.
Good news: if I remove the hard-coded analytical solutions for a/b/c/d/e/f that are currently in the code (lines 567-575), and replace it with X = np.linalg.inv(At @ A) @ At @ Z.flatten(), then the results magically become consistent with the old-school moment-based centroids.
So, I do think the analytical solution hard-coded here and in muchbettermoments is incorrect, but it'll be easy to fix.

@mirca I notice that Vakili & Hogg 2016 smooth the image by correlating it with the PSF (i.e. they apply a matched filter) before fitting the 2D polynomial.
Our implementation doesn't do this.  Do you think it matters?  It's certainly much easier not to have to do this.

@barentsen I guess the matrix multiplication operator (@) is not available for Python 2.7

@mirca I notice that Vakili & Hogg 2016 smooth the image by correlating it with the PSF (i.e. they apply a matched filter) before fitting the 2D polynomial.
Our implementation doesn't do this. Do you think it matters? It's certainly much easier not to have to do this.

@barentsen I think it matters. Specially in low SNR cases. But I guess an estimate of the PSF is not available is our case?

@barentsen what do you think? Maybe we could expose it as a standalone function in lightkurve?

I'd be happy with that!  The only drawback I see is that the standalone function would have to receive the pixel values as input, which probably means we'll end up having to copy pixels in memory as opposed to directly accessing self.flux.  However the speed impact is probably very small -- I may play with / test this.

Using a Kepler-10 TPF with 473 cadences, I am finding that separating the quadratic centroiding function into a standalone function slows down tpf.estimate_centroid(method='quadratic') from 33ms to 48ms.
That's a significant slowdown, but given that we are talking about milliseconds, the speed decrease really shouldn't matter!

I'm going to go ahead and merge this!
I note that method='moments' remains the default for now, until we gather some more hands-on experience with the characteristics of the new  method='quadratic' option.

@barentsen awesome, thanks!!!


How do I use theme in TopNavigation?

💬 Question
UI Kitten and Eva version

Package
Version

@eva-design/eva
^2.0.0

@ui-kitten/components
^5.0.0

I'm currently not able to find a way to set <TopNavigation/> to follow theme color and set the accessory and title to be contrast with the theme. Is it available in UI Kitten? I'd love to see if the <TopNavigation/> have options to follow theme primary color.
Example like this:- Food & Resto UI Kit

You may want to change this property.
👉  How To

You may want to change this property.
👉  How To


initialization/1: no warning for failing goals

Good that you added the initialization/1 directive and decided that the implementation defined order in which multiple such directives get executed is just the textual appearance in the file.
Currently however, failing goals do not produce any feedback. Ideally, there is some fitting feedback. Many (if not all) implementations produce a warning for such failing initialization goals.

As of v0.11.1, a failed initialization goal raises an error.
% init_fail.pl
:- initialization(fail).
:- initialization((write(hi), nl)).

$ $(go env GOPATH)/bin/1pl
Top level for ichiban/prolog v0.11.1
This is for testing purposes only!
See https://github.com/ichiban/prolog for more details.
Type Ctrl-C or 'halt.' to exit.
?- [init_fail].
2022/09/19 12:21:03 failed initialization goal: fail
?-

It might be better if it were a warning, but I couldn't find an ideal Go interface for it.
The closest thing is handling of set_prolog_flag(unknown, warning) but a user of this library has to set a callback in case of warnings, which is easy to miss.
https://github.com/ichiban/prolog/blob/c0d191821497d7fbf51c4d311ba820adf652abb2/cmd/1pl/main.go#L86

Some use the initialization/1 directive as a testing device. So they would expect this to list of all directives. On the other hand, continuing the initialization process in spite of a failing goal might lead to further problems. At least it seems Ichiban is the first to go this route.

Given that you are stopping initialization is case of failure, does it make sense that you are continuing initialization in case of error?
ulrich@TU-Wien:/opt/gupu/ichiban-prolog$ cat > init_fail.pl
:- initialization(functor(_,_,_)).
:- write(here), nl.
ulrich@TU-Wien:/opt/gupu/ichiban-prolog$ $(go env GOPATH)/bin/1pl
Top level for ichiban/prolog (devel)
This is for testing purposes only!
See https://github.com/ichiban/prolog for more details.
Type Ctrl-C or 'halt.' to exit.
?- [init_fail].
here
2022/09/19 08:21:11 error(instantiation_error,functor/3)

Just for the record: initialization is also stopped for errors which makes sense.
ulrich@TU-Wien:/opt/gupu/ichiban-prolog$ cat > init_fail.pl
:- initialization(functor(_,_,_)).
:- initialization((write(here),nl)).
ulrich@TU-Wien:/opt/gupu/ichiban-prolog$ $(go env GOPATH)/bin/1pl
Top level for ichiban/prolog (devel)
This is for testing purposes only!
See https://github.com/ichiban/prolog for more details.
Type Ctrl-C or 'halt.' to exit.
?- [init_fail].
2022/09/19 08:24:38 error(instantiation_error,functor/3)