Can only crop one small area of the screen
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
basket |
New
|
Undecided
|
Unassigned |
Bug Description
When I select insert --> photograph screen monitor, only the top-right 960x432px area is available for selection. It's like the software detects a 960x432px monitor.
Virgens Kamikazes (virgenskamikazes) wrote : | #1 |
gl.bars (gl-bars) wrote : | #2 |
I cannot reproduce this on Ubuntu 17.04. Can you specify more details?
- is it possible to resize the area selection frame (make it less than 960x432)?
- are you using Gnome desktop environment (default) or something different?
- what Basket version are you using?
Virgens Kamikazes (virgenskamikazes) wrote : Re: [Bug 1733123] Re: Can only crop one small area of the screen | #3 |
- the dark area (960 X 432) in itself in unchangeable, but I can crop any area within this area.
- yes, I'm using Gnome, but I also had this problem with Ubuntu 17.04, which I was using before October 2017.
- I'm using version 2.10-beta (KDE Development Platform 4.14.34)
Em 21/11/2017 13:57, gl.bars escreveu:
I cannot reproduce this on Ubuntu 17.04. Can you specify more details?
- is it possible to resize the area selection frame (make it less than 960x432)?
- are you using Gnome desktop environment (default) or something different?
- what Basket version are you using?
gl.bars (gl-bars) wrote : | #4 |
- regiongrabber test application Edit (33.0 KiB, application/zip)
Selection is limited by screen size and it seems screen size is determined incorrectly.
It could help to understand this better if you run attached regiongrabber_dbg, "Take screenshot" and copy log from the main window.
Ready-made 64-bit binary is included, but you can also build it from source:
1. Open Software & Updates and enable "Source code"
2. Run in terminal:
sudo apt-get build-dep basket
cd regiongrabber_dbg
qmake && make
Virgens Kamikazes (virgenskamikazes) wrote : | #5 |
This?
g++ -c -m64 -pipe -std=c++11 -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/
-I/usr/
g++ -c -m64 -pipe -std=c++11 -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/
-I/usr/
mainwindow.cpp
g++ -c -m64 -pipe -std=c++11 -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/
-I/usr/
regiongrabber.cpp
g++ -c -m64 -pipe -std=c++11 -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/
-I/usr/
moc_mainwindow.cpp
g++ -c -m64 -pipe -std=c++11 -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/
-I/usr/
moc_regiongrabber.o moc_regiongrabb
g++ -m64 -Wl,-O1 -o regiongrabber_dbg main.o mainwindow.o
regiongrabber.o moc_mainwindow.o moc_regiongrabber.o
-L/usr/
Em 30/11/2017 18:53, gl.bars escreveu:
> Selection is limited by screen size and it seems screen size is
> determined incorrectly.
>
> It could help to understand this better if you run attached regiongrabber_dbg, "Take screenshot" and copy log from the main window.
> Ready-made 64-bit binary is included, but you can also build it from source:
> 1. Open Software & Updates and enable "Source code"
> 2. Run in terminal:
> sudo apt-get build-dep basket
> cd regiongrabber_dbg
> qmake && make
>
> ** Attachment added: "regiongrabber test application"
> https:/
>
gl.bars (gl-bars) wrote : | #6 |
You compiled the test app, now please run it
./regiongrabber_dbg
then press "Take screenshot", select an area and hit Enter
then copy log from main window of regiongrabber_dbg (not from terminal)
Thanks
Virgens Kamikazes (virgenskamikazes) wrote : | #7 |
RG::RegionGrabber initial size 640x480
RG::init desktop(
RG::init pixmap size 1920x1080, resize to 1920x1080
RG::limitPointT
RG::mouseMoveEvent newSelection selection=1x1
RG::limitPointT
RG::mouseMoveEvent newSelection selection=7x5
RG::limitPointT
RG::mouseMoveEvent newSelection selection=14x9
RG::limitPointT
RG::mouseMoveEvent newSelection selection=33x22
RG::limitPointT
RG::mouseMoveEvent newSelection selection=50x33
RG::limitPointT
RG::mouseMoveEvent newSelection selection=93x58
RG::limitPointT
RG::mouseMoveEvent newSelection selection=119x71
RG::limitPointT
RG::mouseMoveEvent newSelection selection=211x117
RG::limitPointT
RG::mouseMoveEvent newSelection selection=238x130
RG::limitPointT
RG::mouseMoveEvent newSelection selection=291x155
RG::limitPointT
RG::mouseMoveEvent newSelection selection=328x172
RG::limitPointT
RG::mouseMoveEvent newSelection selection=350x186
RG::limitPointT
RG::mouseMoveEvent newSelection selection=361x194
RG::limitPointT
RG::mouseMoveEvent newSelection selection=366x199
RG::limitPointT
RG::mouseMoveEvent newSelection selection=369x201
RG::limitPointT
RG::mouseMoveEvent newSelection selection=377x205
RG::limitPointT
RG::mouseMoveEvent newSelection selection=383x210
RG::limitPointT
RG::mouseMoveEvent newSelection selection=388x212
RG::limitPointT
RG::mouseMoveEvent newSelection selection=389x214
RG::limitPointT
RG::mouseMoveEvent newSelection selection=394x217
RG::limitPointT
RG::mouseMoveEvent newSelection selection=399x220
RG::limitPointT
RG::mouseMoveEvent newSelection selection=405x224
RG::limitPointT
RG::mouseMoveEvent newSelection selection=410x229
RG::limitPointT
RG::mouseMoveEvent newSelection selection=416x234
RG::limitPointT
RG::mouseMoveEvent newSelection selection=419x236
RG::limitPointT
RG::mouseMoveEvent newSelection selection=422x237
RG::limitPointT
RG::mouseMoveEvent newSelection selection=428x242
RG::limitPointT
RG::mouseMoveEvent newSelection selection=432x244
RG::limitPo...
gl.bars (gl-bars) wrote : | #8 |
So you were able to select area bigger than 960x432 this time, right? It seems screen size is actually determined correctly.
Are you using Xorg or Wayland? (can be checked using this terminal command: echo $XDG_SESSION_TYPE)
Virgens Kamikazes (virgenskamikazes) wrote : | #9 |
Yes, there was no problem selecting the whole screen with the
regiongrabber_dbg, however, the problem persists with Basket itself.
I'm using X11 (that's what in the terminal when I write the command echo
$XDG_SESSION_TYPE).
Em 04/12/2017 13:28, gl.bars escreveu:
> echo $XDG_SESSION_TYPE
gl.bars (gl-bars) wrote : | #10 |
- kde5 build from git Edit (2.9 MiB, application/x-debian-package)
Hmm, interesting.
Yes, it makes sence that you have X11. Actually Wayland is not supported at the moment - it would grab a black screen.
I've prepared a KDE5 test build of Basket, could you try it too?
0. Please backup basket data before starting - copy or archive ~/.kde/
1. You'll need to install KDE and Qt dependencies, remove Basket 2.10 and install Basket 2.49 from attached deb:
sudo apt install libkf5activities5 libkf5crash5 libkf5dbusaddons5 libkf5service5 libkf5kiocore5 libkf5completion5 libkf5jobwidgets5 libkf5kiowidgets5 libkf5kiontlm5 libkf5notificat
sudo apt remove basket basket-data
sudo dpkg -i ./basket_
2. I suggest NOT to start Basket 2.49 from your current account (because KDE5 migration module will move your basket data folder), but instead create a second account for now. You could use this guide: https:/
sudo -u secondusername basket
It might fail with libraries error if I missed some dependency in the first step. Then you'll need to find a package providing that library, or just post the error text here and I'll help.
3. To return back to version 2.10, do
apt remove basket
apt install basket
Please let me know if anything is not clear in the steps above.
Virgens Kamikazes (virgenskamikazes) wrote : | #11 |
It was successfully installed, but doesn't start.
Em 08/12/2017 18:07, gl.bars escreveu:
> Hmm, interesting.
> Yes, it makes sence that you have X11. Actually Wayland is not supported at the moment - it would grab a black screen.
>
>
> I've prepared a KDE5 test build of Basket, could you try it too?
>
> 0. Please backup basket data before starting - copy or archive
> ~/.kde/
>
> 1. You'll need to install KDE and Qt dependencies, remove Basket 2.10
> and install Basket 2.49 from attached deb:
>
> sudo apt install libkf5activities5 libkf5crash5 libkf5dbusaddons5
> libkf5service5 libkf5kiocore5 libkf5completion5 libkf5jobwidgets5
> libkf5kiowidgets5 libkf5kiontlm5 libkf5notificat
> libkf5sonnetui5 libkf5textwidgets5 libkf5wallet5 libkf5globalaccel5
> libkf5attica5 libkf5xmlgui5 libkf5bookmarks5 libkf5kiofilewi
> libkf5kiogui5 libkf5package5 libkf5declarative5 libkf5calendare
> libkf5newstuff5 libkf5notifyconfig5 libkf5plasma5 libkf5quickaddons5
> libkf5plasmaquick5 libkf5plotting5 libkf5filemetadata3 libkf5kcmutils5
> libkf5parts5 libkf5kdelibs4s
>
> sudo apt remove basket basket-data
>
> sudo dpkg -i ./basket_
>
>
> 2. I suggest NOT to start Basket 2.49 from your current account (because KDE5 migration module will move your basket data folder), but instead create a second account for now. You could use this guide: https:/
>
> sudo -u secondusername basket
>
> It might fail with libraries error if I missed some dependency in the
> first step. Then you'll need to find a package providing that library,
> or just post the error text here and I'll help.
>
>
> 3. To return back to version 2.10, do
>
> apt remove basket
> apt install basket
>
>
> Please let me know if anything is not clear in the steps above.
>
> ** Attachment added: "kde5 build from git"
> https:/
>
gl.bars (gl-bars) wrote : | #12 |
If you try to start basket from terminal, does it print any errors?
> sudo -u secondusername basket
(or you could log in as the second user and run just 'basket')
Virgens Kamikazes (virgenskamikazes) wrote : | #13 |
This is the error that shows in the terminal:
basket: error while loading shared libraries: libKF5FileMetaD
cannot open shared object file: No such file or directory
Em 09/12/2017 10:10, gl.bars escreveu:
> If you try to start basket from terminal, does it print any errors?
>
>> sudo -u secondusername basket
> (or you could log in as the second user and run just 'basket')
>
gl.bars (gl-bars) wrote : | #14 |
Did you install that package? Try
sudo apt install libkf5filemetadata3
(Can be found out via https:/
Virgens Kamikazes (virgenskamikazes) wrote : | #15 |
I got it to start (there were still three packages missing).
Screen crop works fullscreen in this version, but with a very strange
problem: the part of the screen that becomes dark is still only a
top-left fraction of my monitor (the size of the dark rectangle is now
640x480px). But, if I press the cursor from outside this rectangle, and
proceed with the selection as if it was functioning properly, I get to
crop this selected area. But if I begin to select from the dark
rectangle (it is always in the same coordinates -- the top-left corner
of my monitor -- so I will always know where it will be before I select)
I cannot go beyond it.
The only occasion when I can crop my screen properly (i.e. with a full
darkened monitor) is when, after I select the screen crop option,
there's a split second where I can spread all my open windows by
touching one of the corners of my screen before it activates. When it
activates by the time the windows are spread, all the monitor screen
gets dark and I can select an area freely, as it should be.
Em 09/12/2017 22:57, gl.bars escreveu:
> install libkf5filemetadata3
gl.bars (gl-bars) wrote : | #16 |
Thanks for the test, this is quite strange indeed.
I'll probably make another test build with code from regiongrabber_dbg.
For now you can return to the standard version if needed:
sudo apt remove basket
sudo apt install basket
gl.bars (gl-bars) wrote : | #17 |
- kde4 build: v2.11 + RG debug Edit (6.1 MiB, application/x-debian-package)
Please try this new build
sudo apt remove basket
sudo apt remove basket-data
sudo dpkg -i basket_
basket --debug
This way second debug window will appear. If something is wrong with screenshot grabbing, copy lines starting from "RG::" in the debug window and paste here.
Virgens Kamikazes (virgenskamikazes) wrote : | #18 |
It worked.
Thank you for the patience.
VK
Em 15/12/2017 17:32, gl.bars escreveu:
> Please try this new build
>
> sudo apt remove basket
> sudo apt remove basket-data
> sudo dpkg -i basket_
>
> basket --debug
>
> This way second debug window will appear. If something is wrong with
> screenshot grabbing, copy lines starting from "RG::" in the debug window
> and paste here.
>
> ** Attachment added: "kde4 build: v2.11 + RG debug"
> https:/
>
Virgens Kamikazes (virgenskamikazes) wrote : | #19 |
The problem returned. I closed and opened it again, and then it happened.
Em 15/12/2017 17:32, gl.bars escreveu:
> Please try this new build
>
> sudo apt remove basket
> sudo apt remove basket-data
> sudo dpkg -i basket_
>
> basket --debug
>
> This way second debug window will appear. If something is wrong with
> screenshot grabbing, copy lines starting from "RG::" in the debug window
> and paste here.
>
> ** Attachment added: "kde4 build: v2.11 + RG debug"
> https:/
>
gl.bars (gl-bars) wrote : | #20 |
How often does it work correctly and incorrectly? Can you post log from debug window for incorrect case?
Also if you retry regiongrabber_dbg, does it always work normally?
Virgens Kamikazes (virgenskamikazes) wrote : | #21 |
It worked only when I opened it for the first time after I installed it. Then, when I close it and open it again, it goes back to the old stage.
The very first time I open it, it shows in the terminal the error:
Gtk-Message: Failed to load module "overlay-scrollbar"
QDBusConnection: name 'org.kde.
vk@vk:~$ QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Gtk-Message: Failed to load module "overlay-scrollbar"
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20 (X_GetProperty)
Resource id: 0x3800073
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20 (X_GetProperty)
Resource id: 0x3800073
libva error: va_getDriverName() failed with unknown libva error,driver_
libva error: va_getDriverName() failed with unknown libva error,driver_
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20 (X_GetProperty)
Resource id: 0x3800073
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20 (X_GetProperty)
Resource id: 0x3800073
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 18 (X_ChangeProperty)
Resource id: 0x3800073
When I open for the second time and beyond, no error shows.
Em 18/12/2017 19:49, gl.bars escreveu:
How often does it work correctly and incorrectly? Can you post log from
debug window for incorrect case?
Also if you retry regiongrabber_dbg, does it always work normally?
gl.bars (gl-bars) wrote : | #22 |
How did you close Basket? If you used Close button, try menu Basket -> Quit instead (or press Ctrl+Q). Then run 'basket --debug' from the terminal, so that debug window is displayed. I'd like to see debug window log too, so please copy it here (grab an image from Basket and copy lines starting with "RG" from that window).
Virgens Kamikazes (virgenskamikazes) wrote : | #23 |
This is when I open Basket 2.11 beta:
Baskets are loaded from /home/vk/
Basket[
Basket Tree: Saving...
Loading HtmlContent From basket8-
When I choose 'crop screen' (when I go from a region outside the dark rectangle):
RG::RegionGrabber initial size 640x480
RG::init desktop(
RG::init pixmap size 1920x1080, resize to 1920x1080
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection selection=961x649
RG::limitPointT
RG::mouseMoveEvent newSelection sele...
I'm using Ubuntu 17.10. But I also had this problem when using Ubuntu 17.04.