Browser Resizing doesn't work as intended
-
I agree that I have searched opened and closed issues to prevent duplicates.
Description
When the user attempts to resize the browser horizontally or diagonally to the left, the browser drags in the direction the user is attempting to expand or contract the window size, vertical and right changes aren't registered, resizing does not work, and just places the browser at the top left of the screen Upon further investigation, resizing in any way freezes the browser, and prevents the user from closing it. See second log for the second window I opened and attempted to resize vertically. The third log is for maximizing the window- which also froze the browser.
Environment info
- Redox OS Release: 0.7.0
- Operating system: Pop! OS
-
uname -a
:Linux pop-os 5.18.10-76051810-generic #202207071639~1659108431~22.04~c9172fb SMP PREEMPT_DYNAMIC Fri J x86_64 x86_64 x86_64 GNU/Linux
-
rustc -V
:rustc 1.62.1 (e092d0b6b 2022-07-16)
-
git rev-parse HEAD
:git rev-parse HEAD
1080 16 x 9 resolution
Steps to reproduce
- Open the browser
- resize left moves the browser
- resize vertical or right does nothing
Behavior
- Expected behavior: The browser should resize in the direction the edge of the window is dragged, and when the maximize button is pressed, the browser should fill the screen
- Actual behavior: left resize attempt causes dragging, right and vertical attempt fails to resize, the maximize button moves the browser to the top left of the screen without resizing, any form of resizing freezes the browser
thread 'main' panicked at 'orbclient: failed to unmap memory in resize: Invalid argument', /home/papapop/.cargo/registry/src/github.com-1ecc6299db9ec823/orbclient-0.3.32/src/sys/orbital.rs:260:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
launcher: /ui/bin/file_manager (267) exited with exit status: 101
launcher: reaping zombie 268: exit status: 0
launcher: reaping zombie 269: exit status: 0
launcher: reaping zombie 270: exit status: 0
launcher: reaping zombie 271: exit status: 0
launcher: reaping zombie 272: exit status: 0
launcher: reaping zombie 273: exit status: 0
launcher: reaping zombie 274: exit status: 0
launcher: reaping zombie 275: exit status: 0
launcher: reaping zombie 276: exit status: 0
launcher: reaping zombie 277: exit status: 0
launcher: reaping zombie 278: exit status: 0
launcher: reaping zombie 279: exit status: 0
launcher: reaping zombie 280: exit status: 0
launcher: reaping zombie 281: exit status: 0
launcher: reaping zombie 282: exit status: 0
pte_osSemaphoreCancellablePend 0xa30c0 0x0
WARNING: You are using the SDL orbital video driver!
kernel::scheme::user:WARN -- Unaligned map size for context Some("/bin/netsurf-fb")
Setting mode 800x600@32
setsockopt(12, 6, 1, 0x7ffffffff4fc, 4) - unknown option
setsockopt(13, 6, 1, 0x7ffffffff4fc, 4) - unknown option
setsockopt(14, 6, 1, 0x7ffffffff4fc, 4) - unknown option
setsockopt(15, 6, 1, 0x7ffffffff4fc, 4) - unknown option
setsockopt(16, 6, 1, 0x7ffffffff4fc, 4) - unknown option
redoxfs: funmap 0xF000, 8192
thread '<unnamed>' panicked at 'orbclient: failed to unmap memory in resize: Invalid argument', /home/papapop/.cargo/registry/src/github.com-1ecc6299db9ec823/orbclient-0.3.29/src/sys/orbital.rs:260:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
abort() called
Invalid opcode fault
RFLAG: 0000000000010202
CS: 0000000000000033
RIP: 00000000009a07ee
RSP: 00007ffffffff610
SS: 000000000000002b
FSBASE 0000000000004000
GSBASE 0000000000000000
KGSBASE fffffd8000000050
RAX: 0000000000000000
RCX: 0000000000a1bb63
RDX: 000000000000000f
RDI: 0000000000000002
RSI: 0000000000dc00a7
R8: 00007ffffffff520
R9: 0000000000000001
R10: 00007ffffffff528
R11: 0000000000000202
RBX: 0000000000d71ec0
RBP: 00000000010efa88
R12: 0000000000000001
R13: 00007ffffffff8e8
R14: 0000000000000000
R15: 00000000010a1868
TRACE: FFFFFE80018C52C0
FFFFFE80018C52C0: FFFFFF000008A0C7
FFFFFF0000089F90+0137
kernel::arch::x86_64::interrupt::exception::invalid_opcode::inner
FFFFFE80018C5350: FFFFFF0000087F2D
FFFFFF0000087F00+002D
kernel::arch::x86_64::interrupt::exception::invalid_opcode
00000000010EFA88: EMPTY RETURN
kernel:INFO -- SIGNAL 4, CPU 0, PID ContextId(283)
kernel:INFO -- NAME /bin/netsurf-fb
launcher: /bin/netsurf-fb (283) exited with signal: 4
pte_osSemaphoreCancellablePend 0xa30c0 0x0
WARNING: You are using the SDL orbital video driver!
kernel::scheme::user:WARN -- Unaligned map size for context Some("/bin/netsurf-fb")
Setting mode 800x600@32
setsockopt(12, 6, 1, 0x7ffffffff4fc, 4) - unknown option
setsockopt(13, 6, 1, 0x7ffffffff4fc, 4) - unknown option
setsockopt(14, 6, 1, 0x7ffffffff4fc, 4) - unknown option
setsockopt(15, 6, 1, 0x7ffffffff4fc, 4) - unknown option
setsockopt(16, 6, 1, 0x7ffffffff4fc, 4) - unknown option
redoxfs: funmap 0xF000, 8192
launcher: /bin/netsurf-fb (285) exited with exit status: 0
smolnetd::scheme: poll error: dropped by socket
Second resize log:
smolnetd::scheme: poll error: dropped by socket
pte_osSemaphoreCancellablePend 0xa30c0 0x0
WARNING: You are using the SDL orbital video driver!
kernel::scheme::user:WARN -- Unaligned map size for context Some("/bin/netsurf-fb")
Setting mode 800x600@32
setsockopt(12, 6, 1, 0x7ffffffff4fc, 4) - unknown option
setsockopt(13, 6, 1, 0x7ffffffff4fc, 4) - unknown option
setsockopt(14, 6, 1, 0x7ffffffff4fc, 4) - unknown option
setsockopt(15, 6, 1, 0x7ffffffff4fc, 4) - unknown option
setsockopt(16, 6, 1, 0x7ffffffff4fc, 4) - unknown option
redoxfs: funmap 0xF000, 8192
thread '<unnamed>' panicked at 'orbclient: failed to unmap memory in resize: Invalid argument', /home/papapop/.cargo/registry/src/github.com-1ecc6299db9ec823/orbclient-0.3.29/src/sys/orbital.rs:260:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
abort() called
Invalid opcode fault
RFLAG: 0000000000010202
CS: 0000000000000033
RIP: 00000000009a07ee
RSP: 00007ffffffff610
SS: 000000000000002b
FSBASE 0000000000004000
GSBASE 0000000000000000
KGSBASE fffffd8000000050
RAX: 0000000000000000
RCX: 0000000000a1bb63
RDX: 000000000000000f
RDI: 0000000000000002
RSI: 0000000000dc00a7
R8: 00007ffffffff520
R9: 0000000000000001
R10: 00007ffffffff528
R11: 0000000000000202
RBX: 0000000000d71ec0
RBP: 00000000010efa88
R12: 0000000000000001
R13: 00007ffffffff8e8
R14: 0000000000000000
R15: 00000000010a1868
TRACE: FFFFFE80019232C0
FFFFFE80019232C0: FFFFFF000008A0C7
FFFFFF0000089F90+0137
kernel::arch::x86_64::interrupt::exception::invalid_opcode::inner
FFFFFE8001923350: FFFFFF0000087F2D
FFFFFF0000087F00+002D
kernel::arch::x86_64::interrupt::exception::invalid_opcode
00000000010EFA88: EMPTY RETURN
kernel:INFO -- SIGNAL 4, CPU 0, PID ContextId(287)
kernel:INFO -- NAME /bin/netsurf-fb
launcher: /bin/netsurf-fb (287) exited with signal: 4
Maximize log:
pte_osSemaphoreCancellablePend 0xa30c0 0x0
WARNING: You are using the SDL orbital video driver!
kernel::scheme::user:WARN -- Unaligned map size for context Some("/bin/netsurf-fb")
Setting mode 800x600@32
setsockopt(12, 6, 1, 0x7ffffffff4fc, 4) - unknown option
setsockopt(13, 6, 1, 0x7ffffffff4fc, 4) - unknown option
setsockopt(14, 6, 1, 0x7ffffffff4fc, 4) - unknown option
setsockopt(15, 6, 1, 0x7ffffffff4fc, 4) - unknown option
setsockopt(16, 6, 1, 0x7ffffffff4fc, 4) - unknown option
redoxfs: funmap 0xF000, 8192
thread '<unnamed>' panicked at 'orbclient: failed to unmap memory in resize: Invalid argument', /home/papapop/.cargo/registry/src/github.com-1ecc6299db9ec823/orbclient-0.3.29/src/sys/orbital.rs:260:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
abort() called
Invalid opcode fault
RFLAG: 0000000000010202
CS: 0000000000000033
RIP: 00000000009a07ee
RSP: 00007ffffffff610
SS: 000000000000002b
FSBASE 0000000000004000
GSBASE 0000000000000000
KGSBASE fffffd8000000050
RAX: 0000000000000000
RCX: 0000000000a1bb63
RDX: 000000000000000f
RDI: 0000000000000002
RSI: 0000000000dc00a7
R8: 00007ffffffff520
R9: 0000000000000001
R10: 00007ffffffff528
R11: 0000000000000202
RBX: 0000000000d71ec0
RBP: 00000000010efa88
R12: 0000000000000001
R13: 00007ffffffff8e8
R14: 0000000000000000
R15: 00000000010a1868
TRACE: FFFFFE800195A2C0
FFFFFE800195A2C0: FFFFFF000008A0C7
FFFFFF0000089F90+0137
kernel::arch::x86_64::interrupt::exception::invalid_opcode::inner
FFFFFE800195A350: FFFFFF0000087F2D
FFFFFF0000087F00+002D
kernel::arch::x86_64::interrupt::exception::invalid_opcode
00000000010EFA88: EMPTY RETURN
kernel:INFO -- SIGNAL 4, CPU 0, PID ContextId(289)
kernel:INFO -- NAME /bin/netsurf-fb
launcher: /bin/netsurf-fb (289) exited with signal: 4
- Proposed solution:
Optional references
Related to:
Optional extras
Edited by Ktoks