Bug 453704 - Crash while switching out of scale view in video mode
Summary: Crash while switching out of scale view in video mode
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR crash
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-05-12 15:06 UTC by Richard Hornby
Modified: 2022-10-27 04:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Hornby 2022-05-12 15:06:55 UTC
Application: kstars (3.5.8 Stable)

Qt Version: 5.15.2
Frameworks Version: 5.78.0
Operating System: Linux 5.15.32-v8+ aarch64
Windowing system: X11
Distribution: Debian GNU/Linux 11 (bullseye)

-- Information about the crash:
- What I was doing when the application crashed:  I was switching out of scale or zoom view in video when EKOS crashed.  I am on a RPi 8GB which was at 66% memory, 80% CPU, temp 56deg, fan on.

This repeated a couple of times and may be related to overall resource availability.  In similar situations I have had the whole pi freeze.  However, this has happened in EKOS 3x without the pi crashing.  Am running in Debian 11 Bullseye 64bit.

The crash can be reproduced every time.

-- Backtrace:
Application: KStars (kstars), signal: Segmentation fault

[KCrash Handler]
#4  dc1394_bayer_NearestNeighbor (bayer=0x7f46a60fce "\225\224\234\225\234\224\230\220\230\223\230\224\230\223\232\225\230\223\231\223\231\224\231\226\227\225\235\226\223\223\233\224\227\222\226\224\230\224\232\225\225\221\232\223\226\223\236\223\226\225\232\225\234\225\224\226\231\222\227\227\232\221\233\225\230\226\225\226\226\224\227\223\230\223\230\223\230\224\233\225\231\222\233\222\227\224\235\222\232\221\225\224\227\222\233\223\225\225\236\225\231\222\234\225\231\223\230\224\231\225\233\227\231\225\231\222\232\223\232\226\233\225\227\223\230\224\227\226\233\224\234\222\235\226\233\223\232\225\232\226\226\220\226\221\230\224\232\225\231\226\233\222\234\226\233\223\231\224\231\221\231\225\232\224\233\225\230\222\233\222\233\225\230\224\233\225\231\222\232\223\234\223\232\224\234\224\232\225\230\225\227\223\230\223\227\230\231\226\233\226"..., rgb=0x7f44c4ef4b "\224\214\234", sx=4144, sy=2822, tile=<optimized out>) at /home/pi/astro-soft-stable/kstars/kstars/fitsviewer/bayer.c:149
#5  0x00000055748dd844 in dc1394_bayer_decoding_8bit (bayer=<optimized out>, rgb=rgb@entry=0x7f44739010 "\240\243\244\240\240\244\240\243\246\237\235\246\237\246\247\242\235\247\242\245\243\237\234\243\237\244\244\237\242\244\237\247\243\240\236\243\240\243\241\237\236\241\237\250\246\240\235\246\240\246\243\240\233\243\240\245\251\240\236\251\240\250\245\236\240\245\236\245\243\241\233\243\241\242\244\240\236\244\240\242\244\235\231\244\235\246\246\241\236\246\241\243\242\236\232\242\236\243\244\235\234\244\235\244\242\236\240\242\236\246\246\237\240\246\237\245\241\241\235\241\241\247\245\243\232\245\243\244\243\242\235\243\242\243\240\236\234\240\236\245\243\236\237\243\236\246\244\237\235\244\237\247\243\242\234\243\242\242\242\236\240\242\236\247\243\233\233\243\233\244\240\232\235\240\232\242\240\233\233\240\233\244\244\237\237\244\237\243\242\241\234\242\241\241\244\236\233\244\236\245"..., sx=<optimized out>, sy=<optimized out>, tile=<optimized out>, method=<optimized out>) at /home/pi/astro-soft-stable/kstars/kstars/fitsviewer/bayer.c:2505
#6  0x000000557435f774 in VideoWG::debayer (this=this@entry=0x7f8c00a260, bp=bp@entry=0x7f400065c0, params=...) at /home/pi/astro-soft-stable/kstars/kstars/indi/videowg.cpp:155
#7  0x000000557435fab0 in VideoWG::newBayerFrame (this=this@entry=0x7f8c00a260, bp=bp@entry=0x7f400065c0, params=...) at /home/pi/astro-soft-stable/kstars/kstars/indi/videowg.cpp:28
#8  0x000000557435e30c in StreamWG::newFrame (this=0x55ae1b3220, bp=bp@entry=0x7f400065c0) at /home/pi/astro-soft-stable/kstars/kstars/indi/streamwg.cpp:391
#9  0x000000557433d7e8 in ISD::CCD::processStream (this=this@entry=0x55b04573c0, bp=bp@entry=0x7f400065c0) at /home/pi/astro-soft-stable/kstars/kstars/indi/indiccd.cpp:1355
#10 0x0000005574344300 in ISD::CCD::processStream (bp=0x7f400065c0, this=0x55b04573c0) at /home/pi/astro-soft-stable/kstars/kstars/indi/indiccd.cpp:1474
#11 ISD::CCD::processBLOB (this=0x55b04573c0, bp=0x7f400065c0) at /home/pi/astro-soft-stable/kstars/kstars/indi/indiccd.cpp:1473
#12 0x0000007f99c3548c in ?? () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#13 0x000000557426538c in ClientManager::newINDIBLOB (this=<optimized out>, _t1=<optimized out>) at /home/pi/astro-soft-stable/build-kstars/kstars/KStarsLib_autogen/FRI4DANIHA/moc_clientmanager.cpp:369
#14 0x0000007f99c2a7d4 in QObject::event(QEvent*) () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#15 0x0000007f9a6c1a80 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/aarch64-linux-gnu/libQt5Widgets.so.5
#16 0x0000007f99bf8460 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#17 0x0000007f99bfb338 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#18 0x0000007f99c5aca8 in ?? () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#19 0x0000007f98b32bc8 in g_main_context_dispatch () from /lib/aarch64-linux-gnu/libglib-2.0.so.0
#20 0x0000007f98b32e5c in ?? () from /lib/aarch64-linux-gnu/libglib-2.0.so.0
#21 0x0000007f98b32f24 in g_main_context_iteration () from /lib/aarch64-linux-gnu/libglib-2.0.so.0
#22 0x0000007f99c5a154 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#23 0x0000007f99bf68ac in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#24 0x0000007f99bffa7c in QCoreApplication::exec() () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#25 0x0000005573ff8688 in main (argc=<optimized out>, argv=<optimized out>) at /home/pi/astro-soft-stable/kstars/kstars/main.cpp:382
[Inferior 1 (process 1347) detached]

Reported using DrKonqi
Comment 1 Jasem Mutlaq 2022-10-10 06:12:16 UTC
Please check against KStars 3.6.1 and report back.
Comment 2 Bug Janitor Service 2022-10-25 05:01:06 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Richard Hornby 2022-10-26 15:15:05 UTC
Hi - tks for the new build!

Updated to Build: 2022-10-25T08:32:02Z  Stable release.

KStars no longer crashes when the Reset Frame button is pressed.  However, pressing the button doesn’t seem to do anything.  

eg: in the Indi Control Panel for ASI462MC, Image Settings Tab, set Frame to 600x600 and start Stream.  

Video viewer in Stream shows image 600x600.   

Press Reset button - it turns Orange but nothing happens, the video freezes for a couple of secs and continues at 600x600.

Re-enter Control Panel, stop Stream, set frame to 900x900, start Stream, video runs at 900x900.  

Press Reset button, same as above.  

So the system is usable, does not crash, and will swap resolutions providing the Stream is stopped while doing so, but I cannot tell what the Reset Frame button is doing.  

A suggestion is that the button should either return to full frame, or return to the Image Settings Tab to allow for resetting the Frame.

Best

R
Comment 4 Richard Hornby 2022-10-26 22:10:34 UTC
Sorry.  I had forgotten the way to zoom in the window - ie to draw a box round the desired ROI.   When the Reset button is pressed, the window reverts to full size.  

Looks fine and FIXED to me.  

Thanks
R