[Bug 1876583] Re: "panic: runtime error: slice bounds out of range" while installing any snap package

2020-10-01 Thread Maciej Borzecki
** Changed in: snapd (Ubuntu)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876583

Title:
  "panic: runtime error: slice bounds out of range" while installing any
  snap package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1876583/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1876583] Re: "panic: runtime error: slice bounds out of range" while installing any snap package

2020-05-07 Thread Maciej Borzecki
The fix has landed and should be in snapd from edge in a day or so.

** Changed in: snapd (Ubuntu)
   Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876583

Title:
  "panic: runtime error: slice bounds out of range" while installing any
  snap package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1876583/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1876583] Re: "panic: runtime error: slice bounds out of range" while installing any snap package

2020-05-06 Thread Maciej Borzecki
A fix in snapd: https://github.com/snapcore/snapd/pull/8606

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876583

Title:
  "panic: runtime error: slice bounds out of range" while installing any
  snap package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1876583/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1876583] Re: "panic: runtime error: slice bounds out of range" while installing any snap package

2020-05-06 Thread Maciej Borzecki
I think this translation is what caused this:
https://translations.launchpad.net/ubuntu/focal/+source/snapd/+pots/snappy/uk/666/+translate

The code has a hint about expected translation:

> TRANSLATORS: this needs to be a single rune that is understood to mean
"minutes" in e.g. 1m30s

We currently have хв (2 runes), there's some proposals to use м.

@anprok would you be willing to look into updating the translation?

In the meantinme, what snap does is a bug, and I'll be sending a patch
for that shortly.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876583

Title:
  "panic: runtime error: slice bounds out of range" while installing any
  snap package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1876583/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1876583] Re: "panic: runtime error: slice bounds out of range" while installing any snap package

2020-05-05 Thread Maciej Borzecki
** Changed in: snapd (Ubuntu)
   Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876583

Title:
  "panic: runtime error: slice bounds out of range" while installing any
  snap package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1876583/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1876583] Re: "panic: runtime error: slice bounds out of range" while installing any snap package

2020-05-05 Thread Maciej Borzecki
** Changed in: snapd (Ubuntu)
   Status: Incomplete => Confirmed

** Changed in: snapd (Ubuntu)
 Assignee: (unassigned) => Maciej Borzecki (maciek-borzecki)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876583

Title:
  "panic: runtime error: slice bounds out of range" while installing any
  snap package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1876583/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1876583] Re: "panic: runtime error: slice bounds out of range" while installing any snap package

2020-05-05 Thread Maciej Borzecki
I switched to uk_UA.UTF-8 and was able to reproduce this problem. The
panic happens when download is finishes.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876583

Title:
  "panic: runtime error: slice bounds out of range" while installing any
  snap package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1876583/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1876583] Re: "panic: runtime error: slice bounds out of range" while installing any snap package

2020-05-05 Thread Ihor Romanyshyn
@maciek-borzecki, hello-world installed without errors. But when i tried
to install another snap:

ihor@ihor-dell:~$ LC_ALL=C.UTF-8 snap install warzone2100 
panic: runtime error: slice bounds out of range [80:79] [recovered]
panic: runtime error: slice bounds out of range [80:79]

goroutine 1 [running]:
main.main.func1()
github.com/snapcore/snapd/cmd/snap/main.go:477 +0x95
panic(0x561d5f7fac80, 0xc000144280)
runtime/panic.go:679 +0x1b6
github.com/snapcore/snapd/progress.(*ANSIMeter).Set(0xc000214eb0, 
0x41a891a0)
github.com/snapcore/snapd/progress/ansimeter.go:152 +0xa1b
main.waitMixin.wait(0xc0002e42a0, 0x561d5f3e, 0xc0001e4488, 0x2, 0x0, 0x0, 
0x0)
github.com/snapcore/snapd/cmd/snap/wait.go:130 +0x700
main.(*cmdInstall).installOne(0xc000359040, 0x7ffcf44c33e4, 0xb, 0x0, 0x0, 
0xc00036cba0, 0x561d5f805060, 0x561d5f8693a0)
github.com/snapcore/snapd/cmd/snap/cmd_snap_op.go:491 +0x316
main.(*cmdInstall).Execute(0xc000359040, 0xc0003787a0, 0x0, 0x2, 0xc000359040, 
0x1)
github.com/snapcore/snapd/cmd/snap/cmd_snap_op.go:596 +0x3d7
github.com/snapcore/snapd/vendor/github.com/jessevdk/go-flags.(*Parser).ParseArgs(0xc000316bd0,
 0xc32190, 0x2, 0x2, 0xc000330330, 0xc0002a5cd0, 0x561d5ee49fbd, 
0x561d5f7d08a0, 0xc000330330)

github.com/snapcore/snapd/vendor/github.com/jessevdk/go-flags/parser.go:333 
+0x8e7
github.com/snapcore/snapd/vendor/github.com/jessevdk/go-flags.(*Parser).Parse(...)

github.com/snapcore/snapd/vendor/github.com/jessevdk/go-flags/parser.go:190
main.run(0xc0002a5de0, 0xe)
github.com/snapcore/snapd/cmd/snap/main.go:515 +0xa7
main.main()
github.com/snapcore/snapd/cmd/snap/main.go:482 +0x371
ihor@ihor-dell:~$

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876583

Title:
  "panic: runtime error: slice bounds out of range" while installing any
  snap package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1876583/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1876583] Re: "panic: runtime error: slice bounds out of range" while installing any snap package

2020-05-05 Thread Maciej Borzecki
@iromanyshyn: can you try `LC_ALL=C.UTF-8 snap install hello-world` ?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876583

Title:
  "panic: runtime error: slice bounds out of range" while installing any
  snap package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1876583/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1876583] Re: "panic: runtime error: slice bounds out of range" while installing any snap package

2020-05-05 Thread Zygmunt Krynicki
What's the chance this fails because of i18n?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876583

Title:
  "panic: runtime error: slice bounds out of range" while installing any
  snap package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1876583/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1876583] Re: "panic: runtime error: slice bounds out of range" while installing any snap package

2020-05-05 Thread Ihor Romanyshyn
Hi Ian!
Still panic. Here is output you asked:

ihor@ihor-dell:~$ id=$(snap install hello-world --no-wait)
ihor@ihor-dell:~$ until snap changes | grep -P "^$id\s+Done"; do echo snap 
changes | grep -P "^$id"; done
30   Done  сьогодні о 16:41 EEST  сьогодні о 16:41 EEST  Встановити 
snap-пакунок "hello-world"
ihor@ihor-dell:~$ snap run hello-world
Hello World!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876583

Title:
  "panic: runtime error: slice bounds out of range" while installing any
  snap package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1876583/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1876583] Re: "panic: runtime error: slice bounds out of range" while installing any snap package

2020-05-05 Thread Michael Vogt
Thanks! This is probably locale related, the relevant code in ansimeter:
"""
fmt.Fprint(stdout, "\r", enterReverseMode, string(msg[:i]), 
exitAttributeMode, string(msg[i:]))
"""
could be mixing of rune byte?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876583

Title:
  "panic: runtime error: slice bounds out of range" while installing any
  snap package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1876583/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1876583] Re: "panic: runtime error: slice bounds out of range" while installing any snap package

2020-05-04 Thread Ian Johnson
Hi, thanks for reporting, does the same problem happen if you use `snap
install --unicode=never --color=never insomnia` ?

If it does still panic, can you try the following:


id=$(snap install hello-world --no-wait)
until snap changes | grep -P "^$id\s+Done"; do echo snap changes | grep -P 
"^$id"; done
snap run hello-world


and post the output from that?

** Changed in: snapd (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876583

Title:
  "panic: runtime error: slice bounds out of range" while installing any
  snap package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1876583/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs