[Bug 908856] Re: Error: Unpack requires a string argument of length 4
** Changed in: disper 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/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 908856] Re: Error: Unpack requires a string argument of length 4
I've since updated from F16 to F18 (and all the kernel/driver updates that entails) on the same hardware, and it appears the problem no longer occurs for me. I verified it works with or without the workaround in place. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 908856] Re: Error: Unpack requires a string argument of length 4
Thanks, Mike, for checking! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 908856] Re: Error: Unpack requires a string argument of length 4
Is this still an issue? Could you please verify that it is an issue with 0.3.0, and if the current disper bzr trunk solves it? I've committed the workaround as mentioned in comment #14. ** Changed in: disper Status: Triaged = Fix Committed ** Changed in: disper Assignee: (unassigned) = wvengen (wvengen) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 908856] Re: Error: Unpack requires a string argument of length 4
I used the python fix from Mike Cook in comment #14. It works fine now. I'm wondering if it's related to some python updates that I've received within the last couple of weeks. I'm on Linux Mint 13 KDE which is based on Ubuntu 12.04 (if I remember correctly). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 908856] Re: Error: Unpack requires a string argument of length 4
I've got the same problem, and I'm willing to try the workaround in #14. Okay, stupid question: I've made the changes in the minx.py. What do I do next? How do I compile it? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 908856] Re: Error: Unpack requires a string argument of length 4
Thanks, Mike, for getting to the cause of the problem! This might be a bug in X (especially if a protocol detail differs between i386 and x86_64), but at least we can workaround it. I'll look into this in more detail later. ** Changed in: disper Importance: Undecided = High ** Changed in: disper Status: New = Triaged ** Changed in: disper Milestone: None = 0.3.1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 908856] Re: Error: Unpack requires a string argument of length 4
just another me 2... Inspiron E6400 Nvidia Quadro NVS 160M Driver Version 295.40 After rebooting switching profiles works fine - however auto-disper seems to be always get broken (showing the stated error message) after the system resumes from standby. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 908856] Re: Error: Unpack requires a string argument of length 4
Just a me-too on this - NVIDIA Corporation GT218 [NVS 3100M] - Thinkpad T510 - Driver 295.40 - Ubuntu 12.04 64-bit -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 908856] Re: Error: Unpack requires a string argument of length 4
Had the same problem on my Dell laptop with Quadro NVS 160M running Ubuntu 12.04. The workaround in #14 fixed the problem so now I can switch between profiles. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 908856] Re: Error: Unpack requires a string argument of length 4
FWIW, I had the exact same problem and your python edit has fixed it. I'm on a Lenovo Thinkpad W520 with an Nvidia Quadro 1000M in Discrete Mode. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 908856] Re: Error: Unpack requires a string argument of length 4
Same problem on F16 (x86_64) with Thinkpad W520 (set to discrete, using 2 external and internal off)... After playing around a bit I found in my case decode (in minx.py) is getting down to the unpack call with s0I format and 4 null bytes of data, but the sz is being set to 1. So, the unpack fails since it's only getting 1 byte worth of data (data[:sz]) when it needs 4. So, for a q -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 908856] Re: Error: Unpack requires a string argument of length 4
Er, so, for a quick workaround I stuck a sanity check to reset sz to the necessary format size if it was too low, and then things seem to consistently work for me (sorry, not a python guy)... --- /usr/share/disper/src/nvidia/minx.py2012-01-17 14:13:47.0 -0700 +++ /usr/share/disper/src/nvidia/minx.py2012-04-26 17:27:43.909106422 -0600 @@ -124,6 +124,8 @@ asz = rdict[arg.size] sz = asz * fsz + if sz struct.calcsize(structcode): + sz = struct.calcsize(structcode) if asz == 1: rdict[arg.value] = struct.unpack( structcode, data[:sz] )[0] -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 908856] Re: Error: Unpack requires a string argument of length 4
Now, that's not a proper solution (should check the data length is long enough), but hopefully it helps identify the issue of why sz isn't getting set properly. (And sorry for the comment spam, as edit would be nice.) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 908856] Re: Error: Unpack requires a string argument of length 4
After reading a bit about what unpack is doing: At least I'm running on 64 bit. If this holds for the others as well, this might help in figuring out what's going on. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 908856] Re: Error: Unpack requires a string argument of length 4
Same issue on Ubuntu 12.04 Beta 2 with disper 0.3.0-1 and a GeForce 320M on a MacBook Pro. I'm using autorandr/autodisper to control disper. The first switch worked fine, after that the problem occured. ** Also affects: disper (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 908856] Re: Error: Unpack requires a string argument of length 4
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: disper (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 908856] Re: Error: Unpack requires a string argument of length 4
Thanks everyone for adding your debug information! It seems to be a fairly hard problem. I'll try to look into it when I have the time. Please feel free to add more debugging info when you think it would be useful. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/908856 Title: Error: Unpack requires a string argument of length 4 To manage notifications about this bug go to: https://bugs.launchpad.net/disper/+bug/908856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs