Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

updateVpnService -> byDevice.isProvideEnabled is crashing the app

Aperta
#4 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
go, kotlin
Ambito
mobile, networking

Direzione di ricerca

Inizia dal percorso Android updateVpnService e dal controllo byDevice.isProvideEnabled menzionato nel titolo. Segui il callback Go attraverso device.go, alle righe 251, 253 e 338, insieme a connect/trace.go, riga 65, e ai log di riproduzione dell’emulatore forniti. Il lavoro è completato quando la verifica del provider viene completata senza un crash di avvio immediato o successivo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Here are the steps I took:

  • Login create, clicked the "become a provider" button.
  • Filled out the form.
  • Submitted the verification.
  • App crashed, and on subsequent launches, crashes immediately.
    This is all tested in the emulator. Tried on both Pixel 7 and Pixel 8.

Some logs:

2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  runtime: newstack at runtime.printlock+0x78 sp=0x4000163ac0 stack=[0x4000162000, 0x4000164000]
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  runtime: newstack at runtime.printlock+0x78 sp=0x4000163ac0 stack=[0x4000162000, 0x4000164000]
2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  	morebuf={pc:0x70314b6050 sp:0x4000163ac0 lr:0x0}
2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  	sched={pc:0x70314eb8e8 sp:0x4000163ac0 lr:0x70314b6050 ctxt:0x0}
2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  runtime.callbackUpdateSystemStack(0x4000044008, 0x7fe8a34580, 0x0)
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  	morebuf={pc:0x70314b6050 sp:0x4000163ac0 lr:0x0}
2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  	runtime/cgocall.go:241 +0x90 fp=0x4000163b20 sp=0x4000163ac0 pc=0x70314b6050
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  	sched={pc:0x70314eb8e8 sp:0x4000163ac0 lr:0x70314b6050 ctxt:0x0}
2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  runtime.cgocallbackg(0x703187cff0, 0x7fe8a34678, 0x0)
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  runtime.callbackUpdateSystemStack(0x4000044008, 0x7fe8a34580, 0x0)
2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  	runtime/cgocall.go:306 +0x68 fp=0x4000163ba0 sp=0x4000163b20 pc=0x70314b6218
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  	runtime/cgocall.go:241 +0x90 fp=0x4000163b20 sp=0x4000163ac0 pc=0x70314b6050
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  runtime.cgocallbackg(0x703187cff0, 0x7fe8a34678, 0x0)
2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  runtime.cgocallbackg(0x703187cff0, 0x7fe8a34678, 0x0)
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  	runtime/cgocall.go:306 +0x68 fp=0x4000163ba0 sp=0x4000163b20 pc=0x70314b6218
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  runtime.cgocallbackg(0x703187cff0, 0x7fe8a34678, 0x0)
2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  	<autogenerated>:1 +0x1c fp=0x4000163bd0 sp=0x4000163ba0 pc=0x7031522d0c
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  	<autogenerated>:1 +0x1c fp=0x4000163bd0 sp=0x4000163ba0 pc=0x7031522d0c
2024-07-04 17:29:28.908 11797-0     Go                      com.bringyour.network                E  runtime.cgocallback(0x4000163c48, 0x7031856460, 0x703189b118)
2024-07-04 17:29:28.908 11797-0     Go                      com.bringyour.network                E  	runtime/asm_arm64.s:1130 +0xb0 fp=0x4000163c00 sp=0x4000163bd0 pc=0x7031521050
2024-07-04 17:29:28.908 11797-0     Go                      com.bringyour.network                E  runtime.systemstack_switch()
2024-07-04 17:29:28.908 11797-0     Go                      com.bringyour.network                E  	runtime/asm_arm64.s:200 +0x8 fp=0x4000163c10 sp=0x4000163c00 pc=0x703151ec18
2024-07-04 17:29:28.908 11797-11839 GoLog                   com.bringyour.network                E  runtime.cgocallback(0x4000163c48, 0x7031856460, 0x703189b118)
2024-07-04 17:29:28.908 11797-0     Go                      com.bringyour.network                E  runtime.cgocall(0x703189b118, 0x4000163c88)
2024-07-04 17:29:28.908 11797-0     Go                      com.bringyour.network                E  	runtime/cgocall.go:175 +0x70 fp=0x4000163c50 sp=0x4000163c10 pc=0x70314b5f60
2024-07-04 17:29:28.908 11797-0     Go                      com.bringyour.network                E  main._Cfunc_cproxyclient_ProvideChangeListener_ProvideChanged(0x2a, 0x0)
2024-07-04 17:29:28.908 11797-0     Go                      com.bringyour.network                E  	_cgo_gotypes.go:550 +0x30 fp=0x4000163c80 sp=0x4000163c50 pc=0x7031856460
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	runtime/asm_arm64.s:1130 +0xb0 fp=0x4000163c00 sp=0x4000163bd0 pc=0x7031521050
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  runtime.systemstack_switch()
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	runtime/asm_arm64.s:200 +0x8 fp=0x4000163c10 sp=0x4000163c00 pc=0x703151ec18
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  runtime.cgocall(0x703189b118, 0x4000163c88)
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	runtime/cgocall.go:175 +0x70 fp=0x4000163c50 sp=0x4000163c10 pc=0x70314b5f60
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  main._Cfunc_cproxyclient_ProvideChangeListener_ProvideChanged(0x2a, 0x0)
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	_cgo_gotypes.go:550 +0x30 fp=0x4000163c80 sp=0x4000163c50 pc=0x7031856460
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  main.(*proxyclient_ProvideChangeListener).ProvideChanged(0x4000010144, 0x0)
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  main.(*proxyclient_ProvideChangeListener).ProvideChanged(0x4000010144, 0x0)
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  	gobind/gobind/go_clientmain.go:7254 +0x58 fp=0x4000163ca0 sp=0x4000163c80 pc=0x7031875508
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	gobind/gobind/go_clientmain.go:7254 +0x58 fp=0x4000163ca0 sp=0x4000163c80 pc=0x7031875508
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  bringyour.com/client.(*BringYourDevice).provideChanged.func1()
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  bringyour.com/client.(*BringYourDevice).provideChanged.func1()
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  	bringyour.com/[email protected]/device.go:253 +0xb4 fp=0x4000163cf0 sp=0x4000163ca0 pc=0x7031843804
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	bringyour.com/[email protected]/device.go:253 +0xb4 fp=0x4000163cf0 sp=0x4000163ca0 pc=0x7031843804
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  bringyour.com/connect.HandleError(0x70313e41e5?, {0x0?, 0x4000020770?, 0x0?})
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  bringyour.com/connect.HandleError(0x70313e41e5?, {0x0?, 0x4000020770?, 0x0?})
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  	bringyour.com/[email protected]/trace.go:65 +0x70 fp=0x4000163d50 sp=0x4000163cf0 pc=0x70318103a0
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  bringyour.com/client.(*BringYourDevice).provideChanged(0x4000000360, 0x0)
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	bringyour.com/[email protected]/trace.go:65 +0x70 fp=0x4000163d50 sp=0x4000163cf0 pc=0x70318103a0
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  bringyour.com/client.(*BringYourDevice).provideChanged(0x4000000360, 0x0)
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  	bringyour.com/[email protected]/device.go:251 +0xe4 fp=0x4000163dc0 sp=0x4000163d50 pc=0x70318436e4
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	bringyour.com/[email protected]/device.go:251 +0xe4 fp=0x4000163dc0 sp=0x4000163d50 pc=0x70318436e4
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  bringyour.com/client.(*BringYourDevice).SetProvideMode(0x4000000360, 0x70314b6658?)
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  bringyour.com/client.(*BringYourDevice).SetProvideMode(0x4000000360, 0x70314b6658?)
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  	bringyour.com/[email protected]/device.go:338 +0x40 fp=0x4000163de0 sp=0x4000163dc0 pc=0x7031843e20
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	bringyour.com/[email protected]/device.go:338 +0x40 fp=0x4000163de0 sp=0x4000163dc0 pc=0x7031843e20
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  main.proxyclient_BringYourDevice_SetProvideMode(0xffffff01?, 0x0)
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  main.proxyclient_BringYourDevice_SetProvideMode(0xffffff01?, 0x0)
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  	gobind/gobind/go_clientmain.go:1610 +0x40 fp=0x4000163e10 sp=0x4000163de0 pc=0x703185dc30
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  	gobind/gobind/go_clientmain.go:1610 +0x40 fp=0x4000163e10 sp=0x4000163de0 pc=0x703185dc30
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  _cgoexp_e7fa622b2ccb_proxyclient_BringYourDevice_SetProvideMode(0x4000163e88?)
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  _cgoexp_e7fa622b2ccb_proxyclient_BringYourDevice_SetProvideMode(0x4000163e88?)
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  	_cgo_gotypes.go:2126 +0x28 fp=0x4000163e30 sp=0x4000163e10 pc=0x703187d378
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  	_cgo_gotypes.go:2126 +0x28 fp=0x4000163e30 sp=0x4000163e10 pc=0x703187d378
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  runtime.cgocallbackg1(0x703187d350, 0x7fe8a38c70, 0x0)
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  runtime.cgocallbackg1(0x703187d350, 0x7fe8a38c70, 0x0)
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  	runtime/cgocall.go:420 +0x228 fp=0x4000163f00 sp=0x4000163e30 pc=0x70314b6598
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  	runtime/cgocall.go:420 +0x228 fp=0x4000163f00 sp=0x4000163e30 pc=0x70314b6598
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  runtime.cgocallbackg(0x703187d350, 0x7fe8a38c70, 0x0)
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  runtime.cgocallbackg(0x703187d350, 0x7fe8a38c70, 0x0)
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  	runtime/cgocall.go:339 +0x10c fp=0x4000163f80 sp=0x4000163f00 pc=0x70314b62bc
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  	runtime/cgocall.go:339 +0x10c fp=0x4000163f80 sp=0x4000163f00 pc=0x70314b62bc
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  runtime.cgocallbackg(0x703187d350, 0x7fe8a38c70, 0x0)
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  runtime.cgocallbackg(0x703187d350, 0x7fe8a38c70, 0x0)
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  	<autogenerated>:1 +0x1c fp=0x4000163fb0 sp=0x4000163f80 pc=0x7031522d0c
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  runtime.cgocallback(0x0, 0x0, 0x0)
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  	runtime/asm_arm64.s:1130 +0xb0 fp=0x4000163fe0 sp=0x4000163fb0 pc=0x7031521050
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  runtime.goexit({})
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  	<autogenerated>:1 +0x1c fp=0x4000163fb0 sp=0x4000163f80 pc=0x7031522d0c
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  runtime.cgocallback(0x0, 0x0, 0x0)
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  	runtime/asm_arm64.s:1130 +0xb0 fp=0x4000163fe0 sp=0x4000163fb0 pc=0x7031521050
2024-07-04 17:29:28.911 11797-11839 GoLog                   com.bringyour.network                E  runtime.goexit({})
2024-07-04 17:29:28.911 11797-11839 GoLog                   com.bringyour.network                E  	runtime/asm_arm64.s:1222 +0x4 fp=0x4000163fe0 sp=0x4000163fe0 pc=0x7031521144
2024-07-04 17:29:28.911 11797-0     Go                      com.bringyour.network                E  	runtime/asm_arm64.s:1222 +0x4 fp=0x4000163fe0 sp=0x4000163fe0 pc=0x7031521144
2024-07-04 17:29:28.911 11797-0     Go                      com.bringyour.network                E  fatal error: runtime: stack split at bad time
2024-07-04 17:29:28.911 11797-11839 GoLog                   com.bringyour.network                E  fatal error: runtime: stack split at bad time

It looks to be crashing on this line https://github.com/bringyour/android/blob/main/app/app/src/main/java/com/bringyour/network/MainApplication.kt#L301.

Lingua principale
Kotlin
Stelle
218
Fork
13
Merge medio
53m
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di urnetwork/android

Tutte le issue di urnetwork/android

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.