Random error while 'SELECT', PostgreSQL v17.11-3, Zebra MC3401, Android 14, Visual Studio 2022, C#, .Net9.0, Ngpsql 8.0.9, Npgsql 9.0.5, Npgsql 10.0.3
Mantenedores costumam responder em até 6 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 42/100
Direção de pesquisa
Start by checking whether the repeated SELECT and its returned column types are consistent across runs; the issue does not include the SQL, schema, or a reproducible test, so request those details before tracing Npgsql’s read path. Compare behavior on the failing Android 14 device with the working Android 8.1 device. Done means identifying a reproducible cause or obtaining enough information to narrow it down.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
if I call the same SQL 10 times, 2 times it is executed OK and 8 times it is executed with a random error.
C# code from Android application:
System.Data.DataTable DT;
DT = new DataTable();
NpgsqlCommand pgCommand = new NpgsqlCommand( SQL, pgConnection );
NpgsqlDataAdapter pgDataAdapter = new NpgsqlDataAdapter( pgCommand );
try
{
// with the same query (same SQL) - this will cause a random error (see below) or execution without error
pgDataAdapter.Fill( DT );
}
catch (PostgresException PE)
{
...
}
catch (Exception E)
{
// random error
}
The query is executed after pressing a button in the application.
This is the result:
- SELECT: OK
- EXCEPTION: The read on this field has not consumed all of its bytes (pos: 2, len: 536870915)
- SELECT: OK
- EXCEPTION: Index and count must refer to a location within the buffer. (Parameter 'bytes')
- EXCEPTION: The read on this field has not consumed all of its bytes (pos: 4, len: 131092)
- EXCEPTION: The read on this field has not consumed all of its bytes (pos: 4, len: 1028)
- EXCEPTION: The read on this field has not consumed all of its bytes (pos: 2, len: 2050)
- EXCEPTION: Unable to translate bytes [B0] at index 3 from specified code page to Unicode.
- EXCEPTION: Exception while reading form stream
- EXCEPTION: The read on this field has not consumed all of its bytes (pos: 8, len: 2097160)
- SELECT: OK
- EXCEPTION: The read on this field has not consumed all of its bytes (pos: 8, len: 65544)
- EXCEPTION: The read on this field has not consumed all of its bytes (pos: 4, len: 260)
- EXCEPTION: Reading as 'System.Object' is not supported for fields having DataTypeName '-.-'
- EXCEPTION: The read on this field has consumed all of its bytes and read into the subsequent bytes (pos: 4, len: -16843010)
- SELECT: OK
- FREEZE. (RESTART APPLICATION)
- EXCEPTION ....
- ....
SAME APPLICATION ON ZEBRA MC3300, Android v8.1 WORKS WITHOUT ANY EXCEPTION.
'SELECT' WORKS FINE ON PSQL.
NO ERRORS IN POSTGRESQL LOG.
- Linguagem predominante
- C#
- Estrelas
- 3.7k
- Forks
- 890
- Merge médio
- 4d 11h
- PRs com merge (30d)
- 19
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de npgsql/npgsql
-
Writing a decimal as numeric allocates a short[9] per valueTalvez já em andamento @tamasprincz97-dot assumiu há 13 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 89/100
Mantenedores costumam responder em até 6 dias
-
Reading a large interval as TimeSpan returns a wrong value instead of throwingTalvez já em andamento @Mr444-dev assumiu há 7 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
Mantenedores costumam responder em até 6 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 6 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
npgsql/npgsql#6569 · 2 comentários ·
Mantenedores costumam responder em até 6 dias
-
ReadReplicationSlot returns the slot name as passed, not the one the server readTalvez já em andamento @Brar assumiu há 8 dias. Abertareplication
npgsql/npgsql#6735 · 1 responsável ·
Mantenedores costumam responder em até 6 dias
Todas as issues de npgsql/npgsql
Issues semelhantes
-
Issue-Bug Needs-Triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
JiaFeiMiao-K-Cat/DiscImageStudio#281 ·
Mantenedores costumam responder em até 1 dia
-
area/access-management Frontend onboarding candidate :handshake:
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Altinn/altinn-auth#4941 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
aws/aws-sdk-net#4586 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia