Bug 506957 - Kstars crashes on video - SER job export
Summary: Kstars crashes on video - SER job export
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (other bugs)
Version First Reported In: 3.7.7
Platform: Other All
: NOR crash
Target Milestone: ---
Assignee: Wolfgang Reissenberger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-12 15:32 UTC by kde.bugs.ndfbr
Modified: 2025-07-16 05:41 UTC (History)
0 users

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


Attachments
working changes but review needed (2.38 KB, patch)
2025-07-12 15:32 UTC, kde.bugs.ndfbr
Details
corrupt esq file when trying to export ser (775 bytes, application/xml)
2025-07-12 15:34 UTC, kde.bugs.ndfbr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kde.bugs.ndfbr 2025-07-12 15:32:06 UTC
Created attachment 183186 [details]
working changes but review needed

SUMMARY
When exporting a sequence with a Video job (SER-RAW), the app crashes.

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT
The app crashes, and an .esq file is partially created, like this:
```
<?xml version="1.0" encoding="UTF-8"?>
<SequenceQueue version='2.6'>
<GuideDeviation enabled='false'>2</GuideDeviation>
<GuideStartDeviation enabled='false'>2</GuideStartDeviation>
<HFRCheck enabled='false'>
<HFRDeviation>0</HFRDeviation>
<HFRCheckAlgorithm>0</HFRCheckAlgorithm>
<HFRCheckThreshold>10</HFRCheckThreshold>
<HFRCheckFrames>1</HFRCheckFrames>
</HFRCheck>
<RefocusOnTemperatureDelta enabled='false'>1</RefocusOnTemperatureDelta>
<RefocusEveryN enabled='false'>60</RefocusEveryN>
<RefocusOnMeridianFlip enabled='false'/>
<Job>
<Exposure>1</Exposure>
<Format>SER</Format>
<Encoding>RAW</Encoding>
<Binning>
<X>1</X>
<Y>1</Y>
</Binning>
<Frame>
<X>0</X>
<Y>0</Y>
<W>1280</W>
<H>1024</H>
</Frame>
<Temperature force='false'>0</Temperature>
<Filter>Luminance</Filter>
```
Filter is the last tag. `<Type>` should be next but if fails.

EXPECTED RESULT
A new .esq file should be created for that sequence queue.

SOFTWARE/OS VERSIONS
Kstars 3.7.7 Stable
All operative systems

ADDITIONAL INFORMATION
I compiled a version of kstars with the following changes and it worked, but i'm not sure if it's fully correct. Attached patch.
Comment 1 kde.bugs.ndfbr 2025-07-12 15:34:58 UTC
Created attachment 183187 [details]
corrupt esq file when trying to export ser
Comment 2 Wolfgang Reissenberger 2025-07-16 05:13:53 UTC
Bug confirmed, can be reproduced.
Comment 3 Wolfgang Reissenberger 2025-07-16 05:14:28 UTC
Checking the proposed patch
Comment 4 Wolfgang Reissenberger 2025-07-16 05:41:48 UTC
Thanks for submitting the report and the patch. The bug will be fixed with https://invent.kde.org/education/kstars/-/merge_requests/1527