Jump to content
You must now use your email address to sign in [click for more info] ×

Affinity Publisher V2 Crashes when using Find with regular expressions


antons

Recommended Posts

  1. Are you using the latest release version?
    yes, 2.0.4
  2. Can you reproduce it?
    1. Create a new design
    2. Add text with text style 'Heading 1'
    3. Add other text on a new line with text style 'Body'
    4. 'Find' with regex expressions on
    5. Change in 'Find/Settings/Format/Character/' the 'Font weight' to Bold
    6. Search for `.*` : it works
    7. Search for `.*$` (end $): it works
    8. Search for `^.*` (start ^): it crashes
  3. Does it happen for a new document? Yes
  4. If you cannot provide a sample document then please give an accurate description of the problem for example it should include most of the following:
  •  I tried switching hardware performance on and off - it still crashes

 

In the meantime: are there other workarounds to find bold text ONLY if it is in the beginning of a line/paragraph?

 

Link to comment
Share on other sites

I would use ^.+ for the search string instead of your ^.*

This means I would look for 

^    The start of a line

.    anything

+   one or more instances of the "anything"

instead of your

^    The start of a line

.    anything

*   zero or more instances of the "anything"

Mac Pro (Late 2013) Mac OS 12.7.2 
Affinity Designer 2.3.1 | Affinity Photo 2.3.1 | Affinity Publisher 2.3.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

Thanks Old Bruce, that's a very good point!

My real use case is more complex than .*, but using + in place of * where appropriate fixes the crashes

 

It creates another issue though: I'm searching for bold text in a particular paragraph style (Body), if the bold text is 'alone' in the line:

My Bold Text

everything works as expected, if the bold text precedes normal text:

My Bold Text: Other non bold text

It appears in the 'Find' results, but I can't click the result / clicking doesn't do anything - it doesn't jump to it in the file; clicking 'Replace' also doesn't do anything

Link to comment
Share on other sites

6 minutes ago, antons said:

but using + in place of * where appropriate fixes the crashes

A regular expression, whether well-formed or malformed should not bring the program down.

So I would submit this as a possible bug for the development team to look at.

2017 27” iMac 4.2 GHz Quad-Core Intel Core i7 • Radeon Pr 580 8GB • 64GB • Ventura 13.6.4.

iPad Pro (10.5-inch) • 256GB • Version 16.4

Link to comment
Share on other sites

You may not need the regular expression at all for that, if I understand what you're trying to do. Just leave the find field blank, and search for the font weight.

But I would need more details on what you want to do with the text you find to say for sure.

 

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.3, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.3

Link to comment
Share on other sites

  • Staff

Hi @antons,

Welcome to the Affinity Forums & thanks for your in-depth report!

20 hours ago, antons said:
  • Create a new design
  • Add text with text style 'Heading 1'
  • Add other text on a new line with text style 'Body'
  • 'Find' with regex expressions on
  • Change in 'Find/Settings/Format/Character/' the 'Font weight' to Bold
  • Search for `.*` : it works
  • Search for `.*$` (end $): it works
  • Search for `^.*` (start ^): it crashes

 

19 hours ago, antons said:

It creates another issue though: I'm searching for bold text in a particular paragraph style (Body), if the bold text is 'alone' in the line:

My Bold Text

everything works as expected, if the bold text precedes normal text:

My Bold Text: Other non bold text

It appears in the 'Find' results, but I can't click the result / clicking doesn't do anything - it doesn't jump to it in the file; clicking 'Replace' also doesn't do anything

I can confirm that I have been able to replicate both of these issues and I have logged these with our developers for you now.

I hope this helps :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.