This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 271203 - Debugger preview of long strings causes UI freeze
Summary: Debugger preview of long strings causes UI freeze
Status: NEW
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-30 18:51 UTC by kalle1
Modified: 2017-07-30 18:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
nb/var/log/messages.log of a session with a freeze (28.49 KB, text/x-log)
2017-07-30 18:51 UTC, kalle1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kalle1 2017-07-30 18:51:26 UTC
Created attachment 164863 [details]
nb/var/log/messages.log of a session with a freeze

After creating a Java class

```
package com.mycompany.loong.string.preview;

import org.apache.commons.lang3.RandomStringUtils;

public class NewClass {

    public static void main(String[] args) {
        int charCount = 1024*1024;
        String randomString = RandomStringUtils.random(charCount);
        System.out.println(randomString);
    }
}
```

and setting a breakpoint at line 10, hovering over `randomString` causes the UI to become unresponsive for ca. 2 minutes. Since longer strings are not unrealistic the freeze might be even longer.

The above example with dependencies can be found at https://github.com/krichter722/loong-string-preview.

experienced with dev-201707280001