Crash on using the search box

Bug #1374684 reported by Vadim Peretokin
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mudlet
Opinion
Medium
Unassigned

Bug Description

Changed in mudlet:
milestone: 3.0 → none
Revision history for this message
Vadim Peretokin (vperetokin) wrote :

It's still a pretty consistent theme that the search box is crashy:

(from Discord)
no idea how to change the look of mudlet, i also want to remove some of the things i dun want there, like the seach (keep crashing mudlet)

From Achaea forums, crash on 3.0-delta that's seconded by several people:
I'm on 3.0.0-delta. Every now and then when I use the search box function, all of mudlet will crash.

I also have the bug Cooper mentioned where I crash randomly sometimes when I mess with the search bar. I cannot pin down any specific cause.

Also experiencing this.

Also voicing the sometimes crashing on search function in delta. Which is a shame because it is so useful but i avoid it unless im in a 100% okay position to crash.

Tapping the mouse on the interface, usually around the search box on the bottom right. (see OSX crashes)

description: updated
description: updated
Revision history for this message
Sloth (slothmagi) wrote :

on windows

Here is how to reproduce this bug:
- scroll up in main window, so it will divide main window in two split screens
- then use search field in main windows so it will find something
- then highlight some text in scrolled main widow with mouse = crash.

hope this helps

Revision history for this message
Vadim Peretokin (vperetokin) wrote : Re: [Bug 1374684] Re: Crash on using the search box

I tried it, but it didn't crash for me, see attachment. Did I do it right?
×

On Thu, Mar 2, 2017 at 1:56 PM Sloth <email address hidden> wrote:

> on windows
>
> Here is how to reproduce this bug:
> - scroll up in main window, so it will divide main window in two split
> screens
> - then use search field in main windows so it will find something
> - then highlight some text in scrolled main widow with mouse = crash.
>
> hope this helps
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1374684
>
> Title:
> Crash on using the search box
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mudlet/+bug/1374684/+subscriptions
>

Revision history for this message
Chris Leacy (cleacy1972) wrote :

The same (similar) problem exists in iota and release30 in windows. It occurs when the main window is split, and a lot of text is arriving from the mud: It may or may not be related to how much of the new text arriving is also gagged/deleted. The search box itself will occasionally crash, but much more likely to occur and should be easily reproducible is attempting to highlight and copy something at this time (window is split, and a lot of text is arriving)

Revision history for this message
Vadim Peretokin (vperetokin) wrote :

Thanks for the additional detail! Sounds like we have 2 types of crashes
then: when you search and when you highlight text in a split screen while a
lot of text is arriving.

On Thu, 2 Mar 2017 4:26 pm Chris Leacy, <email address hidden> wrote:

> The same (similar) problem exists in iota and release30 in windows. It
> occurs when the main window is split, and a lot of text is arriving from
> the mud: It may or may not be related to how much of the new text
> arriving is also gagged/deleted. The search box itself will occasionally
> crash, but much more likely to occur and should be easily reproducible
> is attempting to highlight and copy something at this time (window is
> split, and a lot of text is arriving)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1374684
>
> Title:
> Crash on using the search box
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mudlet/+bug/1374684/+subscriptions
>

Revision history for this message
Sloth (slothmagi) wrote :

possible. thanks for fixing

Revision history for this message
Stephen Lyons (slysven) wrote :

I still think that the way we process incoming MUD data could be suspect in that (void)cTelnet::handle_socket_signal_readyRead() is a SLOT that is coupled to an asynchronous SIGNAL generated by a separate (Qt provided) network thread that manages (QTcpSocket)cTelnet::socket so we have to be careful to make any class members it modifies be used in a re-entrant or is that thread-safe manner? I.e.:

Looks contentious:
(bool)Host::mInsertedMissingLF
(bool)cTelnet::recvdGA
(bool)cTelnet::iac
(bool)cTelnet::iac2
(bool)cTelnet::insb
(std::string)cTelnet::command

Safe-ish probably only because they are not modified frequently:
(bool)cTelnet::mMCCP_version_1
(bool)cTelnet::mMCCP_version_2
(bool)cTelnet::mFORCE_GA_OFF
(bool)cTelnet::mGA_Driver
(bool)cTelnet::mLF_ON_GA
(bool)cTelnet::mNeedDecompression
(bool)TConsole::mRecordReplay

Probably safe:
(bool)cTelnet::mWaitingForResponse
(QTime)cTelnet::timeOffset
(QTime)cTelnet::networkLatencyTime
(double)cTelnet::networkLatency

Note that "command" in void cTelnet::processTelnetCommand(const string &) is a local variable {the passed argument, NOT the class member of the same name which it masks - tut, tut!}

Revision history for this message
Vadim Peretokin (vperetokin) wrote :

All good information, thank you. On my side I'm going to try and setup a
reproducible test case so we can know when we've fixed the bug.

On Sat, Mar 4, 2017 at 8:59 PM Stephen Lyons <email address hidden>
wrote:

> I still think that the way we process incoming MUD data could be suspect
> in that (void)cTelnet::handle_socket_signal_readyRead() is a SLOT that
> is coupled to an asynchronous SIGNAL generated by a separate (Qt
> provided) network thread that manages (QTcpSocket)cTelnet::socket so we
> have to be careful to make any class members it modifies be used in a
> re-entrant or is that thread-safe manner? I.e.:
>
> Looks contentious:
> (bool)Host::mInsertedMissingLF
> (bool)cTelnet::recvdGA
> (bool)cTelnet::iac
> (bool)cTelnet::iac2
> (bool)cTelnet::insb
> (std::string)cTelnet::command
>
> Safe-ish probably only because they are not modified frequently:
> (bool)cTelnet::mMCCP_version_1
> (bool)cTelnet::mMCCP_version_2
> (bool)cTelnet::mFORCE_GA_OFF
> (bool)cTelnet::mGA_Driver
> (bool)cTelnet::mLF_ON_GA
> (bool)cTelnet::mNeedDecompression
> (bool)TConsole::mRecordReplay
>
> Probably safe:
> (bool)cTelnet::mWaitingForResponse
> (QTime)cTelnet::timeOffset
> (QTime)cTelnet::networkLatencyTime
> (double)cTelnet::networkLatency
>
> Note that "command" in void cTelnet::processTelnetCommand(const string
> &) is a local variable {the passed argument, NOT the class member of the
> same name which it masks - tut, tut!}
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1374684
>
> Title:
> Crash on using the search box
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mudlet/+bug/1374684/+subscriptions
>

Revision history for this message
Sloth (slothmagi) wrote :

let me know if want me to test it. thanks

Revision history for this message
Vadim Peretokin (vperetokin) wrote :

Migrating issues to Github, please follow the new discussion here: https://github.com/Mudlet/Mudlet/issues/497

This issue needs to be closed and there is no appropriate status, so will set it to "Opinion" just for migration purposes.

Changed in mudlet:
status: New → Opinion
Revision history for this message
Vadim Peretokin (vperetokin) wrote :

Migrating issues to Github, please follow the new discussion here: https://github.com/Mudlet/Mudlet/issues/517

This issue needs to be closed and there is no appropriate status, so will set it to "Opinion" just for migration purposes.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.