Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashed on directory change #4277

Closed
thperez1972 opened this issue Jan 18, 2024 · 23 comments
Closed

Crashed on directory change #4277

thperez1972 opened this issue Jan 18, 2024 · 23 comments

Comments

@thperez1972
Copy link

Xlights 2024.01 crashes on an intel macbook pro when the directory is changed (permanent and temporary) to a new directory. But if I change permanently, Xlights will reopen on the new directory.

1.4 GHz Quad-Core Intel Core i5
Intel Iris Plus Graphics 645 1536 MB
8 GB 2133 MHz LPDDR3
macOS Ventura Version 13.5.1 (22G90)

To Reproduce
When I click ok to change directories, the app crashes.

xLights_dbgrpt-16455-20240118T130814.zip

@cybercop23
Copy link
Collaborator

2nd that. Changed to Base folder from my Christmans folder and that switched okay, but when I restored to permanent it crashed. I'm on Mac M2.

@AzGilrock
Copy link
Collaborator

I highly doubt that whether the directory change is temporary or permanent has anything to do with root cause for this.

@thperez1972
Copy link
Author

I highly doubt that whether the directory change is temporary or permanent has anything to do with root cause for this.

You're right. I'm sure they would prefer more vagueness in their issue reports.

@AzGilrock
Copy link
Collaborator

AzGilrock commented Jan 18, 2024

I highly doubt that whether the directory change is temporary or permanent has anything to do with root cause for this.

You're right. I'm sure they would prefer more vagueness in their issue reports.

What do you mean "they"? I'm a main developer and I'm adding my opinion based on viewing the code for the last 15 minutes. We know changing directories can cause crashes and I'm saying that to indicate we need an open mind that it might not be just those conditions. Why are you reacting like your feelings got hurt?

@cybercop23
Copy link
Collaborator

True story. Started xLights... Temp switch to Base folder... ok... Switch back to show.. BHAM....

2024-01-18 15:35:55,036 8647516288 log_base [DEBUG] Special options file not found at /Volumes/documents/Alex/2023/Christmas-3D/special.options 2024-01-18 15:35:55,036 8647516288 log_base [DEBUG] Show directory set to : /Volumes/documents/Alex/2023/Christmas-3D. 2024-01-18 15:35:55,037 8647516288 log_base [DEBUG] Loading networks. 2024-01-18 15:35:55,037 8647516288 log_base [CRIT] Crashed: Fatal exception occurred. 2024-01-18 15:36:05,639 8647516288 log_base [CRIT] xLights version 2024.01 Time: 2024-01-18T15:36:05

@AzGilrock
Copy link
Collaborator

The crash posted here happened inside the Load function for the OutputManager. I'd permanently switch to that folder then restart xLights and do a Tools -> Package Log Files so we can see what clean output looks like in that folder.

@cybercop23
Copy link
Collaborator

@thperez1972
Copy link
Author

I highly doubt that whether the directory change is temporary or permanent has anything to do with root cause for this.

You're right. I'm sure they would prefer more vagueness in their issue reports.

What do you mean "they"? I'm a main developer and I'm adding my opinion based on viewing the code for the last 15 minutes. We know changing directories can cause crashes and I'm saying that to indicate we need an open mind that it might not be just those conditions. Why are you reacting like your feelings got hurt?

My feelings aren't hurt at all. My reply was in line with your post. While I have no doubt your programming knowledge and the programming knowledge of many others here far exceeds my programming knowledge, I do know that the code being executed when one button is clicked cannot be the same code executed when the other button is clicked. So when the bug report asked me to explain how to reproduce the error, I listed what I did to reproduce the error. To me and my novice programming abilities, the fact it crashed on both types of directory changes would at least hint that any issue might be somewhere other than in the code each executes exclusively. That seemed to me to be a relevant detail to include.

So when I see a comment that appears to be sarcastic and offers no context in explaining what the problem could be, I tend to respond in kind. I do have an open mind. That's why I posted the bug report.

So if you're one of the people responsible for keeping xlights up and running, thank you. I like your work. So do a lot of people who watch my shows. I won't apologize for replying to a contextless seemingly snarky comment with a snarky reply. But I will try to remember your name and recognize there may be unwritten context in your posts.

@AzGilrock
Copy link
Collaborator

True story. Started xLights... Temp switch to Base folder... ok... Switch back to show.. BHAM....

2024-01-18 15:35:55,036 8647516288 log_base [DEBUG] Special options file not found at /Volumes/documents/Alex/2023/Christmas-3D/special.options 2024-01-18 15:35:55,036 8647516288 log_base [DEBUG] Show directory set to : /Volumes/documents/Alex/2023/Christmas-3D. 2024-01-18 15:35:55,037 8647516288 log_base [DEBUG] Loading networks. 2024-01-18 15:35:55,037 8647516288 log_base [CRIT] Crashed: Fatal exception occurred. 2024-01-18 15:36:05,639 8647516288 log_base [CRIT] xLights version 2024.01 Time: 2024-01-18T15:36:05

Yeah so your saying yours happened when coming back. That's different. The common thing is switching folders. Over the years we've always run into problems dealing with switching show folders.

@AzGilrock
Copy link
Collaborator

Yeah the only active developer that's been around longer than me is Dan. And when I want to be "snarky" it will be more obvious. When I said that I had just spent time looking up what the code does different for "temporary" vs "permanent" and I didn't think that was root cause probably more of a coincendence but hey I don't care if I'm wrong I just want to see things fixed. Try switching 5 times and see if its consistent. Try switching to other folders to see if its isolated to something in that particular folder. That's the kinda stuff we have to do to isolate an issue. Another thing that happens is people get a crash on a new version and we immediately see posts on Facebook saying don't use the new version its got crashing issues when the reality usually is nothing in the new version is causing the crash.

@thperez1972
Copy link
Author

thperez1972 commented Jan 18, 2024 via email

@computergeek1507
Copy link
Member

I think I fixed it, try the next nightly or build whenever it comes out d97e057

@AzGilrock
Copy link
Collaborator

Guess I should have read the release notes and this one would have been obvious...lol

@cybercop23
Copy link
Collaborator

Fixed in 2024.2. Please close

@AzGilrock
Copy link
Collaborator

I’ve heard reports of the latest version still crashing when changing show folders but it could be for a different reason

@cybercop23
Copy link
Collaborator

IDK.. I'm on latest on Mac using TestFlight and no issues since Scott made the change. Haven't seen/heard anything else on zoom about this to yeah.. maybe a totally diff issue. But I fell confident that the originally reported issue was fixed.

@AzGilrock
Copy link
Collaborator

If Ron Howard says it’s crashing its crashing

@AzGilrock
Copy link
Collaborator

So I just caught this crash. I had just changed Show folders and then tried to create a new sequence. After hitting the Done button on the New Sequence dialog xLights crashed loading the Perspectives. Digging down into the function call stack it did not look like it was our code it seems to be a crash inside wxWidgets wxAuiManager.

Screenshot 2024-01-29 at 9 37 17 AM

@derwin12
Copy link
Collaborator

derwin12 commented Feb 8, 2024

Anyone know if this might be just a Mac issue or perhaps windows as well?

@cybercop23
Copy link
Collaborator

I'm on latest Mac using TestFlight.. no issues switching dirs.

@cybercop23
Copy link
Collaborator

Looks like the same issue just happend in #4324 for Clyde and that's on Windows.

@cybercop23
Copy link
Collaborator

@AzGilrock can we move and track this under #4324 since that's the same behaviour you saw and Clyde had today? The original one here was fixed by Scott.

@AzGilrock
Copy link
Collaborator

Fine with me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants