Completed
Last Updated: 31 Jan 2019 12:12 by ADMIN
Ioannis
Created on: 25 Dec 2018 16:24
Category: Spreadsheet
Type: Bug Report
1
Exception at Runtime, Trial bug?

Hello,

 

So, I'm testing the Telerik suite, part of which is the RadSpreadSheet. I'm currently using the 30 days trial.

So, when I'm debugging it and I'm instantiating a new form that contains the RadSpreadSheet, the programme will about 50% of the time create an exception of object reference not set to an instance of an object
Now, I've only noticed this with forms that contain a radspreadsheet but it could have nothing to do with it.

What always happens before I get the exception is that the reminder to buy a Telerik License appears (the programme halts until I choose an option) and when the dialogue disappears, the exception happens.

 

Please note that if I just push "F5" again in VS, without changing anything anywhere, so after the crash immediately debug (F5) again, the exception will not occur.

Attached Files:
12 comments
Dimitar
Posted on: 31 Jan 2019 12:10
Hello,

A fix will be available in Telerik UI for WinForms version R1 2019 SP1.

Regards,
Dimitar
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 02 Jan 2019 11:45
Hello, Ioannis,   

Thank you for the whole cooperation during investigating this issue.

After further testing on different machines, I was able to replicate the exception with Windows 10 and trial version of the Telerik UI for WinForms suite. As it was previously confirmed, it is indeed an issue with the trial message and RadSpreadsheet in combination. You can track its progress, subscribe for status changes and add your comments on the following link: https://feedback.telerik.com/winforms/1380948-exception-at-runtime-trial-bug

The issue is currently in development and if the fix passes the QA cycle, the solution will be released in the upcoming R1 2019.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Ioannis
Posted on: 28 Dec 2018 14:50

Hello Dess,

 

I was actually wrong about it not happening outside of VS debugging.

I had actually just been lucky and it didn't happen immediately, but it does happen. It also happens on different computers as well.

I took the binary files of the program and run it on my work computer, and it crashed, producing this JIT exception:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.WinForms.Controls.Spreadsheet.Commands.Descriptors.CommandDescriptorsManager.Owner_LayoutUpdated(Object sender, EventArgs e)
   at Telerik.WinControls.Layouts.ContextLayoutManager.fireLayoutUpdateEvent()
   at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayout()
   at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayoutCallback(ILayoutManager manager)

 

I have also tested it in a brand new project, adding just a form and the spreadsheet control. The exception still happens there as well.

 

I am actually now wondering if we could reproduce the error on your computer by running my already compiled binaries (I understand that this would be little to no help, however since I get the exception on other computers too, I'd be really interested to see if you can experience the same exception when I build it)

You can download the whole VS project here: https://www.dropbox.com/s/abagt1yf8ea8dvb/TelerikWinFormsApp1.rar?dl=1

On the usual "bin\debug" folder is the built TelerikWinFormsApp1.exe file. 

 

So, this is a more general problem than I first assumed it was.

I'm also wondering if it has anything to do with the lag I experience in the Spreadsheet's form.

From scrolling up and down to changing sheets, the control seems to lag significantly even when filled with a mere 32x35 table

It's not that it is rendered unusable - the lag just shows.

But that's a different matter - I have already asked about this on: https://www.telerik.com/forums/noticeable-lag-in-spreadsheet

ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 28 Dec 2018 14:10
Hello, Ioannis, 

I am really sorry to hear that you are still experiencing any difficulties. I have reviewed again the whole provided information. Since you mentioned that the exception only happens when debugging, I suppose that there might be some cached assemblies. Please refer to the following article demonstrating how to clean up the VS cache: https://www.matteopozzani.com/visual-studio-cache-cleanup/ You can remove all references and add them anew by using the provided DLLs. Clean the solution. Delete the license.licx file. After that, you should rebuild your project, close Visual Studio and open it again to make sure that no references are kept in the memory by Visual Studio.  

Alternatively, you can try uninstalling the trial version of the Telerik UI for WinForms suite via the Control Panel and install it again.

Have you tested a similar scenario but with a brand new project? Thus, we can track whether the problem occurs only in this particular solution. Thank you in advance for your cooperation.

I am looking forward to your reply.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Ioannis
Posted on: 27 Dec 2018 13:47

Okay, I've tested the new dlls, followed your suggestion to the letter.

 

Unfortunately, the exception still occurs in the same fashion.

However, I did notice a slight decrease in its frequency (thought I could be wrong about it - the sample of how many times I've tried it is very low).

 

I haven't noticed anything else - just that I still get the exception.

 

P.S. on the zip folder there wasn't any Telerik.Windows.Documents.Spreadsheet dll, so this and only this one dll was referenced from the trial installation folder (C:\Program Files (x86)\Progress\Telerik UI for WinForms R3 2018\Bin40\Telerik.Windows.Documents.Spreadsheet.dll)

ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 27 Dec 2018 13:04
Hello, Ioannis, 

I have attached a folder with all trial dlls. You can remove all references in your project and add them anew by using the DLLs from the attached zip file. Delete the license.licx file. After that, you should rebuild your project, close Visual Studio and open it again to make sure that no references are kept in the memory by Visual Studio. Then, give it another try. I hope this time you will be able to run the application and test the fix candidate.

I am looking forward to your reply.

 Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Ioannis
Posted on: 27 Dec 2018 12:43

Thank you very much :)

 

Unfortunately, when I reference the new "Telerik.WinControls.UI.dll", I get loads of errors (attached picture) when I try to show anything with a Telerik control.

As soon as I reference back the dll installed from the trial (on C:\Program Files (x86)\Progress\Telerik UI for WinForms R3 2018\Bin40), all those errors disappear.

 

I'm going to need a new dll, or a way to circumvent those errors in order to test the candidate fix.

Attached Files:
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 27 Dec 2018 12:23
Hello, Ioannis, 

Thank you for the provided information.

We have investigated further the source code for showing the Evaluation Copy form and we found some places in the code which may result in the behavior that you are facing. I have logged the issue in our feedback portal by making this thread public. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik points.

Since we can't replicate the issue locally, please refer to the provided Telerik.WinControls.UI.dll where a candidate fix is available for the specific case. Could you please give a try in your project and share with us whether it covers the problematic case? Thank you in advance.

I am looking forward to your reply.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Attached Files:
Ioannis
Posted on: 27 Dec 2018 10:30

Oh yeah, makes perfect sense for the trial.

 

Things I tried

  • I deleted the RadSpreadSheet and it seems to have fixed the issue.
  • I am showing a RadMessageBox instead of the form with the spreadsheet, and there's no issue.
  • I deleted the Ribbon Menu and left only the spreadsheet on the form; the issue reappears.

At this point, I firmly believe this has something to do with the RadSpreadsheet and trial version. I also noticed that a second consecutive Evaluation-Copy-dialogue tried to appear before the crash (but sometimes it happens when the normal 1st one tries to appear).

I'm pretty sure that having 2 consecutive evaluation-copy-dialogues appearing in one form.show() is not the intended behaviour. If that is the case, perhaps the exception has something to do with this.

As far as I know, the trial assemblies are referenced directly; I only use nuget for some other assemblies this programme would need.

 

Yeah, if the problem cannot be reproduced, it's totally understandable that it's hard/impossible to fix.

I thought that the source files I sent would reproduce the problem on your end, but the video proves my hypothesis wrong.

 

Additional Information:

  1. When I put a RadSpreadSheet back at the form, it crashed immediately on 1st run with the same exception
  2. I'm not sure how relevant it is, if at all, but I have been also testing GrapceCit's "ComponentOne" and "Spread.NET". However:
  • I never put controls from both GrapeCity + Telerik in the same form
  • As a project it has had references to both assemblies, but it now only has Telerik ones

4. I have Windows 10 Pro (Genuine) version 1803build 17134.472 with the latest updates and VS 15.9.4

5. When I opened VS and loaded the project, having the form with the SpreadSheet to appear, before the form actually appeared on Design time, I got an "object reference not set to an instance of an object" exception for the property "Theme" as my attached screenshot shows. Not sure if I nailed it with this or not (at runtime, it's the same exception, only it doesn't say exactly where it originates - perhaps it's the Theme?)

6. The exception seems to only happen when F5/Debugging. If I run the program from the .exe instead of VS, then the form with the spreadsheet won't produce an exception any more.

7. I set the "ThemeName" property on both the ribbon menu and the spreadsheet to "ControlDefault", but the exception persists on debugging.

 

Attached Files:
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 27 Dec 2018 07:46
Hello, Ioannis,

The trial version is fully functional and the only difference is that you will get the Evaluation Copy message when starting an application that references trial assemblies. After running the application on my end, everything seems to work as expected. Please refer to the attached sample video (drag and drop over the browser to play it). 

Would you please test whether the error will occur if you delete the RadSpreadsheet control from the form? You can also try referring the trial assemblies directly instead of using nuget packages. Please test the case with showing a RadMessageBox instead of showing a new form. 

It is not very easy to conclude what is the problem since I can't replicate the issue locally and further investigate it. That is why any additional information will help us to make an adequate analysis of the precise case and assist you further. 

I am looking forward to your reply.

 Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Attached Files:
Ioannis
Posted on: 26 Dec 2018 11:35

Hello Dess,

 

I'm attaching a stripped-down version of my programme (it basically has no functionality other than instantiating a new telerik form with a RadSpreadSheet in it and attaching an empty workbook

 

I opted to do this instead of creating a new empty project because it could be something particular to how this project is set up (version of dot.net? nuGet packages? etc...)

 

I have also attached a video file showing what I described (exceptions are non-deterministic and seem to follow a "buy telerik license" dialog.

Basically just click on any of the Tiles on the RadDock.

Download the VS project from my dropbox: https://www.dropbox.com/s/vgdvuc54wvpp5t3/Telerik-Trial-Bug-Sample-Code.rar?dl=1

(File is larger than 20MB due to the nuget packages, so couldn't upload it to the form)

 

(Irrelevant question: Is the get-a-license dialogue supposed to appear at runtime?)

 

Best regards,

Ioannis Mamalikidis

Attached Files:
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 26 Dec 2018 06:26
Hello, Ioannis,
     
We haven't had any similar reports from other customers. It is not expected to experience any errors with the Trial version of the Telerik UI for WinForms suite. Would it be possible to provide a sample project demonstrating the problem you are facing? Thus, we would be able to test with both versions, trial and licensed, investigate the precise case and assist you further. Thank you in advance.

I am converting this forum thread into a support ticket in order to allow attachments. You can find the ticket in Your Telerik Account.

I am looking forward to your reply. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.