Bitcoin Forum
June 27, 2024, 10:08:06 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Mycelium error when trying send coins with ledger nano s  (Read 205 times)
ioanbtc (OP)
Sr. Member
****
Offline Offline

Activity: 459
Merit: 251



View Profile
March 16, 2019, 10:02:21 PM
 #1

Hi. I have some coins on my ledger nano s and want to send some of them to a website but after i press send on mycelium i get this error



What i should do?

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
March 17, 2019, 01:57:52 AM
Last edit: March 17, 2019, 07:45:24 AM by HCP
Merited by ioanbtc (1)
 #2

Do you have to know if the coins in your Nano S wallet are in legacy address(es) (starts with "1")... or in a SegWit address(es) (starts with "3")?

The only things I can suggest are relatively obvious:

1. Try and reset the Mycelium app on your device (clear cache only first... then try cache+data if that doesn't work)... note that clearing data will wipe ALL of the data for Mycelium app
2. Try your Nano S with another device (laptop/desktop etc) and try using the Ledger Live software.

If #1 doesn't work, and #2 isn't an option... then you might be better off logging the issue on the Mycelium GitHub...

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
bL4nkcode
Copper Member
Legendary
*
Offline Offline

Activity: 2142
Merit: 1305


Limited in number. Limitless in potential.


View Profile
March 17, 2019, 03:34:12 AM
 #3

Try to double check if your mycelium app is up to date, if yes try to follow what HCP said. Also, are you sure that the ledger is the correct wallet for the account on your mycelium? Coz one time I encountered some error while I'm going to send using ledger and mycelium, as a bit lazy I didn't notice yet until such time that I use a different ledger (coz i'm using 2 of them).
bL4nkcode
Copper Member
Legendary
*
Offline Offline

Activity: 2142
Merit: 1305


Limited in number. Limitless in potential.


View Profile
March 17, 2019, 06:46:52 AM
 #4

Just an update, I just faced this issue in mycelium, tried to clear cache the app, then still that error pops, after I click the send button or after I confirm the transaction in my ledger. So using electrum helps me with this.
ioanbtc (OP)
Sr. Member
****
Offline Offline

Activity: 459
Merit: 251



View Profile
March 17, 2019, 06:21:10 PM
Last edit: March 17, 2019, 06:34:17 PM by ioanbtc
 #5

-snip-


-snip-

Thanks for reply, i tried 1 option and not working. After i connect ledger to PC, at the time i open this thread i not was home,  the coins was on both legacy, and segwit address.

Last time when i send coins from ledger nano s with mycelium app coins went from segwit "3" Bitcoin starting address to a legacy bitcoin address "1" and there was two inputs when i try to send from mycelium app 2 inputs / 2 outputs so i think mycelium try to combine both (segwit, legacy ) and because of this not working.

Mycelium app is up to date.

I send after coins from ledger live once i get home and works, i had coins on both legacy, and segwit. I think the problem is mycelium app because when i send coins from mycelium goes from segwit to legacy address.

BitMaxz
Legendary
*
Online Online

Activity: 3304
Merit: 3032


BTC price road to $80k


View Profile WWW
March 17, 2019, 08:50:31 PM
 #6

As the error said "No script code for com.mrd.bitlib.model.scriptinput" so I think the issue is not from mycelium. The error seems no script code comes from ledger nano to import to com.mrd.bitlib.model.

I suggest you report this on ledger support https://support.ledger.com/hc/en-us/requests/new

It seems that there is something wrong with java source code from the ledger that is why you are getting this error.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
March 17, 2019, 09:37:18 PM
 #7

As the error said "No script code for com.mrd.bitlib.model.scriptinput" so I think the issue is not from mycelium. The error seems no script code comes from ledger nano to import to com.mrd.bitlib.model.

I suggest you report this on ledger support https://support.ledger.com/hc/en-us/requests/new

It seems that there is something wrong with java source code from the ledger that is why you are getting this error.
That's not how it works... wallets don't import java source code from a Ledger device...

What is happening is that Mycelium is finding something "unexpected" when attempting to create the transaction via the Ledger, so it throws this "No scriptcode" error. The error is thrown here in the getScriptCode() method of the TransactionInput Class:
https://github.com/mycelium-com/wallet-android/blob/master/bitlib/src/main/java/com/mrd/bitlib/model/TransactionInput.java#L92

We can see from the code that it is checking if the "script" that it is trying to process is either "P2WSH" or "P2WPKH":
...
      if (script instanceof ScriptInputP2WSH) {
         throw new NotImplementedError();
      } else if (script instanceof ScriptInputP2WPKH) {
...
#doStuff
...
      } else {
         throw new IllegalArgumentException("No scriptcode for " + script.getClass().getCanonicalName());
      }
...
If it is neither of those script "types"... it throws the IllegalArgumentException and we get the "no scriptcode" error.


Again, I suggest that you contact the Mycelium devs using their GitHub issues register and log this error... it seems like the wallet is doing something that results in getting an "unexpected" script type (possibly trying to combine legacy and SegWit inputs? Huh). Definitely something the devs would be interested in looking into.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!