Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on "Write MD-UV380 user database to radio" #20

Open
fred777 opened this issue Feb 4, 2022 · 4 comments
Open

Crash on "Write MD-UV380 user database to radio" #20

fred777 opened this issue Feb 4, 2022 · 4 comments

Comments

@fred777
Copy link

fred777 commented Feb 4, 2022

When I hit "Write MD-UV380 user database to radio", editcp will just crash. After restart it will show the following error:

panic: runtime error: slice bounds out of range [1:0]

goroutine 24 [running]:
github.com/dalefarnsworth-dmr/userdb.downloadReflectorUsers(0x0, 0x0, 0x0, 0x0, 0x0)
	github.com/dalefarnsworth-dmr/[email protected]/userdb.go:1112 +0x373
github.com/dalefarnsworth-dmr/userdb.do(0x2, 0x195885c, 0x14c3a200)
	github.com/dalefarnsworth-dmr/[email protected]/userdb.go:1189 +0x30
created by github.com/dalefarnsworth-dmr/userdb.(*UsersDB).getUsers
	github.com/dalefarnsworth-dmr/[email protected]/userdb.go:1199 +0x8a

My RT3S/MD-UV380 has latest firmware RT3S(CSV-GPS)-P18.16.bin

Not sure if I am supposed to download the user database somehow first... I'm a DMR newbee...

@DaleFarnsworth
Copy link
Collaborator

Thanks. I ran into that issue, but think it should not occur with recent versions of editcp, but I could be wrong. What version of editcp are you using?

@fred777
Copy link
Author

fred777 commented Feb 5, 2022

It happens on both - Linux and Windows - with version 1.0.28

I tried also with dmrconfig: https://github.com/OpenRTX/dmrconfig

It seems the radio drops connection and reboots when initiating the upload. (I'm using a stripped down database with only 14000 contacts but it also happens with full database (which is too big for the memory)).

Side note: In the device, the ContactsCSV list was always showing garbage - right from the start after the firmware update and before any attempt to upload the db. There where 65536 items in the list with random non-asci characters.

I finally got the db transferred with the original tool from Retevis on Windows.

Since then, it has become possible to upload the db with editcp without any issues.

So I guess it's an issue with the internal memory state of the radio.

@DaleFarnsworth
Copy link
Collaborator

I'm pretty sure it's a bug in editcp. It occurs when one of the user database files it downloads has a zero length. I'll look into it. Thanks for the report. BTW, the maximum number of user contacts that the MD-UV380 can hold is 122197 users.

@DaleFarnsworth
Copy link
Collaborator

DaleFarnsworth commented Feb 12, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants